Lines Matching refs:paddr
31 dma_addr_t (*phys_to_dma)(struct device *dev, phys_addr_t paddr);
35 static dma_addr_t octeon_hole_phys_to_dma(phys_addr_t paddr) in octeon_hole_phys_to_dma() argument
37 …if (paddr >= CVMX_PCIE_BAR1_PHYS_BASE && paddr < (CVMX_PCIE_BAR1_PHYS_BASE + CVMX_PCIE_BAR1_PHYS_S… in octeon_hole_phys_to_dma()
38 return paddr - CVMX_PCIE_BAR1_PHYS_BASE + CVMX_PCIE_BAR1_RC_BASE; in octeon_hole_phys_to_dma()
40 return paddr; in octeon_hole_phys_to_dma()
51 static dma_addr_t octeon_gen1_phys_to_dma(struct device *dev, phys_addr_t paddr) in octeon_gen1_phys_to_dma() argument
53 if (paddr >= 0x410000000ull && paddr < 0x420000000ull) in octeon_gen1_phys_to_dma()
54 paddr -= 0x400000000ull; in octeon_gen1_phys_to_dma()
55 return octeon_hole_phys_to_dma(paddr); in octeon_gen1_phys_to_dma()
73 static dma_addr_t octeon_gen2_phys_to_dma(struct device *dev, phys_addr_t paddr) in octeon_gen2_phys_to_dma() argument
75 return octeon_hole_phys_to_dma(paddr); in octeon_gen2_phys_to_dma()
88 static dma_addr_t octeon_big_phys_to_dma(struct device *dev, phys_addr_t paddr) in octeon_big_phys_to_dma() argument
90 if (paddr >= 0x410000000ull && paddr < 0x420000000ull) in octeon_big_phys_to_dma()
91 paddr -= 0x400000000ull; in octeon_big_phys_to_dma()
94 if (paddr >= 0xf0000000ull) in octeon_big_phys_to_dma()
95 paddr = OCTEON_BAR2_PCI_ADDRESS + paddr; in octeon_big_phys_to_dma()
97 return paddr; in octeon_big_phys_to_dma()
116 phys_addr_t paddr) in octeon_small_phys_to_dma() argument
118 if (paddr >= 0x410000000ull && paddr < 0x420000000ull) in octeon_small_phys_to_dma()
119 paddr -= 0x400000000ull; in octeon_small_phys_to_dma()
122 if (paddr >= octeon_bar1_pci_phys && paddr < octeon_bar1_pci_phys + 0x8000000ull) in octeon_small_phys_to_dma()
123 paddr = paddr - octeon_bar1_pci_phys; in octeon_small_phys_to_dma()
125 paddr = OCTEON_BAR2_PCI_ADDRESS + paddr; in octeon_small_phys_to_dma()
127 return paddr; in octeon_small_phys_to_dma()
171 dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) in phys_to_dma() argument
175 return octeon_pci_dma_ops->phys_to_dma(dev, paddr); in phys_to_dma()
177 return paddr; in phys_to_dma()