Home
last modified time | relevance | path

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

/linux-4.4.14/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.4.14/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.4.14/tools/lib/traceevent/
Devent-parse.c921 static int extend_token(char **tok, char *buf, int size) in extend_token() argument
923 char *newtok = realloc(*tok, size); in extend_token()
926 free(*tok); in extend_token()
927 *tok = NULL; in extend_token()
931 if (!*tok) in extend_token()
935 *tok = newtok; in extend_token()
940 static enum event_type force_token(const char *str, char **tok);
942 static enum event_type __read_token(char **tok) in __read_token() argument
950 *tok = NULL; in __read_token()
966 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.h784 enum event_type pevent_read_token(char **tok);
/linux-4.4.14/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
253 while ((tok = strsep(&dup, "|"))) { in dsp_pipeline_build()
254 if (!strlen(tok)) in dsp_pipeline_build()
256 name = strsep(&tok, "("); in dsp_pipeline_build()
257 args = strsep(&tok, ")"); in dsp_pipeline_build()
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/
Dlibcfs_string.c266 struct cfs_lstr tok; in cfs_range_expr_parse() local
287 if (!bracketed || !cfs_gettok(src, '-', &tok)) in cfs_range_expr_parse()
290 if (!cfs_str2num_check(tok.ls_str, tok.ls_len, in cfs_range_expr_parse()
303 if (cfs_gettok(src, '/', &tok)) { in cfs_range_expr_parse()
304 if (!cfs_str2num_check(tok.ls_str, tok.ls_len, in cfs_range_expr_parse()
513 struct cfs_lstr tok; in cfs_expr_list_parse() local
515 if (!cfs_gettok(&src, ',', &tok)) { in cfs_expr_list_parse()
520 rc = cfs_range_expr_parse(&tok, min, max, 1, &expr); in cfs_expr_list_parse()
/linux-4.4.14/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.h322 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument
324 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument
325 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument
547 #define FOTG210_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
Dehci.h302 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument
304 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument
305 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument
517 #define EHCI_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
/linux-4.4.14/tools/perf/util/
Dsort.c1586 int sort_dimension__add(const char *tok) in sort_dimension__add() argument
1593 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
1629 if (strncasecmp(tok, hd->name, strlen(tok))) in sort_dimension__add()
1638 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
1654 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
1717 char *tmp, *tok, *str; in __setup_sorting() local
1744 for (tok = strtok_r(str, ", ", &tmp); in __setup_sorting()
1745 tok; tok = strtok_r(NULL, ", ", &tmp)) { in __setup_sorting()
1746 ret = sort_dimension__add(tok); in __setup_sorting()
1748 error("Invalid --sort key: `%s'", tok); in __setup_sorting()
[all …]
Dcallchain.c85 char *tok; in __parse_callchain_report_opt() local
96 while ((tok = strtok((char *)arg, ",")) != NULL) { in __parse_callchain_report_opt()
97 if (!strncmp(tok, "none", strlen(tok))) { in __parse_callchain_report_opt()
103 if (!parse_callchain_mode(tok) || in __parse_callchain_report_opt()
104 !parse_callchain_order(tok) || in __parse_callchain_report_opt()
105 !parse_callchain_sort_key(tok)) { in __parse_callchain_report_opt()
110 if (parse_callchain_record(tok, &callchain_param)) in __parse_callchain_report_opt()
125 if (get_stack_size(tok, &size) < 0) in __parse_callchain_report_opt()
131 callchain_param.min_percent = strtod(tok, &endptr); in __parse_callchain_report_opt()
132 if (tok == endptr) in __parse_callchain_report_opt()
[all …]
Dutil.c479 char *tok, *name, *saveptr = NULL; in parse_callchain_record() local
490 tok = strtok_r((char *)buf, ",", &saveptr); in parse_callchain_record()
491 name = tok ? : (char *)buf; in parse_callchain_record()
513 tok = strtok_r(NULL, ",", &saveptr); in parse_callchain_record()
514 if (tok) { in parse_callchain_record()
517 ret = get_stack_size(tok, &size); in parse_callchain_record()
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.4.14/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.4.14/include/linux/usb/
Dehci-dbgp.h38 #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) argument
/linux-4.4.14/tools/perf/bench/
Dnuma.c458 char *tok, *tok_end, *tok_step, *tok_len, *tok_mul; in parse_setup_cpu_list() local
463 tok = strsep(&str, ","); in parse_setup_cpu_list()
464 if (!tok) in parse_setup_cpu_list()
467 tok_end = strstr(tok, "-"); in parse_setup_cpu_list()
469 dprintf("\ntoken: {%s}, end: {%s}\n", tok, tok_end); in parse_setup_cpu_list()
472 bind_cpu_0 = bind_cpu_1 = atol(tok); in parse_setup_cpu_list()
475 bind_cpu_0 = atol(tok); in parse_setup_cpu_list()
480 tok_step = strstr(tok, "#"); in parse_setup_cpu_list()
492 tok_len = strstr(tok, "_"); in parse_setup_cpu_list()
500 tok_mul = strstr(tok, "x"); in parse_setup_cpu_list()
[all …]
/linux-4.4.14/tools/perf/
Dbuiltin-kmem.c1622 static int slab_sort_dimension__add(const char *tok, struct list_head *list) in slab_sort_dimension__add() argument
1628 if (!strcmp(slab_sorts[i]->name, tok)) { in slab_sort_dimension__add()
1642 static int page_sort_dimension__add(const char *tok, struct list_head *list) in page_sort_dimension__add() argument
1648 if (!strcmp(page_sorts[i]->name, tok)) { in page_sort_dimension__add()
1664 char *tok; in setup_slab_sorting() local
1674 tok = strsep(&pos, ","); in setup_slab_sorting()
1675 if (!tok) in setup_slab_sorting()
1677 if (slab_sort_dimension__add(tok, sort_list) < 0) { in setup_slab_sorting()
1678 error("Unknown slab --sort key: '%s'", tok); in setup_slab_sorting()
1690 char *tok; in setup_page_sorting() local
[all …]
Dbuiltin-script.c1133 char *tok; in parse_output_fields() local
1147 tok = strchr(str, ':'); in parse_output_fields()
1148 if (tok) { in parse_output_fields()
1149 *tok = '\0'; in parse_output_fields()
1150 tok++; in parse_output_fields()
1174 tok = str; in parse_output_fields()
1192 for (tok = strtok(tok, ","); tok; tok = strtok(NULL, ",")) { in parse_output_fields()
1194 if (strcmp(tok, all_output_options[i].str) == 0) in parse_output_fields()
1197 if (i == imax && strcmp(tok, "flags") == 0) { in parse_output_fields()
Dbuiltin-sched.c1266 static int sort_dimension__add(const char *tok, struct list_head *list) in sort_dimension__add() argument
1298 if (!strcmp(available_sorts[i]->name, tok)) { in sort_dimension__add()
1727 char *tmp, *tok, *str = strdup(sched->sort_order); in setup_sorting() local
1729 for (tok = strtok_r(str, ", ", &tmp); in setup_sorting()
1730 tok; tok = strtok_r(NULL, ", ", &tmp)) { in setup_sorting()
1731 if (sort_dimension__add(tok, &sched->sort_list) < 0) { in setup_sorting()
1733 "Unknown --sort key: `%s'", tok); in setup_sorting()
/linux-4.4.14/block/
Dblk-throttle.c1323 char tok[27]; /* wiops=18446744073709551616 */ in tg_set_max() local
1328 if (sscanf(ctx.body, "%26s%n", tok, &len) != 1) in tg_set_max()
1330 if (tok[0] == '\0') in tg_set_max()
1335 p = tok; in tg_set_max()
1345 if (!strcmp(tok, "rbps")) in tg_set_max()
1347 else if (!strcmp(tok, "wbps")) in tg_set_max()
1349 else if (!strcmp(tok, "riops")) in tg_set_max()
1351 else if (!strcmp(tok, "wiops")) in tg_set_max()
/linux-4.4.14/scripts/kconfig/
Dexpr.h158 #define for_all_properties(sym, st, tok) \ argument
160 if (st->type == (tok))
/linux-4.4.14/security/smack/
Dsmackfs.c416 char *tok[4]; in smk_parse_long_rule() local
431 tok[i] = data + cnt; in smk_parse_long_rule()
440 tok[i++] = NULL; in smk_parse_long_rule()
442 rc = smk_fill_rule(tok[0], tok[1], tok[2], tok[3], rule, import, 0); in smk_parse_long_rule()
1987 char *tok; in smk_parse_label_list() local
1991 while ((tok = strsep(&data, " ")) != NULL) { in smk_parse_label_list()
1992 if (!*tok) in smk_parse_label_list()
1995 skp = smk_import_entry(tok, 0); in smk_parse_label_list()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/net/wireless/realtek/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.4.14/kernel/
Dcgroup.c2975 char *tok; in cgroup_subtree_control_write() local
2983 while ((tok = strsep(&buf, " "))) { in cgroup_subtree_control_write()
2986 if (tok[0] == '\0') in cgroup_subtree_control_write()
2990 strcmp(tok + 1, ss->name)) in cgroup_subtree_control_write()
2993 if (*tok == '+') { in cgroup_subtree_control_write()
2996 } else if (*tok == '-') { in cgroup_subtree_control_write()
/linux-4.4.14/net/wireless/
Dnl80211.c1041 if (tcp->tok && nla_put(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN, in nl80211_send_wowlan_tcp_caps()
1042 sizeof(*tcp->tok), tcp->tok)) in nl80211_send_wowlan_tcp_caps()
9140 struct nl80211_wowlan_tcp_data_token *tok = NULL; in nl80211_parse_wowlan_tcp() local
9185 tok = nla_data(tb[NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN]); in nl80211_parse_wowlan_tcp()
9186 tokens_size = tokln - sizeof(*tok); in nl80211_parse_wowlan_tcp()
9188 if (!tok->len || tokens_size % tok->len) in nl80211_parse_wowlan_tcp()
9190 if (!rdev->wiphy.wowlan->tcp->tok) in nl80211_parse_wowlan_tcp()
9192 if (tok->len > rdev->wiphy.wowlan->tcp->tok->max_len) in nl80211_parse_wowlan_tcp()
9194 if (tok->len < rdev->wiphy.wowlan->tcp->tok->min_len) in nl80211_parse_wowlan_tcp()
9196 if (tokens_size > rdev->wiphy.wowlan->tcp->tok->bufsize) in nl80211_parse_wowlan_tcp()
[all …]
/linux-4.4.14/include/net/
Dcfg80211.h2948 const struct nl80211_wowlan_tcp_data_token_feature *tok; member
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dmac80211.c125 .tok = &iwl_mvm_wowlan_tcp_token_feature,