Home
last modified time | relevance | path

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

123

/linux/tools/testing/selftests/bpf/prog_tests/
H 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()
117 if (!ASSERT_OK_PTR(tok, "setns")) in test_xdp_flowtable()
125 close_netns(tok); in test_xdp_flowtable()
126 tok = open_netns(RX_NETNS_NAME); in test_xdp_flowtable()
127 if (!ASSERT_OK_PTR(tok, "setns")) in test_xdp_flowtable()
143 close_netns(tok); in test_xdp_flowtable()
[all …]
H A Dxdp_metadata.c337 static void switch_ns_to_rx(struct nstoken **tok) in switch_ns_to_rx() argument
339 close_netns(*tok); in switch_ns_to_rx()
340 *tok = open_netns(RX_NETNS_NAME); in switch_ns_to_rx()
343 static void switch_ns_to_tx(struct nstoken **tok) in switch_ns_to_tx() argument
345 close_netns(*tok); in switch_ns_to_tx()
346 *tok = open_netns(TX_NETNS_NAME); in switch_ns_to_tx()
356 struct nstoken *tok = NULL; in test_xdp_metadata()
371 tok = open_netns(TX_NETNS_NAME); in test_xdp_metadata()
372 if (!ASSERT_OK_PTR(tok, "setns")) in test_xdp_metadata()
389 switch_ns_to_rx(&tok); in test_xdp_metadata()
354 struct nstoken *tok = NULL; test_xdp_metadata() local
[all...]
H 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()
H 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()
H 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/
H A Di915_mitigations.c33 char *str, *sep, *tok; in mitigations_set() local
43 for (sep = str; (tok = strsep(&sep, ","));) { in mitigations_set()
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()
[all …]
/linux/drivers/dma-buf/
H 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/
H A Dgadget_hid.rst195 char *tok = strtok(buf, " ");
199 for (; tok != NULL; tok = strtok(NULL, " ")) {
201 if (strcmp(tok, "--quit") == 0)
204 if (strcmp(tok, "--hold") == 0) {
211 if (strcmp(tok, kval[i].opt) == 0) {
220 if (islower(tok[0])) {
221 report[2 + key++] = (tok[0] - ('a' - 0x04));
226 if (strcmp(tok, kmod[i].opt) == 0) {
234 fprintf(stderr, "unknown option: %s\n", tok);
248 char *tok = strtok(buf, " ");
[all …]
/linux/drivers/parisc/
H 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
232 #define LBA_CFG_PROBE(d, tok) { \ argument
237 WRITE_REG32(tok | PCI_VENDOR_ID, (d)->hba.base_addr + LBA_PCI_CFG_ADDR);\
283 #define LBA_CFG_MASTER_ABORT_CHECK(d, base, tok, error) { \ argument
337 lba_rd_cfg(struct lba_device *d, u32 tok, u8 reg, u32 size) in lba_rd_cfg() argument
345 LBA_CFG_SETUP(d, tok); in lba_rd_cfg()
346 LBA_CFG_PROBE(d, tok); in lba_rd_cfg()
[all …]
/linux/drivers/isdn/mISDN/
H A Ddsp_hwec.c54 char *dup, *next, *tok, *name, *val; in dsp_hwec_enable() local
61 while ((tok = strsep(&next, ","))) { 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()
H 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/usb/fotg210/
H 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/
H A Dnfp6000_pcie.c196 int tgt, int act, int tok, u64 offset, size_t size, int width) in compute_bar() argument
229 newcfg |= NFP_PCIE_BAR_PCIE2CPP_Token_BaseAddress(tok); in compute_bar()
243 newcfg |= NFP_PCIE_BAR_PCIE2CPP_Token_BaseAddress(tok); in compute_bar()
290 int tgt, int act, int tok, u64 offset, size_t size, int width) in reconfigure_bar() argument
297 tgt, act, tok, offset, size, width); in reconfigure_bar()
307 static int matching_bar(struct nfp_bar *bar, u32 tgt, u32 act, u32 tok, in matching_bar() argument
356 (bartok < 0 || bartok == tok) && in matching_bar()
368 u32 tgt, u32 act, u32 tok, u64 offset, size_t size, int width) in find_matching_bar() argument
375 if (matching_bar(bar, tgt, act, tok, offset, size, width)) in find_matching_bar()
385 int tgt, int act, int tok, in find_unused_bar_noblock() argument
[all …]
/linux/tools/perf/
H A Dbuiltin-lock.c348 char *tok, *tmp, *orig; in setup_output_field() local
369 while ((tok = strsep(&tmp, ",")) != NULL){ in setup_output_field()
370 ret = add_output_field(contention, tok); in setup_output_field()
2289 char *s, *tmp, *tok; in parse_lock_type() local
2295 for (tok = strtok_r(s, ", ", &tmp); tok; tok = strtok_r(NULL, ", ", &tmp)) { in parse_lock_type()
2299 if (strchr(tok, ':')) { in parse_lock_type()
2301 if (!strcmp(lock_type_table[i].flags_name, tok) && in parse_lock_type()
2309 pr_err("Unknown lock flags name: %s\n", tok); in parse_lock_type()
2322 if (!strcmp(tok, "pcpu-sem")) in parse_lock_type()
2323 tok = (char *)"percpu-rwsem"; in parse_lock_type()
[all …]
H A Dbuiltin-kmem.c1677 static int slab_sort_dimension__add(const char *tok, struct list_head *list) in slab_sort_dimension__add() argument
1683 if (!strcmp(slab_sorts[i]->name, tok)) { in slab_sort_dimension__add()
1697 static int page_sort_dimension__add(const char *tok, struct list_head *list) in page_sort_dimension__add() argument
1703 if (!strcmp(page_sorts[i]->name, tok)) { in page_sort_dimension__add()
1719 char *tok; in setup_slab_sorting() local
1729 tok = strsep(&pos, ","); in setup_slab_sorting()
1730 if (!tok) in setup_slab_sorting()
1732 if (slab_sort_dimension__add(tok, sort_list) < 0) { in setup_slab_sorting()
1733 pr_err("Unknown slab --sort key: '%s'", tok); in setup_slab_sorting()
1745 char *tok; in setup_page_sorting() local
[all …]
/linux/tools/perf/util/
H A Dcallchain.c172 char *tok; in __parse_callchain_report_opt() local
184 while ((tok = strtok_r((char *)arg, ",", &saveptr)) != NULL) { in __parse_callchain_report_opt()
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()
194 !parse_callchain_sort_key(tok) || in __parse_callchain_report_opt()
195 !parse_callchain_value(tok)) { in __parse_callchain_report_opt()
200 if (parse_callchain_record(tok, &callchain_param)) in __parse_callchain_report_opt()
215 if (get_stack_size(tok, &size) < 0) in __parse_callchain_report_opt()
221 callchain_param.min_percent = strtod(tok, &endptr); in __parse_callchain_report_opt()
[all …]
H A Dsort.c3449 static int add_dynamic_entry(struct evlist *evlist, const char *tok, in add_dynamic_entry() argument
3460 str = strdup(tok); in add_dynamic_entry()
3621 int sort_dimension__add(struct perf_hpp_list *list, const char *tok, in sort_dimension__add() argument
3634 if (!strcmp(arch_specific_sort_keys[j], tok) && in sort_dimension__add()
3635 !arch_support_sort_key(tok, env)) { in sort_dimension__add()
3643 if (!sd->name || strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
3690 if (!sd->name || strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
3694 strncasecmp(tok, "callchain_branch_predicted", in sort_dimension__add()
3695 strlen(tok)) && in sort_dimension__add()
3696 strncasecmp(tok, "callchain_branch_abort", in sort_dimension__add()
[all …]
H A Dsort.h148 int sort_dimension__add(struct perf_hpp_list *list, const char *tok,
151 int output_field_add(struct perf_hpp_list *list, const char *tok, int *level);
/linux/tools/sched_ext/
H A Dscx_flatcg.c57 char *line, *cur = NULL, *tok; in read_cpu_util() local
76 for (idx = 0; (tok = strtok_r(line, " \n", &cur)); idx++) { in read_cpu_util()
84 v = strtoull(tok, &endp, 0); in read_cpu_util()
87 idx, tok); in read_cpu_util()
/linux/rust/macros/
H A Dpin_data.rs
/linux/include/linux/usb/
H A Dehci-dbgp.h39 #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) argument
/linux/net/core/
H A Dutils.c188 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/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c822 char *tok, *str; in add_addr()
829 for (str = argv[arg]; (tok = strtok(str, ",")); in add_addr()
831 if (!strcmp(tok, "subflow")) in add_addr()
833 else if (!strcmp(tok, "signal")) in add_addr()
835 else if (!strcmp(tok, "laminar")) in add_addr()
837 else if (!strcmp(tok, "backup")) in add_addr()
839 else if (!strcmp(tok, "fullmesh")) in add_addr()
841 else if (!strcmp(tok, "unknown")) in add_addr()
1428 char *tok, *str; in set_flags()
1434 for (str = argv[arg]; (tok in set_flags()
820 char *tok, *str; add_addr() local
1417 char *tok, *str; set_flags() local
[all...]
/linux/drivers/firmware/
H A Dqemu_fw_cfg.c498 char *name_copy, *p, *tok; in fw_cfg_build_symlink() local
509 while ((tok = strsep(&p, "/")) && *tok) { in fw_cfg_build_symlink()
513 ret = sysfs_create_link(&dir->kobj, target, tok); in fw_cfg_build_symlink()
518 ko = kset_find_obj(dir, tok); in fw_cfg_build_symlink()
540 ret = kobject_set_name(&subdir->kobj, "%s", tok); in fw_cfg_build_symlink()
/linux/tools/testing/selftests/net/
H A Dso_txtime.c393 char *arg, *tok; in parse_io() local
400 while ((tok = strtok(arg, ","))) { in parse_io()
407 array->delay_us = strtol(tok, NULL, 0) * 1000; in parse_io()
410 array->data = tok[0]; in parse_io()

123