Home
last modified time | relevance | path

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

1234

/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/upm/upm/
H A D0001-Use-stdint-types.patch25 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 …]
/OK3568_Linux_fs/kernel/scripts/
H A Dspdxcheck.py15 def __init__(self, tok, txt): argument
16 self.tok = tok
100 def validate(self, tok): argument
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, 'Exception not valid for license %s' %self.lastid)
112 elif tok.type != 'WITH':
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/
H A Di915_mitigations.c32 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 += 2; in mitigations_set()
70 if (*tok == '\0') in mitigations_set()
[all …]
/OK3568_Linux_fs/u-boot/tools/
H A Dmxsimage.c504 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 Dproftool.c390 char *s, *tok; in read_trace_config() local
410 tok = strtok_r(s, " \t", &saveptr); in read_trace_config()
411 if (!tok) { in read_trace_config()
416 if (0 == strcmp(tok, "include-func")) { in read_trace_config()
418 } else if (0 == strcmp(tok, "exclude-func")) { in read_trace_config()
426 tok = strtok_r(NULL, " \t", &saveptr); in read_trace_config()
427 if (!tok) { in read_trace_config()
433 err = regcomp(&line->regex, tok, REG_NOSUB); in read_trace_config()
436 "compile", tok); in read_trace_config()
442 line->name = strdup(tok); in read_trace_config()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/
H A Dtoken_functions.hpp127 void do_escape(iterator& next,iterator end,Token& tok) { in do_escape() argument
131 tok+='\n'; in do_escape()
135 tok+=*next; in do_escape()
139 tok+=*next; in do_escape()
143 tok+=*next; in do_escape()
162 bool operator()(InputIterator& next,InputIterator end,Token& tok) { in operator ()() argument
164 tok = Token(); in operator ()()
177 do_escape(next,end,tok); in operator ()()
188 else tok+=*next; in operator ()()
194 tok += *next; in operator ()()
[all …]
/OK3568_Linux_fs/yocto/poky/meta/recipes-extended/pam/libpam/
H A DCVE-2022-28321-0002.patch29 @@ -637,7 +637,7 @@ remote_match (pam_handle_t *pamh, char *tok, struct login_info *item)
31 && strcasecmp(tok, string + str_len - tok_len) == 0)
33 - } else if (tok[tok_len - 1] == '.') {
34 + } else if (tok[tok_len - 1] == '.') { /* internet network numbers (end with ".") */
38 @@ -678,7 +678,7 @@ remote_match (pam_handle_t *pamh, char *tok, struct login_info *item)
44 return network_netmask_match(pamh, tok, string, item);
47 @@ -696,7 +696,7 @@ string_match (pam_handle_t *pamh, const char *tok, const char *string,
55 if (strcasecmp(tok, "ALL") == 0) { /* all: always matches */
56 @@ -714,7 +714,8 @@ string_match (pam_handle_t *pamh, const char *tok, const char *string,
59 * where string is a hostname or ip (v4,v6) address and tok
[all …]
/OK3568_Linux_fs/kernel/Documentation/usb/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/dma-buf/
H A 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()
/OK3568_Linux_fs/kernel/block/
H A Dsed-opal.c551 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->width = OPAL_WIDTH_TINY; in response_parse_tiny()
[all …]
/OK3568_Linux_fs/kernel/drivers/parisc/
H A 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 …]
/OK3568_Linux_fs/kernel/tools/perf/arch/s390/annotate/
H A 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()
/OK3568_Linux_fs/yocto/poky/bitbake/lib/ply/
H A Dlex.py323 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 …]
/OK3568_Linux_fs/kernel/tools/lib/traceevent/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/isdn/mISDN/
H A 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/selftests/
H A Di915_selftest.c245 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()
/OK3568_Linux_fs/kernel/tools/perf/pmu-events/
H A Djsmn.c34 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()
/OK3568_Linux_fs/u-boot/common/eeprom/
H A Deeprom_field.c76 char *tok; in __eeprom_field_update_bin_delim() local
89 tok = strtok(value, delimiter); in __eeprom_field_update_bin_delim()
90 for (i = 0; tok && i < field->size; i++) { in __eeprom_field_update_bin_delim()
91 val = simple_strtoul(tok, &endptr, 0); in __eeprom_field_update_bin_delim()
97 tok = strtok(NULL, delimiter); in __eeprom_field_update_bin_delim()
/OK3568_Linux_fs/yocto/poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/
H A D05_wildcard_matching.patch27 + 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 D11_tcpd_blacklist.patch71 + 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 */
/OK3568_Linux_fs/kernel/drivers/usb/host/
H A Dfotg210.h326 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument
328 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument
329 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument
551 #define FOTG210_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
/OK3568_Linux_fs/kernel/arch/x86/kernel/cpu/resctrl/
H A Dctrlmondata.c284 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dnfp6000_pcie.c198 int tgt, int act, int tok, u64 offset, size_t size, int width) in compute_bar() argument
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() argument
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() argument
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() argument
[all …]
/OK3568_Linux_fs/external/xserver/xkb/
H A Dmaprules.c259 char *tok, *str; in SetUpRemap() local
271 while ((tok = _XStrtok(str, " ", strtok_buf)) != NULL) { in SetUpRemap()
274 if (strcmp(tok, "=") == 0) in SetUpRemap()
278 if (strncmp(cname[i], tok, len) == 0) { in SetUpRemap()
279 if (strlen(tok) > len) { in SetUpRemap()
280 char *end = get_index(tok + len, &ndx); in SetUpRemap()
299 DebugF("Component \"%s\" listed twice\n", tok); in SetUpRemap()
315 fprintf(stderr, "Unknown component \"%s\" ignored\n", tok); in SetUpRemap()
374 char *str, *tok; in CheckLine() local
419 for (nread = 0; (tok = _XStrtok(str, " ", strtok_buf)) != NULL; nread++) { in CheckLine()
[all …]
/OK3568_Linux_fs/u-boot/drivers/mmc/
H A Dmmc_spi.c118 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()

1234