Lines Matching refs:paddr
121 int xthal_set_region_translation_raw(void *vaddr, void *paddr, unsigned cattr) { in xthal_set_region_translation_raw() argument
132 unsigned ppn_ca = ((unsigned) paddr & 0xFFFFFFF0) + (cattr & 0xF); in xthal_set_region_translation_raw()
167 int xthal_v2p(void* vaddr, void** paddr, unsigned *way, unsigned* cattr) { in xthal_v2p() argument
170 if (paddr) in xthal_v2p()
171 *paddr = vaddr; in xthal_v2p()
187 if (paddr || cattr) { in xthal_v2p()
192 if (paddr) in xthal_v2p()
193 *paddr = ((void*) (ppn + (((unsigned) vaddr) & 0x1fffffff))); in xthal_v2p()
205 if (paddr || cattr) { in xthal_v2p()
214 if (paddr) in xthal_v2p()
263 *paddr = ((void*) (ppn1 + (((unsigned) vaddr) & (~ppn)))); in xthal_v2p()
397 int xthal_set_region_translation(void* vaddr, void* paddr, unsigned size, in xthal_set_region_translation() argument
405 unsigned paddr_a = (unsigned) paddr; in xthal_set_region_translation()