Home
last modified time | relevance | path

Searched refs:pci_addr (Results 1 – 25 of 25) sorted by relevance

/linux-4.19.296/drivers/pci/controller/
Dpcie-rockchip-ep.c71 u64 pci_addr, size_t size) in rockchip_pcie_prog_ep_ob_atu() argument
86 addr1 = upper_32_bits(is_nor_msg ? cpu_addr : pci_addr); in rockchip_pcie_prog_ep_ob_atu()
261 phys_addr_t addr, u64 pci_addr, in rockchip_pcie_ep_map_addr() argument
279 pci_addr, size); in rockchip_pcie_ep_map_addr()
399 u64 pci_addr, pci_addr_mask = 0xff; in rockchip_pcie_ep_send_msi_irq() local
424 pci_addr = rockchip_pcie_read(rockchip, in rockchip_pcie_ep_send_msi_irq()
428 pci_addr <<= 32; in rockchip_pcie_ep_send_msi_irq()
429 pci_addr |= rockchip_pcie_read(rockchip, in rockchip_pcie_ep_send_msi_irq()
433 pci_addr &= GENMASK_ULL(63, 2); in rockchip_pcie_ep_send_msi_irq()
436 if (unlikely(ep->irq_pci_addr != (pci_addr & ~pci_addr_mask) || in rockchip_pcie_ep_send_msi_irq()
[all …]
Dpcie-iproc.c846 int size_idx, u64 axi_addr, u64 pci_addr) in iproc_pcie_ob_write() argument
872 writel(lower_32_bits(pci_addr), pcie->base + omap_offset); in iproc_pcie_ob_write()
873 writel(upper_32_bits(pci_addr), pcie->base + omap_offset + 4); in iproc_pcie_ob_write()
876 window_idx, oarr_offset, &axi_addr, &pci_addr); in iproc_pcie_ob_write()
899 u64 pci_addr, resource_size_t size) in iproc_pcie_setup_ob() argument
943 !IS_ALIGNED(pci_addr, window_size)) { in iproc_pcie_setup_ob()
946 &axi_addr, &pci_addr); in iproc_pcie_setup_ob()
955 axi_addr, pci_addr); in iproc_pcie_setup_ob()
969 pci_addr += window_size; in iproc_pcie_setup_ob()
978 &axi_addr, &ob->axi_offset, &pci_addr, &size); in iproc_pcie_setup_ob()
[all …]
Dpcie-cadence-ep.c175 u64 pci_addr, size_t size) in cdns_pcie_ep_map_addr() argument
187 cdns_pcie_set_outbound_region(pcie, fn, r, false, addr, pci_addr, size); in cdns_pcie_ep_map_addr()
321 u64 pci_addr, pci_addr_mask = 0xff; in cdns_pcie_ep_send_msi_irq() local
340 pci_addr = cdns_pcie_ep_fn_readl(pcie, fn, cap + PCI_MSI_ADDRESS_HI); in cdns_pcie_ep_send_msi_irq()
341 pci_addr <<= 32; in cdns_pcie_ep_send_msi_irq()
342 pci_addr |= cdns_pcie_ep_fn_readl(pcie, fn, cap + PCI_MSI_ADDRESS_LO); in cdns_pcie_ep_send_msi_irq()
343 pci_addr &= GENMASK_ULL(63, 2); in cdns_pcie_ep_send_msi_irq()
346 if (unlikely(ep->irq_pci_addr != (pci_addr & ~pci_addr_mask) || in cdns_pcie_ep_send_msi_irq()
352 pci_addr & ~pci_addr_mask, in cdns_pcie_ep_send_msi_irq()
354 ep->irq_pci_addr = (pci_addr & ~pci_addr_mask); in cdns_pcie_ep_send_msi_irq()
[all …]
Dpci-xgene.c369 u64 cpu_addr, u64 pci_addr) in xgene_pcie_setup_ob_reg() argument
395 xgene_pcie_writel(port, offset + 0x10, lower_32_bits(pci_addr)); in xgene_pcie_setup_ob_reg()
396 xgene_pcie_writel(port, offset + 0x14, upper_32_bits(pci_addr)); in xgene_pcie_setup_ob_reg()
495 u64 pci_addr = range->pci_addr; in xgene_pcie_setup_ib_reg() local
534 xgene_pcie_setup_pims(port, pim_reg, pci_addr, ~(size - 1)); in xgene_pcie_setup_ib_reg()
555 range.flags, range.cpu_addr, end, range.pci_addr); in xgene_pcie_parse_map_dma_ranges()
Dpcie-cadence.c12 u64 cpu_addr, u64 pci_addr, size_t size) in cdns_pcie_set_outbound_region() argument
27 (lower_32_bits(pci_addr) & GENMASK(31, 8)); in cdns_pcie_set_outbound_region()
28 addr1 = upper_32_bits(pci_addr); in cdns_pcie_set_outbound_region()
Dpcie-mobiveil.c392 int pci_addr, u32 type, u64 size) in program_ib_windows() argument
417 write_paged_register(pcie, pci_addr, PAB_PEX_AMAP_AXI_WIN(win_num)); in program_ib_windows()
418 write_paged_register(pcie, pci_addr, PAB_PEX_AMAP_PEX_WIN_L(win_num)); in program_ib_windows()
426 u64 cpu_addr, u64 pci_addr, u32 config_io_bit, u64 size) in program_ob_windows() argument
460 csr_writel(pcie, lower_32_bits(pci_addr), in program_ob_windows()
462 csr_writel(pcie, upper_32_bits(pci_addr), in program_ob_windows()
Dpcie-rcar.c1029 u64 pci_addr = range->pci_addr; in rcar_pcie_inbound_ranges() local
1061 rcar_pci_write_reg(pcie, lower_32_bits(pci_addr), in rcar_pcie_inbound_ranges()
1067 rcar_pci_write_reg(pcie, upper_32_bits(pci_addr), in rcar_pcie_inbound_ranges()
1073 pci_addr += size; in rcar_pcie_inbound_ranges()
1103 range.flags, range.cpu_addr, end, range.pci_addr); in rcar_pcie_parse_map_dma_ranges()
Dpci-ftpci100.c401 u64 end = range.pci_addr + range.size - 1; in faraday_pci_parse_map_dma_ranges()
404 ret = faraday_res_to_memcfg(range.pci_addr, range.size, &val); in faraday_pci_parse_map_dma_ranges()
412 i + 1, range.pci_addr, end, val); in faraday_pci_parse_map_dma_ranges()
Dpcie-tango.c269 range.pci_addr += range.size; in tango_pcie_probe()
270 pcie->msi_doorbell = range.pci_addr + res->start + SMP8759_DOORBELL; in tango_pcie_probe()
Dpci-v3-semi.c621 u64 pci_end = range->pci_addr + range->size - 1; in v3_get_dma_range_config()
624 if (range->pci_addr & ~V3_PCI_BASE_M_ADR_BASE) { in v3_get_dma_range_config()
628 val = ((u32)range->pci_addr) & V3_PCI_BASE_M_ADR_BASE; in v3_get_dma_range_config()
686 range->pci_addr, pci_end, in v3_get_dma_range_config()
Dpcie-cadence.h311 u64 cpu_addr, u64 pci_addr, size_t size);
Dpcie-cadence-host.c192 range.pci_addr, in cdns_pcie_host_init_address_translation()
Dpci-rcar-gen2.c313 pci->window_pci = (unsigned long)range.pci_addr; in rcar_pci_parse_map_dma_ranges()
Dpcie-mediatek.c1055 pcie->offset.io = res.start - range.pci_addr; in mtk_pcie_setup()
1069 pcie->offset.mem = res.start - range.pci_addr; in mtk_pcie_setup()
Dpci-tegra.c1922 pcie->offset.io = res.start - range.pci_addr; in tegra_pcie_parse_dt()
1950 pcie->offset.mem = res.start - range.pci_addr; in tegra_pcie_parse_dt()
/linux-4.19.296/drivers/pci/controller/dwc/
Dpcie-designware.c109 u64 pci_addr, u32 size) in dw_pcie_prog_outbound_atu_unroll() argument
120 lower_32_bits(pci_addr)); in dw_pcie_prog_outbound_atu_unroll()
122 upper_32_bits(pci_addr)); in dw_pcie_prog_outbound_atu_unroll()
144 u64 cpu_addr, u64 pci_addr, u32 size) in dw_pcie_prog_outbound_atu() argument
153 pci_addr, size); in dw_pcie_prog_outbound_atu()
166 lower_32_bits(pci_addr)); in dw_pcie_prog_outbound_atu()
168 upper_32_bits(pci_addr)); in dw_pcie_prog_outbound_atu()
Dpcie-artpec6.c107 static u64 artpec6_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 pci_addr) in artpec6_pcie_cpu_addr_fixup() argument
115 return pci_addr - pp->cfg0_base; in artpec6_pcie_cpu_addr_fixup()
117 return pci_addr - ep->phys_base; in artpec6_pcie_cpu_addr_fixup()
121 return pci_addr; in artpec6_pcie_cpu_addr_fixup()
Dpcie-designware-ep.c129 u64 pci_addr, size_t size) in dw_pcie_ep_outbound_atu() argument
141 phys_addr, pci_addr, size); in dw_pcie_ep_outbound_atu()
232 u64 pci_addr, size_t size) in dw_pcie_ep_map_addr() argument
238 ret = dw_pcie_ep_outbound_atu(ep, addr, pci_addr, size); in dw_pcie_ep_map_addr()
Dpci-dra7xx.c112 static u64 dra7xx_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 pci_addr) in dra7xx_pcie_cpu_addr_fixup() argument
114 return pci_addr & DRA7XX_CPU_TO_BUS_ADDR; in dra7xx_pcie_cpu_addr_fixup()
Dpcie-designware.h241 int type, u64 cpu_addr, u64 pci_addr,
/linux-4.19.296/include/linux/
Dpci-epc.h51 phys_addr_t addr, u64 pci_addr, size_t size);
153 u64 pci_addr, size_t size);
Dof_address.h19 u64 pci_addr; member
/linux-4.19.296/drivers/of/
Daddress.c281 range->pci_addr = of_read_number(parser->range + 1, ns); in of_pci_range_parser_one()
291 u64 pci_addr, cpu_addr, size; in of_pci_range_parser_one() local
294 pci_addr = of_read_number(parser->range + 1, ns); in of_pci_range_parser_one()
301 if (pci_addr != range->pci_addr + range->size || in of_pci_range_parser_one()
/linux-4.19.296/drivers/pci/endpoint/
Dpci-epc-core.c314 phys_addr_t phys_addr, u64 pci_addr, size_t size) in pci_epc_map_addr() argument
326 ret = epc->ops->map_addr(epc, func_no, phys_addr, pci_addr, size); in pci_epc_map_addr()
/linux-4.19.296/drivers/pci/
Dof.c314 range.cpu_addr + range.size - 1, range.pci_addr); in devm_of_pci_get_host_bridge_resources()
346 pci_add_resource_offset(resources, res, res->start - range.pci_addr); in devm_of_pci_get_host_bridge_resources()