Lines Matching refs:granule
189 size_t granule = BIT(ti->shift); in set_reg_in_table() local
195 if (mobj_get_pa(r->mobj, offset, granule, &pa)) in set_reg_in_table()
1213 size_t granule; in tee_mmu_user_va2pa_attr() local
1223 granule = MAX(region->mobj->phys_granule, in tee_mmu_user_va2pa_attr()
1225 assert(!granule || IS_POWER_OF_TWO(granule)); in tee_mmu_user_va2pa_attr()
1228 ROUNDDOWN((vaddr_t)ua - region->va, granule); in tee_mmu_user_va2pa_attr()
1230 res = mobj_get_pa(region->mobj, offset, granule, &p); in tee_mmu_user_va2pa_attr()
1234 *pa = p | ((vaddr_t)ua & (granule - 1)); in tee_mmu_user_va2pa_attr()
1256 size_t granule = 0; in vm_pa2va() local
1265 granule = region->mobj->phys_granule; in vm_pa2va()
1266 assert(!granule || IS_POWER_OF_TWO(granule)); in vm_pa2va()
1270 if (granule) { in vm_pa2va()
1272 size = granule - (ofs & (granule - 1)); in vm_pa2va()
1280 if (mobj_get_pa(region->mobj, ofs, granule, &p)) in vm_pa2va()