/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
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() 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 …]
|
D | xdp_metadata.c | 354 static void switch_ns_to_rx(struct nstoken **tok) in switch_ns_to_rx() argument 356 close_netns(*tok); in switch_ns_to_rx() 357 *tok = open_netns(RX_NETNS_NAME); in switch_ns_to_rx() 360 static void switch_ns_to_tx(struct nstoken **tok) in switch_ns_to_tx() argument 362 close_netns(*tok); in switch_ns_to_tx() 363 *tok = open_netns(TX_NETNS_NAME); in switch_ns_to_tx() 371 struct nstoken *tok = NULL; in test_xdp_metadata() local 387 tok = open_netns(TX_NETNS_NAME); in test_xdp_metadata() 388 if (!ASSERT_OK_PTR(tok, "setns")) in test_xdp_metadata() 405 switch_ns_to_rx(&tok); in test_xdp_metadata() [all …]
|
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()
|
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()
|
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-6.12.1/drivers/gpu/drm/i915/ |
D | i915_mitigations.c | 33 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-6.12.1/scripts/ |
D | spdxcheck.py | 16 def __init__(self, tok, txt): argument 17 self.tok = tok 130 def validate(self, tok): argument 131 id = tok.value.upper() 132 if tok.type == 'ID': 134 raise ParserException(tok, 'Invalid License ID') 136 elif tok.type == 'EXC': 138 raise ParserException(tok, 'Invalid Exception ID') 140 raise ParserException(tok, 'Exception not valid for license %s' %self.lastid) 142 elif tok.type != 'WITH': [all …]
|
/linux-6.12.1/drivers/dma-buf/ |
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.12.1/Documentation/usb/ |
D | gadget_hid.rst | 195 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-6.12.1/drivers/parisc/ |
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 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-6.12.1/tools/perf/arch/s390/annotate/ |
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.12.1/block/ |
D | sed-opal.c | 712 static void add_token_u8(int *err, struct opal_dev *cmd, u8 tok) in add_token_u8() argument 717 cmd->cmd[cmd->pos++] = tok; in add_token_u8() 895 const struct opal_resp_tok *tok; in response_get_token() local 908 tok = &resp->toks[n]; in response_get_token() 909 if (tok->len == 0) { in response_get_token() 914 return tok; in response_get_token() 917 static ssize_t response_parse_tiny(struct opal_resp_tok *tok, in response_parse_tiny() argument 920 tok->pos = pos; in response_parse_tiny() 921 tok->len = 1; in response_parse_tiny() 922 tok->width = OPAL_WIDTH_TINY; in response_parse_tiny() [all …]
|
/linux-6.12.1/drivers/isdn/mISDN/ |
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()
|
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-6.12.1/drivers/gpu/drm/i915/selftests/ |
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-6.12.1/tools/perf/arch/loongarch/annotate/ |
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-6.12.1/drivers/usb/fotg210/ |
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.12.1/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp6000_pcie.c | 196 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-6.12.1/tools/perf/util/ |
D | callchain.c | 172 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 …]
|
/linux-6.12.1/tools/sched_ext/ |
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-6.12.1/arch/x86/kernel/cpu/resctrl/ |
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-6.12.1/drivers/usb/host/ |
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-6.12.1/include/linux/usb/ |
D | ehci-dbgp.h | 39 #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) argument
|
/linux-6.12.1/rust/macros/ |
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-6.12.1/tools/perf/ |
D | builtin-lock.c | 366 char *tok, *tmp, *orig; in setup_output_field() local 387 while ((tok = strsep(&tmp, ",")) != NULL){ in setup_output_field() 388 ret = add_output_field(contention, tok); in setup_output_field() 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() 2360 unsigned int flags = get_type_flag(tok); in parse_lock_type() 2363 pr_err("Unknown lock flags: %s\n", tok); 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() 2429 addr = strtoul(tok, &end, 16); in parse_lock_addr() [all …]
|