Lines Matching refs:daddr
39 static phys_addr_t octeon_hole_dma_to_phys(dma_addr_t daddr) in octeon_hole_dma_to_phys() argument
41 if (daddr >= CVMX_PCIE_BAR1_RC_BASE) in octeon_hole_dma_to_phys()
42 return daddr + CVMX_PCIE_BAR1_PHYS_BASE - CVMX_PCIE_BAR1_RC_BASE; in octeon_hole_dma_to_phys()
44 return daddr; in octeon_hole_dma_to_phys()
54 static phys_addr_t octeon_gen1_dma_to_phys(struct device *dev, dma_addr_t daddr) in octeon_gen1_dma_to_phys() argument
56 daddr = octeon_hole_dma_to_phys(daddr); in octeon_gen1_dma_to_phys()
58 if (daddr >= 0x10000000ull && daddr < 0x20000000ull) in octeon_gen1_dma_to_phys()
59 daddr += 0x400000000ull; in octeon_gen1_dma_to_phys()
61 return daddr; in octeon_gen1_dma_to_phys()
69 static phys_addr_t octeon_gen2_dma_to_phys(struct device *dev, dma_addr_t daddr) in octeon_gen2_dma_to_phys() argument
71 return octeon_hole_dma_to_phys(daddr); in octeon_gen2_dma_to_phys()
86 static phys_addr_t octeon_big_dma_to_phys(struct device *dev, dma_addr_t daddr) in octeon_big_dma_to_phys() argument
88 if (daddr >= OCTEON_BAR2_PCI_ADDRESS) in octeon_big_dma_to_phys()
89 daddr -= OCTEON_BAR2_PCI_ADDRESS; in octeon_big_dma_to_phys()
91 if (daddr >= 0x10000000ull && daddr < 0x20000000ull) in octeon_big_dma_to_phys()
92 daddr += 0x400000000ull; in octeon_big_dma_to_phys()
93 return daddr; in octeon_big_dma_to_phys()
112 dma_addr_t daddr) in octeon_small_dma_to_phys() argument
114 if (daddr >= OCTEON_BAR2_PCI_ADDRESS) in octeon_small_dma_to_phys()
115 daddr -= OCTEON_BAR2_PCI_ADDRESS; in octeon_small_dma_to_phys()
117 daddr += octeon_bar1_pci_phys; in octeon_small_dma_to_phys()
119 if (daddr >= 0x10000000ull && daddr < 0x20000000ull) in octeon_small_dma_to_phys()
120 daddr += 0x400000000ull; in octeon_small_dma_to_phys()
121 return daddr; in octeon_small_dma_to_phys()
130 dma_addr_t daddr = swiotlb_map_page(dev, page, offset, size, in octeon_dma_map_page() local
134 return daddr; in octeon_dma_map_page()
210 static phys_addr_t octeon_unity_dma_to_phys(struct device *dev, dma_addr_t daddr) in octeon_unity_dma_to_phys() argument
212 return daddr; in octeon_unity_dma_to_phys()
218 phys_addr_t (*dma_to_phys)(struct device *dev, dma_addr_t daddr);
231 phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr) in dma_to_phys() argument
237 return ops->dma_to_phys(dev, daddr); in dma_to_phys()