/Linux-v4.19/scripts/ |
D | spdxcheck.py | 15 def __init__(self, tok, txt): argument 16 self.tok = tok 99 def validate(self, tok): argument 100 id = tok.value.upper() 101 if tok.type == 'ID': 103 raise ParserException(tok, 'Invalid License ID') 105 elif tok.type == 'EXC': 107 raise ParserException(tok, 'Invalid Exception ID') 109 raise ParserException(tok, 'Exception not valid for license %s' %self.lastid) 111 elif tok.type != 'WITH': [all …]
|
/Linux-v4.19/Documentation/usb/ |
D | gadget_hid.txt | 190 char *tok = strtok(buf, " "); 194 for (; tok != NULL; tok = strtok(NULL, " ")) { 196 if (strcmp(tok, "--quit") == 0) 199 if (strcmp(tok, "--hold") == 0) { 206 if (strcmp(tok, kval[i].opt) == 0) { 215 if (islower(tok[0])) { 216 report[2 + key++] = (tok[0] - ('a' - 0x04)); 221 if (strcmp(tok, kmod[i].opt) == 0) { 229 fprintf(stderr, "unknown option: %s\n", tok); 243 char *tok = strtok(buf, " "); [all …]
|
/Linux-v4.19/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-v4.19/drivers/parisc/ |
D | lba_pci.c | 148 #define LBA_CFG_BUS(tok) ((u8) ((tok)>>16)) argument 149 #define LBA_CFG_DEV(tok) ((u8) ((tok)>>11) & 0x1f) argument 150 #define LBA_CFG_FUNC(tok) ((u8) ((tok)>>8 ) & 0x7) argument 208 #define LBA_CFG_SETUP(d, tok) { \ argument 235 #define LBA_CFG_PROBE(d, tok) { \ argument 240 WRITE_REG32(tok | PCI_VENDOR_ID, (d)->hba.base_addr + LBA_PCI_CFG_ADDR);\ 286 #define LBA_CFG_MASTER_ABORT_CHECK(d, base, tok, error) { \ argument 340 lba_rd_cfg(struct lba_device *d, u32 tok, u8 reg, u32 size) in lba_rd_cfg() argument 348 LBA_CFG_SETUP(d, tok); in lba_rd_cfg() 349 LBA_CFG_PROBE(d, tok); in lba_rd_cfg() [all …]
|
/Linux-v4.19/drivers/isdn/mISDN/ |
D | dsp_hwec.c | 71 char *dup, *tok, *name, *val; in dsp_hwec_enable() local 78 while ((tok = strsep(&dup, ","))) { in dsp_hwec_enable() 79 if (!strlen(tok)) in dsp_hwec_enable() 81 name = strsep(&tok, "="); in dsp_hwec_enable() 82 val = tok; in dsp_hwec_enable()
|
D | dsp_pipeline.c | 239 char *dup, *tok, *name, *args; in dsp_pipeline_build() local 253 while ((tok = strsep(&dup, "|"))) { in dsp_pipeline_build() 254 if (!strlen(tok)) in dsp_pipeline_build() 256 name = strsep(&tok, "("); in dsp_pipeline_build() 257 args = strsep(&tok, ")"); in dsp_pipeline_build()
|
/Linux-v4.19/tools/lib/traceevent/ |
D | event-parse.c | 911 static int extend_token(char **tok, char *buf, int size) in extend_token() argument 913 char *newtok = realloc(*tok, size); in extend_token() 916 free(*tok); in extend_token() 917 *tok = NULL; in extend_token() 921 if (!*tok) in extend_token() 925 *tok = newtok; in extend_token() 930 static enum event_type force_token(const char *str, char **tok); 932 static enum event_type __read_token(char **tok) in __read_token() argument 940 *tok = NULL; in __read_token() 956 if (asprintf(tok, "%c", ch) < 0) in __read_token() [all …]
|
/Linux-v4.19/tools/perf/util/ |
D | expr.y | 145 int tok; 159 tok = NUMBER; 162 tok = *s; 166 return tok; 211 int tok = expr__lex(&val, &p); 212 if (tok == 0) { 216 if (tok == ID && !already_seen(val.id, one, *other, num_other)) {
|
D | callchain.c | 163 char *tok; in __parse_callchain_report_opt() local 175 while ((tok = strtok_r((char *)arg, ",", &saveptr)) != NULL) { in __parse_callchain_report_opt() 176 if (!strncmp(tok, "none", strlen(tok))) { in __parse_callchain_report_opt() 183 if (!parse_callchain_mode(tok) || in __parse_callchain_report_opt() 184 !parse_callchain_order(tok) || in __parse_callchain_report_opt() 185 !parse_callchain_sort_key(tok) || in __parse_callchain_report_opt() 186 !parse_callchain_value(tok)) { in __parse_callchain_report_opt() 191 if (parse_callchain_record(tok, &callchain_param)) in __parse_callchain_report_opt() 206 if (get_stack_size(tok, &size) < 0) in __parse_callchain_report_opt() 212 callchain_param.min_percent = strtod(tok, &endptr); in __parse_callchain_report_opt() [all …]
|
D | sort.c | 2325 static int add_dynamic_entry(struct perf_evlist *evlist, const char *tok, in add_dynamic_entry() argument 2337 str = strdup(tok); in add_dynamic_entry() 2468 int sort_dimension__add(struct perf_hpp_list *list, const char *tok, in sort_dimension__add() argument 2477 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add() 2517 if (strncasecmp(tok, hd->name, strlen(tok))) in sort_dimension__add() 2526 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add() 2542 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add() 2558 if (!add_dynamic_entry(evlist, tok, level)) in sort_dimension__add() 2567 char *tmp, *tok; in setup_sort_list() local 2574 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()
|
/Linux-v4.19/block/ |
D | sed-opal.c | 513 static void add_token_u8(int *err, struct opal_dev *cmd, u8 tok) in add_token_u8() argument 522 cmd->cmd[cmd->pos++] = tok; in add_token_u8() 688 const struct opal_resp_tok *tok; in response_get_token() local 696 tok = &resp->toks[n]; in response_get_token() 697 if (tok->len == 0) { in response_get_token() 702 return tok; in response_get_token() 705 static ssize_t response_parse_tiny(struct opal_resp_tok *tok, in response_parse_tiny() argument 708 tok->pos = pos; in response_parse_tiny() 709 tok->len = 1; in response_parse_tiny() 710 tok->width = OPAL_WIDTH_TINY; in response_parse_tiny() [all …]
|
/Linux-v4.19/drivers/usb/host/ |
D | oxu210hp.h | 186 #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) argument 210 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument 212 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument 213 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument
|
D | fotg210.h | 323 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument 325 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument 326 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument 548 #define FOTG210_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
|
D | ehci.h | 293 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument 295 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument 296 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument 516 #define EHCI_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
|
/Linux-v4.19/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 | 510 jsmntok_t *tokens, *tok; in json_events() local 522 tok = tokens + 1; in json_events() 539 jsmntok_t *obj = tok++; in json_events() 547 field = tok + j; in json_events() 548 EXPECT(field->type == JSMN_STRING, tok + j, in json_events() 550 val = tok + j + 1; in json_events() 551 EXPECT(val->type == JSMN_STRING, tok + j + 1, in json_events() 679 tok += j; in json_events() 681 EXPECT(tok - tokens == len, tok, "unexpected objects at end"); in json_events()
|
/Linux-v4.19/arch/x86/kernel/cpu/ |
D | intel_rdt_ctrlmondata.c | 286 static int rdtgroup_parse_resource(char *resname, char *tok, in rdtgroup_parse_resource() argument 293 return parse_line(tok, r, rdtgrp); in rdtgroup_parse_resource() 305 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()
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp6000_pcie.c | 227 int tgt, int act, int tok, u64 offset, size_t size, int width) in compute_bar() argument 260 newcfg |= NFP_PCIE_BAR_PCIE2CPP_Token_BaseAddress(tok); in compute_bar() 274 newcfg |= NFP_PCIE_BAR_PCIE2CPP_Token_BaseAddress(tok); in compute_bar() 324 int tgt, int act, int tok, u64 offset, size_t size, int width) in reconfigure_bar() argument 331 tgt, act, tok, offset, size, width); in reconfigure_bar() 341 static int matching_bar(struct nfp_bar *bar, u32 tgt, u32 act, u32 tok, in matching_bar() argument 390 (bartok < 0 || bartok == tok) && in matching_bar() 402 u32 tgt, u32 act, u32 tok, u64 offset, size_t size, int width) in find_matching_bar() argument 409 if (matching_bar(bar, tgt, act, tok, offset, size, width)) in find_matching_bar() 419 int tgt, int act, int tok, in find_unused_bar_noblock() argument [all …]
|
/Linux-v4.19/include/linux/usb/ |
D | ehci-dbgp.h | 39 #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) argument
|
/Linux-v4.19/tools/perf/bench/ |
D | numa.c | 507 char *tok, *tok_end, *tok_step, *tok_len, *tok_mul; in parse_setup_cpu_list() local 512 tok = strsep(&str, ","); in parse_setup_cpu_list() 513 if (!tok) in parse_setup_cpu_list() 516 tok_end = strstr(tok, "-"); in parse_setup_cpu_list() 518 dprintf("\ntoken: {%s}, end: {%s}\n", tok, tok_end); in parse_setup_cpu_list() 521 bind_cpu_0 = bind_cpu_1 = atol(tok); in parse_setup_cpu_list() 524 bind_cpu_0 = atol(tok); in parse_setup_cpu_list() 529 tok_step = strstr(tok, "#"); in parse_setup_cpu_list() 541 tok_len = strstr(tok, "_"); in parse_setup_cpu_list() 549 tok_mul = strstr(tok, "x"); in parse_setup_cpu_list() [all …]
|
/Linux-v4.19/net/core/ |
D | utils.c | 192 const char *s, *tok = NULL; in in6_pton() local 248 tok = s + 1; in in6_pton() 253 ret = in4_pton(tok ? tok : s, srclen + (int)(s - tok), d, delim, &s); in in6_pton()
|
/Linux-v4.19/tools/perf/ |
D | builtin-kmem.c | 1660 static int slab_sort_dimension__add(const char *tok, struct list_head *list) in slab_sort_dimension__add() argument 1666 if (!strcmp(slab_sorts[i]->name, tok)) { in slab_sort_dimension__add() 1680 static int page_sort_dimension__add(const char *tok, struct list_head *list) in page_sort_dimension__add() argument 1686 if (!strcmp(page_sorts[i]->name, tok)) { in page_sort_dimension__add() 1702 char *tok; in setup_slab_sorting() local 1712 tok = strsep(&pos, ","); in setup_slab_sorting() 1713 if (!tok) in setup_slab_sorting() 1715 if (slab_sort_dimension__add(tok, sort_list) < 0) { in setup_slab_sorting() 1716 pr_err("Unknown slab --sort key: '%s'", tok); in setup_slab_sorting() 1728 char *tok; in setup_page_sorting() local [all …]
|
/Linux-v4.19/drivers/firmware/ |
D | qemu_fw_cfg.c | 498 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-v4.19/drivers/scsi/ibmvscsi_tgt/ |
D | ibmvscsi_tgt.h | 364 #define h_reg_crq(ua, tok, sz) \ argument 365 plpar_hcall_norets(H_REG_CRQ, ua, tok, sz)
|