Home
last modified time | relevance | path

Searched refs:tok (Results 1 – 34 of 34) sorted by relevance

/linux-4.1.27/Documentation/usb/
Dgadget_hid.txt190 char *tok = strtok(buf, " ");
194 for (; tok != NULL; tok = strtok(NULL, " ")) {
196 if (strcmp(tok, "--quit") == 0)
199 if (strcmp(tok, "--hold") == 0) {
206 if (strcmp(tok, kval[i].opt) == 0) {
215 if (islower(tok[0])) {
216 report[2 + key++] = (tok[0] - ('a' - 0x04));
221 if (strcmp(tok, kmod[i].opt) == 0) {
229 fprintf(stderr, "unknown option: %s\n", tok);
243 char *tok = strtok(buf, " ");
[all …]
/linux-4.1.27/drivers/parisc/
Dlba_pci.c146 #define LBA_CFG_BUS(tok) ((u8) ((tok)>>16)) argument
147 #define LBA_CFG_DEV(tok) ((u8) ((tok)>>11) & 0x1f) argument
148 #define LBA_CFG_FUNC(tok) ((u8) ((tok)>>8 ) & 0x7) argument
206 #define LBA_CFG_SETUP(d, tok) { \ argument
233 #define LBA_CFG_PROBE(d, tok) { \ argument
238 WRITE_REG32(tok | PCI_VENDOR_ID, (d)->hba.base_addr + LBA_PCI_CFG_ADDR);\
284 #define LBA_CFG_MASTER_ABORT_CHECK(d, base, tok, error) { \ argument
338 lba_rd_cfg(struct lba_device *d, u32 tok, u8 reg, u32 size) in lba_rd_cfg() argument
346 LBA_CFG_SETUP(d, tok); in lba_rd_cfg()
347 LBA_CFG_PROBE(d, tok); in lba_rd_cfg()
[all …]
/linux-4.1.27/drivers/isdn/mISDN/
Ddsp_hwec.c72 char *dup, *tok, *name, *val; in dsp_hwec_enable() local
78 while ((tok = strsep(&dup, ","))) { in dsp_hwec_enable()
79 if (!strlen(tok)) in dsp_hwec_enable()
81 name = strsep(&tok, "="); in dsp_hwec_enable()
82 val = tok; in dsp_hwec_enable()
Ddsp_pipeline.c239 char *dup, *tok, *name, *args; in dsp_pipeline_build() local
261 while ((tok = strsep(&dup, "|"))) { in dsp_pipeline_build()
262 if (!strlen(tok)) in dsp_pipeline_build()
264 name = strsep(&tok, "("); in dsp_pipeline_build()
265 args = strsep(&tok, ")"); in dsp_pipeline_build()
/linux-4.1.27/tools/lib/traceevent/
Devent-parse.c855 static int extend_token(char **tok, char *buf, int size) in extend_token() argument
857 char *newtok = realloc(*tok, size); in extend_token()
860 free(*tok); in extend_token()
861 *tok = NULL; in extend_token()
865 if (!*tok) in extend_token()
869 *tok = newtok; in extend_token()
874 static enum event_type force_token(const char *str, char **tok);
876 static enum event_type __read_token(char **tok) in __read_token() argument
884 *tok = NULL; in __read_token()
900 if (asprintf(tok, "%c", ch) < 0) in __read_token()
[all …]
Dparse-filter.c73 static enum event_type read_token(char **tok) in read_token() argument
88 *tok = malloc(3); in read_token()
89 if (*tok == NULL) { in read_token()
93 sprintf(*tok, "%c%c", *token, '~'); in read_token()
99 *tok = token; in read_token()
Devent-parse.h774 enum event_type pevent_read_token(char **tok);
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dlibcfs_string.c264 struct cfs_lstr tok; in cfs_range_expr_parse() local
285 if (!bracketed || !cfs_gettok(src, '-', &tok)) in cfs_range_expr_parse()
288 if (!cfs_str2num_check(tok.ls_str, tok.ls_len, in cfs_range_expr_parse()
301 if (cfs_gettok(src, '/', &tok)) { in cfs_range_expr_parse()
302 if (!cfs_str2num_check(tok.ls_str, tok.ls_len, in cfs_range_expr_parse()
443 struct cfs_lstr tok; in cfs_expr_list_parse() local
445 if (!cfs_gettok(&src, ',', &tok)) { in cfs_expr_list_parse()
450 rc = cfs_range_expr_parse(&tok, min, max, 1, &expr); in cfs_expr_list_parse()
/linux-4.1.27/drivers/usb/host/
Doxu210hp.h185 #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) argument
209 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument
211 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument
212 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument
Dfotg210.h316 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument
318 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument
319 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument
541 #define FOTG210_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
Dfusbh200.h308 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument
310 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument
311 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument
531 #define FUSBH200_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
Dehci.h301 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument
303 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument
304 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument
516 #define EHCI_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
/linux-4.1.27/tools/perf/util/
Dcallchain.c58 char *tok, *name, *saveptr = NULL; in parse_callchain_record_opt() local
69 tok = strtok_r((char *)buf, ",", &saveptr); in parse_callchain_record_opt()
70 name = tok ? : (char *)buf; in parse_callchain_record_opt()
92 tok = strtok_r(NULL, ",", &saveptr); in parse_callchain_record_opt()
93 if (tok) { in parse_callchain_record_opt()
96 ret = get_stack_size(tok, &size); in parse_callchain_record_opt()
170 char *tok; in parse_callchain_report_opt() local
179 while ((tok = strtok((char *)arg, ",")) != NULL) { in parse_callchain_report_opt()
180 if (!strncmp(tok, "none", strlen(tok))) { in parse_callchain_report_opt()
186 if (!parse_callchain_mode(tok) || in parse_callchain_report_opt()
[all …]
Dsort.c1444 int sort_dimension__add(const char *tok) in sort_dimension__add() argument
1451 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
1485 if (strncasecmp(tok, hd->name, strlen(tok))) in sort_dimension__add()
1494 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
1510 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
1573 char *tmp, *tok, *str; in __setup_sorting() local
1600 for (tok = strtok_r(str, ", ", &tmp); in __setup_sorting()
1601 tok; tok = strtok_r(NULL, ", ", &tmp)) { in __setup_sorting()
1602 ret = sort_dimension__add(tok); in __setup_sorting()
1604 error("Invalid --sort key: `%s'", tok); in __setup_sorting()
[all …]
Dannotate.c58 char *endptr, *tok, *name; in call__parse() local
68 tok = strchr(name, '>'); in call__parse()
69 if (tok == NULL) in call__parse()
72 *tok = '\0'; in call__parse()
74 *tok = '>'; in call__parse()
79 tok = strchr(endptr, '('); in call__parse()
80 if (tok != NULL) { in call__parse()
85 tok = strchr(endptr, '*'); in call__parse()
86 if (tok == NULL) in call__parse()
89 ops->target.addr = strtoull(tok + 1, NULL, 16); in call__parse()
/linux-4.1.27/tools/perf/bench/
Dnuma.c453 char *tok, *tok_end, *tok_step, *tok_len, *tok_mul; in parse_setup_cpu_list() local
458 tok = strsep(&str, ","); in parse_setup_cpu_list()
459 if (!tok) in parse_setup_cpu_list()
462 tok_end = strstr(tok, "-"); in parse_setup_cpu_list()
464 dprintf("\ntoken: {%s}, end: {%s}\n", tok, tok_end); in parse_setup_cpu_list()
467 bind_cpu_0 = bind_cpu_1 = atol(tok); in parse_setup_cpu_list()
470 bind_cpu_0 = atol(tok); in parse_setup_cpu_list()
475 tok_step = strstr(tok, "#"); in parse_setup_cpu_list()
487 tok_len = strstr(tok, "_"); in parse_setup_cpu_list()
495 tok_mul = strstr(tok, "x"); in parse_setup_cpu_list()
[all …]
/linux-4.1.27/net/core/
Dutils.c190 const char *s, *tok = NULL; in in6_pton() local
246 tok = s + 1; in in6_pton()
251 ret = in4_pton(tok ? tok : s, srclen + (int)(s - tok), d, delim, &s); in in6_pton()
/linux-4.1.27/include/linux/usb/
Dehci-dbgp.h38 #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) argument
/linux-4.1.27/tools/perf/
Dbuiltin-script.c943 char *tok; in parse_output_fields() local
957 tok = strchr(str, ':'); in parse_output_fields()
958 if (tok) { in parse_output_fields()
959 *tok = '\0'; in parse_output_fields()
960 tok++; in parse_output_fields()
984 tok = str; in parse_output_fields()
1002 tok = strtok(tok, ","); in parse_output_fields()
1003 while (tok) { in parse_output_fields()
1005 if (strcmp(tok, all_output_options[i].str) == 0) in parse_output_fields()
1036 tok = strtok(NULL, ","); in parse_output_fields()
Dbuiltin-kmem.c953 static int sort_dimension__add(const char *tok, struct list_head *list) in sort_dimension__add() argument
959 if (!strcmp(avail_sorts[i]->name, tok)) { in sort_dimension__add()
975 char *tok; in setup_sorting() local
985 tok = strsep(&pos, ","); in setup_sorting()
986 if (!tok) in setup_sorting()
988 if (sort_dimension__add(tok, sort_list) < 0) { in setup_sorting()
989 error("Unknown --sort key: '%s'", tok); in setup_sorting()
Dbuiltin-sched.c1234 static int sort_dimension__add(const char *tok, struct list_head *list) in sort_dimension__add() argument
1266 if (!strcmp(available_sorts[i]->name, tok)) { in sort_dimension__add()
1632 char *tmp, *tok, *str = strdup(sched->sort_order); in setup_sorting() local
1634 for (tok = strtok_r(str, ", ", &tmp); in setup_sorting()
1635 tok; tok = strtok_r(NULL, ", ", &tmp)) { in setup_sorting()
1636 if (sort_dimension__add(tok, &sched->sort_list) < 0) { in setup_sorting()
1637 error("Unknown --sort key: `%s'", tok); in setup_sorting()
/linux-4.1.27/scripts/kconfig/
Dexpr.h156 #define for_all_properties(sym, st, tok) \ argument
158 if (st->type == (tok))
/linux-4.1.27/drivers/staging/rtl8192e/rtl8192e/
Dr8192E_cmdpkt.h38 u8 tok:1; member
Dr8192E_cmdpkt.c108 if (pstx_fb->tok) { in cmpk_count_txstatistic()
/linux-4.1.27/drivers/staging/rtl8192u/
Dr819xU_cmdpkt.h30 u8 tok:1; /* Transmit ok. */ member
Dr819xU_cmdpkt.c103 if (pstx_fb->tok) { in cmpk_count_txstatistic()
/linux-4.1.27/drivers/usb/early/
Dehci-dbgp.c149 static inline u32 dbgp_pid_write_update(u32 x, u32 tok) in dbgp_pid_write_update() argument
153 return (x & 0xffff0000) | (data0 << 8) | (tok & 0xff); in dbgp_pid_write_update()
156 static inline u32 dbgp_pid_read_update(u32 x, u32 tok) in dbgp_pid_read_update() argument
158 return (x & 0xffff0000) | (USB_PID_DATA0 << 8) | (tok & 0xff); in dbgp_pid_read_update()
/linux-4.1.27/security/smack/
Dsmackfs.c421 char *tok[4]; in smk_parse_long_rule() local
436 tok[i] = data + cnt; in smk_parse_long_rule()
445 tok[i++] = NULL; in smk_parse_long_rule()
447 rc = smk_fill_rule(tok[0], tok[1], tok[2], tok[3], rule, import, 0); in smk_parse_long_rule()
/linux-4.1.27/net/rxrpc/
Dar-key.c1053 u32 cnlen, toksize, ntoks, tok, zero; in rxrpc_read() local
1165 tok = 0; in rxrpc_read()
1167 toksize = toksizes[tok++]; in rxrpc_read()
1239 ASSERTCMP(tok, ==, ntoks); in rxrpc_read()
/linux-4.1.27/kernel/
Dcgroup.c2695 char *tok; in cgroup_subtree_control_write() local
2703 while ((tok = strsep(&buf, " "))) { in cgroup_subtree_control_write()
2704 if (tok[0] == '\0') in cgroup_subtree_control_write()
2707 if (ss->disabled || strcmp(tok + 1, ss->name) || in cgroup_subtree_control_write()
2711 if (*tok == '+') { in cgroup_subtree_control_write()
2714 } else if (*tok == '-') { in cgroup_subtree_control_write()
/linux-4.1.27/drivers/net/wireless/rtl818x/rtl8187/
Ddev.c503 bool tok; in rtl8187b_status_cb() local
509 tok = val & (1 << 15); in rtl8187b_status_cb()
534 if (tok) in rtl8187b_status_cb()
/linux-4.1.27/net/wireless/
Dnl80211.c1034 if (tcp->tok && nla_put(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN, in nl80211_send_wowlan_tcp_caps()
1035 sizeof(*tcp->tok), tcp->tok)) in nl80211_send_wowlan_tcp_caps()
8951 struct nl80211_wowlan_tcp_data_token *tok = NULL; in nl80211_parse_wowlan_tcp() local
8996 tok = nla_data(tb[NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN]); in nl80211_parse_wowlan_tcp()
8997 tokens_size = tokln - sizeof(*tok); in nl80211_parse_wowlan_tcp()
8999 if (!tok->len || tokens_size % tok->len) in nl80211_parse_wowlan_tcp()
9001 if (!rdev->wiphy.wowlan->tcp->tok) in nl80211_parse_wowlan_tcp()
9003 if (tok->len > rdev->wiphy.wowlan->tcp->tok->max_len) in nl80211_parse_wowlan_tcp()
9005 if (tok->len < rdev->wiphy.wowlan->tcp->tok->min_len) in nl80211_parse_wowlan_tcp()
9007 if (tokens_size > rdev->wiphy.wowlan->tcp->tok->bufsize) in nl80211_parse_wowlan_tcp()
[all …]
/linux-4.1.27/include/net/
Dcfg80211.h2904 const struct nl80211_wowlan_tcp_data_token_feature *tok; member
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dmac80211.c126 .tok = &iwl_mvm_wowlan_tcp_token_feature,