Home
last modified time | relevance | path

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

1234

/linux/tools/testing/selftests/bpf/prog_tests/
A Dxdp_flowtable.c67 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 Dxdp_metadata.c356 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 Dxdp_dev_bound_only.c27 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 Dempty_skb.c11 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 Dassign_reuse.c176 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 Di915_mitigations.c33 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 Dspdxcheck.py17 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 Dselftest.c49 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 Dgadget_hid.rst195 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 Dlba_pci.c145 #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 Dinstructions.c7 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 Dsed-opal.c914 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 Ddsp_hwec.c54 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 Ddsp_pipeline.c200 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 Di915_selftest.c305 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 Dinstructions.c11 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 Dfotg210-hcd.h324 #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 Dnfp6000_pcie.c229 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 Dcallchain.c172 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 Dscx_flatcg.c56 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 Dehci.h297 #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 Dctrlmondata.c344 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 Dehci-dbgp.h39 #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) argument
/linux/rust/macros/
A Dpin_data.rs112 .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 Dbuiltin-lock.c366 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 …]

Completed in 67 milliseconds

1234