/linux/arch/mips/pci/ |
H A 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/drivers/pci/controller/mobiveil/ |
H 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()
|
H A D | pcie-mobiveil.h | 184 u64 pci_addr, u32 type, u64 size); 186 u64 pci_addr, u32 type, u64 size);
|
/linux/drivers/pci/controller/ |
H A D | pcie-iproc.c | 853 int size_idx, u64 axi_addr, u64 pci_addr) in iproc_pcie_ob_write() argument 879 writel(lower_32_bits(pci_addr), pcie->base + omap_offset); in iproc_pcie_ob_write() 880 writel(upper_32_bits(pci_addr), pcie->base + omap_offset + 4); in iproc_pcie_ob_write() 883 window_idx, oarr_offset, &axi_addr, &pci_addr); in iproc_pcie_ob_write() 906 u64 pci_addr, resource_size_t size) in iproc_pcie_setup_ob() argument 962 pci_addr = ALIGN_DOWN(pci_addr, window_size); in iproc_pcie_setup_ob() 967 !IS_ALIGNED(pci_addr, window_size)) { in iproc_pcie_setup_ob() 970 &axi_addr, &pci_addr); in iproc_pcie_setup_ob() 979 axi_addr, pci_addr); in iproc_pcie_setup_ob() 993 pci_addr += window_size; in iproc_pcie_setup_ob() [all …]
|
H 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()
|
H A 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()
|
H A D | pcie-mediatek-gen3.c | 287 resource_size_t pci_addr, in mtk_pcie_set_trans_table() argument 317 writel_relaxed(lower_32_bits(pci_addr), table + PCIE_ATR_TRSL_ADDR_LSB_OFFSET); in mtk_pcie_set_trans_table() 318 writel_relaxed(upper_32_bits(pci_addr), table + PCIE_ATR_TRSL_ADDR_MSB_OFFSET); in mtk_pcie_set_trans_table() 332 (unsigned long long)pci_addr, (unsigned long long)table_size); in mtk_pcie_set_trans_table() 335 pci_addr += table_size; in mtk_pcie_set_trans_table() 447 resource_size_t pci_addr; in mtk_pcie_startup_port() local 457 pci_addr = res->start - entry->offset; in mtk_pcie_startup_port() 459 err = mtk_pcie_set_trans_table(pcie, cpu_addr, pci_addr, size, in mtk_pcie_startup_port()
|
H A D | pcie-rockchip-host.c | 782 u64 pci_addr, size; in rockchip_pcie_cfg_atu() local 794 pci_addr = entry->res->start - entry->offset; in rockchip_pcie_cfg_atu() 795 rockchip->msg_bus_addr = pci_addr; in rockchip_pcie_cfg_atu() 801 pci_addr + (reg_no << 20), in rockchip_pcie_cfg_atu() 823 pci_addr = entry->res->start - entry->offset; in rockchip_pcie_cfg_atu() 830 pci_addr + (reg_no << 20), in rockchip_pcie_cfg_atu()
|
/linux/arch/alpha/kernel/ |
H 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()
|
H 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()
|
H 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()
|
H 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/dwc/ |
H A 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()
|
H A D | pcie-designware.c | 484 !IS_ALIGNED(atu->pci_addr, pci->region_align) || !atu->size) { in dw_pcie_prog_outbound_atu() 500 lower_32_bits(atu->pci_addr)); in dw_pcie_prog_outbound_atu() 502 upper_32_bits(atu->pci_addr)); in dw_pcie_prog_outbound_atu() 548 u64 cpu_addr, u64 pci_addr, u64 size) in dw_pcie_prog_inbound_atu() argument 550 u64 limit_addr = pci_addr + size - 1; in dw_pcie_prog_inbound_atu() 553 if ((limit_addr & ~pci->region_limit) != (pci_addr & ~pci->region_limit) || in dw_pcie_prog_inbound_atu() 555 !IS_ALIGNED(pci_addr, pci->region_align) || !size) { in dw_pcie_prog_inbound_atu() 560 lower_32_bits(pci_addr)); in dw_pcie_prog_inbound_atu() 562 upper_32_bits(pci_addr)); in dw_pcie_prog_inbound_atu() 576 if (upper_32_bits(limit_addr) > upper_32_bits(pci_addr) && in dw_pcie_prog_inbound_atu()
|
/linux/arch/powerpc/boot/ |
H 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/drivers/peci/ |
H A 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/drivers/pci/controller/cadence/ |
H A D | pcie-cadence-host.c | 314 u64 cpu_addr, pci_addr, size, winsize; in cdns_pcie_host_bar_config() local 322 pci_addr = entry->res->start - entry->offset; in cdns_pcie_host_bar_config() 328 pci_addr, cpu_addr); in cdns_pcie_host_bar_config() 467 u64 pci_addr = res->start - entry->offset; in cdns_pcie_host_init_address_translation() local 473 pci_addr, in cdns_pcie_host_init_address_translation() 479 pci_addr, in cdns_pcie_host_init_address_translation()
|
H A D | pcie-cadence.c | 29 u64 cpu_addr, u64 pci_addr, size_t size) in cdns_pcie_set_outbound_region() argument 44 (lower_32_bits(pci_addr) & GENMASK(31, 8)); in cdns_pcie_set_outbound_region() 45 addr1 = upper_32_bits(pci_addr); in cdns_pcie_set_outbound_region()
|
/linux/arch/powerpc/platforms/44x/ |
H A 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/drivers/pci/endpoint/functions/ |
H A D | pci-epf-mhi.c | 166 static int __pci_epf_mhi_alloc_map(struct mhi_ep_cntrl *mhi_cntrl, u64 pci_addr, in __pci_epf_mhi_alloc_map() argument 180 pci_addr - offset, size + offset); in __pci_epf_mhi_alloc_map() 192 static int pci_epf_mhi_alloc_map(struct mhi_ep_cntrl *mhi_cntrl, u64 pci_addr, in pci_epf_mhi_alloc_map() argument 197 size_t offset = get_align_offset(epf_mhi, pci_addr); in pci_epf_mhi_alloc_map() 199 return __pci_epf_mhi_alloc_map(mhi_cntrl, pci_addr, paddr, vaddr, in pci_epf_mhi_alloc_map() 204 u64 pci_addr, phys_addr_t paddr, in __pci_epf_mhi_unmap_free() argument 217 static void pci_epf_mhi_unmap_free(struct mhi_ep_cntrl *mhi_cntrl, u64 pci_addr, in pci_epf_mhi_unmap_free() argument 222 size_t offset = get_align_offset(epf_mhi, pci_addr); in pci_epf_mhi_unmap_free() 224 __pci_epf_mhi_unmap_free(mhi_cntrl, pci_addr, paddr, vaddr, offset, in pci_epf_mhi_unmap_free()
|
/linux/drivers/pci/controller/plda/ |
H A D | pcie-plda-host.c | 491 phys_addr_t axi_addr, phys_addr_t pci_addr, in plda_pcie_setup_window() argument 514 val = lower_32_bits(pci_addr); in plda_pcie_setup_window() 518 val = upper_32_bits(pci_addr); in plda_pcie_setup_window() 534 u64 pci_addr; in plda_pcie_setup_iomems() local 539 pci_addr = entry->res->start - entry->offset; in plda_pcie_setup_iomems() 541 entry->res->start, pci_addr, in plda_pcie_setup_iomems()
|
/linux/drivers/scsi/ |
H A D | BusLogic.c | 649 unsigned long pci_addr; in blogic_init_mm_probeinfo() local 661 pci_addr = base_addr1 = pci_resource_start(pci_device, 1); in blogic_init_mm_probeinfo() 670 blogic_err("at PCI Bus %d Device %d PCI Address 0x%lX\n", NULL, bus, device, pci_addr); in blogic_init_mm_probeinfo() 680 …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() 743 pr_probeinfo->pci_addr = pci_addr; in blogic_init_mm_probeinfo() 755 probeinfo->pci_addr = pci_addr; in blogic_init_mm_probeinfo() 811 probeinfo->pci_addr = 0; in blogic_init_mm_probeinfo() 847 unsigned long pci_addr; in blogic_init_fp_probeinfo() local 859 pci_addr = base_addr1 = pci_resource_start(pci_device, 1); in blogic_init_fp_probeinfo() 868 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/include/linux/ |
H A D | mhi_ep.h | 159 int (*alloc_map)(struct mhi_ep_cntrl *mhi_cntrl, u64 pci_addr, phys_addr_t *phys_ptr, 161 void (*unmap_free)(struct mhi_ep_cntrl *mhi_cntrl, u64 pci_addr, phys_addr_t phys,
|
/linux/arch/parisc/include/asm/ |
H A D | pdcpat.h | 377 extern int pdc_pat_io_pci_cfg_read(unsigned long pci_addr, int pci_size, u32 *val); 378 extern int pdc_pat_io_pci_cfg_write(unsigned long pci_addr, int pci_size, u32 val);
|
/linux/drivers/pci/ |
H A D | of.c | 373 range.cpu_addr + range.size - 1, range.pci_addr); in devm_of_pci_get_host_bridge_resources() 407 pci_add_resource_offset(resources, res, res->start - range.pci_addr); in devm_of_pci_get_host_bridge_resources() 429 range.cpu_addr + range.size - 1, range.pci_addr); in devm_of_pci_get_host_bridge_resources() 443 res->start - range.pci_addr); in devm_of_pci_get_host_bridge_resources()
|