Lines Matching refs:flags
17 static tee_mm_pool_t *init_pool(paddr_t b, paddr_size_t sz, uint32_t flags) in init_pool() argument
28 if (flags & TEE_MM_POOL_NEX_MALLOC) in init_pool()
35 if (!tee_mm_init(pool, b, sz, CORE_MMU_USER_CODE_SHIFT, flags)) in init_pool()
44 uint32_t flags = TEE_MM_POOL_NEX_MALLOC; in nex_phys_mem_init() local
48 nex_core_pool = init_pool(core_base, core_size, flags); in nex_phys_mem_init()
49 nex_ta_pool = init_pool(ta_base, ta_size, flags); in nex_phys_mem_init()
89 size_t size, uint32_t flags) in mm_alloc() argument
94 mm = tee_mm_alloc_flags(p0, size, flags); in mm_alloc()
96 mm = tee_mm_alloc_flags(p1, size, flags); in mm_alloc()
182 uint32_t flags = TEE_MM_POOL_NO_FLAGS; in phys_mem_init() local
186 core_pool = init_pool(core_base, core_size, flags); in phys_mem_init()
187 ta_pool = init_pool(ta_base, ta_size, flags); in phys_mem_init()
226 tee_mm_entry_t *phys_mem_alloc_flags(size_t size, uint32_t flags) in phys_mem_alloc_flags() argument
232 if (!(flags & MAF_NEX)) { in phys_mem_alloc_flags()
238 if (flags & MAF_CORE_MEM) in phys_mem_alloc_flags()
239 return mm_alloc(core, NULL, size, flags); in phys_mem_alloc_flags()
241 return mm_alloc(ta, core, size, flags); in phys_mem_alloc_flags()