/linux-6.3-rc2/drivers/gpu/drm/i915/ |
A D | i915_mitigations.c | 33 char *str, *sep, *tok; in mitigations_set() local 48 tok = strim(tok); in mitigations_set() 53 if (!strcmp(tok, "auto")) in mitigations_set() 57 if (!strcmp(tok, "off")) in mitigations_set() 61 if (*tok == '!') { in mitigations_set() 63 tok++; in mitigations_set() 66 if (!strncmp(tok, "no", 2)) { in mitigations_set() 68 tok += 2; in mitigations_set() 71 if (*tok == '\0') in mitigations_set() 75 if (!strcmp(tok, names[i])) { in mitigations_set() [all …]
|
/linux-6.3-rc2/scripts/ |
A D | spdxcheck.py | 17 self.tok = tok 146 def t_RPAR(self, tok): argument 149 return tok 151 def t_LPAR(self, tok): argument 154 return tok 156 def t_ID(self, tok): argument 160 print(tok) 163 tok.value = tok.value.strip() 173 return tok 230 if pe.tok: [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/block/ |
A D | sed-opal.c | 795 return tok; in response_get_token() 801 tok->pos = pos; in response_parse_tiny() 802 tok->len = 1; in response_parse_tiny() 812 return tok->len; in response_parse_tiny() 818 tok->pos = pos; in response_parse_short() 842 return tok->len; in response_parse_short() 848 tok->pos = pos; in response_parse_medium() 859 return tok->len; in response_parse_medium() 865 tok->pos = pos; in response_parse_long() 882 tok->pos = pos; in response_parse_token() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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 | 196 char *dup, *next, *tok, *name, *args; in dsp_pipeline_build() local 210 while ((tok = strsep(&next, "|"))) { in dsp_pipeline_build() 211 if (!strlen(tok)) in dsp_pipeline_build() 213 name = strsep(&tok, "("); in dsp_pipeline_build() 214 args = strsep(&tok, ")"); in dsp_pipeline_build()
|
/linux-6.3-rc2/drivers/gpu/drm/i915/selftests/ |
A D | i915_selftest.c | 246 char *filter, *sep, *tok; in apply_subtest_filter() local 250 for (sep = filter; (tok = strsep(&sep, ","));) { in apply_subtest_filter() 254 if (*tok == '!') { in apply_subtest_filter() 256 tok++; in apply_subtest_filter() 259 if (*tok == '\0') in apply_subtest_filter() 262 sl = strchr(tok, '/'); in apply_subtest_filter() 265 if (strcmp(tok, caller)) { in apply_subtest_filter() 270 tok = sl; in apply_subtest_filter() 273 if (strcmp(tok, name)) { in apply_subtest_filter()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | empty_skb.c | 16 struct nstoken *tok = NULL; in test_empty_skb() local 97 tok = open_netns("empty_skb"); in test_empty_skb() 143 if (tok) in test_empty_skb() 144 close_netns(tok); in test_empty_skb()
|
/linux-6.3-rc2/drivers/usb/fotg210/ |
A D | fotg210-hcd.h | 324 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument 326 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument 327 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument 549 #define FOTG210_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
|
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/nfpcore/ |
A D | nfp6000_pcie.c | 229 newcfg |= NFP_PCIE_BAR_PCIE2CPP_Token_BaseAddress(tok); in compute_bar() 297 tgt, act, tok, offset, size, width); in reconfigure_bar() 356 (bartok < 0 || bartok == tok) && in matching_bar() 385 int tgt, int act, int tok, in find_unused_bar_noblock() argument 399 tgt, act, tok, offset, size, width); in find_unused_bar_noblock() 410 tgt, act, tok, offset, size, width)) in find_unused_bar_noblock() 418 int tgt, int act, int tok, in find_unused_bar_and_lock() argument 458 u32 tgt, u32 act, u32 tok, in nfp_alloc_bar() argument 476 barnum = find_unused_bar_noblock(nfp, tgt, act, tok, in nfp_alloc_bar() 487 retval = nfp_wait_for_bar(nfp, &barnum, tgt, act, tok, in nfp_alloc_bar() [all …]
|
/linux-6.3-rc2/tools/perf/util/ |
A D | callchain.c | 171 char *tok; in __parse_callchain_report_opt() local 184 if (!strncmp(tok, "none", strlen(tok))) { in __parse_callchain_report_opt() 191 if (!parse_callchain_mode(tok) || in __parse_callchain_report_opt() 192 !parse_callchain_order(tok) || in __parse_callchain_report_opt() 221 if (tok == endptr) in __parse_callchain_report_opt() 227 if (tok == endptr) in __parse_callchain_report_opt() 253 char *tok, *name, *saveptr = NULL; in parse_callchain_record() local 265 name = tok ? : (char *)buf; in parse_callchain_record() 274 if (tok) { in parse_callchain_record() 277 size = strtoul(tok, &name, 0); in parse_callchain_record() [all …]
|
A D | sort.c | 3127 if (!sd->name || strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add() 3172 if (strncasecmp(tok, hd->name, strlen(tok))) in sort_dimension__add() 3181 if (!sd->name || strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add() 3197 if (!sd->name || strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add() 3229 tok = str; in setup_sort_list() 3246 if (*tok) { in setup_sort_list() 3511 if (!sd->name || strncasecmp(tok, sd->name, strlen(tok))) in output_field_add() 3520 if (strncasecmp(tok, hd->name, strlen(tok))) in output_field_add() 3529 if (!sd->name || strncasecmp(tok, sd->name, strlen(tok))) in output_field_add() 3541 if (!sd->name || strncasecmp(tok, sd->name, strlen(tok))) in output_field_add() [all …]
|
A D | pmu.c | 671 if (strncmp(pmu_name, tok, strlen(tok))) in perf_pmu__valid_suffix() 674 p = pmu_name + strlen(tok); in perf_pmu__valid_suffix() 694 char *tmp = NULL, *tok, *str; in pmu_uncore_alias_match() local 704 tok = strtok_r(str, ",", &tmp); in pmu_uncore_alias_match() 705 if (strncmp(pmu_name, tok, strlen(tok))) { in pmu_uncore_alias_match() 721 name = strstr(name, tok); in pmu_uncore_alias_match() 723 (!next_tok && !perf_pmu__valid_suffix(name, tok))) { in pmu_uncore_alias_match() 729 tok = next_tok; in pmu_uncore_alias_match() 730 name += strlen(tok); in pmu_uncore_alias_match() 1858 int perf_pmu__match(char *pattern, char *name, char *tok) in perf_pmu__match() argument [all …]
|
/linux-6.3-rc2/arch/x86/kernel/cpu/resctrl/ |
A D | ctrlmondata.c | 353 static int rdtgroup_parse_resource(char *resname, char *tok, in rdtgroup_parse_resource() argument 360 return parse_line(tok, s, rdtgrp); in rdtgroup_parse_resource() 373 char *tok, *resname; in rdtgroup_schemata_write() local 405 while ((tok = strsep(&buf, "\n")) != NULL) { in rdtgroup_schemata_write() 406 resname = strim(strsep(&tok, ":")); in rdtgroup_schemata_write() 407 if (!tok) { in rdtgroup_schemata_write() 412 if (tok[0] == '\0') { in rdtgroup_schemata_write() 417 ret = rdtgroup_parse_resource(resname, tok, rdtgrp); in rdtgroup_schemata_write()
|
/linux-6.3-rc2/drivers/usb/host/ |
A D | ehci.h | 296 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument 298 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument 299 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument 519 #define EHCI_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
|
/linux-6.3-rc2/tools/perf/ |
A D | builtin-lock.c | 355 char *tok, *tmp, *orig; in setup_output_field() local 2083 char *s, *tmp, *tok; in parse_lock_type() local 2090 for (tok = strtok_r(s, ", ", &tmp); tok; tok = strtok_r(NULL, ", ", &tmp)) { in parse_lock_type() 2096 if (strchr(tok, ':')) in parse_lock_type() 2125 if (!strcmp(tok, "mutex")) { in parse_lock_type() 2180 char *s, *tmp, *tok; in parse_lock_addr() local 2188 for (tok = strtok_r(s, ", ", &tmp); tok; tok = strtok_r(NULL, ", ", &tmp)) { in parse_lock_addr() 2204 if (!add_lock_sym(tok)) { in parse_lock_addr() 2217 char *s, *tmp, *tok; in parse_call_stack() local 2224 for (tok = strtok_r(s, ", ", &tmp); tok; tok = strtok_r(NULL, ", ", &tmp)) { in parse_call_stack() [all …]
|
A D | builtin-kmem.c | 1680 if (!strcmp(slab_sorts[i]->name, tok)) { in slab_sort_dimension__add() 1700 if (!strcmp(page_sorts[i]->name, tok)) { in page_sort_dimension__add() 1716 char *tok; in setup_slab_sorting() local 1726 tok = strsep(&pos, ","); in setup_slab_sorting() 1727 if (!tok) in setup_slab_sorting() 1729 if (slab_sort_dimension__add(tok, sort_list) < 0) { in setup_slab_sorting() 1730 pr_err("Unknown slab --sort key: '%s'", tok); in setup_slab_sorting() 1742 char *tok; in setup_page_sorting() local 1752 tok = strsep(&pos, ","); in setup_page_sorting() 1753 if (!tok) in setup_page_sorting() [all …]
|
A D | builtin-kwork.c | 135 const char *tok, struct list_head *list) in sort_dimension__add() argument 170 if (!strcmp(available_sorts[i]->name, tok)) { in sort_dimension__add() 183 char *tmp, *tok, *str = strdup(kwork->sort_order); in setup_sorting() local 185 for (tok = strtok_r(str, ", ", &tmp); in setup_sorting() 186 tok; tok = strtok_r(NULL, ", ", &tmp)) { in setup_sorting() 189 "Unknown --sort key: `%s'", tok); in setup_sorting() 1589 char *tmp, *tok, *str; in setup_event_list() local 1595 for (tok = strtok_r(str, ", ", &tmp); in setup_event_list() 1596 tok; tok = strtok_r(NULL, ", ", &tmp)) { in setup_event_list() 1599 if (strcmp(tok, class->name) == 0) { in setup_event_list() [all …]
|
/linux-6.3-rc2/include/linux/usb/ |
A D | ehci-dbgp.h | 39 #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) argument
|
/linux-6.3-rc2/tools/perf/bench/ |
A D | numa.c | 562 tok = strsep(&str, ","); in parse_setup_cpu_list() 563 if (!tok) in parse_setup_cpu_list() 566 tok_end = strstr(tok, "-"); in parse_setup_cpu_list() 574 bind_cpu_0 = atol(tok); in parse_setup_cpu_list() 591 tok_len = strstr(tok, "_"); in parse_setup_cpu_list() 599 tok_mul = strstr(tok, "x"); in parse_setup_cpu_list() 709 tok = strsep(&str, ","); in parse_setup_node_list() 710 if (!tok) in parse_setup_node_list() 713 tok_end = strstr(tok, "-"); in parse_setup_node_list() 721 bind_node_0 = atol(tok); in parse_setup_node_list() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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()
|