Lines Matching refs:tlsf_assert
76 #if !defined (tlsf_assert)
77 #define tlsf_assert assert macro
101 tlsf_assert(0 == (align & (align - 1)) && "must align to a power of two"); in align_up()
107 tlsf_assert(0 == (align & (align - 1)) && "must align to a power of two"); in align_down()
115 tlsf_assert(0 == (align & (align - 1)) && "must align to a power of two"); in align_ptr()
198 tlsf_assert(sl_map && "internal error - second level bitmap is null"); in search_suitable_block()
211 tlsf_assert(prev && "prev_free field can not be null"); in remove_free_block()
212 tlsf_assert(next && "next_free field can not be null"); in remove_free_block()
239 tlsf_assert(current && "free list cannot have a null entry"); in insert_free_block()
240 tlsf_assert(block && "cannot insert a null entry into the free list"); in insert_free_block()
245 tlsf_assert(block_to_ptr(block) == align_ptr(block_to_ptr(block), ALIGN_SIZE) in insert_free_block()
291 tlsf_assert(block_to_ptr(remaining) == align_ptr(block_to_ptr(remaining), ALIGN_SIZE) in block_split()
294 tlsf_assert(block_size(block) == remain_size + size + block_header_overhead); in block_split()
296 tlsf_assert(block_size(remaining) >= block_size_min && "block split with invalid size"); in block_split()
330 tlsf_assert(!block_is_last(prev) && "previous block can't be last"); in block_absorb()
349 tlsf_assert(prev && "prev physical block can't be null"); in block_merge_prev()
350 tlsf_assert(block_is_free(prev) && "prev block is not free though marked as such"); in block_merge_prev()
362 tlsf_assert(next && "next physical block can't be null"); in block_merge_next()
366 tlsf_assert(!block_is_last(block) && "previous block can't be last"); in block_merge_next()
377 tlsf_assert(block_is_free(block) && "block must be free"); in block_trim_free()
390 tlsf_assert(!block_is_free(block) && "block must be used"); in block_trim_used()
447 tlsf_assert(block_size(block) >= size); in block_locate_free()
459 tlsf_assert(size && "size must be non-zero"); in block_prepare_used()
496 #define tlsf_insist(x) { tlsf_assert(x); if (!(x)) { status--; } }
707 tlsf_assert(block_is_free(block) && "block should be free"); in tlsf_remove_pool()
708 tlsf_assert(!block_is_free(block_next(block)) && "next block should not be free"); in tlsf_remove_pool()
709 tlsf_assert(block_size(block_next(block)) == 0 && "next block size should be zero"); in tlsf_remove_pool()
817 tlsf_assert(sizeof(block_header_t) == block_size_min + block_header_overhead); in tlsf_memalign_offs()
846 tlsf_assert(gap >= gap_minimum && "gap size too small"); in tlsf_memalign_offs()
872 tlsf_assert(!block_is_free(block) && "block already marked as free"); in tlsf_free()
917 tlsf_assert(!block_is_free(block) && "block already marked as free"); in tlsf_realloc()