Home
last modified time | relevance | path

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

123456

/drivers/pci/host/
Dpci-thunder-ecam.c17 static void set_val(u32 v, int where, int size, u32 *val) in set_val() argument
19 int shift = (where & 3) * 8; in set_val()
21 pr_debug("set_val %04x: %08x\n", (unsigned)(where & ~3), v); in set_val()
31 unsigned int devfn, int where, int size, u32 *val) in handle_ea_bar() argument
37 int where_a = where & 0xc; in handle_ea_bar()
40 set_val(e0, where, size, val); in handle_ea_bar()
52 set_val(v, where, size, val); in handle_ea_bar()
71 set_val(v, where, size, val); in handle_ea_bar()
81 set_val(v, where, size, val); in handle_ea_bar()
88 int where, int size, u32 *val) in thunder_ecam_p2_config_read() argument
[all …]
Dpci-thunder-pem.c33 int where, int size, u32 *val) in thunder_pem_bridge_read() argument
39 if (devfn != 0 || where >= 2048) { in thunder_pem_bridge_read()
49 read_val = where & ~3ull; in thunder_pem_bridge_read()
58 switch (where & ~3) { in thunder_pem_bridge_read()
104 read_val >>= (8 * (where & 3)); in thunder_pem_bridge_read()
120 int where, int size, u32 *val) in thunder_pem_config_read() argument
133 return thunder_pem_bridge_read(bus, devfn, where, size, val); in thunder_pem_config_read()
135 return pci_generic_config_read(bus, devfn, where, size, val); in thunder_pem_config_read()
196 int where, int size, u32 val) in thunder_pem_bridge_write() argument
201 u64 where_aligned = where & ~3ull; in thunder_pem_bridge_write()
[all …]
Dpcie-altera.c225 int where, u8 byte_en, u32 *value) in tlp_cfg_dword_read() argument
231 headers[2] = TLP_CFG_DW2(bus, devfn, where); in tlp_cfg_dword_read()
239 int where, u8 byte_en, u32 value) in tlp_cfg_dword_write() argument
246 headers[2] = TLP_CFG_DW2(bus, devfn, where); in tlp_cfg_dword_write()
249 if ((where & 0x7) == 0) in tlp_cfg_dword_write()
262 if ((bus == pcie->root_bus_nr) && (where == PCI_PRIMARY_BUS)) in tlp_cfg_dword_write()
269 unsigned int devfn, int where, int size, in _altera_pcie_cfg_read() argument
278 byte_en = 1 << (where & 3); in _altera_pcie_cfg_read()
281 byte_en = 3 << (where & 3); in _altera_pcie_cfg_read()
289 (where & ~DWORD_MASK), byte_en, &data); in _altera_pcie_cfg_read()
[all …]
Dpci-mvebu.c50 #define PCIE_CONF_ADDR(bus, devfn, where) \ argument
52 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | PCIE_CONF_REG(where) | \
284 u32 devfn, int where, int size, u32 *val) in mvebu_pcie_hw_rd_conf() argument
288 mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where), in mvebu_pcie_hw_rd_conf()
293 *val = readb_relaxed(conf_data + (where & 3)); in mvebu_pcie_hw_rd_conf()
296 *val = readw_relaxed(conf_data + (where & 2)); in mvebu_pcie_hw_rd_conf()
308 u32 devfn, int where, int size, u32 val) in mvebu_pcie_hw_wr_conf() argument
312 mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where), in mvebu_pcie_hw_wr_conf()
317 writeb(val, conf_data + (where & 3)); in mvebu_pcie_hw_wr_conf()
320 writew(val, conf_data + (where & 2)); in mvebu_pcie_hw_wr_conf()
[all …]
Dpcie-hisi.c47 static int hisi_pcie_cfg_read(struct pcie_port *pp, int where, int size, in hisi_pcie_cfg_read() argument
54 walker += (where & 0x3); in hisi_pcie_cfg_read()
55 reg = where & ~0x3; in hisi_pcie_cfg_read()
71 static int hisi_pcie_cfg_write(struct pcie_port *pp, int where, int size, in hisi_pcie_cfg_write() argument
78 walker += (where & 0x3); in hisi_pcie_cfg_write()
79 reg = where & ~0x3; in hisi_pcie_cfg_write()
Dpcie-rcar.c170 static void rcar_rmw32(struct rcar_pcie *pcie, int where, u32 mask, u32 data) in rcar_rmw32() argument
172 int shift = 8 * (where & 3); in rcar_rmw32()
173 u32 val = rcar_pci_read_reg(pcie, where & ~3); in rcar_rmw32()
177 rcar_pci_write_reg(pcie, val, where & ~3); in rcar_rmw32()
180 static u32 rcar_read_conf(struct rcar_pcie *pcie, int where) in rcar_read_conf() argument
182 int shift = 8 * (where & 3); in rcar_read_conf()
183 u32 val = rcar_pci_read_reg(pcie, where & ~3); in rcar_read_conf()
191 unsigned int devfn, int where, u32 *data) in rcar_pcie_config_access() argument
197 reg = where & ~3; in rcar_pcie_config_access()
269 int where, int size, u32 *val) in rcar_pcie_read_conf() argument
[all …]
Dpcie-designware.c175 static int dw_pcie_rd_own_conf(struct pcie_port *pp, int where, int size, in dw_pcie_rd_own_conf() argument
179 return pp->ops->rd_own_conf(pp, where, size, val); in dw_pcie_rd_own_conf()
181 return dw_pcie_cfg_read(pp->dbi_base + where, size, val); in dw_pcie_rd_own_conf()
184 static int dw_pcie_wr_own_conf(struct pcie_port *pp, int where, int size, in dw_pcie_wr_own_conf() argument
188 return pp->ops->wr_own_conf(pp, where, size, val); in dw_pcie_wr_own_conf()
190 return dw_pcie_cfg_write(pp->dbi_base + where, size, val); in dw_pcie_wr_own_conf()
680 u32 devfn, int where, int size, u32 *val) in dw_pcie_rd_other_conf() argument
688 return pp->ops->rd_other_conf(pp, bus, devfn, where, size, val); in dw_pcie_rd_other_conf()
708 ret = dw_pcie_cfg_read(va_cfg_base + where, size, val); in dw_pcie_rd_other_conf()
718 u32 devfn, int where, int size, u32 val) in dw_pcie_wr_other_conf() argument
[all …]
Dpcie-designware.h59 int (*rd_own_conf)(struct pcie_port *pp, int where, int size, u32 *val);
60 int (*wr_own_conf)(struct pcie_port *pp, int where, int size, u32 val);
62 unsigned int devfn, int where, int size, u32 *val);
64 unsigned int devfn, int where, int size, u32 val);
Dpci-hyperv.c526 static void _hv_pcifront_read_config(struct hv_pci_dev *hpdev, int where, in _hv_pcifront_read_config() argument
530 void __iomem *addr = hpdev->hbus->cfg_addr + CFG_PAGE_OFFSET + where; in _hv_pcifront_read_config()
535 if (where + size <= PCI_COMMAND) { in _hv_pcifront_read_config()
536 memcpy(val, ((u8 *)&hpdev->desc.v_id) + where, size); in _hv_pcifront_read_config()
537 } else if (where >= PCI_CLASS_REVISION && where + size <= in _hv_pcifront_read_config()
539 memcpy(val, ((u8 *)&hpdev->desc.rev) + where - in _hv_pcifront_read_config()
541 } else if (where >= PCI_SUBSYSTEM_VENDOR_ID && where + size <= in _hv_pcifront_read_config()
543 memcpy(val, (u8 *)&hpdev->desc.subsystem_id + where - in _hv_pcifront_read_config()
545 } else if (where >= PCI_ROM_ADDRESS && where + size <= in _hv_pcifront_read_config()
549 } else if (where >= PCI_INTERRUPT_LINE && where + size <= in _hv_pcifront_read_config()
[all …]
Dpcie-rockchip.c269 int where, int size, u32 *val) in rockchip_pcie_rd_own_conf() argument
273 addr = rockchip->apb_base + PCIE_RC_CONFIG_NORMAL_BASE + where; in rockchip_pcie_rd_own_conf()
294 int where, int size, u32 val) in rockchip_pcie_wr_own_conf() argument
299 offset = where & ~0x3; in rockchip_pcie_wr_own_conf()
307 mask = ~(((1 << (size * 8)) - 1) << ((where & 0x3) * 8)); in rockchip_pcie_wr_own_conf()
315 tmp |= val << ((where & 0x3) * 8); in rockchip_pcie_wr_own_conf()
323 int where, int size, u32 *val) in rockchip_pcie_rd_other_conf() argument
328 PCI_FUNC(devfn), where); in rockchip_pcie_rd_other_conf()
350 int where, int size, u32 val) in rockchip_pcie_wr_other_conf() argument
355 PCI_FUNC(devfn), where); in rockchip_pcie_wr_other_conf()
[all …]
/drivers/video/fbdev/i810/
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/
Ddm-io.c282 struct dm_io_region *where, struct dpages *dp, in do_region() argument
290 sector_t remaining = where->count; in do_region()
291 struct request_queue *q = bdev_get_queue(where->bdev); in do_region()
325 bio->bi_iter.bi_sector = where->sector + (where->count - remaining); in do_region()
326 bio->bi_bdev = where->bdev; in do_region()
367 struct dm_io_region *where, struct dpages *dp, in dispatch_io() argument
384 if (where[i].count || (op_flags & REQ_PREFLUSH)) in dispatch_io()
385 do_region(op, op_flags, i, where + i, dp, io); in dispatch_io()
409 struct dm_io_region *where, int op, int op_flags, in sync_io() argument
432 dispatch_io(op, op_flags, num_regions, where, dp, io, 1); in sync_io()
[all …]
/drivers/gpu/drm/mga/
Dmga_warp.c58 int n_pipes, where; in mga_warp_install_microcode() local
89 where = 0; in mga_warp_install_microcode()
94 where++; in mga_warp_install_microcode()
97 if (where != n_pipes) { in mga_warp_install_microcode()
113 where = 0; in mga_warp_install_microcode()
120 dev_priv->warp_pipe_phys[where] = pcbase; in mga_warp_install_microcode()
126 where++; in mga_warp_install_microcode()
/drivers/isdn/hisax/
Dfsm.c111 FsmDelTimer(struct FsmTimer *ft, int where) in FsmDelTimer() argument
115 ft->fi->printdebug(ft->fi, "FsmDelTimer %lx %d", (long) ft, where); in FsmDelTimer()
122 int millisec, int event, void *arg, int where) in FsmAddTimer() argument
128 (long) ft, millisec, where); in FsmAddTimer()
146 int millisec, int event, void *arg, int where) in FsmRestartTimer() argument
152 (long) ft, millisec, where); in FsmRestartTimer()
Dfsm.h56 void *arg, int where);
58 void *arg, int where);
59 void FsmDelTimer(struct FsmTimer *ft, int where);
/drivers/isdn/mISDN/
Dfsm.c124 mISDN_FsmDelTimer(struct FsmTimer *ft, int where) in mISDN_FsmDelTimer() argument
129 (long) ft, where); in mISDN_FsmDelTimer()
137 int millisec, int event, void *arg, int where) in mISDN_FsmAddTimer() argument
143 (long) ft, millisec, where); in mISDN_FsmAddTimer()
166 int millisec, int event, void *arg, int where) in mISDN_FsmRestartTimer() argument
172 (long) ft, millisec, where); in mISDN_FsmRestartTimer()
/drivers/video/fbdev/
Dvga16fb.c835 char __iomem *where; in vga_8planes_fillrect() local
838 where = info->screen_base + dx + rect->dy * info->fix.line_length; in vga_8planes_fillrect()
855 writeb(rect->color, where); in vga_8planes_fillrect()
856 where++; in vga_8planes_fillrect()
858 where += line_ofs; in vga_8planes_fillrect()
868 rmw(where); in vga_8planes_fillrect()
869 rmw(where+1); in vga_8planes_fillrect()
870 where += info->fix.line_length; in vga_8planes_fillrect()
1127 char __iomem *where; in vga_8planes_imageblit() local
1131 where = info->screen_base + dx + image->dy * info->fix.line_length; in vga_8planes_imageblit()
[all …]
/drivers/staging/rts5208/
Drtsx.h67 #define rtsx_read_config_byte(chip, where, val) \ argument
68 pci_read_config_byte((chip)->rtsx->pci, where, val)
70 #define rtsx_write_config_byte(chip, where, val) \ argument
71 pci_write_config_byte((chip)->rtsx->pci, where, val)
/drivers/pci/
Daccess.c71 int where, int size, u32 *val) in pci_generic_config_read() argument
75 addr = bus->ops->map_bus(bus, devfn, where); in pci_generic_config_read()
93 int where, int size, u32 val) in pci_generic_config_write() argument
97 addr = bus->ops->map_bus(bus, devfn, where); in pci_generic_config_write()
113 int where, int size, u32 *val) in pci_generic_config_read32() argument
117 addr = bus->ops->map_bus(bus, devfn, where & ~0x3); in pci_generic_config_read32()
126 *val = (*val >> (8 * (where & 3))) & ((1 << (size * 8)) - 1); in pci_generic_config_read32()
133 int where, int size, u32 val) in pci_generic_config_write32() argument
138 addr = bus->ops->map_bus(bus, devfn, where & ~0x3); in pci_generic_config_write32()
146 mask = ~(((1 << (size * 8)) - 1) << ((where & 0x3) * 8)); in pci_generic_config_write32()
[all …]
/drivers/mfd/
Dlpc_sch.c94 static int lpc_sch_get_io(struct pci_dev *pdev, int where, const char *name, in lpc_sch_get_io() argument
103 pci_read_config_dword(pdev, where, &base_addr_cfg); in lpc_sch_get_io()
123 static int lpc_sch_populate_cell(struct pci_dev *pdev, int where, in lpc_sch_populate_cell() argument
134 ret = lpc_sch_get_io(pdev, where, name, res, size); in lpc_sch_populate_cell()
/drivers/media/pci/ivtv/
Divtv-firmware.c335 int ivtv_firmware_check(struct ivtv *itv, char *where) in ivtv_firmware_check() argument
341 IVTV_WARN("Encoder has died : %s\n", where); in ivtv_firmware_check()
352 IVTV_WARN("Audio has died (Encoder OK) : %s\n", where); in ivtv_firmware_check()
364 where); in ivtv_firmware_check()
371 IVTV_WARN("Decoder has died : %s\n", where); in ivtv_firmware_check()
380 "Reloading\n", where); in ivtv_firmware_check()
/drivers/pci/pcie/aer/
Daer_inject.c139 static u32 *find_pci_config_dword(struct aer_error *err, int where, in find_pci_config_dword() argument
148 switch (where - err->pos_cap_err) { in find_pci_config_dword()
183 int where, int size, u32 *val) in aer_inj_read_config() argument
203 sim = find_pci_config_dword(err, where, NULL); in aer_inj_read_config()
220 rv = ops->read(bus, devfn, where, size, val); in aer_inj_read_config()
227 int where, int size, u32 val) in aer_inj_write_config() argument
248 sim = find_pci_config_dword(err, where, &rw1cs); in aer_inj_write_config()
268 rv = ops->write(bus, devfn, where, size, val); in aer_inj_write_config()
/drivers/md/bcache/
Dbset.h408 static inline bool bch_cut_front(const struct bkey *where, struct bkey *k) in bch_cut_front() argument
410 BUG_ON(bkey_cmp(where, k) > 0); in bch_cut_front()
411 return __bch_cut_front(where, k); in bch_cut_front()
414 static inline bool bch_cut_back(const struct bkey *where, struct bkey *k) in bch_cut_back() argument
416 BUG_ON(bkey_cmp(where, &START_KEY(k)) < 0); in bch_cut_back()
417 return __bch_cut_back(where, k); in bch_cut_back()
Dbset.c193 bool __bch_cut_front(const struct bkey *where, struct bkey *k) in __bch_cut_front() argument
197 if (bkey_cmp(where, &START_KEY(k)) <= 0) in __bch_cut_front()
200 if (bkey_cmp(where, k) < 0) in __bch_cut_front()
201 len = KEY_OFFSET(k) - KEY_OFFSET(where); in __bch_cut_front()
203 bkey_copy_key(k, where); in __bch_cut_front()
213 bool __bch_cut_back(const struct bkey *where, struct bkey *k) in __bch_cut_back() argument
217 if (bkey_cmp(where, k) >= 0) in __bch_cut_back()
220 BUG_ON(KEY_INODE(where) != KEY_INODE(k)); in __bch_cut_back()
222 if (bkey_cmp(where, &START_KEY(k)) > 0) in __bch_cut_back()
223 len = KEY_OFFSET(where) - KEY_START(k); in __bch_cut_back()
[all …]
/drivers/staging/speakup/
Dvarhandlers.c163 struct punc_var_t *where; in spk_get_punc_var() local
165 where = punc_vars; in spk_get_punc_var()
166 while ((where->var_id != -1) && (!rv)) { in spk_get_punc_var()
167 if (where->var_id == var_id) in spk_get_punc_var()
168 rv = where; in spk_get_punc_var()
170 where++; in spk_get_punc_var()

123456