/linux-6.3-rc2/arch/powerpc/sysdev/ |
A D | tsi108_pci.c | 52 volatile unsigned char *cfg_addr; in tsi108_direct_write_config() local 59 cfg_addr = (unsigned char *)(tsi_mk_config_addr(bus->number, in tsi108_direct_write_config() 66 printk("%d ADDR=0x%08x ", len, (uint) cfg_addr); in tsi108_direct_write_config() 72 out_8((u8 *) cfg_addr, val); in tsi108_direct_write_config() 75 out_le16((u16 *) cfg_addr, val); in tsi108_direct_write_config() 78 out_le32((u32 *) cfg_addr, val); in tsi108_direct_write_config() 136 volatile unsigned char *cfg_addr; in tsi108_direct_read_config() local 151 __tsi108_read_pci_config(temp, cfg_addr, "lbzx"); in tsi108_direct_read_config() 154 __tsi108_read_pci_config(temp, cfg_addr, "lhbrx"); in tsi108_direct_read_config() 157 __tsi108_read_pci_config(temp, cfg_addr, "lwbrx"); in tsi108_direct_read_config() [all …]
|
A D | indirect_pci.c | 50 out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | in __indirect_read_config() 53 out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | in __indirect_read_config() 116 out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | in indirect_write_config() 119 out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | in indirect_write_config() 159 void setup_indirect_pci(struct pci_controller *hose, resource_size_t cfg_addr, in setup_indirect_pci() argument 162 resource_size_t base = cfg_addr & PAGE_MASK; in setup_indirect_pci() 166 hose->cfg_addr = mbase + (cfg_addr & ~PAGE_MASK); in setup_indirect_pci()
|
A 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()
|
A D | fsl_pci.c | 639 hose, hose->cfg_addr, hose->cfg_data); in fsl_add_bridge() 657 ((unsigned long)hose->cfg_addr & PAGE_MASK)) in fsl_add_bridge() 659 iounmap(hose->cfg_addr); in fsl_add_bridge() 888 hose, hose->cfg_addr, hose->cfg_data); in mpc83xx_add_bridge()
|
/linux-6.3-rc2/arch/powerpc/platforms/amigaone/ |
A D | setup.c | 35 const u32 *cfg_addr, *cfg_data; in amigaone_add_bridge() local 42 cfg_addr = of_get_address(dev, 0, NULL, NULL); in amigaone_add_bridge() 44 if ((cfg_addr == NULL) || (cfg_data == NULL)) in amigaone_add_bridge() 59 setup_indirect_pci(hose, cfg_addr[0], cfg_data[0], 0); in amigaone_add_bridge()
|
/linux-6.3-rc2/arch/powerpc/platforms/powermac/ |
A D | pci.c | 155 out_le32(hose->cfg_addr, caddr); in macrisc_cfg_map_bus() 156 } while (in_le32(hose->cfg_addr) != caddr); in macrisc_cfg_map_bus() 209 hose->cfg_addr = ioremap(addr->start + 0x800000, 0x1000); in setup_chaos() 278 return ((void __iomem *)hose->cfg_addr) + (offset << 2); in u3_ht_cfg_access() 417 out_le32(hose->cfg_addr, caddr); in u4_pcie_cfg_map_bus() 418 } while (in_le32(hose->cfg_addr) != caddr); in u4_pcie_cfg_map_bus() 464 out_le32(bp->cfg_addr, in init_bandit() 640 hose->cfg_addr = ioremap(0xf0000000 + 0x800000, 0x1000); in setup_u3_agp() 651 hose->cfg_addr = ioremap(0xf0000000 + 0x800000, 0x1000); in setup_u4_pcie() 739 decode = in_be32(hose->cfg_addr + 0x80); in setup_u3_ht() [all …]
|
/linux-6.3-rc2/drivers/regulator/ |
A 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() 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() 560 rinfo->cfg_addr, ret); in max77620_regulator_get_mode() 665 .cfg_addr = MAX77620_REG_##_id##_CFG, \ [all …]
|
/linux-6.3-rc2/arch/powerpc/platforms/maple/ |
A 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()
|
/linux-6.3-rc2/samples/vfio-mdev/ |
A D | mdpy.c | 149 u32 cfg_addr; in handle_pci_cfg_write() local 153 cfg_addr = *(u32 *)buf; in handle_pci_cfg_write() 155 if (cfg_addr == 0xffffffff) { in handle_pci_cfg_write() 156 cfg_addr = (cfg_addr & mdev_state->bar_mask); in handle_pci_cfg_write() 158 cfg_addr &= PCI_BASE_ADDRESS_MEM_MASK; in handle_pci_cfg_write() 159 if (cfg_addr) in handle_pci_cfg_write() 160 dev_info(dev, "BAR0 @ 0x%x\n", cfg_addr); in handle_pci_cfg_write() 163 cfg_addr |= (mdev_state->vconfig[offset] & in handle_pci_cfg_write() 165 STORE_LE32(&mdev_state->vconfig[offset], cfg_addr); in handle_pci_cfg_write()
|
A 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()
|
A D | mtty.c | 256 u32 cfg_addr, bar_mask, bar_index = 0; in handle_pci_cfg_write() local 284 cfg_addr = *(u32 *)buf; in handle_pci_cfg_write() 285 pr_info("BAR%d addr 0x%x\n", bar_index, cfg_addr); in handle_pci_cfg_write() 287 if (cfg_addr == 0xffffffff) { in handle_pci_cfg_write() 289 cfg_addr = (cfg_addr & bar_mask); in handle_pci_cfg_write() 292 cfg_addr |= (mdev_state->vconfig[offset] & 0x3ul); in handle_pci_cfg_write() 293 STORE_LE32(&mdev_state->vconfig[offset], cfg_addr); in handle_pci_cfg_write()
|
/linux-6.3-rc2/drivers/ata/ |
A 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()
|
A 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()
|
/linux-6.3-rc2/arch/powerpc/platforms/52xx/ |
A D | mpc52xx_pci.c | 118 out_be32(hose->cfg_addr, in mpc52xx_pci_read_config() 158 out_be32(hose->cfg_addr, 0); in mpc52xx_pci_read_config() 175 out_be32(hose->cfg_addr, in mpc52xx_pci_write_config() 222 out_be32(hose->cfg_addr, 0); in mpc52xx_pci_write_config() 250 hose->cfg_addr = &pci_regs->car; in mpc52xx_pci_setup()
|
/linux-6.3-rc2/arch/powerpc/platforms/pseries/ |
A D | iommu.c | 1015 u32 cfg_addr, ext_query, query_out[5]; in query_ddw() local 1039 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in query_ddw() 1042 cfg_addr, BUID_HI(buid), BUID_LO(buid)); in query_ddw() 1061 ddw_avail[DDW_QUERY_PE_DMA_WIN], cfg_addr, BUID_HI(buid), in query_ddw() 1074 u32 cfg_addr; in create_ddw() local 1087 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in create_ddw() 1092 (u32 *)create, cfg_addr, BUID_HI(buid), in create_ddw() 1098 ddw_avail[DDW_CREATE_PE_DMA_WIN], cfg_addr, BUID_HI(buid), in create_ddw() 1149 u32 cfg_addr, reset_dma_win; in reset_dma_window() local 1161 cfg_addr = (pdn->busno << 16) | (pdn->devfn << 8); in reset_dma_window() [all …]
|
/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | pci-bridge.h | 83 unsigned int __iomem *cfg_addr; member 155 resource_size_t cfg_addr,
|
/linux-6.3-rc2/arch/xtensa/include/asm/ |
A D | pci-bridge.h | 43 volatile unsigned int *cfg_addr; member
|
/linux-6.3-rc2/drivers/pci/controller/ |
A D | pci-xgene.c | 67 unsigned long cfg_addr; member 358 port->cfg_addr = res->start; in xgene_pcie_map_reg() 397 u64 addr = port->cfg_addr; in xgene_pcie_setup_cfg_reg()
|
A D | pci-hyperv.c | 503 void __iomem *cfg_addr; member 1063 void __iomem *addr = hpdev->hbus->cfg_addr + CFG_PAGE_OFFSET + where; in _hv_pcifront_read_config() 1093 writel(hpdev->desc.win_slot.slot, hpdev->hbus->cfg_addr); in _hv_pcifront_read_config() 1124 void __iomem *addr = hpdev->hbus->cfg_addr + CFG_PAGE_OFFSET + in hv_pcifront_get_vendor_id() 1130 writel(hpdev->desc.win_slot.slot, hpdev->hbus->cfg_addr); in hv_pcifront_get_vendor_id() 1156 void __iomem *addr = hpdev->hbus->cfg_addr + CFG_PAGE_OFFSET + where; in _hv_pcifront_write_config() 1164 writel(hpdev->desc.win_slot.slot, hpdev->hbus->cfg_addr); in _hv_pcifront_write_config() 3610 hbus->cfg_addr = ioremap(hbus->mem_config->start, in hv_pci_probe() 3612 if (!hbus->cfg_addr) { in hv_pci_probe() 3707 iounmap(hbus->cfg_addr); in hv_pci_probe() [all …]
|
/linux-6.3-rc2/arch/parisc/kernel/ |
A D | firmware.c | 1004 unsigned int pdc_pci_config_read(void *hpa, unsigned long cfg_addr) 1013 __pa(pdc_result), hpa, cfg_addr&~3UL, 4UL); 1028 void pdc_pci_config_write(void *hpa, unsigned long cfg_addr, unsigned int val) 1037 cfg_addr&~3UL, 4UL, (unsigned long) val);
|
/linux-6.3-rc2/drivers/misc/cxl/ |
A D | vphb.c | 239 phb->cfg_addr = NULL; in cxl_pci_vphb_add()
|
/linux-6.3-rc2/drivers/iommu/ |
A D | fsl_pamu_domain.c | 353 version = in_be32(pci_ctl->cfg_addr + (PCI_FSL_BRR1 >> 2)); in check_pci_ctl_endpt_part()
|
/linux-6.3-rc2/arch/powerpc/platforms/4xx/ |
A D | pci.c | 1595 return (void __iomem *)port->hose->cfg_addr; in ppc4xx_pciex_get_config_base() 1979 hose->cfg_addr = mbase; in ppc4xx_pciex_port_setup_hose() 1984 hose->cfg_addr, hose->cfg_data); in ppc4xx_pciex_port_setup_hose() 1989 mbase = (void __iomem *)hose->cfg_addr; in ppc4xx_pciex_port_setup_hose()
|
/linux-6.3-rc2/drivers/net/ethernet/huawei/hinic/ |
A D | hinic_hw_dev.h | 411 u32 cfg_addr; member
|
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb4/ |
A D | t4_hw.c | 10163 int ret, i, n, cfg_addr; in t4_load_cfg() local 10168 cfg_addr = t4_flash_cfg_addr(adap); in t4_load_cfg() 10169 if (cfg_addr < 0) in t4_load_cfg() 10170 return cfg_addr; in t4_load_cfg() 10172 addr = cfg_addr; in t4_load_cfg() 10710 int ret, i, n, cfg_addr; in t4_load_bootcfg() local 10712 cfg_addr = t4_flash_bootcfg_addr(adap); in t4_load_bootcfg() 10713 if (cfg_addr < 0) in t4_load_bootcfg() 10714 return cfg_addr; in t4_load_bootcfg() 10716 addr = cfg_addr; in t4_load_bootcfg() [all …]
|