Lines Matching refs:tlsf_cast

274 #define tlsf_cast(t, exp)   ((t) (exp))  macro
359 static const size_t block_size_max = tlsf_cast(size_t, 1) << FL_INDEX_MAX;
399 return tlsf_cast(int, block->size & block_header_free_bit); in block_is_free()
414 return tlsf_cast(int, block->size & block_header_prev_free_bit); in block_is_prev_free()
429 return tlsf_cast(block_header_t *, in block_from_ptr()
430 tlsf_cast(unsigned char *, ptr) - block_start_offset); in block_from_ptr()
435 return tlsf_cast(void *, in block_to_ptr()
436 tlsf_cast(unsigned char *, block) + block_start_offset); in block_to_ptr()
442 return tlsf_cast(block_header_t *, tlsf_cast(tlsfptr_t, ptr) + size); in offset_to_block()
499 (tlsf_cast(tlsfptr_t, ptr) + (align - 1)) & ~(align - 1); in align_ptr()
501 return tlsf_cast(void *, aligned); in align_ptr()
533 sl = tlsf_cast(int, size) / (SMALL_BLOCK_SIZE / SL_INDEX_COUNT); in mapping_insert()
537 sl = tlsf_cast(int, size >> (fl - SL_INDEX_COUNT_LOG2)) ^ (1 << SL_INDEX_COUNT_LOG2); in mapping_insert()
824 integrity_t * integ = tlsf_cast(integrity_t *, user); in integrity_walker()
842 control_t * control = tlsf_cast(control_t *, tlsf); in lv_tlsf_check()
1003 block_insert(tlsf_cast(control_t *, tlsf), block); in lv_tlsf_add_pool()
1016 control_t * control = tlsf_cast(control_t *, tlsf); in lv_tlsf_remove_pool()
1074 control_constructor(tlsf_cast(control_t *, mem)); in lv_tlsf_create()
1076 return tlsf_cast(lv_tlsf_t, mem); in lv_tlsf_create()
1094 return tlsf_cast(lv_pool_t, (char *)tlsf + lv_tlsf_size()); in lv_tlsf_get_pool()
1099 control_t * control = tlsf_cast(control_t *, tlsf); in lv_tlsf_malloc()
1107 control_t * control = tlsf_cast(control_t *, tlsf); in lv_tlsf_memalign()
1135 size_t gap = tlsf_cast(size_t, in lv_tlsf_memalign()
1136 tlsf_cast(tlsfptr_t, aligned) - tlsf_cast(tlsfptr_t, ptr)); in lv_tlsf_memalign()
1142 const void * next_aligned = tlsf_cast(void *, in lv_tlsf_memalign()
1143 tlsf_cast(tlsfptr_t, aligned) + offset); in lv_tlsf_memalign()
1146 gap = tlsf_cast(size_t, in lv_tlsf_memalign()
1147 tlsf_cast(tlsfptr_t, aligned) - tlsf_cast(tlsfptr_t, ptr)); in lv_tlsf_memalign()
1164 control_t * control = tlsf_cast(control_t *, tlsf); in lv_tlsf_free()
1192 control_t * control = tlsf_cast(control_t *, tlsf); in lv_tlsf_realloc()