Lines Matching refs:pa
40 paddr_t pa; member
56 size_t granule, paddr_t *pa) in mobj_phys_get_pa() argument
61 if (!pa) in mobj_phys_get_pa()
64 p = moph->pa + offs; in mobj_phys_get_pa()
73 *pa = p; in mobj_phys_get_pa()
139 static struct mobj *mobj_phys_init(paddr_t pa, size_t size, uint32_t mem_type, in mobj_phys_init() argument
147 if ((pa & CORE_MMU_USER_PARAM_MASK) || in mobj_phys_init()
153 if (pa) { in mobj_phys_init()
154 va = phys_to_virt(pa, area_type, size); in mobj_phys_init()
160 pa = map->pa; in mobj_phys_init()
177 moph->pa = pa; in mobj_phys_init()
183 struct mobj *mobj_phys_alloc(paddr_t pa, size_t size, uint32_t mem_type, in mobj_phys_alloc() argument
206 return mobj_phys_init(pa, size, mem_type, battr, area_type); in mobj_phys_alloc()
267 size_t granule, paddr_t *pa) in mobj_mm_get_pa() argument
270 mobj_mm_offs(mobj, offs), granule, pa); in mobj_mm_get_pa()
349 paddr_t pa; member
362 return phys_to_virt(m->pa + offset, MEM_AREA_NSEC_SHM, in mobj_shm_get_va()
367 size_t granule, paddr_t *pa) in mobj_shm_get_pa() argument
372 if (!pa || offs >= mobj->size) in mobj_shm_get_pa()
375 p = m->pa + offs; in mobj_shm_get_pa()
384 *pa = p; in mobj_shm_get_pa()
392 return to_mobj_shm(mobj)->pa & (granule - 1); in mobj_shm_get_phys_offs()
444 struct mobj *mobj_shm_alloc(paddr_t pa, size_t size, uint64_t cookie) in mobj_shm_alloc() argument
448 if (!core_pbuf_is(CORE_MEM_NSEC_SHM, pa, size)) in mobj_shm_alloc()
459 m->pa = pa; in mobj_shm_alloc()
664 size_t granule, paddr_t *pa) in mobj_with_fobj_get_pa() argument
684 *pa = p; in mobj_with_fobj_get_pa()