Lines Matching refs:alloc
127 void * alloc = NULL; in lv_mem_alloc() local
140 alloc = ent_alloc(e, size); in lv_mem_alloc()
143 } while(e != NULL && alloc == NULL); in lv_mem_alloc()
148 alloc = LV_MEM_CUSTOM_ALLOC(size); in lv_mem_alloc()
151 alloc = LV_MEM_CUSTOM_ALLOC(size + sizeof(lv_mem_header_t)); in lv_mem_alloc()
152 if(alloc != NULL) { in lv_mem_alloc()
153 ((lv_mem_ent_t *)alloc)->header.s.d_size = size; in lv_mem_alloc()
154 ((lv_mem_ent_t *)alloc)->header.s.used = 1; in lv_mem_alloc()
156 alloc = &((lv_mem_ent_t *)alloc)->first_data; in lv_mem_alloc()
162 if(alloc != NULL) memset(alloc, 0xaa, size); in lv_mem_alloc()
165 if(alloc == NULL) LV_LOG_WARN("Couldn't allocate memory"); in lv_mem_alloc()
167 return alloc; in lv_mem_alloc()
410 void * alloc = NULL; in ent_alloc() local
420 alloc = &e->first_data; in ent_alloc()
423 return alloc; in ent_alloc()