/kernel/linux/linux-5.10/scripts/ |
D | spdxcheck.py | 15 def __init__(self, tok, txt): argument 16 self.tok = tok 100 def validate(self, tok): argument 101 id = tok.value.upper() 102 if tok.type == 'ID': 104 raise ParserException(tok, 'Invalid License ID') 106 elif tok.type == 'EXC': 108 raise ParserException(tok, 'Invalid Exception ID') 110 raise ParserException(tok, 'Exception not valid for license %s' %self.lastid) 112 elif tok.type != 'WITH': [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | i915_mitigations.c | 32 char *str, *sep, *tok; in mitigations_set() local 42 for (sep = str; (tok = strsep(&sep, ","));) { in mitigations_set() 47 tok = strim(tok); in mitigations_set() 52 if (!strcmp(tok, "auto")) in mitigations_set() 56 if (!strcmp(tok, "off")) in mitigations_set() 60 if (*tok == '!') { in mitigations_set() 62 tok++; in mitigations_set() 65 if (!strncmp(tok, "no", 2)) { in mitigations_set() 67 tok += 2; in mitigations_set() 70 if (*tok == '\0') in mitigations_set() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/block/ |
D | sed-opal.c | 551 static void add_token_u8(int *err, struct opal_dev *cmd, u8 tok) in add_token_u8() argument 556 cmd->cmd[cmd->pos++] = tok; in add_token_u8() 734 const struct opal_resp_tok *tok; in response_get_token() local 747 tok = &resp->toks[n]; in response_get_token() 748 if (tok->len == 0) { in response_get_token() 753 return tok; in response_get_token() 756 static ssize_t response_parse_tiny(struct opal_resp_tok *tok, in response_parse_tiny() argument 759 tok->pos = pos; in response_parse_tiny() 760 tok->len = 1; in response_parse_tiny() 761 tok->width = OPAL_WIDTH_TINY; in response_parse_tiny() [all …]
|
/kernel/linux/linux-5.10/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 | 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()
|
/kernel/linux/linux-5.10/tools/lib/traceevent/ |
D | event-parse.c | 972 static int extend_token(char **tok, char *buf, int size) in extend_token() argument 974 char *newtok = realloc(*tok, size); in extend_token() 977 free(*tok); in extend_token() 978 *tok = NULL; in extend_token() 982 if (!*tok) in extend_token() 986 *tok = newtok; in extend_token() 991 static enum tep_event_type force_token(const char *str, char **tok); 993 static enum tep_event_type __read_token(char **tok) in __read_token() argument 1001 *tok = NULL; in __read_token() 1017 if (asprintf(tok, "%c", ch) < 0) in __read_token() [all …]
|
D | event-parse-local.h | 120 enum tep_event_type read_token(char **tok); 121 void free_token(char *tok);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/ |
D | i915_selftest.c | 245 char *filter, *sep, *tok; in apply_subtest_filter() local 249 for (sep = filter; (tok = strsep(&sep, ","));) { in apply_subtest_filter() 253 if (*tok == '!') { in apply_subtest_filter() 255 tok++; in apply_subtest_filter() 258 if (*tok == '\0') in apply_subtest_filter() 261 sl = strchr(tok, '/'); in apply_subtest_filter() 264 if (strcmp(tok, caller)) { in apply_subtest_filter() 269 tok = sl; in apply_subtest_filter() 272 if (strcmp(tok, name)) { in apply_subtest_filter()
|
/kernel/linux/linux-5.10/tools/perf/pmu-events/ |
D | jsmn.c | 34 jsmntok_t *tok; in jsmn_alloc_token() local 38 tok = &tokens[parser->toknext++]; in jsmn_alloc_token() 39 tok->start = tok->end = -1; in jsmn_alloc_token() 40 tok->size = 0; in jsmn_alloc_token() 41 return tok; in jsmn_alloc_token()
|
D | jevents.c | 533 jsmntok_t *tokens, *tok; in json_events() local 545 tok = tokens + 1; in json_events() 556 jsmntok_t *obj = tok++; in json_events() 564 field = tok + j; in json_events() 565 EXPECT(field->type == JSMN_STRING, tok + j, in json_events() 567 val = tok + j + 1; in json_events() 568 EXPECT(val->type == JSMN_STRING, tok + j + 1, in json_events() 702 tok += j; in json_events() 704 EXPECT(tok - tokens == len, tok, "unexpected objects at end"); in json_events()
|
/kernel/linux/linux-5.10/drivers/usb/host/ |
D | fotg210.h | 326 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument 328 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument 329 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument 551 #define FOTG210_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
|
D | ehci.h | 294 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument 296 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument 297 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument 517 #define EHCI_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/resctrl/ |
D | ctrlmondata.c | 284 static int rdtgroup_parse_resource(char *resname, char *tok, in rdtgroup_parse_resource() argument 291 return parse_line(tok, r, rdtgrp); in rdtgroup_parse_resource() 303 char *tok, *resname; in rdtgroup_schemata_write() local 335 while ((tok = strsep(&buf, "\n")) != NULL) { in rdtgroup_schemata_write() 336 resname = strim(strsep(&tok, ":")); in rdtgroup_schemata_write() 337 if (!tok) { in rdtgroup_schemata_write() 342 if (tok[0] == '\0') { in rdtgroup_schemata_write() 347 ret = rdtgroup_parse_resource(resname, tok, rdtgrp); in rdtgroup_schemata_write()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp6000_pcie.c | 198 int tgt, int act, int tok, u64 offset, size_t size, int width) in compute_bar() argument 231 newcfg |= NFP_PCIE_BAR_PCIE2CPP_Token_BaseAddress(tok); in compute_bar() 245 newcfg |= NFP_PCIE_BAR_PCIE2CPP_Token_BaseAddress(tok); in compute_bar() 295 int tgt, int act, int tok, u64 offset, size_t size, int width) in reconfigure_bar() argument 302 tgt, act, tok, offset, size, width); in reconfigure_bar() 312 static int matching_bar(struct nfp_bar *bar, u32 tgt, u32 act, u32 tok, in matching_bar() argument 361 (bartok < 0 || bartok == tok) && in matching_bar() 373 u32 tgt, u32 act, u32 tok, u64 offset, size_t size, int width) in find_matching_bar() argument 380 if (matching_bar(bar, tgt, act, tok, offset, size, width)) in find_matching_bar() 390 int tgt, int act, int tok, in find_unused_bar_noblock() argument [all …]
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | callchain.c | 170 char *tok; in __parse_callchain_report_opt() local 182 while ((tok = strtok_r((char *)arg, ",", &saveptr)) != NULL) { in __parse_callchain_report_opt() 183 if (!strncmp(tok, "none", strlen(tok))) { in __parse_callchain_report_opt() 190 if (!parse_callchain_mode(tok) || in __parse_callchain_report_opt() 191 !parse_callchain_order(tok) || in __parse_callchain_report_opt() 192 !parse_callchain_sort_key(tok) || in __parse_callchain_report_opt() 193 !parse_callchain_value(tok)) { in __parse_callchain_report_opt() 198 if (parse_callchain_record(tok, &callchain_param)) in __parse_callchain_report_opt() 213 if (get_stack_size(tok, &size) < 0) in __parse_callchain_report_opt() 219 callchain_param.min_percent = strtod(tok, &endptr); in __parse_callchain_report_opt() [all …]
|
D | sort.c | 2457 static int add_dynamic_entry(struct evlist *evlist, const char *tok, in add_dynamic_entry() argument 2469 str = strdup(tok); in add_dynamic_entry() 2600 int sort_dimension__add(struct perf_hpp_list *list, const char *tok, in sort_dimension__add() argument 2609 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add() 2649 if (strncasecmp(tok, hd->name, strlen(tok))) in sort_dimension__add() 2658 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add() 2674 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add() 2690 if (!add_dynamic_entry(evlist, tok, level)) in sort_dimension__add() 2699 char *tmp, *tok; in setup_sort_list() local 2706 tok = str; in setup_sort_list() [all …]
|
D | mem-events.c | 48 char *tok, *saveptr = NULL; in perf_mem_events__parse() local 60 tok = strtok_r((char *)buf, ",", &saveptr); in perf_mem_events__parse() 62 while (tok) { in perf_mem_events__parse() 66 if (strstr(e->tag, tok)) in perf_mem_events__parse() 70 tok = strtok_r(NULL, ",", &saveptr); in perf_mem_events__parse()
|
/kernel/linux/linux-5.10/include/linux/usb/ |
D | ehci-dbgp.h | 39 #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) argument
|
/kernel/linux/linux-5.10/tools/perf/bench/ |
D | numa.c | 529 char *tok, *tok_end, *tok_step, *tok_len, *tok_mul; in parse_setup_cpu_list() local 534 tok = strsep(&str, ","); in parse_setup_cpu_list() 535 if (!tok) in parse_setup_cpu_list() 538 tok_end = strstr(tok, "-"); in parse_setup_cpu_list() 540 dprintf("\ntoken: {%s}, end: {%s}\n", tok, tok_end); in parse_setup_cpu_list() 543 bind_cpu_0 = bind_cpu_1 = atol(tok); in parse_setup_cpu_list() 546 bind_cpu_0 = atol(tok); in parse_setup_cpu_list() 551 tok_step = strstr(tok, "#"); in parse_setup_cpu_list() 563 tok_len = strstr(tok, "_"); in parse_setup_cpu_list() 571 tok_mul = strstr(tok, "x"); in parse_setup_cpu_list() [all …]
|
/kernel/linux/linux-5.10/net/core/ |
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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | so_txtime.c | 298 char *arg, *tok; in parse_io() local 305 while ((tok = strtok(arg, ","))) { in parse_io() 312 array->delay_us = strtol(tok, NULL, 0) * 1000; in parse_io() 315 array->data = tok[0]; in parse_io()
|