| /linux/tools/lib/python/kdoc/ |
| H A D | c_lex.py | 212 for tok in self._tokenize(source): 213 self.tokens.append(tok) 263 for i, tok in enumerate(self.tokens): 264 if tok.kind == CToken.BEGIN: 267 elif tok.kind == CToken.END: 278 out += str(tok.value) 281 elif tok.kind == CToken.COMMENT: 282 comment = RE_COMMENT_START.sub("", tok.value) 300 if tok.kind == CToken.SPACE and next_tok.kind == CToken.ENDSTMT: 303 if tok.kind == CToken.ENDSTMT and next_tok.kind == tok.kind: [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A 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 …]
|
| H A D | xdp_metadata.c | 372 static void switch_ns_to_rx(struct nstoken **tok) in test_xdp_metadata() 374 close_netns(*tok); in test_xdp_metadata() 375 *tok = open_netns(RX_NETNS_NAME); in test_xdp_metadata() 378 static void switch_ns_to_tx(struct nstoken **tok) in test_xdp_metadata() 380 close_netns(*tok); in test_xdp_metadata() 381 *tok = open_netns(TX_NETNS_NAME); in test_xdp_metadata() 391 struct nstoken *tok = NULL; in test_xdp_metadata() 407 tok = open_netns(TX_NETNS_NAME); in test_xdp_metadata() 408 if (!ASSERT_OK_PTR(tok, "setns")) in test_xdp_metadata() 425 switch_ns_to_rx(&tok); in test_xdp_metadata() 337 switch_ns_to_rx(struct nstoken ** tok) switch_ns_to_rx() argument 343 switch_ns_to_tx(struct nstoken ** tok) switch_ns_to_tx() argument 356 struct nstoken *tok = NULL; test_xdp_metadata() local [all...] |
| H A 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()
|
| H A D | empty_skb.c | 11 struct nstoken *tok = NULL; in test_empty_skb() local 126 tok = open_netns("empty_skb"); in test_empty_skb() 127 if (!ASSERT_OK_PTR(tok, "setns")) in test_empty_skb() 187 if (tok) 188 close_netns(tok);
|
| H A D | tc_qevent.c | 46 struct nstoken *tok = NULL; in run_qevent_redirect() local 65 tok = open_netns(NS_TX); in run_qevent_redirect() 66 if (!ASSERT_OK_PTR(tok, "open_netns")) in run_qevent_redirect() 88 close_netns(tok); in run_qevent_redirect()
|
| H A 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/drivers/gpu/drm/i915/ |
| H A 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/scripts/ |
| H A 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/Documentation/usb/ |
| H A 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/tools/perf/util/annotate-arch/ |
| H A D | annotate-s390.c | 17 char *endptr, *tok, *name; in s390_call__parse() local 21 tok = strchr(ops->raw, ','); in s390_call__parse() 22 if (!tok) in s390_call__parse() 25 ops->target.addr = strtoull(tok + 1, &endptr, 16); in s390_call__parse() 37 tok = strchr(name, '>'); in s390_call__parse() 38 if (tok == NULL) in s390_call__parse() 41 *tok = '\0'; in s390_call__parse() 43 *tok = '>'; in s390_call__parse()
|
| H A D | annotate-loongarch.c | 21 char *c, *endptr, *tok, *name; in loongarch_call__parse() local 41 tok = strchr(name, '>'); in loongarch_call__parse() 42 if (tok == NULL) in loongarch_call__parse() 45 *tok = '\0'; in loongarch_call__parse() 47 *tok = '>'; in loongarch_call__parse()
|
| /linux/drivers/parisc/ |
| H A 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/drivers/usb/fotg210/ |
| H A D | fotg210-hcd.h | |
| /linux/arch/s390/kvm/gmap/ |
| H A D | dat.h | 39 .tok.i = 1, \ 40 .tok.tt = (l), \ 41 .tok.type = (t), \ 42 .tok.par = (p) \ 51 #define _PTE_TOK(t, p) ((union pte) { .tok.i = 1, .tok.type = (t), .tok.par = (p) }) 105 } tok; member 294 } tok; 802 return pte.h.i && !pte.tok in large_pud_to_phys() 292 } tok; global() member [all...] |
| /linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A 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/tools/perf/ |
| H A D | builtin-lock.c | 350 char *tok, *tmp, *orig; in setup_output_field() 371 while ((tok = strsep(&tmp, ",")) != NULL){ in setup_output_field() 372 ret = add_output_field(contention, tok); in setup_output_field() 2298 char *s, *tmp, *tok; in parse_lock_type() 2304 for (tok = strtok_r(s, ", ", &tmp); tok; tok = strtok_r(NULL, ", ", &tmp)) { in parse_lock_type() 2307 /* `tok` is a flags name if it contains ':'. */ in parse_lock_type() 2308 if (strchr(tok, ':')) { in parse_lock_type() 2310 if (!strcmp(lock_type_table[i].flags_name, tok) in parse_lock_type() 348 char *tok, *tmp, *orig; setup_output_field() local 2289 char *s, *tmp, *tok; parse_lock_type() local 2408 char *s, *tmp, *tok; parse_lock_addr() local 2500 char *s, *tmp, *tok; parse_cgroup_filter() local 2573 char *s, *tmp, *tok; parse_lock_delay() local [all...] |
| /linux/tools/perf/util/ |
| H A D | callchain.c | 174 char *tok, *arg_copy; in __parse_callchain_report_opt() 190 tok = strtok_r(arg_copy, ",", &saveptr); in __parse_callchain_report_opt() 191 while (tok) { in __parse_callchain_report_opt() 192 if (!strncmp(tok, "none", strlen(tok))) { in __parse_callchain_report_opt() 199 if (!parse_callchain_mode(tok) || in __parse_callchain_report_opt() 200 !parse_callchain_order(tok) || in __parse_callchain_report_opt() 201 !parse_callchain_sort_key(tok) || in __parse_callchain_report_opt() 202 !parse_callchain_value(tok)) { in __parse_callchain_report_opt() 207 if (parse_callchain_record(tok, in __parse_callchain_report_opt() 173 char *tok; __parse_callchain_report_opt() local 255 char *tok, *name, *saveptr = NULL; parse_callchain_record() local [all...] |
| H A D | sort.c | 3597 static int add_dynamic_entry(struct evlist *evlist, const char *tok, 3608 str = strdup(tok); in __sort_dimension__add() 3832 int sort_dimension__add(struct perf_hpp_list *list, const char *tok, in setup_sort_list() 3845 if (!strcmp(arch_specific_sort_keys[j], tok) && in setup_sort_list() 3846 !arch_support_sort_key(tok, env)) { in setup_sort_list() 3854 if (!sd->name || strncasecmp(tok, sd->name, strlen(tok))) in get_default_sort_order() 3868 if (!sd->name || strncasecmp(tok, sd->name, strlen(tok))) in get_default_sort_order() 3872 strncasecmp(tok, "callchain_branch_predicte in get_default_sort_order() 3456 add_dynamic_entry(struct evlist * evlist,const char * tok,int level) add_dynamic_entry() argument 3681 sort_dimension__add(struct perf_hpp_list * list,const char * tok,struct evlist * evlist,struct perf_env * env,int level) sort_dimension__add() argument 3792 char *tmp, *tok; setup_sort_list() local 4104 output_field_add(struct perf_hpp_list * list,const char * tok,int * level) output_field_add() argument 4167 char *tmp, *tok; setup_output_list() local [all...] |
| /linux/tools/sched_ext/ |
| H A D | scx_flatcg.c | 57 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/arch/x86/kernel/cpu/resctrl/ |
| H A D | intel_aet.c | 172 bool intel_handle_aet_option(bool force_off, char *tok) in intel_handle_aet_option() argument 179 if (!tok) in intel_handle_aet_option() 182 name = strsep(&tok, ":"); in intel_handle_aet_option() 183 if (tok && kstrtou32(tok, 16, &guid)) in intel_handle_aet_option()
|
| H A D | internal.h | 242 bool intel_handle_aet_option(bool force_off, char *tok); 253 static inline bool intel_handle_aet_option(bool force_off, char *tok) { return false; } in intel_handle_aet_option() argument
|
| /linux/rust/macros/ |
| H A D | pin_data.rs | |
| /linux/include/linux/usb/ |
| H A D | ehci-dbgp.h | 39 #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) argument
|
| /linux/fs/resctrl/ |
| H A D | ctrlmondata.c | 293 static int rdtgroup_parse_resource(char *resname, char *tok, in rdtgroup_parse_resource() argument 300 return parse_line(tok, s, rdtgrp); in rdtgroup_parse_resource() 312 char *tok, *resname; in rdtgroup_schemata_write() local 342 while ((tok = strsep(&buf, "\n")) != NULL) { in rdtgroup_schemata_write() 343 resname = strim(strsep(&tok, ":")); in rdtgroup_schemata_write() 344 if (!tok) { in rdtgroup_schemata_write() 349 if (tok[0] == '\0') { in rdtgroup_schemata_write() 354 ret = rdtgroup_parse_resource(resname, tok, rdtgrp); in rdtgroup_schemata_write()
|