/linux-6.1.9/arch/mips/pci/ |
D | pci-octeon.c | 260 union octeon_pci_address pci_addr; in octeon_read_config() local 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() 267 pci_addr.s.endian_swap = 1; in octeon_read_config() 268 pci_addr.s.bus = bus->number; in octeon_read_config() 269 pci_addr.s.dev = devfn >> 3; in octeon_read_config() 270 pci_addr.s.func = devfn & 0x7; in octeon_read_config() [all …]
|
/linux-6.1.9/arch/alpha/kernel/ |
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()
|
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()
|
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()
|
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()
|
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()
|
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-6.1.9/drivers/pci/controller/mobiveil/ |
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-6.1.9/drivers/pci/controller/cadence/ |
D | pcie-cadence-ep.c | 184 phys_addr_t addr, u64 pci_addr, size_t size) in cdns_pcie_ep_map_addr() argument 197 cdns_pcie_set_outbound_region(pcie, 0, fn, r, false, addr, pci_addr, size); in cdns_pcie_ep_map_addr() 387 u64 pci_addr, pci_addr_mask = 0xff; in cdns_pcie_ep_send_msi_irq() local 408 pci_addr = cdns_pcie_ep_fn_readl(pcie, fn, cap + PCI_MSI_ADDRESS_HI); in cdns_pcie_ep_send_msi_irq() 409 pci_addr <<= 32; in cdns_pcie_ep_send_msi_irq() 410 pci_addr |= cdns_pcie_ep_fn_readl(pcie, fn, cap + PCI_MSI_ADDRESS_LO); in cdns_pcie_ep_send_msi_irq() 411 pci_addr &= GENMASK_ULL(63, 2); in cdns_pcie_ep_send_msi_irq() 414 if (unlikely(ep->irq_pci_addr != (pci_addr & ~pci_addr_mask) || in cdns_pcie_ep_send_msi_irq() 420 pci_addr & ~pci_addr_mask, in cdns_pcie_ep_send_msi_irq() 422 ep->irq_pci_addr = (pci_addr & ~pci_addr_mask); in cdns_pcie_ep_send_msi_irq() [all …]
|
D | pcie-cadence-host.c | 287 u64 cpu_addr, pci_addr, size, winsize; in cdns_pcie_host_bar_config() local 295 pci_addr = entry->res->start - entry->offset; in cdns_pcie_host_bar_config() 301 pci_addr, cpu_addr); in cdns_pcie_host_bar_config() 440 u64 pci_addr = res->start - entry->offset; in cdns_pcie_host_init_address_translation() local 446 pci_addr, in cdns_pcie_host_init_address_translation() 452 pci_addr, in cdns_pcie_host_init_address_translation()
|
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-6.1.9/arch/powerpc/kernel/ |
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-6.1.9/drivers/pci/controller/ |
D | pcie-iproc.c | 854 int size_idx, u64 axi_addr, u64 pci_addr) in iproc_pcie_ob_write() argument 880 writel(lower_32_bits(pci_addr), pcie->base + omap_offset); in iproc_pcie_ob_write() 881 writel(upper_32_bits(pci_addr), pcie->base + omap_offset + 4); in iproc_pcie_ob_write() 884 window_idx, oarr_offset, &axi_addr, &pci_addr); in iproc_pcie_ob_write() 907 u64 pci_addr, resource_size_t size) in iproc_pcie_setup_ob() argument 963 pci_addr = ALIGN_DOWN(pci_addr, window_size); in iproc_pcie_setup_ob() 968 !IS_ALIGNED(pci_addr, window_size)) { in iproc_pcie_setup_ob() 971 &axi_addr, &pci_addr); in iproc_pcie_setup_ob() 980 axi_addr, pci_addr); in iproc_pcie_setup_ob() 994 pci_addr += window_size; in iproc_pcie_setup_ob() [all …]
|
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 278 pci_addr, size); in rockchip_pcie_ep_map_addr() 421 u64 pci_addr, pci_addr_mask = 0xff; in rockchip_pcie_ep_send_msi_irq() local 446 pci_addr = rockchip_pcie_read(rockchip, in rockchip_pcie_ep_send_msi_irq() 450 pci_addr <<= 32; in rockchip_pcie_ep_send_msi_irq() 451 pci_addr |= rockchip_pcie_read(rockchip, in rockchip_pcie_ep_send_msi_irq() 455 pci_addr &= GENMASK_ULL(63, 2); in rockchip_pcie_ep_send_msi_irq() 458 if (unlikely(ep->irq_pci_addr != (pci_addr & ~pci_addr_mask) || in rockchip_pcie_ep_send_msi_irq() [all …]
|
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()
|
D | pci-xgene.c | 366 u64 cpu_addr, u64 pci_addr) in xgene_pcie_setup_ob_reg() argument 392 xgene_pcie_writel(port, offset + 0x10, lower_32_bits(pci_addr)); in xgene_pcie_setup_ob_reg() 393 xgene_pcie_writel(port, offset + 0x14, upper_32_bits(pci_addr)); in xgene_pcie_setup_ob_reg() 488 u64 pci_addr = range->pci_addr; in xgene_pcie_setup_ib_reg() local 527 xgene_pcie_setup_pims(port, pim_reg, pci_addr, ~(size - 1)); in xgene_pcie_setup_ib_reg() 548 range.flags, range.cpu_addr, end, range.pci_addr); in xgene_pcie_parse_map_dma_ranges()
|
/linux-6.1.9/drivers/pci/controller/dwc/ |
D | pcie-tegra194-acpi.c | 50 u64 pci_addr, u64 size) in program_outbound_atu() argument 56 atu_reg_write(pcie_ecam, index, lower_32_bits(pci_addr), in program_outbound_atu() 60 atu_reg_write(pcie_ecam, index, upper_32_bits(pci_addr), in program_outbound_atu()
|
D | pcie-designware.c | 311 u64 pci_addr, u64 size) in __dw_pcie_prog_outbound_atu() argument 323 !IS_ALIGNED(pci_addr, pci->region_align) || !size) { in __dw_pcie_prog_outbound_atu() 339 lower_32_bits(pci_addr)); in __dw_pcie_prog_outbound_atu() 341 upper_32_bits(pci_addr)); in __dw_pcie_prog_outbound_atu() 371 u64 cpu_addr, u64 pci_addr, u64 size) in dw_pcie_prog_outbound_atu() argument 374 cpu_addr, pci_addr, size); in dw_pcie_prog_outbound_atu() 378 int type, u64 cpu_addr, u64 pci_addr, in dw_pcie_prog_ep_outbound_atu() argument 382 cpu_addr, pci_addr, size); in dw_pcie_prog_ep_outbound_atu()
|
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-6.1.9/arch/powerpc/boot/ |
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-6.1.9/arch/microblaze/pci/ |
D | pci-common.c | 400 range.pci_addr); in pci_process_bridge_OF_ranges() 422 hose->pci_io_size = range.pci_addr + range.size; in pci_process_bridge_OF_ranges() 423 hose->io_base_phys = range.cpu_addr - range.pci_addr; in pci_process_bridge_OF_ranges() 427 range.cpu_addr = range.pci_addr; in pci_process_bridge_OF_ranges() 433 range.pci_addr, in pci_process_bridge_OF_ranges() 443 if (range.pci_addr == 0) { in pci_process_bridge_OF_ranges() 457 (isa_hole >= 0 && range.pci_addr != 0 && in pci_process_bridge_OF_ranges() 460 range.pci_addr; in pci_process_bridge_OF_ranges() 461 else if (range.pci_addr != 0 && in pci_process_bridge_OF_ranges() 463 range.pci_addr) { in pci_process_bridge_OF_ranges()
|
/linux-6.1.9/drivers/peci/ |
D | request.c | 303 u32 pci_addr; in __pci_cfg_local_read() local 311 pci_addr = __get_pci_addr(bus, dev, func, reg); in __pci_cfg_local_read() 315 put_unaligned_le24(pci_addr, &req->tx.buf[2]); in __pci_cfg_local_read() 331 u32 pci_addr; in __ep_pci_cfg_read() local 339 pci_addr = __get_pci_addr(bus, dev, func, reg); in __ep_pci_cfg_read() 349 put_unaligned_le32(pci_addr, &req->tx.buf[8]); in __ep_pci_cfg_read()
|
/linux-6.1.9/drivers/scsi/ |
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() 669 blogic_err("at PCI Bus %d Device %d PCI Address 0x%lX\n", NULL, bus, device, pci_addr); in blogic_init_mm_probeinfo() 679 …PCI Bus %d Device %d I/O Address 0x%lX PCI Address 0x%lX\n", NULL, bus, device, io_addr, pci_addr); 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() 867 blogic_err("at PCI Bus %d Device %d PCI Address 0x%lX\n", NULL, bus, device, pci_addr); in blogic_init_fp_probeinfo() [all …]
|
/linux-6.1.9/arch/powerpc/platforms/4xx/ |
D | pci.c | 116 u64 pci_addr = of_read_number(ranges + 1, 2); in ppc4xx_parse_dma_ranges() local 130 if (cpu_addr != 0 || pci_addr > 0xffffffff) { in ppc4xx_parse_dma_ranges() 134 pci_addr, pci_addr + size - 1, cpu_addr); in ppc4xx_parse_dma_ranges() 144 res->start = pci_addr; in ppc4xx_parse_dma_ranges() 147 (pci_addr + size) > 0x100000000ull) in ppc4xx_parse_dma_ranges() 209 u64 pci_addr, in ppc4xx_setup_one_pci_PMM() argument 242 pciha = RES_TO_U32_HIGH(pci_addr); in ppc4xx_setup_one_pci_PMM() 243 pcila = RES_TO_U32_LOW(pci_addr); in ppc4xx_setup_one_pci_PMM() 413 u64 pci_addr, in ppc4xx_setup_one_pcix_POM() argument 430 pciah = RES_TO_U32_HIGH(pci_addr); in ppc4xx_setup_one_pcix_POM() [all …]
|
/linux-6.1.9/include/linux/ |
D | mhi_ep.h | 133 int (*alloc_map)(struct mhi_ep_cntrl *mhi_cntrl, u64 pci_addr, phys_addr_t *phys_ptr, 135 void (*unmap_free)(struct mhi_ep_cntrl *mhi_cntrl, u64 pci_addr, phys_addr_t phys,
|