Lines Matching refs:pa
122 devmap_add_entry(vm_paddr_t pa, vm_size_t sz) in devmap_add_entry() argument
142 if ((pa & 0x000fffff) == 0 && (sz & 0x000fffff) == 0) { in devmap_add_entry()
151 m->pd_pa = pa; in devmap_add_entry()
198 devmap_ptov(vm_paddr_t pa, vm_size_t size) in devmap_ptov() argument
206 if (pa >= pd->pd_pa && pa + size <= pd->pd_pa + pd->pd_size) in devmap_ptov()
207 return ((void *)(pd->pd_va + (pa - pd->pd_pa))); in devmap_ptov()
247 pmap_mapdev(vm_paddr_t pa, vm_size_t size) in pmap_mapdev() argument
253 if ((rva = devmap_ptov(pa, size)) != NULL) in pmap_mapdev()
256 offset = pa & PAGE_MASK; in pmap_mapdev()
257 pa = trunc_page(pa); in pmap_mapdev()
269 if (size >= L2_SIZE && (pa & L2_OFFSET) == 0) in pmap_mapdev()
271 else if (size >= L3C_SIZE && (pa & L3C_OFFSET) == 0) in pmap_mapdev()
279 pmap_kenter_device(va, size, pa); in pmap_mapdev()
286 pmap_mapdev_attr(vm_paddr_t pa, vm_size_t size, vm_memattr_t ma) in pmap_mapdev_attr() argument
292 if ((rva = devmap_ptov(pa, size)) != NULL) in pmap_mapdev_attr()
295 offset = pa & PAGE_MASK; in pmap_mapdev_attr()
296 pa = trunc_page(pa); in pmap_mapdev_attr()
306 if (size >= L2_SIZE && (pa & L2_OFFSET) == 0) in pmap_mapdev_attr()
308 else if (size >= L3C_SIZE && (pa & L3C_OFFSET) == 0) in pmap_mapdev_attr()
316 pmap_kenter(va, size, pa, ma); in pmap_mapdev_attr()