Home
last modified time | relevance | path

Searched refs:cfg_base (Results 1 – 10 of 10) sorted by relevance

/Linux-v4.19/arch/mips/pci/
Dops-lantiq.c31 unsigned long cfg_base; in ltq_pci_config_access() local
43 cfg_base = (unsigned long) ltq_pci_mapped_cfg; in ltq_pci_config_access()
44 cfg_base |= (bus->number << LTQ_PCI_CFG_BUSNUM_SHF) | (devfn << in ltq_pci_config_access()
49 ltq_w32(swab32(*data), ((u32 *)cfg_base)); in ltq_pci_config_access()
51 *data = ltq_r32(((u32 *)(cfg_base))); in ltq_pci_config_access()
57 cfg_base = (unsigned long) ltq_pci_mapped_cfg; in ltq_pci_config_access()
58 cfg_base |= (0x0 << LTQ_PCI_CFG_FUNNUM_SHF) + 4; in ltq_pci_config_access()
59 temp = ltq_r32(((u32 *)(cfg_base))); in ltq_pci_config_access()
61 cfg_base = (unsigned long) ltq_pci_mapped_cfg; in ltq_pci_config_access()
62 cfg_base |= (0x68 << LTQ_PCI_CFG_FUNNUM_SHF) + 4; in ltq_pci_config_access()
[all …]
Dpci-ar71xx.c52 void __iomem *cfg_base; member
112 void __iomem *base = apc->cfg_base; in ar71xx_pci_check_error()
150 void __iomem *base = apc->cfg_base; in ar71xx_pci_local_write()
167 void __iomem *base = apc->cfg_base; in ar71xx_pci_set_cfgaddr()
183 void __iomem *base = apc->cfg_base; in ar71xx_pci_read_config()
207 void __iomem *base = apc->cfg_base; in ar71xx_pci_write_config()
343 apc->cfg_base = devm_ioremap_resource(&pdev->dev, res); in ar71xx_pci_probe()
344 if (IS_ERR(apc->cfg_base)) in ar71xx_pci_probe()
345 return PTR_ERR(apc->cfg_base); in ar71xx_pci_probe()
Dpci-alchemy.c105 unsigned long offset, status, cfg_base, flags, entryLo0, entryLo1, r; in config_access() local
130 cfg_base = (1 << device) << 11; in config_access()
132 cfg_base = 0x80000000 | (bus->number << 16) | (device << 11); in config_access()
137 offset |= cfg_base & ~PAGE_MASK; in config_access()
140 cfg_base = cfg_base & PAGE_MASK; in config_access()
145 entryLo0 = (6 << 26) | (cfg_base >> 6) | (2 << 3) | 7; in config_access()
146 entryLo1 = (6 << 26) | (cfg_base >> 6) | (0x1000 >> 6) | (2 << 3) | 7; in config_access()
/Linux-v4.19/drivers/net/can/sja1000/
Dpeak_pci.c43 void __iomem *cfg_base; /* Common for all channels */ member
150 void __iomem *cfg_base; /* Common for all channels */ member
168 u8 gp_outen = readb(card->cfg_base + PITA_GPOEN) & ~PITA_GPIN_SCL; in pita_set_scl_highz()
169 writeb(gp_outen, card->cfg_base + PITA_GPOEN); in pita_set_scl_highz()
174 u8 gp_outen = readb(card->cfg_base + PITA_GPOEN) & ~PITA_GPIN_SDA; in pita_set_sda_highz()
175 writeb(gp_outen, card->cfg_base + PITA_GPOEN); in pita_set_sda_highz()
191 gp_out = readb(card->cfg_base + PITA_GPOUT) & ~PITA_GPIN_SDA; in pita_setsda()
192 writeb(gp_out, card->cfg_base + PITA_GPOUT); in pita_setsda()
195 gp_outen = readb(card->cfg_base + PITA_GPOEN); in pita_setsda()
201 writeb(gp_outen, card->cfg_base + PITA_GPOEN); in pita_setsda()
[all …]
/Linux-v4.19/drivers/ide/
Dtrm290.c237 unsigned int cfg_base = pci_resource_start(dev, 4); in init_hwif_trm290() local
241 if ((dev->class & 5) && cfg_base) in init_hwif_trm290()
244 cfg_base = 0x3df0; in init_hwif_trm290()
247 printk(KERN_CONT " config base at 0x%04x\n", cfg_base); in init_hwif_trm290()
248 hwif->config_data = cfg_base; in init_hwif_trm290()
249 hwif->dma_base = (cfg_base + 4) ^ (hwif->channel ? 0x80 : 0); in init_hwif_trm290()
/Linux-v4.19/drivers/pci/controller/
Dpci-xgene.c69 void __iomem *cfg_base; member
110 return port->cfg_base + AXI_EP_CFG_ACCESS; in xgene_pcie_get_cfg_base()
112 return port->cfg_base; in xgene_pcie_get_cfg_base()
247 port->cfg_base = cfg->win; in xgene_pcie_ecam_init()
359 port->cfg_base = devm_ioremap_resource(dev, res); in xgene_pcie_map_reg()
360 if (IS_ERR(port->cfg_base)) in xgene_pcie_map_reg()
361 return PTR_ERR(port->cfg_base); in xgene_pcie_map_reg()
490 void __iomem *cfg_base = port->cfg_base; in xgene_pcie_setup_ib_reg() local
515 bar_addr = cfg_base + PCI_BASE_ADDRESS_0; in xgene_pcie_setup_ib_reg()
Dpcie-cadence-host.c34 void __iomem *cfg_base; member
86 return rc->cfg_base + (where & 0xfff); in cdns_pci_map_bus()
285 rc->cfg_base = devm_pci_remap_cfg_resource(dev, res); in cdns_pcie_host_probe()
286 if (IS_ERR(rc->cfg_base)) { in cdns_pcie_host_probe()
288 return PTR_ERR(rc->cfg_base); in cdns_pcie_host_probe()
/Linux-v4.19/arch/mips/ath79/
Dpci.c168 unsigned long cfg_base, in ath79_register_pci_ar724x() argument
183 res[0].start = cfg_base; in ath79_register_pci_ar724x()
184 res[0].end = cfg_base + AR724X_PCI_CFG_SIZE - 1; in ath79_register_pci_ar724x()
/Linux-v4.19/drivers/gpu/drm/i915/gvt/
Dcfg_space.c67 u8 *cfg_base = vgpu_cfg_space(vgpu); in vgpu_pci_cfg_mem_write() local
73 old = cfg_base[off + i]; in vgpu_pci_cfg_mem_write()
84 cfg_base[off + i] = (old & ~mask) | new; in vgpu_pci_cfg_mem_write()
89 memcpy(cfg_base + off + i, src + i, bytes - i); in vgpu_pci_cfg_mem_write()
/Linux-v4.19/drivers/net/usb/
Dsmsc75xx.c1539 int cfg_base = WUF_CFGX + filter * 4; in smsc75xx_write_wuff() local
1543 ret = smsc75xx_write_reg(dev, cfg_base, wuf_cfg); in smsc75xx_write_wuff()