Home
last modified time | relevance | path

Searched refs:granule (Results 1 – 9 of 9) sorted by relevance

/optee_os/core/mm/
A Dmobj.c56 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()
375 if (granule) { in mobj_shm_get_pa()
379 p &= ~(granule - 1); in mobj_shm_get_pa()
389 assert(IS_POWER_OF_TWO(granule)); in mobj_shm_get_phys_offs()
640 size_t granule, paddr_t *pa) in mobj_with_fobj_get_pa() argument
653 if (granule) { in mobj_with_fobj_get_pa()
[all …]
A Dvm.c1152 size_t granule; in tee_mmu_user_va2pa_attr() local
1162 granule = MAX(region->mobj->phys_granule, in tee_mmu_user_va2pa_attr()
1164 assert(!granule || IS_POWER_OF_TWO(granule)); in tee_mmu_user_va2pa_attr()
1167 ROUNDDOWN((vaddr_t)ua - region->va, granule); in tee_mmu_user_va2pa_attr()
1173 *pa = p | ((vaddr_t)ua & (granule - 1)); in tee_mmu_user_va2pa_attr()
1195 size_t granule = 0; in vm_pa2va() local
1204 granule = region->mobj->phys_granule; in vm_pa2va()
1205 assert(!granule || IS_POWER_OF_TWO(granule)); in vm_pa2va()
1209 if (granule) { in vm_pa2va()
1211 size = granule - (ofs & (granule - 1)); in vm_pa2va()
[all …]
/optee_os/core/include/mm/
A Dmobj.h29 TEE_Result (*get_pa)(struct mobj *mobj, size_t offs, size_t granule,
31 size_t (*get_phys_offs)(struct mobj *mobj, size_t granule);
64 size_t granule, paddr_t *pa) in mobj_get_pa() argument
67 return mobj->ops->get_pa(mobj, offs, granule, pa); in mobj_get_pa()
71 static inline size_t mobj_get_phys_offs(struct mobj *mobj, size_t granule) in mobj_get_phys_offs() argument
74 return mobj->ops->get_phys_offs(mobj, granule); in mobj_get_phys_offs()
/optee_os/core/arch/arm/mm/
A Dcore_mmu.c1399 assert(granule == CORE_MMU_PGDIR_SIZE || granule == SMALL_PAGE_SIZE); in tlbi_mva_range()
1400 assert(!(va & (granule - 1)) && !(len & (granule - 1))); in tlbi_mva_range()
1405 len -= granule; in tlbi_mva_range()
1406 va += granule; in tlbi_mva_range()
1414 assert(granule == CORE_MMU_PGDIR_SIZE || granule == SMALL_PAGE_SIZE); in tlbi_mva_range_asid()
1415 assert(!(va & (granule - 1)) && !(len & (granule - 1))); in tlbi_mva_range_asid()
1420 len -= granule; in tlbi_mva_range_asid()
1421 va += granule; in tlbi_mva_range_asid()
1921 size_t granule = 0; in core_mmu_remove_mapping() local
1943 p = ROUNDDOWN(pa, granule); in core_mmu_remove_mapping()
[all …]
A Dmobj_dyn_shm.c67 size_t granule, paddr_t *pa) in mobj_reg_shm_get_pa() argument
80 switch (granule) { in mobj_reg_shm_get_pa()
98 size_t granule __maybe_unused) in mobj_reg_shm_get_phys_offs()
100 assert(granule >= mobj->phys_granule); in mobj_reg_shm_get_phys_offs()
A Dsp_mem.c108 size_t granule, paddr_t *pa) in get_pa() argument
119 switch (granule) { in get_pa()
137 size_t granule __maybe_unused) in get_phys_offs()
A Dmobj_ffa.c435 size_t granule, paddr_t *pa) argument
448 switch (granule) {
466 size_t granule __maybe_unused)
468 assert(granule >= mobj->phys_granule);
/optee_os/core/arch/arm/plat-totalcompute/fdts/
A Doptee_sp_manifest.dts24 xlat-granule = <0>; /* 4KiB */
/optee_os/core/arch/arm/include/mm/
A Dcore_mmu.h668 void tlbi_mva_range(vaddr_t va, size_t len, size_t granule);
680 void tlbi_mva_range_asid(vaddr_t va, size_t len, size_t granule, uint32_t asid);

Completed in 17 milliseconds