/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/upm/upm/ |
H A D | 0001-Use-stdint-types.patch | 25 if(tok.substr(0, 20) == "setInterruptEnable0:") { 26 - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(20), nullptr, 0); 27 + uint8_t bits = (uint8_t)std::stoul(tok.substr(20), nullptr, 0); 30 if(tok.substr(0, 20) == "setInterruptEnable1:") { 31 - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(20), nullptr, 0); 32 + uint8_t bits = (uint8_t)std::stoul(tok.substr(20), nullptr, 0); 35 if(tok.substr(0, 20) == "setInterruptEnable2:") { 36 - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(20), nullptr, 0); 37 + uint8_t bits = (uint8_t)std::stoul(tok.substr(20), nullptr, 0); 40 if(tok.substr(0, 17) == "setInterruptMap0:") { [all …]
|
/openbmc/qemu/scripts/ |
H A D | minikconf.py | 328 def __init__(self, parser, msg, tok=None): argument 330 tok = tok or parser.tok 331 if tok != TOK_NONE: 332 location = TOKENS.get(tok, None) or ('"%s"' % tok) 420 if self.tok == TOK_Y: 423 if self.tok == TOK_N: 430 if self.tok == TOK_ID: 439 if self.tok == TOK_ID: 452 if self.tok != TOK_EQUAL: 461 if self.tok == TOK_NOT: [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/u-boot/tools/ |
H A D | mxsimage.c | 504 static int sb_token_to_long(char *tok, uint32_t *rid) in sb_token_to_long() argument 509 if (tok[0] != '0' || tok[1] != 'x') { in sb_token_to_long() 514 tok += 2; in sb_token_to_long() 517 id = strtoul(tok, &endptr, 16); in sb_token_to_long() 529 if (endptr == tok) { in sb_token_to_long() 564 char *tok; in sb_build_dcd() local 577 tok = strtok(cmd->cmd, " "); in sb_build_dcd() 578 if (!tok) { in sb_build_dcd() 586 ret = sb_token_to_long(tok, &id); in sb_build_dcd() 620 char *tok; in sb_build_dcd_block() local [all …]
|
H A D | proftool.c | 389 char *s, *tok; in read_trace_config() local 409 tok = strtok_r(s, " \t", &saveptr); in read_trace_config() 410 if (!tok) { in read_trace_config() 415 if (0 == strcmp(tok, "include-func")) { in read_trace_config() 417 } else if (0 == strcmp(tok, "exclude-func")) { in read_trace_config() 425 tok = strtok_r(NULL, " \t", &saveptr); in read_trace_config() 426 if (!tok) { in read_trace_config() 432 err = regcomp(&line->regex, tok, REG_NOSUB); in read_trace_config() 435 "compile", tok); in read_trace_config() 441 line->name = strdup(tok); in read_trace_config()
|
/openbmc/linux/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()
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/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()
|
/openbmc/qemu/scripts/qapi/ |
H A D | parser.py | 103 self.tok: Union[None, str] = None 134 while self.tok is not None: 136 if self.tok == '#': 295 self.tok = self.src[self.cursor] 300 if self.tok == '#': 308 elif self.tok in '{}:,[]': 310 elif self.tok == "'": 344 elif self.tok == '\n': 346 self.tok = None 350 elif not self.tok.isspace(): [all …]
|
/openbmc/linux/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->width = OPAL_WIDTH_TINY; in response_parse_tiny() [all …]
|
/openbmc/linux/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()
|
/openbmc/openbmc/poky/bitbake/lib/ply/ |
H A D | lex.py | 323 tok = LexToken() 324 tok.value = m.group() 325 tok.lineno = self.lineno 326 tok.lexpos = lexpos 329 func,tok.type = lexindexfunc[i] 333 if tok.type: 335 return tok 344 tok.lexer = self # Set additional attributes useful in token rules 348 newtok = func(tok) 367 tok = LexToken() [all …]
|
/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/u-boot/common/eeprom/ |
H A D | eeprom_field.c | 75 char *tok; in __eeprom_field_update_bin_delim() local 88 tok = strtok(value, delimiter); in __eeprom_field_update_bin_delim() 89 for (i = 0; tok && i < field->size; i++) { in __eeprom_field_update_bin_delim() 90 val = simple_strtoul(tok, &endptr, 0); in __eeprom_field_update_bin_delim() 96 tok = strtok(NULL, delimiter); in __eeprom_field_update_bin_delim()
|
/openbmc/openbmc/poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/ |
H A D | 05_wildcard_matching.patch | 27 + if (strchr(tok, '*') || strchr(tok,'?')) { /* contains '*' or '?' */ 28 + return (match_pattern_ylo(string,tok)); 31 if (tok[0] == '.') { /* suffix */ 32 n = strlen(string) - strlen(tok); 33 return (n > 0 && STR_EQ(tok, string + n));
|
H A D | 11_tcpd_blacklist.patch | 71 + char tok[BUFSIZ]; 76 + while (fscanf(fp, "%s", tok) == 1 && !(match = host_match(tok, host))) 87 static int host_match(tok, host) 92 + } else if (tok[0] == '/') { /* /file hack */ 93 + return (hostfile_match(tok, host)); 94 } else if (STR_EQ(tok, "KNOWN")) { /* check address and name */
|
/openbmc/linux/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()
|
/openbmc/linux/drivers/usb/fotg210/ |
H A D | fotg210-hcd.h | 324 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument 326 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument 327 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument 549 #define FOTG210_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
|
/openbmc/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 …]
|
/openbmc/u-boot/drivers/mmc/ |
H A D | mmc_spi.c | 118 u8 tok[2]; in mmc_spi_writedata() local 120 tok[0] = 0xff; in mmc_spi_writedata() 121 tok[1] = multi ? SPI_TOKEN_MULTI_WRITE : SPI_TOKEN_SINGLE; in mmc_spi_writedata() 126 spi_xfer(spi, 2 * 8, tok, NULL, 0); in mmc_spi_writedata() 156 tok[1] = SPI_TOKEN_STOP_TRAN; in mmc_spi_writedata() 157 spi_xfer(spi, 2 * 8, tok, NULL, 0); in mmc_spi_writedata()
|
/openbmc/u-boot/board/compulab/common/ |
H A D | eeprom.c | 235 char *tok = strtok(value, "."); in eeprom_field_update_bin_ver() local 236 if (tok == NULL) in eeprom_field_update_bin_ver() 239 int num = simple_strtol(tok, &endptr, 0); in eeprom_field_update_bin_ver() 243 tok = strtok(NULL, ""); in eeprom_field_update_bin_ver() 244 if (tok == NULL) in eeprom_field_update_bin_ver() 247 int remainder = simple_strtol(tok, &endptr, 0); in eeprom_field_update_bin_ver()
|