/kernel/linux/linux-5.10/arch/microblaze/pci/ |
D | indirect_pci.c | 46 out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | in indirect_read_config() 49 out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | in indirect_read_config() 100 out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | in indirect_write_config() 103 out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | in indirect_write_config() 145 resource_size_t cfg_addr, in setup_indirect_pci() argument 148 resource_size_t base = cfg_addr & PAGE_MASK; in setup_indirect_pci() 152 hose->cfg_addr = mbase + (cfg_addr & ~PAGE_MASK); in setup_indirect_pci()
|
/kernel/linux/linux-5.10/arch/powerpc/sysdev/ |
D | indirect_pci.c | 51 out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | in __indirect_read_config() 54 out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | in __indirect_read_config() 117 out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | in indirect_write_config() 120 out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | in indirect_write_config() 160 void setup_indirect_pci(struct pci_controller *hose, resource_size_t cfg_addr, in setup_indirect_pci() argument 163 resource_size_t base = cfg_addr & PAGE_MASK; in setup_indirect_pci() 167 hose->cfg_addr = mbase + (cfg_addr & ~PAGE_MASK); in setup_indirect_pci()
|
D | tsi108_pci.c | 51 volatile unsigned char *cfg_addr; in tsi108_direct_write_config() local 58 cfg_addr = (unsigned char *)(tsi_mk_config_addr(bus->number, in tsi108_direct_write_config() 65 printk("%d ADDR=0x%08x ", len, (uint) cfg_addr); in tsi108_direct_write_config() 71 out_8((u8 *) cfg_addr, val); in tsi108_direct_write_config() 74 out_le16((u16 *) cfg_addr, val); in tsi108_direct_write_config() 77 out_le32((u32 *) cfg_addr, val); in tsi108_direct_write_config() 135 volatile unsigned char *cfg_addr; in tsi108_direct_read_config() local 143 cfg_addr = (unsigned char *)(tsi_mk_config_addr(bus->number, in tsi108_direct_read_config() 150 __tsi108_read_pci_config(temp, cfg_addr, "lbzx"); in tsi108_direct_read_config() 153 __tsi108_read_pci_config(temp, cfg_addr, "lhbrx"); in tsi108_direct_read_config() [all …]
|
D | grackle.c | 30 out_be32(bp->cfg_addr, GRACKLE_CFA(0, 0, 0xa8)); in grackle_set_stg() 34 out_be32(bp->cfg_addr, GRACKLE_CFA(0, 0, 0xa8)); in grackle_set_stg() 43 out_be32(bp->cfg_addr, GRACKLE_CFA(0, 0, 0xa8)); in grackle_set_loop_snoop() 47 out_be32(bp->cfg_addr, GRACKLE_CFA(0, 0, 0xa8)); in grackle_set_loop_snoop()
|
D | fsl_pci.c | 625 hose, hose->cfg_addr, hose->cfg_data); in fsl_add_bridge() 643 ((unsigned long)hose->cfg_addr & PAGE_MASK)) in fsl_add_bridge() 645 iounmap(hose->cfg_addr); in fsl_add_bridge() 874 hose, hose->cfg_addr, hose->cfg_data); in mpc83xx_add_bridge()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/amigaone/ |
D | setup.c | 34 const u32 *cfg_addr, *cfg_data; in amigaone_add_bridge() local 41 cfg_addr = of_get_address(dev, 0, NULL, NULL); in amigaone_add_bridge() 43 if ((cfg_addr == NULL) || (cfg_data == NULL)) in amigaone_add_bridge() 58 setup_indirect_pci(hose, cfg_addr[0], cfg_data[0], 0); in amigaone_add_bridge()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/powermac/ |
D | pci.c | 154 out_le32(hose->cfg_addr, caddr); in macrisc_cfg_map_bus() 155 } while (in_le32(hose->cfg_addr) != caddr); in macrisc_cfg_map_bus() 208 hose->cfg_addr = ioremap(addr->start + 0x800000, 0x1000); in setup_chaos() 277 return ((void __iomem *)hose->cfg_addr) + (offset << 2); in u3_ht_cfg_access() 416 out_le32(hose->cfg_addr, caddr); in u4_pcie_cfg_map_bus() 417 } while (in_le32(hose->cfg_addr) != caddr); in u4_pcie_cfg_map_bus() 457 out_le32(bp->cfg_addr, (1UL << BANDIT_DEVNUM) + PCI_VENDOR_ID); in init_bandit() 463 out_le32(bp->cfg_addr, in init_bandit() 476 out_le32(bp->cfg_addr, (1UL << BANDIT_DEVNUM) + BANDIT_MAGIC); in init_bandit() 605 hose->cfg_addr = ioremap(addr->start + 0x800000, 0x1000); in setup_bandit() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/maple/ |
D | pci.c | 110 out_le32(hose->cfg_addr, caddr); in u3_agp_cfg_access() 111 } while (in_le32(hose->cfg_addr) != caddr); in u3_agp_cfg_access() 211 addr = hose->cfg_addr; in u3_ht_root_read_config() 234 addr = hose->cfg_addr + ((offset & ~3) << 2) + (4 - len - (offset & 3)); in u3_ht_root_write_config() 364 out_le32(hose->cfg_addr, caddr); in u4_pcie_cfg_access() 365 } while (in_le32(hose->cfg_addr) != caddr); in u4_pcie_cfg_access() 454 hose->cfg_addr = ioremap(0xf0000000 + 0x800000, 0x1000); in setup_u3_agp() 466 hose->cfg_addr = ioremap(0xf0000000 + 0x800000, 0x1000); in setup_u4_pcie() 481 hose->cfg_addr = ioremap(0xf8070000, 0x1000); in setup_u3_ht()
|
/kernel/linux/linux-5.10/drivers/regulator/ |
D | max77620-regulator.c | 64 u8 cfg_addr; member 218 addr = rinfo->cfg_addr; in max77620_regulator_set_power_mode() 247 addr = rinfo->cfg_addr; in max77620_regulator_get_power_mode() 271 ret = regmap_read(pmic->rmap, rinfo->cfg_addr, &rval); in max77620_read_slew_rate() 274 rinfo->cfg_addr, ret); in max77620_read_slew_rate() 341 ret = regmap_update_bits(pmic->rmap, rinfo->cfg_addr, mask, val); in max77620_set_slew_rate() 369 ret = regmap_update_bits(pmic->rmap, rinfo->cfg_addr, in max77620_config_power_ok() 373 rinfo->cfg_addr, ret); in max77620_config_power_ok() 521 ret = regmap_update_bits(pmic->rmap, rinfo->cfg_addr, in max77620_regulator_set_mode() 525 rinfo->cfg_addr, ret); in max77620_regulator_set_mode() [all …]
|
/kernel/linux/linux-5.10/drivers/ata/ |
D | sata_uli.c | 96 unsigned int cfg_addr = get_scr_cfg_addr(link->ap, sc_reg); in uli_scr_cfg_read() local 99 pci_read_config_dword(pdev, cfg_addr, &val); in uli_scr_cfg_read() 106 unsigned int cfg_addr = get_scr_cfg_addr(link->ap, scr); in uli_scr_cfg_write() local 108 pci_write_config_dword(pdev, cfg_addr, val); in uli_scr_cfg_write()
|
D | sata_sis.c | 132 unsigned int cfg_addr = get_scr_cfg_addr(link, sc_reg); in sis_scr_cfg_read() local 137 pci_read_config_dword(pdev, cfg_addr, val); in sis_scr_cfg_read() 145 unsigned int cfg_addr = get_scr_cfg_addr(link, sc_reg); in sis_scr_cfg_write() local 147 pci_write_config_dword(pdev, cfg_addr, val); in sis_scr_cfg_write()
|
/kernel/linux/linux-5.10/samples/vfio-mdev/ |
D | mdpy.c | 154 u32 cfg_addr; in handle_pci_cfg_write() local 158 cfg_addr = *(u32 *)buf; in handle_pci_cfg_write() 160 if (cfg_addr == 0xffffffff) { in handle_pci_cfg_write() 161 cfg_addr = (cfg_addr & mdev_state->bar_mask); in handle_pci_cfg_write() 163 cfg_addr &= PCI_BASE_ADDRESS_MEM_MASK; in handle_pci_cfg_write() 164 if (cfg_addr) in handle_pci_cfg_write() 165 dev_info(dev, "BAR0 @ 0x%x\n", cfg_addr); in handle_pci_cfg_write() 168 cfg_addr |= (mdev_state->vconfig[offset] & in handle_pci_cfg_write() 170 STORE_LE32(&mdev_state->vconfig[offset], cfg_addr); in handle_pci_cfg_write()
|
D | mbochs.c | 310 u32 cfg_addr; in handle_pci_cfg_write() local 315 cfg_addr = *(u32 *)buf; in handle_pci_cfg_write() 317 if (cfg_addr == 0xffffffff) { in handle_pci_cfg_write() 318 cfg_addr = (cfg_addr & mdev_state->bar_mask[index]); in handle_pci_cfg_write() 320 cfg_addr &= PCI_BASE_ADDRESS_MEM_MASK; in handle_pci_cfg_write() 321 if (cfg_addr) in handle_pci_cfg_write() 323 index, cfg_addr); in handle_pci_cfg_write() 326 cfg_addr |= (mdev_state->vconfig[offset] & in handle_pci_cfg_write() 328 STORE_LE32(&mdev_state->vconfig[offset], cfg_addr); in handle_pci_cfg_write()
|
D | mtty.c | 240 u32 cfg_addr, bar_mask, bar_index = 0; in handle_pci_cfg_write() local 268 cfg_addr = *(u32 *)buf; in handle_pci_cfg_write() 269 pr_info("BAR%d addr 0x%x\n", bar_index, cfg_addr); in handle_pci_cfg_write() 271 if (cfg_addr == 0xffffffff) { in handle_pci_cfg_write() 273 cfg_addr = (cfg_addr & bar_mask); in handle_pci_cfg_write() 276 cfg_addr |= (mdev_state->vconfig[offset] & 0x3ul); in handle_pci_cfg_write() 277 STORE_LE32(&mdev_state->vconfig[offset], cfg_addr); in handle_pci_cfg_write()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/52xx/ |
D | mpc52xx_pci.c | 117 out_be32(hose->cfg_addr, in mpc52xx_pci_read_config() 157 out_be32(hose->cfg_addr, 0); in mpc52xx_pci_read_config() 174 out_be32(hose->cfg_addr, in mpc52xx_pci_write_config() 221 out_be32(hose->cfg_addr, 0); in mpc52xx_pci_write_config() 249 hose->cfg_addr = &pci_regs->car; in mpc52xx_pci_setup()
|
/kernel/linux/linux-5.10/arch/microblaze/include/asm/ |
D | pci-bridge.h | 56 unsigned int __iomem *cfg_addr; member 125 resource_size_t cfg_addr,
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
D | iommu.c | 937 u32 cfg_addr, ext_query, query_out[5]; in query_ddw() local 961 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in query_ddw() 964 cfg_addr, BUID_HI(buid), BUID_LO(buid)); in query_ddw() 966 ddw_avail[DDW_QUERY_PE_DMA_WIN], cfg_addr, BUID_HI(buid), in query_ddw() 994 u32 cfg_addr; in create_ddw() local 1007 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in create_ddw() 1012 (u32 *)create, cfg_addr, BUID_HI(buid), in create_ddw() 1018 ddw_avail[DDW_CREATE_PE_DMA_WIN], cfg_addr, BUID_HI(buid), in create_ddw() 1069 u32 cfg_addr, reset_dma_win; in reset_dma_window() local 1081 cfg_addr = (pdn->busno << 16) | (pdn->devfn << 8); in reset_dma_window() [all …]
|
/kernel/linux/linux-5.10/arch/xtensa/include/asm/ |
D | pci-bridge.h | 43 volatile unsigned int *cfg_addr; member
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
D | pci-bridge.h | 83 unsigned int __iomem *cfg_addr; member 151 resource_size_t cfg_addr,
|
/kernel/linux/linux-5.10/drivers/pci/controller/ |
D | pci-hyperv.c | 467 void __iomem *cfg_addr; member 673 void __iomem *addr = hpdev->hbus->cfg_addr + CFG_PAGE_OFFSET + where; in _hv_pcifront_read_config() 703 writel(hpdev->desc.win_slot.slot, hpdev->hbus->cfg_addr); in _hv_pcifront_read_config() 734 void __iomem *addr = hpdev->hbus->cfg_addr + CFG_PAGE_OFFSET + in hv_pcifront_get_vendor_id() 740 writel(hpdev->desc.win_slot.slot, hpdev->hbus->cfg_addr); in hv_pcifront_get_vendor_id() 766 void __iomem *addr = hpdev->hbus->cfg_addr + CFG_PAGE_OFFSET + where; in _hv_pcifront_write_config() 774 writel(hpdev->desc.win_slot.slot, hpdev->hbus->cfg_addr); in _hv_pcifront_write_config() 3131 hbus->cfg_addr = ioremap(hbus->mem_config->start, in hv_pci_probe() 3133 if (!hbus->cfg_addr) { in hv_pci_probe() 3228 iounmap(hbus->cfg_addr); in hv_pci_probe() [all …]
|
D | pci-xgene.c | 70 unsigned long cfg_addr; member 362 port->cfg_addr = res->start; in xgene_pcie_map_reg() 401 u64 addr = port->cfg_addr; in xgene_pcie_setup_cfg_reg()
|
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
D | firmware.c | 962 unsigned int pdc_pci_config_read(void *hpa, unsigned long cfg_addr) 971 __pa(pdc_result), hpa, cfg_addr&~3UL, 4UL); 986 void pdc_pci_config_write(void *hpa, unsigned long cfg_addr, unsigned int val) 995 cfg_addr&~3UL, 4UL, (unsigned long) val);
|
/kernel/linux/linux-5.10/drivers/misc/cxl/ |
D | vphb.c | 246 phb->cfg_addr = NULL; in cxl_pci_vphb_add()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/4xx/ |
D | pci.c | 1594 return (void __iomem *)port->hose->cfg_addr; in ppc4xx_pciex_get_config_base() 1978 hose->cfg_addr = mbase; in ppc4xx_pciex_port_setup_hose() 1983 hose->cfg_addr, hose->cfg_data); in ppc4xx_pciex_port_setup_hose() 1988 mbase = (void __iomem *)hose->cfg_addr; in ppc4xx_pciex_port_setup_hose()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_dev.h | 345 u32 cfg_addr; member
|