Home
last modified time | relevance | path

Searched refs:where (Results 1 – 25 of 188) sorted by relevance

12345678

/drivers/pci/controller/
A Dpci-thunder-ecam.c20 int shift = (where & 3) * 8; in set_val()
38 int where_a = where & 0xc; in handle_ea_bar()
41 set_val(e0, where, size, val); in handle_ea_bar()
52 set_val(v, where, size, val); in handle_ea_bar()
70 set_val(v, where, size, val); in handle_ea_bar()
89 int where_a = where & ~3; in thunder_ecam_p2_config_read()
132 int where_a = where & ~3; in thunder_ecam_config_read()
164 ((where >= 0x10 && where < 0x2c) || in thunder_ecam_config_read()
165 (where >= 0x1a4 && where < 0x1bc))) { in thunder_ecam_config_read()
328 if ((where >= 0x10 && where < 0x2c) || in thunder_ecam_config_write()
[all …]
A Dpcie-altera.c416 if ((where & 0x7) == 0) in tlp_cfg_dword_write()
546 cra_writeb(pcie, value, where); in aglx_ep_write_cfg()
549 cra_writew(pcie, value, where); in aglx_ep_write_cfg()
595 where, size, value); in _altera_pcie_cfg_read()
599 byte_en = 1 << (where & 3); in _altera_pcie_cfg_read()
602 byte_en = 3 << (where & 3); in _altera_pcie_cfg_read()
634 u32 shift = 8 * (where & 3); in _altera_pcie_cfg_write()
639 where, size, value); in _altera_pcie_cfg_write()
643 where, size, value); in _altera_pcie_cfg_write()
648 byte_en = 1 << (where & 3); in _altera_pcie_cfg_write()
[all …]
A Dpci-thunder-pem.c39 int where, int size, u32 *val) in thunder_pem_bridge_read() argument
45 if (devfn != 0 || where >= 2048) in thunder_pem_bridge_read()
53 read_val = where & ~3ull; in thunder_pem_bridge_read()
62 switch (where & ~3) { in thunder_pem_bridge_read()
123 read_val >>= (8 * (where & 3)); in thunder_pem_bridge_read()
139 int where, int size, u32 *val) in thunder_pem_config_read() argument
215 int where, int size, u32 val) in thunder_pem_bridge_write() argument
220 u64 where_aligned = where & ~3ull; in thunder_pem_bridge_write()
224 if (devfn != 0 || where >= 2048) in thunder_pem_bridge_write()
238 mask = ~(0xff << (8 * (where & 3))); in thunder_pem_bridge_write()
[all …]
A Dpci-ixp4xx.c196 PCI_FUNC(devfn), where) & in ixp4xx_config_addr()
222 n = where % 4; in ixp4xx_crp_read_config()
223 cmd = where & ~3; in ixp4xx_crp_read_config()
226 __func__, where, size, cmd); in ixp4xx_crp_read_config()
260 n = where % 4; in ixp4xx_crp_write_config()
264 cmd |= where & ~3; in ixp4xx_crp_write_config()
270 __func__, where, size, cmd, val); in ixp4xx_crp_write_config()
294 int where, int size, u32 *value) in ixp4xx_pci_read_config() argument
302 n = where % 4; in ixp4xx_pci_read_config()
341 int where, int size, u32 value) in ixp4xx_pci_write_config() argument
[all …]
A Dpcie-iproc.c462 int where) in iproc_pcie_map_ep_cfg_reg() argument
529 switch (where & ~0x3) { in iproc_pcie_fix_cap()
569 int where, int size, u32 *val) in iproc_pcie_config_read() argument
625 int where) in iproc_pcie_map_cfg_bus() argument
635 where & CFG_IND_ADDR_MASK); in iproc_pcie_map_cfg_bus()
648 int where) in iproc_pcie_bus_map_cfg_bus() argument
651 where); in iproc_pcie_bus_map_cfg_bus()
673 unsigned int devfn, int where, in iproc_pci_raw_config_write32() argument
690 tmp |= val << ((where & 0x3) * 8); in iproc_pci_raw_config_write32()
697 int where, int size, u32 *val) in iproc_pcie_config_read32() argument
[all …]
A Dpci-loongson.c191 unsigned int devfn, int where) in cfg0_map() argument
200 addroff |= (devfn << 8) | where; in cfg0_map()
205 unsigned int devfn, int where) in cfg1_map() argument
214 addroff |= (devfn << 8) | (where & 0xff) | ((where & 0xf00) << 16); in cfg1_map()
226 unsigned int devfn, int where) in pci_loongson_map_bus() argument
248 if (where < PCI_CFG_SPACE_SIZE && priv->cfg0_base) in pci_loongson_map_bus()
249 return cfg0_map(priv, bus, devfn, where); in pci_loongson_map_bus()
252 if (where < PCI_CFG_SPACE_EXP_SIZE && priv->cfg1_base) in pci_loongson_map_bus()
253 return cfg1_map(priv, bus, devfn, where); in pci_loongson_map_bus()
A Dpcie-rcar-host.c159 unsigned int devfn, int where, u32 *data) in rcar_pcie_config_access() argument
174 reg = where & ~3; in rcar_pcie_config_access()
238 int where, int size, u32 *val) in rcar_pcie_read_conf() argument
244 bus, devfn, where, val); in rcar_pcie_read_conf()
254 bus->number, devfn, where, size, *val); in rcar_pcie_read_conf()
261 int where, int size, u32 val) in rcar_pcie_write_conf() argument
269 bus, devfn, where, &data); in rcar_pcie_write_conf()
274 bus->number, devfn, where, size, val); in rcar_pcie_write_conf()
277 shift = BITS_PER_BYTE * (where & 3); in rcar_pcie_write_conf()
281 shift = BITS_PER_BYTE * (where & 2); in rcar_pcie_write_conf()
[all …]
A Dpcie-rockchip-host.c93 int where, int size, u32 *val) in rockchip_pcie_rd_own_conf() argument
97 addr = rockchip->apb_base + PCIE_RC_CONFIG_NORMAL_BASE + where; in rockchip_pcie_rd_own_conf()
118 int where, int size, u32 val) in rockchip_pcie_wr_own_conf() argument
123 offset = where & ~0x3; in rockchip_pcie_wr_own_conf()
131 mask = ~(((1 << (size * 8)) - 1) << ((where & 0x3) * 8)); in rockchip_pcie_wr_own_conf()
139 tmp |= val << ((where & 0x3) * 8); in rockchip_pcie_wr_own_conf()
147 int where, int size, u32 *val) in rockchip_pcie_rd_other_conf() argument
180 int where, int size, u32 val) in rockchip_pcie_wr_other_conf() argument
217 return rockchip_pcie_rd_own_conf(rockchip, where, size, val); in rockchip_pcie_rd_conf()
224 int where, int size, u32 val) in rockchip_pcie_wr_conf() argument
[all …]
A Dpcie-rcar.c24 void rcar_rmw32(struct rcar_pcie *pcie, int where, u32 mask, u32 data) in rcar_rmw32() argument
26 unsigned int shift = BITS_PER_BYTE * (where & 3); in rcar_rmw32()
27 u32 val = rcar_pci_read_reg(pcie, where & ~3); in rcar_rmw32()
31 rcar_pci_write_reg(pcie, val, where & ~3); in rcar_rmw32()
A Dpcie-mediatek.c127 #define CFG_HEADER_DW1(where, size) \ argument
128 (GENMASK(((size) - 1), 0) << ((where) & 0x3))
283 int where, int size, u32 *val) in mtk_pcie_hw_rd_cfg() argument
307 *val = (*val >> (8 * (where & 3))) & 0xff; in mtk_pcie_hw_rd_cfg()
309 *val = (*val >> (8 * (where & 3))) & 0xffff; in mtk_pcie_hw_rd_cfg()
315 int where, int size, u32 val) in mtk_pcie_hw_wr_cfg() argument
325 val = val << 8 * (where & 3); in mtk_pcie_hw_wr_cfg()
362 int where, int size, u32 *val) in mtk_pcie_config_read() argument
375 int where, int size, u32 val) in mtk_pcie_config_write() argument
748 unsigned int devfn, int where) in mtk_pcie_map_bus() argument
[all …]
/drivers/pci/
A Daccess.c89 int where, int size, u32 *val) in pci_generic_config_read() argument
93 addr = bus->ops->map_bus(bus, devfn, where); in pci_generic_config_read()
109 int where, int size, u32 val) in pci_generic_config_write() argument
113 addr = bus->ops->map_bus(bus, devfn, where); in pci_generic_config_write()
129 int where, int size, u32 *val) in pci_generic_config_read32() argument
133 addr = bus->ops->map_bus(bus, devfn, where & ~0x3); in pci_generic_config_read32()
147 int where, int size, u32 val) in pci_generic_config_write32() argument
152 addr = bus->ops->map_bus(bus, devfn, where & ~0x3); in pci_generic_config_write32()
173 PCI_SLOT(devfn), PCI_FUNC(devfn), where); in pci_generic_config_write32()
177 mask = ~(((1 << (size * 8)) - 1) << ((where & 0x3) * 8)); in pci_generic_config_write32()
[all …]
A Dpci-bridge-emul.c458 int pci_bridge_emul_conf_read(struct pci_bridge_emul *bridge, int where, in pci_bridge_emul_conf_read() argument
462 int reg = where & ~3; in pci_bridge_emul_conf_read()
520 *value = (*value >> (8 * (where & 3))) & 0xff; in pci_bridge_emul_conf_read()
522 *value = (*value >> (8 * (where & 3))) & 0xffff; in pci_bridge_emul_conf_read()
535 int pci_bridge_emul_conf_write(struct pci_bridge_emul *bridge, int where, in pci_bridge_emul_conf_write() argument
538 int reg = where & ~3; in pci_bridge_emul_conf_write()
572 shift = (where & 0x3) * 8; in pci_bridge_emul_conf_write()
/drivers/video/fbdev/i810/
A Di810.h291 #define i810_readb(where, mmio) readb(mmio + where) argument
292 #define i810_readw(where, mmio) readw(mmio + where) argument
293 #define i810_readl(where, mmio) readl(mmio + where) argument
294 #define i810_writeb(where, mmio, val) writeb(val, mmio + where) argument
295 #define i810_writew(where, mmio, val) writew(val, mmio + where) argument
296 #define i810_writel(where, mmio, val) writel(val, mmio + where) argument
/drivers/md/
A Ddm-io.c307 struct dm_io_region *where, struct dpages *dp, in do_region() argument
315 sector_t remaining = where->count; in do_region()
316 struct request_queue *q = bdev_get_queue(where->bdev); in do_region()
355 bio->bi_iter.bi_sector = where->sector + (where->count - remaining); in do_region()
387 struct dm_io_region *where, struct dpages *dp, in dispatch_io() argument
401 if (where[i].count || (opf & REQ_PREFLUSH)) in dispatch_io()
402 do_region(opf, i, where + i, dp, io, ioprio); in dispatch_io()
413 struct dm_io_region *where, blk_opf_t opf, in async_io() argument
429 dispatch_io(opf, num_regions, where, dp, io, ioprio); in async_io()
453 async_io(client, num_regions, where, opf | REQ_SYNC, dp, in sync_io()
[all …]
/drivers/pci/controller/dwc/
A Dpcie-hisi.c26 static int hisi_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, in hisi_pcie_rd_conf() argument
37 return pci_generic_config_read32(bus, devfn, where, in hisi_pcie_rd_conf()
41 return pci_generic_config_read(bus, devfn, where, size, val); in hisi_pcie_rd_conf()
45 int where, int size, u32 val) in hisi_pcie_wr_conf() argument
55 return pci_generic_config_write32(bus, devfn, where, in hisi_pcie_wr_conf()
59 return pci_generic_config_write(bus, devfn, where, size, val); in hisi_pcie_wr_conf()
63 int where) in hisi_pcie_map_bus() argument
69 return pcie->reg_base + where; in hisi_pcie_map_bus()
71 return pci_ecam_map_bus(bus, devfn, where); in hisi_pcie_map_bus()
A Dpcie-tegra194-acpi.c67 unsigned int devfn, int where) in tegra194_map_bus() argument
79 return pcie_ecam->dbi_base + where; in tegra194_map_bus()
99 return pcie_ecam->config_base + where; in tegra194_map_bus()
/drivers/pci/pcie/
A Daer_inject.c138 static u32 *find_pci_config_dword(struct aer_error *err, int where, in find_pci_config_dword() argument
147 switch (where - err->pos_cap_err) { in find_pci_config_dword()
181 static int aer_inj_read(struct pci_bus *bus, unsigned int devfn, int where, in aer_inj_read() argument
193 rv = ops->read(bus, devfn, where, size, val); in aer_inj_read()
211 rv = ops->write(bus, devfn, where, size, val); in aer_inj_write()
218 int where, int size, u32 *val) in aer_inj_read_config() argument
236 sim = find_pci_config_dword(err, where, NULL); in aer_inj_read_config()
243 rv = aer_inj_read(bus, devfn, where, size, val); in aer_inj_read_config()
249 int where, int size, u32 val) in aer_inj_write_config() argument
268 sim = find_pci_config_dword(err, where, &rw1cs); in aer_inj_write_config()
[all …]
/drivers/isdn/mISDN/
A Dfsm.c119 mISDN_FsmDelTimer(struct FsmTimer *ft, int where) in mISDN_FsmDelTimer() argument
124 (long) ft, where); in mISDN_FsmDelTimer()
132 int millisec, int event, void *arg, int where) in mISDN_FsmAddTimer() argument
138 (long) ft, millisec, where); in mISDN_FsmAddTimer()
160 int millisec, int event, void *arg, int where) in mISDN_FsmRestartTimer() argument
166 (long) ft, millisec, where); in mISDN_FsmRestartTimer()
/drivers/video/fbdev/
A Dvga16fb.c851 char __iomem *where; in vga_8planes_fillrect() local
884 rmw(where); in vga_8planes_fillrect()
1142 char __iomem *where; in vga_8planes_imageblit() local
1150 readb(where); in vga_8planes_imageblit()
1184 writeb(image->bg_color, where); in vga_imageblit_expand()
1186 readb(where); /* fill latches */ in vga_imageblit_expand()
1190 dst = where; in vga_imageblit_expand()
1205 dst = where; in vga_imageblit_expand()
1234 char __iomem *where = in vga_imageblit_color() local
1251 dst = where + x/8; in vga_imageblit_color()
[all …]
/drivers/md/bcache/
A Dbset.h302 void bch_bset_insert(struct btree_keys *b, struct bkey *where,
431 bool __bch_cut_front(const struct bkey *where, struct bkey *k);
432 bool __bch_cut_back(const struct bkey *where, struct bkey *k);
434 static inline bool bch_cut_front(const struct bkey *where, struct bkey *k) in bch_cut_front() argument
436 BUG_ON(bkey_cmp(where, k) > 0); in bch_cut_front()
437 return __bch_cut_front(where, k); in bch_cut_front()
440 static inline bool bch_cut_back(const struct bkey *where, struct bkey *k) in bch_cut_back() argument
442 BUG_ON(bkey_cmp(where, &START_KEY(k)) < 0); in bch_cut_back()
443 return __bch_cut_back(where, k); in bch_cut_back()
A Dbset.c201 if (bkey_cmp(where, &START_KEY(k)) <= 0) in __bch_cut_front()
204 if (bkey_cmp(where, k) < 0) in __bch_cut_front()
205 len = KEY_OFFSET(k) - KEY_OFFSET(where); in __bch_cut_front()
207 bkey_copy_key(k, where); in __bch_cut_front()
221 if (bkey_cmp(where, k) >= 0) in __bch_cut_back()
224 BUG_ON(KEY_INODE(where) != KEY_INODE(k)); in __bch_cut_back()
226 if (bkey_cmp(where, &START_KEY(k)) > 0) in __bch_cut_back()
227 len = KEY_OFFSET(where) - KEY_START(k); in __bch_cut_back()
229 bkey_copy_key(k, where); in __bch_cut_back()
868 where, in bch_bset_insert()
[all …]
/drivers/mfd/
A Dlpc_sch.c78 static int lpc_sch_get_io(struct pci_dev *pdev, int where, const char *name, in lpc_sch_get_io() argument
87 pci_read_config_dword(pdev, where, &base_addr_cfg); in lpc_sch_get_io()
107 static int lpc_sch_populate_cell(struct pci_dev *pdev, int where, in lpc_sch_populate_cell() argument
118 ret = lpc_sch_get_io(pdev, where, name, res, size); in lpc_sch_populate_cell()
/drivers/media/pci/ivtv/
A Divtv-firmware.c323 int ivtv_firmware_check(struct ivtv *itv, char *where) in ivtv_firmware_check() argument
329 IVTV_WARN("Encoder has died : %s\n", where); in ivtv_firmware_check()
340 IVTV_WARN("Audio has died (Encoder OK) : %s\n", where); in ivtv_firmware_check()
352 where); in ivtv_firmware_check()
359 IVTV_WARN("Decoder has died : %s\n", where); in ivtv_firmware_check()
368 where); in ivtv_firmware_check()
/drivers/pci/controller/plda/
A Dpcie-starfive.c86 int where, int size, u32 value) in starfive_pcie_config_write() argument
88 if (starfive_pcie_hide_rc_bar(bus, devfn, where)) in starfive_pcie_config_write()
91 return pci_generic_config_write(bus, devfn, where, size, value); in starfive_pcie_config_write()
95 int where, int size, u32 *value) in starfive_pcie_config_read() argument
97 if (starfive_pcie_hide_rc_bar(bus, devfn, where)) { in starfive_pcie_config_read()
102 return pci_generic_config_read(bus, devfn, where, size, value); in starfive_pcie_config_read()
/drivers/accessibility/speakup/
A Dvarhandlers.c169 struct punc_var_t *where; in spk_get_punc_var() local
171 where = punc_vars; in spk_get_punc_var()
172 while ((where->var_id != -1) && (!rv)) { in spk_get_punc_var()
173 if (where->var_id == var_id) in spk_get_punc_var()
174 rv = where; in spk_get_punc_var()
176 where++; in spk_get_punc_var()

Completed in 89 milliseconds

12345678