Home
last modified time | relevance | path

Searched refs:block_header_t (Results 1 – 5 of 5) sorted by relevance

/hal_espressif-3.6.0/components/heap/
Dheap_tlsf_block_functions.h60 #define block_start_offset (offsetof(block_header_t, size) + sizeof(size_t))
67 #define block_size_min (sizeof(block_header_t) - sizeof(block_header_t*))
73 static inline __attribute__((__always_inline__)) size_t block_size(const block_header_t* block) in block_size()
78 static inline __attribute__((__always_inline__)) void block_set_size(block_header_t* block, size_t … in block_set_size()
84 static inline __attribute__((__always_inline__)) int block_is_last(const block_header_t* block) in block_is_last()
89 static inline __attribute__((__always_inline__)) int block_is_free(const block_header_t* block) in block_is_free()
94 static inline __attribute__((__always_inline__)) void block_set_free(block_header_t* block) in block_set_free()
99 static inline __attribute__((__always_inline__)) void block_set_used(block_header_t* block) in block_set_used()
104 static inline __attribute__((__always_inline__)) int block_is_prev_free(const block_header_t* block) in block_is_prev_free()
109 static inline __attribute__((__always_inline__)) void block_set_prev_free(block_header_t* block) in block_set_prev_free()
[all …]
Dheap_tlsf.c174 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()
[all …]
Dheap_tlsf.h62 typedef struct block_header_t struct
65 struct block_header_t* prev_phys_block; argument
71 struct block_header_t* next_free; argument
72 struct block_header_t* prev_free; argument
73 } block_header_t; typedef
79 block_header_t block_null;
86 block_header_t* blocks[FL_INDEX_COUNT][SL_INDEX_COUNT];
Dmulti_heap.c89 static inline bool is_free(const block_header_t *block) in is_free()
95 static inline size_t block_data_size(const block_header_t *block) in block_data_size()
101 static void assert_valid_block(const heap_t *heap, const block_header_t *block) in assert_valid_block()
164 block_header_t* block = offset_to_block(pool, -(int)block_header_overhead); in multi_heap_get_first_block()
173 block_header_t* next = block_next(block); in multi_heap_get_next_block()
Dmulti_heap_internal.h17 typedef const struct block_header_t *multi_heap_block_handle_t;