| /linux/tools/testing/selftests/bpf/prog_tests/ |
| A D | xdp_flowtable.c | 67 struct nstoken *tok = NULL; in test_xdp_flowtable() local 81 tok = open_netns(RX_NETNS_NAME); in test_xdp_flowtable() 82 if (!ASSERT_OK_PTR(tok, "setns")) in test_xdp_flowtable() 115 close_netns(tok); in test_xdp_flowtable() 116 tok = open_netns(TX_NETNS_NAME); in test_xdp_flowtable() 125 close_netns(tok); in test_xdp_flowtable() 126 tok = open_netns(RX_NETNS_NAME); in test_xdp_flowtable() 143 close_netns(tok); in test_xdp_flowtable() 151 close_netns(tok); in test_xdp_flowtable() 164 if (tok) in test_xdp_flowtable() [all …]
|
| A D | xdp_metadata.c | 356 close_netns(*tok); in switch_ns_to_rx() 362 close_netns(*tok); in switch_ns_to_tx() 405 switch_ns_to_rx(&tok); in test_xdp_metadata() 456 switch_ns_to_tx(&tok); in test_xdp_metadata() 470 switch_ns_to_rx(&tok); in test_xdp_metadata() 479 switch_ns_to_tx(&tok); in test_xdp_metadata() 488 switch_ns_to_rx(&tok); in test_xdp_metadata() 513 switch_ns_to_tx(&tok); in test_xdp_metadata() 522 switch_ns_to_rx(&tok); in test_xdp_metadata() 538 if (tok) in test_xdp_metadata() [all …]
|
| A D | xdp_dev_bound_only.c | 27 struct nstoken *tok = NULL; in test_xdp_dev_bound_only_offdev() local 33 tok = open_netns(LOCAL_NETNS); in test_xdp_dev_bound_only_offdev() 34 if (!ASSERT_OK_PTR(tok, "open_netns")) in test_xdp_dev_bound_only_offdev() 56 close_netns(tok); in test_xdp_dev_bound_only_offdev()
|
| A D | empty_skb.c | 11 struct nstoken *tok = NULL; in test_empty_skb() local 96 tok = open_netns("empty_skb"); in test_empty_skb() 97 if (!ASSERT_OK_PTR(tok, "setns")) in test_empty_skb() 148 if (tok) in test_empty_skb() 149 close_netns(tok); in test_empty_skb()
|
| A D | assign_reuse.c | 176 struct nstoken *tok = NULL; in test_assign_reuse() local 181 tok = open_netns(NS_TEST); in test_assign_reuse() 182 if (!ASSERT_OK_PTR(tok, "netns token")) in test_assign_reuse() 195 close_netns(tok); in test_assign_reuse()
|
| /linux/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/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/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/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/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/block/ |
| A D | sed-opal.c | 914 return tok; in response_get_token() 920 tok->pos = pos; in response_parse_tiny() 921 tok->len = 1; in response_parse_tiny() 931 return tok->len; in response_parse_tiny() 937 tok->pos = pos; in response_parse_short() 961 return tok->len; in response_parse_short() 967 tok->pos = pos; in response_parse_medium() 978 return tok->len; in response_parse_medium() 984 tok->pos = pos; in response_parse_long() 1001 tok->pos = pos; in response_parse_token() [all …]
|
| /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 | 200 char *dup, *next, *tok, *name, *args; in dsp_pipeline_build() local 214 while ((tok = strsep(&next, "|"))) { in dsp_pipeline_build() 215 if (!strlen(tok)) in dsp_pipeline_build() 217 name = strsep(&tok, "("); in dsp_pipeline_build() 218 args = strsep(&tok, ")"); in dsp_pipeline_build()
|
| /linux/drivers/gpu/drm/i915/selftests/ |
| A D | i915_selftest.c | 305 char *filter, *sep, *tok; in apply_subtest_filter() local 309 for (sep = filter; (tok = strsep(&sep, ","));) { in apply_subtest_filter() 313 if (*tok == '!') { in apply_subtest_filter() 315 tok++; in apply_subtest_filter() 318 if (*tok == '\0') in apply_subtest_filter() 321 sl = strchr(tok, '/'); in apply_subtest_filter() 324 if (strcmp(tok, caller)) { in apply_subtest_filter() 329 tok = sl; in apply_subtest_filter() 332 if (strcmp(tok, name)) { in apply_subtest_filter()
|
| /linux/tools/perf/arch/loongarch/annotate/ |
| A D | instructions.c | 11 char *c, *endptr, *tok, *name; in loongarch_call__parse() local 30 tok = strchr(name, '>'); in loongarch_call__parse() 31 if (tok == NULL) in loongarch_call__parse() 34 *tok = '\0'; in loongarch_call__parse() 36 *tok = '>'; in loongarch_call__parse()
|
| /linux/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/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/tools/perf/util/ |
| A D | callchain.c | 172 char *tok; in __parse_callchain_report_opt() local 185 if (!strncmp(tok, "none", strlen(tok))) { in __parse_callchain_report_opt() 192 if (!parse_callchain_mode(tok) || in __parse_callchain_report_opt() 193 !parse_callchain_order(tok) || in __parse_callchain_report_opt() 222 if (tok == endptr) in __parse_callchain_report_opt() 228 if (tok == endptr) in __parse_callchain_report_opt() 254 char *tok, *name, *saveptr = NULL; in parse_callchain_record() local 266 name = tok ? : (char *)buf; in parse_callchain_record() 275 if (tok) { in parse_callchain_record() 278 size = strtoul(tok, &name, 0); in parse_callchain_record() [all …]
|
| /linux/tools/sched_ext/ |
| A D | scx_flatcg.c | 56 char *line, *cur = NULL, *tok; in read_cpu_util() local 75 for (idx = 0; (tok = strtok_r(line, " \n", &cur)); idx++) { in read_cpu_util() 83 v = strtoull(tok, &endp, 0); in read_cpu_util() 86 idx, tok); in read_cpu_util()
|
| /linux/drivers/usb/host/ |
| A D | ehci.h | 297 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument 299 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument 300 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument 526 #define EHCI_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
|
| /linux/arch/x86/kernel/cpu/resctrl/ |
| A D | ctrlmondata.c | 344 static int rdtgroup_parse_resource(char *resname, char *tok, in rdtgroup_parse_resource() argument 351 return parse_line(tok, s, rdtgrp); in rdtgroup_parse_resource() 363 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/include/linux/usb/ |
| A D | ehci-dbgp.h | 39 #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) argument
|
| /linux/rust/macros/ |
| A D | pin_data.rs | 112 .map(|mut tok| { in replace_self_and_deny_type_defs() 113 tok.set_span(tt.span()); in replace_self_and_deny_type_defs() 114 tok in replace_self_and_deny_type_defs()
|
| /linux/tools/perf/ |
| A D | builtin-lock.c | 366 char *tok, *tmp, *orig; in setup_output_field() local 2352 char *s, *tmp, *tok; in parse_lock_type() local 2359 for (tok = strtok_r(s, ", ", &tmp); tok; tok = strtok_r(NULL, ", ", &tmp)) { in parse_lock_type() 2418 char *s, *tmp, *tok; in parse_lock_addr() local 2426 for (tok = strtok_r(s, ", ", &tmp); tok; tok = strtok_r(NULL, ", ", &tmp)) { in parse_lock_addr() 2442 if (!add_lock_sym(tok)) { in parse_lock_addr() 2455 char *s, *tmp, *tok; in parse_call_stack() local 2462 for (tok = strtok_r(s, ", ", &tmp); tok; tok = strtok_r(NULL, ", ", &tmp)) { in parse_call_stack() 2472 strcpy(entry->name, tok); in parse_call_stack() 2530 char *s, *tmp, *tok; in parse_cgroup_filter() local [all …]
|