Lines Matching full:null

21 	if (pool == NULL)  in tee_mm_init()
37 pool->entry = malloc_flags(pool->flags | MAF_ZERO_INIT, NULL, in tee_mm_init()
40 if (pool->entry == NULL) in tee_mm_init()
54 if (pool == NULL || pool->entry == NULL) in tee_mm_final()
57 while (pool->entry->next != NULL) in tee_mm_final()
60 pool->entry = NULL; in tee_mm_final()
126 tee_mm_entry_t *entry = NULL; in tee_mm_alloc_flags()
127 tee_mm_entry_t *nn = NULL; in tee_mm_alloc_flags()
133 return NULL; in tee_mm_alloc_flags()
137 nn = malloc_flags(flags, NULL, MALLOC_DEFAULT_ALIGNMENT, in tee_mm_alloc_flags()
140 return NULL; in tee_mm_alloc_flags()
152 while (entry->next != NULL && psize > in tee_mm_alloc_flags()
157 while (entry->next != NULL && psize > in tee_mm_alloc_flags()
163 if (entry->next == NULL) { in tee_mm_alloc_flags()
209 return NULL; in tee_mm_alloc_flags()
217 (e->next != NULL && in fit_in_gap()
224 (e->next != NULL && (offshi > e->next->offset)) || in fit_in_gap()
243 return NULL; in tee_mm_alloc2()
247 return NULL; in tee_mm_alloc2()
249 mm = malloc_flags(pool->flags, NULL, MALLOC_DEFAULT_ALIGNMENT, in tee_mm_alloc2()
252 return NULL; in tee_mm_alloc2()
262 while (entry->next != NULL && in tee_mm_alloc2()
266 while (entry->next != NULL && offslo > entry->next->offset) in tee_mm_alloc2()
286 return NULL; in tee_mm_alloc2()
301 while (entry->next != NULL && entry->next != p) in tee_mm_free()
332 if (pool == NULL || pool->entry == NULL) in tee_mm_is_empty()
336 ret = pool->entry == NULL || pool->entry->next == NULL; in tee_mm_is_empty()
349 return NULL; in tee_mm_find()
353 while (entry->next != NULL) { in tee_mm_find()
365 return NULL; in tee_mm_find()