/linux/scripts/ |
A D | spdxcheck.py | 16 self.tok = tok 116 def t_RPAR(self, tok): argument 119 return tok 121 def t_LPAR(self, tok): argument 124 return tok 126 def t_ID(self, tok): argument 130 print(tok) 133 tok.value = tok.value.strip() 143 return tok 198 if pe.tok: [all …]
|
/linux/drivers/gpu/drm/i915/ |
A D | i915_mitigations.c | 32 char *str, *sep, *tok; in mitigations_set() local 47 tok = strim(tok); in mitigations_set() 52 if (!strcmp(tok, "auto")) in mitigations_set() 56 if (!strcmp(tok, "off")) in mitigations_set() 60 if (*tok == '!') { in mitigations_set() 62 tok++; in mitigations_set() 65 if (!strncmp(tok, "no", 2)) { in mitigations_set() 67 tok += 2; in mitigations_set() 70 if (*tok == '\0') in mitigations_set() 74 if (!strcmp(tok, names[i])) { in mitigations_set() [all …]
|
/linux/Documentation/usb/ |
A D | gadget_hid.rst | 195 char *tok = strtok(buf, " "); 199 for (; tok != NULL; tok = strtok(NULL, " ")) { 201 if (strcmp(tok, "--quit") == 0) 220 if (islower(tok[0])) { 248 char *tok = strtok(buf, " "); 251 for (; tok != NULL; tok = strtok(NULL, " ")) { 253 if (strcmp(tok, "--quit") == 0) 269 if (!(tok[0] == '-' && tok[1] == '-') && mvt < 2) { 299 char *tok = strtok(buf, " "); 308 for (; tok != NULL; tok = strtok(NULL, " ")) { [all …]
|
/linux/drivers/dma-buf/ |
A D | selftest.c | 49 char *filter, *sep, *tok; in apply_subtest_filter() local 53 for (sep = filter; (tok = strsep(&sep, ","));) { in apply_subtest_filter() 57 if (*tok == '!') { in apply_subtest_filter() 59 tok++; in apply_subtest_filter() 62 if (*tok == '\0') in apply_subtest_filter() 65 sl = strchr(tok, '/'); in apply_subtest_filter() 68 if (strcmp(tok, caller)) { in apply_subtest_filter() 73 tok = sl; in apply_subtest_filter() 76 if (strcmp(tok, name)) { in apply_subtest_filter()
|
/linux/block/ |
A D | sed-opal.c | 753 return tok; in response_get_token() 759 tok->pos = pos; in response_parse_tiny() 760 tok->len = 1; in response_parse_tiny() 770 return tok->len; in response_parse_tiny() 776 tok->pos = pos; in response_parse_short() 800 return tok->len; in response_parse_short() 806 tok->pos = pos; in response_parse_medium() 817 return tok->len; in response_parse_medium() 823 tok->pos = pos; in response_parse_long() 840 tok->pos = pos; in response_parse_token() [all …]
|
/linux/drivers/parisc/ |
A D | lba_pci.c | 145 #define LBA_CFG_BUS(tok) ((u8) ((tok)>>16)) argument 146 #define LBA_CFG_DEV(tok) ((u8) ((tok)>>11) & 0x1f) argument 147 #define LBA_CFG_FUNC(tok) ((u8) ((tok)>>8 ) & 0x7) argument 205 #define LBA_CFG_SETUP(d, tok) { \ argument 345 LBA_CFG_SETUP(d, tok); in lba_rd_cfg() 346 LBA_CFG_PROBE(d, tok); in lba_rd_cfg() 351 LBA_CFG_ADDR_SETUP(d, tok | reg); in lba_rd_cfg() 393 LBA_CFG_ADDR_SETUP(d, tok | pos); in elroy_cfg_read() 413 LBA_CFG_SETUP(d, tok); in lba_wr_cfg() 414 LBA_CFG_ADDR_SETUP(d, tok | reg); in lba_wr_cfg() [all …]
|
/linux/tools/perf/arch/s390/annotate/ |
A D | instructions.c | 7 char *endptr, *tok, *name; in s390_call__parse() local 13 tok = strchr(ops->raw, ','); in s390_call__parse() 14 if (!tok) in s390_call__parse() 17 ops->target.addr = strtoull(tok + 1, &endptr, 16); in s390_call__parse() 29 tok = strchr(name, '>'); in s390_call__parse() 30 if (tok == NULL) in s390_call__parse() 33 *tok = '\0'; in s390_call__parse() 35 *tok = '>'; in s390_call__parse()
|
/linux/tools/lib/traceevent/ |
A D | event-parse.c | 977 free(*tok); in extend_token() 982 if (!*tok) in extend_token() 1001 *tok = NULL; in __read_token() 1189 if (tok) in free_token() 1190 free(tok); in free_token() 1215 *tok = NULL; in read_token() 1233 *tok = NULL; in read_token_item() 1811 *tok = NULL; in process_cond() 1859 *tok = NULL; in process_array() 2140 *tok = NULL; in process_op() [all …]
|
A D | event-parse-local.h | 120 enum tep_event_type read_token(char **tok); 121 void free_token(char *tok);
|
/linux/drivers/isdn/mISDN/ |
A D | dsp_hwec.c | 54 char *dup, *tok, *name, *val; in dsp_hwec_enable() local 61 while ((tok = strsep(&dup, ","))) { in dsp_hwec_enable() 62 if (!strlen(tok)) in dsp_hwec_enable() 64 name = strsep(&tok, "="); in dsp_hwec_enable() 65 val = tok; in dsp_hwec_enable()
|
A D | dsp_pipeline.c | 195 char *dup, *tok, *name, *args; in dsp_pipeline_build() local 209 while ((tok = strsep(&dup, "|"))) { in dsp_pipeline_build() 210 if (!strlen(tok)) in dsp_pipeline_build() 212 name = strsep(&tok, "("); in dsp_pipeline_build() 213 args = strsep(&tok, ")"); in dsp_pipeline_build()
|
/linux/drivers/gpu/drm/i915/selftests/ |
A D | i915_selftest.c | 245 char *filter, *sep, *tok; in apply_subtest_filter() local 249 for (sep = filter; (tok = strsep(&sep, ","));) { in apply_subtest_filter() 253 if (*tok == '!') { in apply_subtest_filter() 255 tok++; in apply_subtest_filter() 258 if (*tok == '\0') in apply_subtest_filter() 261 sl = strchr(tok, '/'); in apply_subtest_filter() 264 if (strcmp(tok, caller)) { in apply_subtest_filter() 269 tok = sl; in apply_subtest_filter() 272 if (strcmp(tok, name)) { in apply_subtest_filter()
|
/linux/tools/perf/pmu-events/ |
A D | jsmn.c | 35 jsmntok_t *tok; in jsmn_alloc_token() local 39 tok = &tokens[parser->toknext++]; in jsmn_alloc_token() 40 tok->start = tok->end = -1; in jsmn_alloc_token() 41 tok->size = 0; in jsmn_alloc_token() 42 return tok; in jsmn_alloc_token()
|
/linux/drivers/usb/host/ |
A D | fotg210.h | 323 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument 325 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument 326 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument 548 #define FOTG210_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
|
A D | ehci.h | 295 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument 297 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument 298 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument 518 #define EHCI_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
|
/linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
A D | nfp6000_pcie.c | 231 newcfg |= NFP_PCIE_BAR_PCIE2CPP_Token_BaseAddress(tok); in compute_bar() 302 tgt, act, tok, offset, size, width); in reconfigure_bar() 361 (bartok < 0 || bartok == tok) && in matching_bar() 390 int tgt, int act, int tok, in find_unused_bar_noblock() argument 404 tgt, act, tok, offset, size, width); in find_unused_bar_noblock() 415 tgt, act, tok, offset, size, width)) in find_unused_bar_noblock() 423 int tgt, int act, int tok, in find_unused_bar_and_lock() argument 463 u32 tgt, u32 act, u32 tok, in nfp_alloc_bar() argument 481 barnum = find_unused_bar_noblock(nfp, tgt, act, tok, in nfp_alloc_bar() 492 retval = nfp_wait_for_bar(nfp, &barnum, tgt, act, tok, in nfp_alloc_bar() [all …]
|
/linux/arch/x86/kernel/cpu/resctrl/ |
A D | ctrlmondata.c | 338 static int rdtgroup_parse_resource(char *resname, char *tok, in rdtgroup_parse_resource() argument 345 return parse_line(tok, s, rdtgrp); in rdtgroup_parse_resource() 358 char *tok, *resname; in rdtgroup_schemata_write() local 390 while ((tok = strsep(&buf, "\n")) != NULL) { in rdtgroup_schemata_write() 391 resname = strim(strsep(&tok, ":")); in rdtgroup_schemata_write() 392 if (!tok) { in rdtgroup_schemata_write() 397 if (tok[0] == '\0') { in rdtgroup_schemata_write() 402 ret = rdtgroup_parse_resource(resname, tok, rdtgrp); in rdtgroup_schemata_write()
|
/linux/tools/perf/util/ |
A D | callchain.c | 170 char *tok; in __parse_callchain_report_opt() local 183 if (!strncmp(tok, "none", strlen(tok))) { in __parse_callchain_report_opt() 190 if (!parse_callchain_mode(tok) || in __parse_callchain_report_opt() 191 !parse_callchain_order(tok) || in __parse_callchain_report_opt() 193 !parse_callchain_value(tok)) { in __parse_callchain_report_opt() 220 if (tok == endptr) in __parse_callchain_report_opt() 226 if (tok == endptr) in __parse_callchain_report_opt() 252 char *tok, *name, *saveptr = NULL; in parse_callchain_record() local 264 name = tok ? : (char *)buf; in parse_callchain_record() 287 if (tok) { in parse_callchain_record() [all …]
|
A D | sort.c | 2778 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add() 2823 if (strncasecmp(tok, hd->name, strlen(tok))) in sort_dimension__add() 2832 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add() 2848 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add() 2880 tok = str; in setup_sort_list() 2897 if (*tok) { in setup_sort_list() 3158 if (strncasecmp(tok, sd->name, strlen(tok))) in output_field_add() 3167 if (strncasecmp(tok, hd->name, strlen(tok))) in output_field_add() 3176 if (strncasecmp(tok, sd->name, strlen(tok))) in output_field_add() 3188 if (strncasecmp(tok, sd->name, strlen(tok))) in output_field_add() [all …]
|
A D | pmu.c | 753 if (strncmp(pmu_name, tok, strlen(tok))) in perf_pmu__valid_suffix() 756 p = pmu_name + strlen(tok); in perf_pmu__valid_suffix() 776 char *tmp = NULL, *tok, *str; in pmu_uncore_alias_match() local 786 tok = strtok_r(str, ",", &tmp); in pmu_uncore_alias_match() 787 if (strncmp(pmu_name, tok, strlen(tok))) { in pmu_uncore_alias_match() 803 name = strstr(name, tok); in pmu_uncore_alias_match() 805 (!next_tok && !perf_pmu__valid_suffix(name, tok))) { in pmu_uncore_alias_match() 811 tok = next_tok; in pmu_uncore_alias_match() 812 name += strlen(tok); in pmu_uncore_alias_match() 1981 int perf_pmu__match(char *pattern, char *name, char *tok) in perf_pmu__match() argument [all …]
|
/linux/tools/perf/bench/ |
A D | numa.c | 538 tok = strsep(&str, ","); in parse_setup_cpu_list() 539 if (!tok) in parse_setup_cpu_list() 542 tok_end = strstr(tok, "-"); in parse_setup_cpu_list() 550 bind_cpu_0 = atol(tok); in parse_setup_cpu_list() 567 tok_len = strstr(tok, "_"); in parse_setup_cpu_list() 575 tok_mul = strstr(tok, "x"); in parse_setup_cpu_list() 674 tok = strsep(&str, ","); in parse_setup_node_list() 675 if (!tok) in parse_setup_node_list() 678 tok_end = strstr(tok, "-"); in parse_setup_node_list() 686 bind_node_0 = atol(tok); in parse_setup_node_list() [all …]
|
/linux/tools/testing/selftests/net/mptcp/ |
A D | pm_nl_ctl.c | 224 char *tok, *str; in add_addr() local 231 for (str = argv[arg]; (tok = strtok(str, ",")); in add_addr() 233 if (!strcmp(tok, "subflow")) in add_addr() 235 else if (!strcmp(tok, "signal")) in add_addr() 237 else if (!strcmp(tok, "backup")) in add_addr() 239 else if (!strcmp(tok, "fullmesh")) in add_addr() 701 char *tok, *str; in set_flags() local 708 for (str = argv[arg]; (tok = strtok(str, ",")); in set_flags() 710 if (!strcmp(tok, "backup")) in set_flags() 712 else if (strcmp(tok, "nobackup")) in set_flags()
|
/linux/net/core/ |
A D | utils.c | 188 const char *s, *tok = NULL; in in6_pton() local 244 tok = s + 1; in in6_pton() 249 ret = in4_pton(tok ? tok : s, srclen + (int)(s - tok), d, delim, &s); in in6_pton()
|
/linux/include/linux/usb/ |
A D | ehci-dbgp.h | 39 #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) argument
|
/linux/tools/perf/arch/x86/util/ |
A D | iostat.c | 250 char *tok, *tmp, *filter_copy = NULL; in iio_root_ports_list_filter() local 264 for (tok = strtok_r(filter_copy, ",", &tmp); tok; in iio_root_ports_list_filter() 265 tok = strtok_r(NULL, ",", &tmp)) { in iio_root_ports_list_filter() 266 if (!iio_root_port_parse_str(&domain, &bus, tok)) { in iio_root_ports_list_filter()
|