/kernel/linux/linux-5.10/scripts/ |
H A D | spdxcheck.py | 15 def __init__(self, tok, txt): 16 self.tok = tok 100 def validate(self, tok): 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, 'Exceptio [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
H A 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 in mitigations_set() [all...] |
/kernel/linux/linux-6.6/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 in mitigations_set() [all...] |
/kernel/linux/linux-6.6/scripts/ |
H A D | spdxcheck.py | 16 def __init__(self, tok, txt): 17 self.tok = tok 130 def validate(self, tok): 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, 'Exceptio [all...] |
/kernel/linux/linux-5.10/drivers/dma-buf/ |
H A 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-6.6/drivers/dma-buf/ |
H A 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/tools/perf/arch/s390/annotate/ |
H A 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-6.6/tools/perf/arch/s390/annotate/ |
H A 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/ |
H A D | lba_pci.c | 145 #define LBA_CFG_BUS(tok) ((u8) ((tok)>>16)) 146 #define LBA_CFG_DEV(tok) ((u8) ((tok)>>11) & 0x1f) 147 #define LBA_CFG_FUNC(tok) ((u8) ((tok)>>8 ) & 0x7) 205 #define LBA_CFG_SETUP(d, tok) { \ 232 #define LBA_CFG_PROBE(d, tok) { \ 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, erro 337 lba_rd_cfg(struct lba_device *d, u32 tok, u8 reg, u32 size) lba_rd_cfg() argument 367 u32 tok = LBA_CFG_TOK(local_bus, devfn); elroy_cfg_read() local 405 lba_wr_cfg(struct lba_device *d, u32 tok, u8 reg, u32 data, u32 size) lba_wr_cfg() argument 434 u32 tok = LBA_CFG_TOK(local_bus,devfn); elroy_cfg_write() local 484 u32 tok = LBA_CFG_TOK(local_bus, devfn); mercury_cfg_read() local 517 u32 tok = LBA_CFG_TOK(local_bus,devfn); mercury_cfg_write() local [all...] |
/kernel/linux/linux-6.6/drivers/parisc/ |
H A D | lba_pci.c | 145 #define LBA_CFG_BUS(tok) ((u8) ((tok)>>16)) 146 #define LBA_CFG_DEV(tok) ((u8) ((tok)>>11) & 0x1f) 147 #define LBA_CFG_FUNC(tok) ((u8) ((tok)>>8 ) & 0x7) 205 #define LBA_CFG_SETUP(d, tok) { \ 232 #define LBA_CFG_PROBE(d, tok) { \ 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, erro 337 lba_rd_cfg(struct lba_device *d, u32 tok, u8 reg, u32 size) lba_rd_cfg() argument 367 u32 tok = LBA_CFG_TOK(local_bus, devfn); elroy_cfg_read() local 405 lba_wr_cfg(struct lba_device *d, u32 tok, u8 reg, u32 data, u32 size) lba_wr_cfg() argument 434 u32 tok = LBA_CFG_TOK(local_bus,devfn); elroy_cfg_write() local 484 u32 tok = LBA_CFG_TOK(local_bus, devfn); mercury_cfg_read() local 517 u32 tok = LBA_CFG_TOK(local_bus,devfn); mercury_cfg_write() local [all...] |
/kernel/linux/linux-5.10/block/ |
H A 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 in response_parse_tiny() 773 response_parse_short(struct opal_resp_tok *tok, const u8 *pos) response_parse_short() argument 803 response_parse_medium(struct opal_resp_tok *tok, const u8 *pos) response_parse_medium() argument 820 response_parse_long(struct opal_resp_tok *tok, const u8 *pos) response_parse_long() argument 837 response_parse_token(struct opal_resp_tok *tok, const u8 *pos) response_parse_token() argument 919 const struct opal_resp_tok *tok; response_get_string() local 954 const struct opal_resp_tok *tok; response_get_u64() local 984 const struct opal_resp_tok *tok; response_status() local [all...] |
/kernel/linux/linux-5.10/drivers/isdn/mISDN/ |
H A 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()
|
/kernel/linux/linux-6.6/drivers/isdn/mISDN/ |
H A 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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
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 96 tok = open_netns("empty_skb"); in test_empty_skb() 146 if (tok) in test_empty_skb() 147 close_netns(tok); in test_empty_skb()
|
/kernel/linux/linux-6.6/block/ |
H A D | sed-opal.c | 711 static void add_token_u8(int *err, struct opal_dev *cmd, u8 tok) in add_token_u8() argument 716 cmd->cmd[cmd->pos++] = tok; in add_token_u8() 894 const struct opal_resp_tok *tok; in response_get_token() local 907 tok = &resp->toks[n]; in response_get_token() 908 if (tok->len == 0) { in response_get_token() 913 return tok; in response_get_token() 916 static ssize_t response_parse_tiny(struct opal_resp_tok *tok, in response_parse_tiny() argument 919 tok->pos = pos; in response_parse_tiny() 920 tok->len = 1; in response_parse_tiny() 921 tok in response_parse_tiny() 933 response_parse_short(struct opal_resp_tok *tok, const u8 *pos) response_parse_short() argument 963 response_parse_medium(struct opal_resp_tok *tok, const u8 *pos) response_parse_medium() argument 980 response_parse_long(struct opal_resp_tok *tok, const u8 *pos) response_parse_long() argument 997 response_parse_token(struct opal_resp_tok *tok, const u8 *pos) response_parse_token() argument 1083 const struct opal_resp_tok *tok; response_get_string() local 1118 const struct opal_resp_tok *tok; response_get_u64() local 1148 const struct opal_resp_tok *tok; response_status() local 1573 const struct opal_resp_tok *tok; response_get_column() local [all...] |
/kernel/linux/linux-5.10/tools/perf/pmu-events/ |
H A 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/ |
H A 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-6.6/drivers/gpu/drm/i915/selftests/ |
H A D | i915_selftest.c | 277 char *filter, *sep, *tok; in apply_subtest_filter() local 281 for (sep = filter; (tok = strsep(&sep, ","));) { in apply_subtest_filter() 285 if (*tok == '!') { in apply_subtest_filter() 287 tok++; in apply_subtest_filter() 290 if (*tok == '\0') in apply_subtest_filter() 293 sl = strchr(tok, '/'); in apply_subtest_filter() 296 if (strcmp(tok, caller)) { in apply_subtest_filter() 301 tok = sl; in apply_subtest_filter() 304 if (strcmp(tok, name)) { in apply_subtest_filter()
|
/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | fotg210.h | 326 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) 328 #define QTD_CERR(tok) (((tok)>>10) & 0x3) 329 #define QTD_PID(tok) (((tok)>>8) & 0x3) 551 #define FOTG210_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff)
|
/kernel/linux/linux-6.6/drivers/usb/fotg210/ |
H A D | fotg210-hcd.h | 324 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) 326 #define QTD_CERR(tok) (((tok)>>10) & 0x3) 327 #define QTD_PID(tok) (((tok)>>8) & 0x3) 549 #define FOTG210_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff)
|
/kernel/linux/linux-6.6/tools/perf/arch/loongarch/annotate/ |
H A D | instructions.c | 10 char *c, *endptr, *tok, *name; in loongarch_call__parse() local 29 tok = strchr(name, '>'); in loongarch_call__parse() 30 if (tok == NULL) in loongarch_call__parse() 33 *tok = '\0'; in loongarch_call__parse() 35 *tok = '>'; in loongarch_call__parse()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | nfp6000_pcie.c | 198 int tgt, int act, int tok, u64 offset, size_t size, int width) in compute_bar() 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() 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() 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() 196 compute_bar(const struct nfp6000_pcie *nfp, const struct nfp_bar *bar, u32 *bar_config, u64 *bar_base, int tgt, int act, int tok, u64 offset, size_t size, int width) compute_bar() argument 294 reconfigure_bar(struct nfp6000_pcie *nfp, struct nfp_bar *bar, int tgt, int act, int tok, u64 offset, size_t size, int width) reconfigure_bar() argument 372 find_matching_bar(struct nfp6000_pcie *nfp, u32 tgt, u32 act, u32 tok, u64 offset, size_t size, int width) find_matching_bar() argument 389 find_unused_bar_noblock(const struct nfp6000_pcie *nfp, int tgt, int act, int tok, u64 offset, size_t size, int width) find_unused_bar_noblock() argument 422 find_unused_bar_and_lock(struct nfp6000_pcie *nfp, int tgt, int act, int tok, u64 offset, size_t size, int width) find_unused_bar_and_lock() argument 452 nfp_wait_for_bar(struct nfp6000_pcie *nfp, int *barnum, u32 tgt, u32 act, u32 tok, u64 offset, size_t size, int width) nfp_wait_for_bar() argument 462 nfp_alloc_bar(struct nfp6000_pcie *nfp, u32 tgt, u32 act, u32 tok, u64 offset, size_t size, int width, int nonblocking) nfp_alloc_bar() argument [all...] |
/kernel/linux/linux-6.6/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() 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() 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() 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() 194 compute_bar(const struct nfp6000_pcie *nfp, const struct nfp_bar *bar, u32 *bar_config, u64 *bar_base, int tgt, int act, int tok, u64 offset, size_t size, int width) compute_bar() argument 289 reconfigure_bar(struct nfp6000_pcie *nfp, struct nfp_bar *bar, int tgt, int act, int tok, u64 offset, size_t size, int width) reconfigure_bar() argument 367 find_matching_bar(struct nfp6000_pcie *nfp, u32 tgt, u32 act, u32 tok, u64 offset, size_t size, int width) find_matching_bar() argument 384 find_unused_bar_noblock(const struct nfp6000_pcie *nfp, int tgt, int act, int tok, u64 offset, size_t size, int width) find_unused_bar_noblock() argument 417 find_unused_bar_and_lock(struct nfp6000_pcie *nfp, int tgt, int act, int tok, u64 offset, size_t size, int width) find_unused_bar_and_lock() argument 447 nfp_wait_for_bar(struct nfp6000_pcie *nfp, int *barnum, u32 tgt, u32 act, u32 tok, u64 offset, size_t size, int width) nfp_wait_for_bar() argument 457 nfp_alloc_bar(struct nfp6000_pcie *nfp, u32 tgt, u32 act, u32 tok, u64 offset, size_t size, int width, int nonblocking) nfp_alloc_bar() argument [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/resctrl/ |
H A 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()
|