Lines Matching refs:paddr
28 phys_addr_t paddr) in translate_phys_to_dma() argument
33 if (paddr >= m->cpu_start && paddr - m->cpu_start < m->size) in translate_phys_to_dma()
34 return (dma_addr_t)paddr - m->offset; in translate_phys_to_dma()
59 phys_addr_t paddr) in phys_to_dma_unencrypted() argument
62 return translate_phys_to_dma(dev, paddr); in phys_to_dma_unencrypted()
63 return paddr; in phys_to_dma_unencrypted()
72 static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) in phys_to_dma() argument
74 return __sme_set(phys_to_dma_unencrypted(dev, paddr)); in phys_to_dma()
79 phys_addr_t paddr; in dma_to_phys() local
82 paddr = translate_dma_to_phys(dev, dma_addr); in dma_to_phys()
84 paddr = dma_addr; in dma_to_phys()
86 return __sme_clr(paddr); in dma_to_phys()
124 dma_addr_t dma_direct_map_resource(struct device *dev, phys_addr_t paddr,