Lines Matching refs:granule
56 size_t granule, paddr_t *pa) in mobj_phys_get_pa() argument
66 if (granule) { in mobj_phys_get_pa()
67 if (granule != SMALL_PAGE_SIZE && in mobj_phys_get_pa()
68 granule != CORE_MMU_PGDIR_SIZE) in mobj_phys_get_pa()
70 p &= ~(granule - 1); in mobj_phys_get_pa()
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()
274 static size_t mobj_mm_get_phys_offs(struct mobj *mobj, size_t granule) in mobj_mm_get_phys_offs() argument
276 return mobj_get_phys_offs(to_mobj_mm(mobj)->parent_mobj, granule); in mobj_mm_get_phys_offs()
367 size_t granule, paddr_t *pa) in mobj_shm_get_pa() argument
377 if (granule) { in mobj_shm_get_pa()
378 if (granule != SMALL_PAGE_SIZE && in mobj_shm_get_pa()
379 granule != CORE_MMU_PGDIR_SIZE) in mobj_shm_get_pa()
381 p &= ~(granule - 1); in mobj_shm_get_pa()
389 static size_t mobj_shm_get_phys_offs(struct mobj *mobj, size_t granule) in mobj_shm_get_phys_offs() argument
391 assert(IS_POWER_OF_TWO(granule)); in mobj_shm_get_phys_offs()
392 return to_mobj_shm(mobj)->pa & (granule - 1); in mobj_shm_get_phys_offs()
664 size_t granule, paddr_t *pa) in mobj_with_fobj_get_pa() argument
677 if (granule) { in mobj_with_fobj_get_pa()
678 if (granule != SMALL_PAGE_SIZE && in mobj_with_fobj_get_pa()
679 granule != CORE_MMU_PGDIR_SIZE) in mobj_with_fobj_get_pa()
681 p &= ~(granule - 1); in mobj_with_fobj_get_pa()