Home
last modified time | relevance | path

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

/drivers/gpu/drm/i915/
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 …]
Di915_pci.c1011 char *s, *p, *tok; in force_probe() local
1025 for (p = s, ret = false; (tok = strsep(&p, ",")) != NULL; ) { in force_probe()
1028 if (kstrtou16(tok, 16, &val) == 0 && val == device_id) { in force_probe()
/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()
/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 …]
/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()
/drivers/gpu/drm/i915/selftests/
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()
/drivers/usb/host/
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
Dehci.h300 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument
302 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument
303 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument
523 #define EHCI_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) argument
Doxu210hp-hcd.c217 #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) argument
240 #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) argument
242 #define QTD_CERR(tok) (((tok)>>10) & 0x3) argument
243 #define QTD_PID(tok) (((tok)>>8) & 0x3) argument
/drivers/net/ethernet/netronome/nfp/nfpcore/
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 …]
/drivers/firmware/
Dqemu_fw_cfg.c496 char *name_copy, *p, *tok; in fw_cfg_build_symlink() local
507 while ((tok = strsep(&p, "/")) && *tok) { in fw_cfg_build_symlink()
511 ret = sysfs_create_link(&dir->kobj, target, tok); in fw_cfg_build_symlink()
516 ko = kset_find_obj(dir, tok); in fw_cfg_build_symlink()
538 ret = kobject_set_name(&subdir->kobj, "%s", tok); in fw_cfg_build_symlink()
/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.h355 #define h_reg_crq(ua, tok, sz) \ argument
356 plpar_hcall_norets(H_REG_CRQ, ua, tok, sz)
/drivers/s390/block/
Ddasd_devmap.c136 char *tok; in dasd_busid() local
161 tok = strsep(&str, "."); in dasd_busid()
162 if (kstrtouint(tok, 16, &val) || val > 0xff) in dasd_busid()
166 tok = strsep(&str, "."); in dasd_busid()
167 if (kstrtouint(tok, 16, &val) || val > 0xff) in dasd_busid()
171 tok = strsep(&str, "."); in dasd_busid()
172 if (kstrtouint(tok, 16, &val) || val > 0xffff) in dasd_busid()
/drivers/usb/early/
Dehci-dbgp.c150 static inline u32 dbgp_pid_write_update(u32 x, u32 tok) in dbgp_pid_write_update() argument
154 return (x & 0xffff0000) | (data0 << 8) | (tok & 0xff); in dbgp_pid_write_update()
157 static inline u32 dbgp_pid_read_update(u32 x, u32 tok) in dbgp_pid_read_update() argument
159 return (x & 0xffff0000) | (USB_PID_DATA0 << 8) | (tok & 0xff); in dbgp_pid_read_update()
/drivers/staging/rtl8192u/
Dr819xU_cmdpkt.h28 u8 tok:1; /* Transmit ok. */ member
Dr819xU_cmdpkt.c88 if (pstx_fb->tok) { in cmpk_count_txstatistic()
/drivers/s390/crypto/
Dzcrypt_ccamisc.c333 u8 tok[0]; in cca_genseckey() member
422 prepparm->lv3.keyblock.tok, 8*keysize); in cca_genseckey()
429 memcpy(seckey, prepparm->lv3.keyblock.tok, SECKEYBLOBSIZE); in cca_genseckey()
474 u8 tok[0]; in cca_clr2seckey() member
560 prepparm->lv3.keyblock.tok, 8*keysize); in cca_clr2seckey()
568 memcpy(seckey, prepparm->lv3.keyblock.tok, SECKEYBLOBSIZE); in cca_clr2seckey()
/drivers/soc/fsl/dpio/
Dqbman-portal.c1106 p->tok = QMAN_DQ_TOKEN_VALID; in qbman_swp_pull_direct()
1142 p->tok = QMAN_DQ_TOKEN_VALID; in qbman_swp_pull_mem_back()
1372 if (dq->dq.tok != QMAN_DQ_TOKEN_VALID) in qbman_result_has_new_result()
1380 ((struct dpaa2_dq *)dq)->dq.tok = 0; in qbman_result_has_new_result()
Dqbman-portal.h40 u8 tok; member
/drivers/net/ethernet/chelsio/cxgb3/
Dt3_hw.c686 char tok[256]; in vpdstrtouint() local
688 memcpy(tok, s, len); in vpdstrtouint()
689 tok[len] = 0; in vpdstrtouint()
690 return kstrtouint(strim(tok), base, val); in vpdstrtouint()
695 char tok[256]; in vpdstrtou16() local
697 memcpy(tok, s, len); in vpdstrtou16()
698 tok[len] = 0; in vpdstrtou16()
699 return kstrtou16(strim(tok), base, val); in vpdstrtou16()
/drivers/net/wireless/realtek/rtl818x/rtl8187/
Ddev.c499 bool tok; in rtl8187b_status_cb() local
505 tok = val & (1 << 15); in rtl8187b_status_cb()
533 if (tok) in rtl8187b_status_cb()