Lines Matching refs:mm
145 tee_mm_entry_t *mm = NULL; in rwp_paged_iv_alloc() local
156 mm = nex_phys_mem_ta_alloc(size); in rwp_paged_iv_alloc()
157 if (!mm) in rwp_paged_iv_alloc()
159 rwp->idx = (tee_mm_get_smem(mm) - nex_phys_mem_get_ta_base()) / in rwp_paged_iv_alloc()
169 tee_mm_free(mm); in rwp_paged_iv_alloc()
222 tee_mm_entry_t *mm = nex_phys_mem_mm_find(pa); in rwp_paged_iv_free() local
224 assert(mm); in rwp_paged_iv_free()
227 tee_mm_free(mm); in rwp_paged_iv_free()
257 tee_mm_entry_t *mm = NULL; in rwp_unpaged_iv_alloc() local
270 mm = nex_phys_mem_ta_alloc(size); in rwp_unpaged_iv_alloc()
271 if (!mm) in rwp_unpaged_iv_alloc()
273 rwp->store = phys_to_virt(tee_mm_get_smem(mm), in rwp_unpaged_iv_alloc()
333 tee_mm_entry_t *mm = NULL; in rwp_unpaged_iv_free() local
339 mm = nex_phys_mem_mm_find(virt_to_phys(rwp->store)); in rwp_unpaged_iv_free()
341 assert(mm); in rwp_unpaged_iv_free()
344 tee_mm_free(mm); in rwp_unpaged_iv_free()
748 tee_mm_entry_t *mm; member
766 f->mm = phys_mem_ta_alloc(size); in fobj_sec_mem_alloc()
767 if (!f->mm) in fobj_sec_mem_alloc()
770 va = phys_to_virt(tee_mm_get_smem(f->mm), MEM_AREA_SEC_RAM_OVERALL, in fobj_sec_mem_alloc()
782 tee_mm_free(f->mm); in fobj_sec_mem_alloc()
800 tee_mm_free(f->mm); in sec_mem_free()
811 return tee_mm_get_smem(f->mm) + page_idx * SMALL_PAGE_SIZE; in sec_mem_get_pa()