Lines Matching refs:block_header_t
174 static inline __attribute__((__always_inline__)) block_header_t* search_suitable_block(control_t* c… in search_suitable_block()
207 …te__((__always_inline__)) void remove_free_block(control_t* control, block_header_t* block, int fl… in remove_free_block()
209 block_header_t* prev = block->prev_free; in remove_free_block()
210 block_header_t* next = block->next_free; in remove_free_block()
236 …te__((__always_inline__)) void insert_free_block(control_t* control, block_header_t* block, int fl… in insert_free_block()
238 block_header_t* current = control->blocks[fl][sl]; in insert_free_block()
257 …ine __attribute__((__always_inline__)) void block_remove(control_t* control, block_header_t* block) in block_remove()
265 …ine __attribute__((__always_inline__)) void block_insert(control_t* control, block_header_t* block) in block_insert()
272 static inline __attribute__((__always_inline__)) int block_can_split(block_header_t* block, size_t … in block_can_split()
274 return block_size(block) >= sizeof(block_header_t) + size; in block_can_split()
278 static inline __attribute__((__always_inline__)) block_header_t* block_split(block_header_t* block,… in block_split()
283 block_header_t* remaining = in block_split()
328 …c inline __attribute__((__always_inline__)) block_header_t* block_absorb(block_header_t* prev, blo… in block_absorb()
337 multi_heap_internal_poison_fill_region(block, sizeof(block_header_t), true /* free */); in block_absorb()
344 … inline __attribute__((__always_inline__)) block_header_t* block_merge_prev(control_t* control, bl… in block_merge_prev()
348 block_header_t* prev = block_prev(block); in block_merge_prev()
359 … inline __attribute__((__always_inline__)) block_header_t* block_merge_next(control_t* control, bl… in block_merge_next()
361 block_header_t* next = block_next(block); in block_merge_next()
375 …bute__((__always_inline__)) void block_trim_free(control_t* control, block_header_t* block, size_t… in block_trim_free()
380 block_header_t* remaining_block = block_split(block, size); in block_trim_free()
388 …bute__((__always_inline__)) void block_trim_used(control_t* control, block_header_t* block, size_t… in block_trim_used()
394 block_header_t* remaining_block = block_split(block, size); in block_trim_used()
402 …ine __attribute__((__always_inline__)) block_header_t* block_trim_free_leading(control_t* control,… in block_trim_free_leading()
404 block_header_t* remaining_block = block; in block_trim_free_leading()
424 static inline __attribute__((__always_inline__)) block_header_t* block_locate_free(control_t* cont… in block_locate_free()
427 block_header_t* block = 0; in block_locate_free()
454 …__((__always_inline__)) void* block_prepare_used(control_t* control, block_header_t* block, size_t… in block_prepare_used()
500 block_header_t* block = block_from_ptr(ptr); in integrity_walker()
530 const block_header_t* block = control->blocks[i][j]; in tlsf_check()
578 block_header_t* block = in tlsf_walk_pool()
597 const block_header_t* block = block_from_ptr(ptr); in tlsf_block_size()
653 block_header_t* block; in tlsf_add_pool()
654 block_header_t* next; in tlsf_add_pool()
703 block_header_t* block = offset_to_block(pool, -(int)block_header_overhead); in tlsf_remove_pool()
757 block_header_t* block = block_locate_free(control, adjust); in tlsf_malloc()
798 const size_t gap_minimum = sizeof(block_header_t) + off_adjust; in tlsf_memalign_offs()
814 block_header_t* block = block_locate_free(control, aligned_size); in tlsf_memalign_offs()
817 tlsf_assert(sizeof(block_header_t) == block_size_min + block_header_overhead); in tlsf_memalign_offs()
871 block_header_t* block = block_from_ptr(ptr); in tlsf_free()
910 block_header_t* block = block_from_ptr(ptr); in tlsf_realloc()
911 block_header_t* next = block_next(block); in tlsf_realloc()