Home
last modified time | relevance | path

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

123

/linux-6.1.9/drivers/gpu/drm/i915/
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-6.1.9/scripts/
Dspdxcheck.py16 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.1.9/drivers/dma-buf/
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-6.1.9/Documentation/usb/
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-6.1.9/drivers/parisc/
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-6.1.9/block/
Dsed-opal.c591 static void add_token_u8(int *err, struct opal_dev *cmd, u8 tok) in add_token_u8() argument
596 cmd->cmd[cmd->pos++] = tok; in add_token_u8()
774 const struct opal_resp_tok *tok; in response_get_token() local
787 tok = &resp->toks[n]; in response_get_token()
788 if (tok->len == 0) { in response_get_token()
793 return tok; in response_get_token()
796 static ssize_t response_parse_tiny(struct opal_resp_tok *tok, in response_parse_tiny() argument
799 tok->pos = pos; in response_parse_tiny()
800 tok->len = 1; in response_parse_tiny()
801 tok->width = OPAL_WIDTH_TINY; in response_parse_tiny()
[all …]
/linux-6.1.9/tools/perf/arch/s390/annotate/
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-6.1.9/drivers/isdn/mISDN/
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()
Ddsp_pipeline.c196 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()
/linux-6.1.9/tools/lib/traceevent/
Devent-parse.c972 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 …]
Devent-parse-local.h120 enum tep_event_type read_token(char **tok);
121 void free_token(char *tok);
/linux-6.1.9/drivers/gpu/drm/i915/selftests/
Di915_selftest.c246 char *filter, *sep, *tok; in apply_subtest_filter() local
250 for (sep = filter; (tok = strsep(&sep, ","));) { in apply_subtest_filter()
254 if (*tok == '!') { in apply_subtest_filter()
256 tok++; in apply_subtest_filter()
259 if (*tok == '\0') in apply_subtest_filter()
262 sl = strchr(tok, '/'); in apply_subtest_filter()
265 if (strcmp(tok, caller)) { in apply_subtest_filter()
270 tok = sl; in apply_subtest_filter()
273 if (strcmp(tok, name)) { in apply_subtest_filter()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dempty_skb.c16 struct nstoken *tok = NULL; in serial_test_empty_skb() local
97 tok = open_netns("empty_skb"); in serial_test_empty_skb()
143 if (tok) in serial_test_empty_skb()
144 close_netns(tok); in serial_test_empty_skb()
/linux-6.1.9/drivers/usb/host/
Dfotg210.h323 #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
Dehci.h296 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument
298 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument
299 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument
519 #define EHCI_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfpcore/
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-6.1.9/tools/perf/util/
Dcallchain.c171 char *tok; in __parse_callchain_report_opt() local
183 while ((tok = strtok_r((char *)arg, ",", &saveptr)) != NULL) { in __parse_callchain_report_opt()
184 if (!strncmp(tok, "none", strlen(tok))) { in __parse_callchain_report_opt()
191 if (!parse_callchain_mode(tok) || in __parse_callchain_report_opt()
192 !parse_callchain_order(tok) || in __parse_callchain_report_opt()
193 !parse_callchain_sort_key(tok) || in __parse_callchain_report_opt()
194 !parse_callchain_value(tok)) { in __parse_callchain_report_opt()
199 if (parse_callchain_record(tok, &callchain_param)) in __parse_callchain_report_opt()
214 if (get_stack_size(tok, &size) < 0) in __parse_callchain_report_opt()
220 callchain_param.min_percent = strtod(tok, &endptr); in __parse_callchain_report_opt()
[all …]
Dsort.c2793 static int add_dynamic_entry(struct evlist *evlist, const char *tok, in add_dynamic_entry() argument
2805 str = strdup(tok); in add_dynamic_entry()
2936 int sort_dimension__add(struct perf_hpp_list *list, const char *tok, in sort_dimension__add() argument
2949 if (!strcmp(arch_specific_sort_keys[j], tok) && in sort_dimension__add()
2950 !arch_support_sort_key(tok)) { in sort_dimension__add()
2958 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
3003 if (strncasecmp(tok, hd->name, strlen(tok))) in sort_dimension__add()
3012 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
3028 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
3044 if (!add_dynamic_entry(evlist, tok, level)) in sort_dimension__add()
[all …]
Dpmu.c722 static bool perf_pmu__valid_suffix(const char *pmu_name, char *tok) in perf_pmu__valid_suffix() argument
726 if (strncmp(pmu_name, tok, strlen(tok))) in perf_pmu__valid_suffix()
729 p = pmu_name + strlen(tok); in perf_pmu__valid_suffix()
749 char *tmp = NULL, *tok, *str; in pmu_uncore_alias_match() local
759 tok = strtok_r(str, ",", &tmp); in pmu_uncore_alias_match()
760 if (strncmp(pmu_name, tok, strlen(tok))) { in pmu_uncore_alias_match()
776 name = strstr(name, tok); in pmu_uncore_alias_match()
778 (!next_tok && !perf_pmu__valid_suffix(name, tok))) { in pmu_uncore_alias_match()
784 tok = next_tok; in pmu_uncore_alias_match()
785 name += strlen(tok); in pmu_uncore_alias_match()
[all …]
/linux-6.1.9/arch/x86/kernel/cpu/resctrl/
Dctrlmondata.c359 static int rdtgroup_parse_resource(char *resname, char *tok, in rdtgroup_parse_resource() argument
366 return parse_line(tok, s, rdtgrp); in rdtgroup_parse_resource()
379 char *tok, *resname; in rdtgroup_schemata_write() local
411 while ((tok = strsep(&buf, "\n")) != NULL) { in rdtgroup_schemata_write()
412 resname = strim(strsep(&tok, ":")); in rdtgroup_schemata_write()
413 if (!tok) { in rdtgroup_schemata_write()
418 if (tok[0] == '\0') { in rdtgroup_schemata_write()
423 ret = rdtgroup_parse_resource(resname, tok, rdtgrp); in rdtgroup_schemata_write()
/linux-6.1.9/include/linux/usb/
Dehci-dbgp.h39 #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) argument
/linux-6.1.9/tools/perf/bench/
Dnuma.c557 char *tok, *tok_end, *tok_step, *tok_len, *tok_mul; in parse_setup_cpu_list() local
562 tok = strsep(&str, ","); in parse_setup_cpu_list()
563 if (!tok) in parse_setup_cpu_list()
566 tok_end = strstr(tok, "-"); in parse_setup_cpu_list()
568 dprintf("\ntoken: {%s}, end: {%s}\n", tok, tok_end); in parse_setup_cpu_list()
571 bind_cpu_0 = bind_cpu_1 = atol(tok); in parse_setup_cpu_list()
574 bind_cpu_0 = atol(tok); in parse_setup_cpu_list()
579 tok_step = strstr(tok, "#"); in parse_setup_cpu_list()
591 tok_len = strstr(tok, "_"); in parse_setup_cpu_list()
599 tok_mul = strstr(tok, "x"); in parse_setup_cpu_list()
[all …]
/linux-6.1.9/net/core/
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-6.1.9/tools/perf/arch/x86/util/
Diostat.c250 char *tok, *tmp, *filter_copy = NULL; in iio_root_ports_list_filter() local
264 for (tok = strtok_r(filter_copy, ",", &tmp); tok; in iio_root_ports_list_filter()
265 tok = strtok_r(NULL, ",", &tmp)) { in iio_root_ports_list_filter()
266 if (!iio_root_port_parse_str(&domain, &bus, tok)) { in iio_root_ports_list_filter()
/linux-6.1.9/tools/perf/
Dbuiltin-kwork.c128 const char *tok, struct list_head *list) in sort_dimension__add() argument
163 if (!strcmp(available_sorts[i]->name, tok)) { in sort_dimension__add()
176 char *tmp, *tok, *str = strdup(kwork->sort_order); in setup_sorting() local
178 for (tok = strtok_r(str, ", ", &tmp); in setup_sorting()
179 tok; tok = strtok_r(NULL, ", ", &tmp)) { in setup_sorting()
180 if (sort_dimension__add(kwork, tok, &kwork->sort_list) < 0) in setup_sorting()
182 "Unknown --sort key: `%s'", tok); in setup_sorting()
1582 char *tmp, *tok, *str; in setup_event_list() local
1588 for (tok = strtok_r(str, ", ", &tmp); in setup_event_list()
1589 tok; tok = strtok_r(NULL, ", ", &tmp)) { in setup_event_list()
[all …]

123