/linux/arch/mips/pci/ |
A D | pci-octeon.c | 262 pci_addr.u64 = 0; in octeon_read_config() 263 pci_addr.s.upper = 2; in octeon_read_config() 264 pci_addr.s.io = 1; in octeon_read_config() 265 pci_addr.s.did = 3; in octeon_read_config() 266 pci_addr.s.subdid = 1; in octeon_read_config() 271 pci_addr.s.reg = reg; in octeon_read_config() 296 pci_addr.u64 = 0; in octeon_write_config() 297 pci_addr.s.upper = 2; in octeon_write_config() 298 pci_addr.s.io = 1; in octeon_write_config() 299 pci_addr.s.did = 3; in octeon_write_config() [all …]
|
/linux/arch/alpha/kernel/ |
A D | core_apecs.c | 94 unsigned long *pci_addr, unsigned char *type1) in mk_conf_addr() argument 101 bus, device_fn, where, pci_addr, type1)); in mk_conf_addr() 121 *pci_addr = addr; in mk_conf_addr() 278 unsigned long addr, pci_addr; in apecs_read_config() local 283 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) in apecs_read_config() 288 addr = (pci_addr << 5) + mask + APECS_CONF; in apecs_read_config() 297 unsigned long addr, pci_addr; in apecs_write_config() local 301 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) in apecs_write_config() 305 addr = (pci_addr << 5) + mask + APECS_CONF; in apecs_write_config()
|
A D | core_lca.c | 103 unsigned long *pci_addr) in mk_conf_addr() argument 125 *pci_addr = addr; in mk_conf_addr() 205 unsigned long addr, pci_addr; in lca_read_config() local 209 if (mk_conf_addr(bus, devfn, where, &pci_addr)) in lca_read_config() 214 addr = (pci_addr << 5) + mask + LCA_CONF; in lca_read_config() 223 unsigned long addr, pci_addr; in lca_write_config() local 226 if (mk_conf_addr(bus, devfn, where, &pci_addr)) in lca_write_config() 230 addr = (pci_addr << 5) + mask + LCA_CONF; in lca_write_config()
|
A D | core_t2.c | 142 unsigned long *pci_addr, unsigned char *type1) in mk_conf_addr() argument 149 bus, device_fn, where, pci_addr, type1)); in mk_conf_addr() 169 *pci_addr = addr; in mk_conf_addr() 287 unsigned long addr, pci_addr; in t2_read_config() local 292 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) in t2_read_config() 297 addr = (pci_addr << 5) + mask + T2_CONF; in t2_read_config() 306 unsigned long addr, pci_addr; in t2_write_config() local 310 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) in t2_write_config() 314 addr = (pci_addr << 5) + mask + T2_CONF; in t2_write_config()
|
A D | core_polaris.c | 68 unsigned long *pci_addr, u8 *type1) in mk_conf_addr() argument 73 *pci_addr = (bus << 16) | (device_fn << 8) | (where) | in mk_conf_addr() 78 bus, device_fn, where, *pci_addr)); in mk_conf_addr()
|
A D | core_cia.c | 91 unsigned long *pci_addr, unsigned char *type1) in mk_conf_addr() argument 96 *pci_addr = (bus << 16) | (device_fn << 8) | where; in mk_conf_addr() 100 bus, device_fn, where, *pci_addr)); in mk_conf_addr() 212 unsigned long addr, pci_addr; in cia_read_config() local 217 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) in cia_read_config() 222 addr = (pci_addr << 5) + mask + CIA_CONF; in cia_read_config() 231 unsigned long addr, pci_addr; in cia_write_config() local 235 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) in cia_write_config() 239 addr = (pci_addr << 5) + mask + CIA_CONF; in cia_write_config()
|
A D | core_irongate.c | 83 unsigned long *pci_addr, unsigned char *type1) in mk_conf_addr() argument 90 bus, device_fn, where, pci_addr, type1)); in mk_conf_addr() 97 *pci_addr = addr; in mk_conf_addr()
|
/linux/drivers/pci/controller/cadence/ |
A D | pcie-cadence-ep.c | 184 phys_addr_t addr, u64 pci_addr, size_t size) in cdns_pcie_ep_map_addr() argument 388 u64 pci_addr, pci_addr_mask = 0xff; in cdns_pcie_ep_send_msi_irq() local 410 pci_addr <<= 32; in cdns_pcie_ep_send_msi_irq() 412 pci_addr &= GENMASK_ULL(63, 2); in cdns_pcie_ep_send_msi_irq() 421 pci_addr & ~pci_addr_mask, in cdns_pcie_ep_send_msi_irq() 423 ep->irq_pci_addr = (pci_addr & ~pci_addr_mask); in cdns_pcie_ep_send_msi_irq() 439 u64 pci_addr, pci_addr_mask = 0xff; in cdns_pcie_ep_map_msi_irq() local 465 pci_addr <<= 32; in cdns_pcie_ep_map_msi_irq() 467 pci_addr &= GENMASK_ULL(63, 2); in cdns_pcie_ep_map_msi_irq() 471 pci_addr & ~pci_addr_mask, in cdns_pcie_ep_map_msi_irq() [all …]
|
A D | pcie-cadence-host.c | 279 u64 cpu_addr, pci_addr, size, winsize; in cdns_pcie_host_bar_config() local 287 pci_addr = entry->res->start - entry->offset; in cdns_pcie_host_bar_config() 293 pci_addr, cpu_addr); in cdns_pcie_host_bar_config() 432 u64 pci_addr = res->start - entry->offset; in cdns_pcie_host_init_address_translation() local 438 pci_addr, in cdns_pcie_host_init_address_translation() 444 pci_addr, in cdns_pcie_host_init_address_translation()
|
A D | pcie-cadence.c | 28 u64 cpu_addr, u64 pci_addr, size_t size) in cdns_pcie_set_outbound_region() argument 43 (lower_32_bits(pci_addr) & GENMASK(31, 8)); in cdns_pcie_set_outbound_region() 44 addr1 = upper_32_bits(pci_addr); in cdns_pcie_set_outbound_region()
|
/linux/drivers/pci/controller/ |
A D | pcie-iproc.c | 910 u64 pci_addr, resource_size_t size) in iproc_pcie_setup_ob() argument 966 pci_addr = ALIGN_DOWN(pci_addr, window_size); in iproc_pcie_setup_ob() 971 !IS_ALIGNED(pci_addr, window_size)) { in iproc_pcie_setup_ob() 974 &axi_addr, &pci_addr); in iproc_pcie_setup_ob() 983 axi_addr, pci_addr); in iproc_pcie_setup_ob() 997 pci_addr += window_size; in iproc_pcie_setup_ob() 1061 u64 pci_addr, resource_size_t size) in iproc_pcie_ib_write() argument 1150 !IS_ALIGNED(pci_addr, region_size)) { in iproc_pcie_setup_ib() 1153 &axi_addr, &pci_addr); in iproc_pcie_setup_ib() 1160 pci_addr, size); in iproc_pcie_setup_ib() [all …]
|
A D | pcie-rockchip-ep.c | 72 u64 pci_addr, size_t size) in rockchip_pcie_prog_ep_ob_atu() argument 87 addr1 = upper_32_bits(is_nor_msg ? cpu_addr : pci_addr); in rockchip_pcie_prog_ep_ob_atu() 260 phys_addr_t addr, u64 pci_addr, in rockchip_pcie_ep_map_addr() argument 279 pci_addr, size); in rockchip_pcie_ep_map_addr() 422 u64 pci_addr, pci_addr_mask = 0xff; in rockchip_pcie_ep_send_msi_irq() local 447 pci_addr = rockchip_pcie_read(rockchip, in rockchip_pcie_ep_send_msi_irq() 451 pci_addr <<= 32; in rockchip_pcie_ep_send_msi_irq() 452 pci_addr |= rockchip_pcie_read(rockchip, in rockchip_pcie_ep_send_msi_irq() 456 pci_addr &= GENMASK_ULL(63, 2); in rockchip_pcie_ep_send_msi_irq() 464 pci_addr & ~pci_addr_mask, in rockchip_pcie_ep_send_msi_irq() [all …]
|
A D | pcie-rcar.c | 103 u64 pci_addr, u64 flags, int idx, bool host) in rcar_pcie_set_inbound() argument 110 rcar_pci_write_reg(pcie, lower_32_bits(pci_addr), in rcar_pcie_set_inbound() 116 rcar_pci_write_reg(pcie, upper_32_bits(pci_addr), in rcar_pcie_set_inbound()
|
A D | pci-xgene.c | 367 u64 cpu_addr, u64 pci_addr) in xgene_pcie_setup_ob_reg() argument 393 xgene_pcie_writel(port, offset + 0x10, lower_32_bits(pci_addr)); in xgene_pcie_setup_ob_reg() 394 xgene_pcie_writel(port, offset + 0x14, upper_32_bits(pci_addr)); in xgene_pcie_setup_ob_reg() 490 u64 pci_addr = cpu_addr - entry->offset; in xgene_pcie_setup_ib_reg() local 529 xgene_pcie_setup_pims(port, pim_reg, pci_addr, ~(size - 1)); in xgene_pcie_setup_ib_reg()
|
A D | pcie-mediatek-gen3.c | 212 resource_size_t pci_addr, in mtk_pcie_set_trans_table() argument 232 writel_relaxed(lower_32_bits(pci_addr), in mtk_pcie_set_trans_table() 234 writel_relaxed(upper_32_bits(pci_addr), in mtk_pcie_set_trans_table() 334 resource_size_t pci_addr; in mtk_pcie_startup_port() local 348 pci_addr = res->start - entry->offset; in mtk_pcie_startup_port() 350 err = mtk_pcie_set_trans_table(port, cpu_addr, pci_addr, size, in mtk_pcie_startup_port() 357 (unsigned long long)pci_addr, (unsigned long long)size); in mtk_pcie_startup_port()
|
/linux/drivers/pci/controller/mobiveil/ |
A D | pcie-mobiveil.c | 137 u64 cpu_addr, u64 pci_addr, u32 type, u64 size) in program_ib_windows() argument 162 mobiveil_csr_writel(pcie, lower_32_bits(pci_addr), in program_ib_windows() 164 mobiveil_csr_writel(pcie, upper_32_bits(pci_addr), in program_ib_windows() 174 u64 cpu_addr, u64 pci_addr, u32 type, u64 size) in program_ob_windows() argument 208 mobiveil_csr_writel(pcie, lower_32_bits(pci_addr), in program_ob_windows() 210 mobiveil_csr_writel(pcie, upper_32_bits(pci_addr), in program_ob_windows()
|
/linux/arch/powerpc/kernel/ |
A D | isa-bridge.c | 75 struct pci_address pci_addr; in pci_process_ISA_OF_ranges() member 80 unsigned long pci_addr; in pci_process_ISA_OF_ranges() local 107 pci_addr = (unsigned long) range->pci_addr.a_mid << 32 | in pci_process_ISA_OF_ranges() 108 range->pci_addr.a_lo; in pci_process_ISA_OF_ranges() 114 if ((pci_addr != 0) || (isa_addr != 0)) { in pci_process_ISA_OF_ranges()
|
/linux/drivers/pci/controller/dwc/ |
A D | pcie-designware.c | 271 u64 cpu_addr, u64 pci_addr, in dw_pcie_prog_outbound_atu_unroll() argument 286 lower_32_bits(pci_addr)); in dw_pcie_prog_outbound_atu_unroll() 288 upper_32_bits(pci_addr)); in dw_pcie_prog_outbound_atu_unroll() 315 u64 pci_addr, u64 size) in __dw_pcie_prog_outbound_atu() argument 324 cpu_addr, pci_addr, size); in __dw_pcie_prog_outbound_atu() 340 lower_32_bits(pci_addr)); in __dw_pcie_prog_outbound_atu() 342 upper_32_bits(pci_addr)); in __dw_pcie_prog_outbound_atu() 366 u64 cpu_addr, u64 pci_addr, u64 size) in dw_pcie_prog_outbound_atu() argument 369 cpu_addr, pci_addr, size); in dw_pcie_prog_outbound_atu() 373 int type, u64 cpu_addr, u64 pci_addr, in dw_pcie_prog_ep_outbound_atu() argument [all …]
|
A D | pcie-tegra194-acpi.c | 49 u64 pci_addr, u64 size) in program_outbound_atu() argument 55 atu_reg_write(pcie_ecam, index, lower_32_bits(pci_addr), in program_outbound_atu() 59 atu_reg_write(pcie_ecam, index, upper_32_bits(pci_addr), in program_outbound_atu()
|
A D | pcie-artpec6.c | 97 static u64 artpec6_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 pci_addr) in artpec6_pcie_cpu_addr_fixup() argument 105 return pci_addr - pp->cfg0_base; in artpec6_pcie_cpu_addr_fixup() 107 return pci_addr - ep->phys_base; in artpec6_pcie_cpu_addr_fixup() 111 return pci_addr; in artpec6_pcie_cpu_addr_fixup()
|
/linux/arch/powerpc/boot/ |
A D | cuboot-pq2.c | 32 u32 pci_addr[2]; member 191 out_le32(&pci_regs[0][0], mem->pci_addr[1] >> 12); in fixup_pci() 195 out_le32(&pci_regs[0][6], mmio->pci_addr[1] >> 12); in fixup_pci() 199 out_le32(&pci_regs[0][12], io->pci_addr[1] >> 12); in fixup_pci()
|
/linux/arch/microblaze/pci/ |
A D | pci-common.c | 449 range.pci_addr); in pci_process_bridge_OF_ranges() 471 hose->pci_io_size = range.pci_addr + range.size; in pci_process_bridge_OF_ranges() 472 hose->io_base_phys = range.cpu_addr - range.pci_addr; in pci_process_bridge_OF_ranges() 476 range.cpu_addr = range.pci_addr; in pci_process_bridge_OF_ranges() 482 range.pci_addr, in pci_process_bridge_OF_ranges() 492 if (range.pci_addr == 0) { in pci_process_bridge_OF_ranges() 506 (isa_hole >= 0 && range.pci_addr != 0 && in pci_process_bridge_OF_ranges() 509 range.pci_addr; in pci_process_bridge_OF_ranges() 510 else if (range.pci_addr != 0 && in pci_process_bridge_OF_ranges() 512 range.pci_addr) { in pci_process_bridge_OF_ranges()
|
/linux/drivers/scsi/ |
A D | BusLogic.c | 648 unsigned long pci_addr; in blogic_init_mm_probeinfo() local 660 pci_addr = base_addr1 = pci_resource_start(pci_device, 1); in blogic_init_mm_probeinfo() 742 pr_probeinfo->pci_addr = pci_addr; in blogic_init_mm_probeinfo() 754 probeinfo->pci_addr = pci_addr; in blogic_init_mm_probeinfo() 810 probeinfo->pci_addr = 0; in blogic_init_mm_probeinfo() 846 unsigned long pci_addr; in blogic_init_fp_probeinfo() local 858 pci_addr = base_addr1 = pci_resource_start(pci_device, 1); in blogic_init_fp_probeinfo() 885 probeinfo->pci_addr = pci_addr; in blogic_init_fp_probeinfo() 1721 if (adapter->pci_addr > 0) in blogic_reportconfig() 1722 blogic_info("0x%lX, ", adapter, adapter->pci_addr); in blogic_reportconfig() [all …]
|
/linux/arch/powerpc/platforms/4xx/ |
A D | pci.c | 133 pci_addr, pci_addr + size - 1, cpu_addr); in ppc4xx_parse_dma_ranges() 143 res->start = pci_addr; in ppc4xx_parse_dma_ranges() 208 u64 pci_addr, in ppc4xx_setup_one_pci_PMM() argument 241 pciha = RES_TO_U32_HIGH(pci_addr); in ppc4xx_setup_one_pci_PMM() 242 pcila = RES_TO_U32_LOW(pci_addr); in ppc4xx_setup_one_pci_PMM() 412 u64 pci_addr, in ppc4xx_setup_one_pcix_POM() argument 429 pciah = RES_TO_U32_HIGH(pci_addr); in ppc4xx_setup_one_pcix_POM() 430 pcial = RES_TO_U32_LOW(pci_addr); in ppc4xx_setup_one_pcix_POM() 1712 u64 pci_addr, in ppc4xx_setup_one_pciex_POM() argument 1730 pciah = RES_TO_U32_HIGH(pci_addr); in ppc4xx_setup_one_pciex_POM() [all …]
|
/linux/drivers/pci/ |
A D | of.c | 326 range.cpu_addr + range.size - 1, range.pci_addr); in devm_of_pci_get_host_bridge_resources() 360 pci_add_resource_offset(resources, res, res->start - range.pci_addr); in devm_of_pci_get_host_bridge_resources() 383 range.cpu_addr + range.size - 1, range.pci_addr); in devm_of_pci_get_host_bridge_resources() 402 res->start - range.pci_addr); in devm_of_pci_get_host_bridge_resources()
|