Home
last modified time | relevance | path

Searched refs:chunkid_t (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/lib/heap/
Dheap.h61 typedef uint32_t chunkid_t; typedef
65 chunkid_t next;
69 chunkid_t chunk0_hdr[2];
70 chunkid_t end_chunk;
107 static inline chunkid_t chunk_field(struct z_heap *h, chunkid_t c, in chunk_field()
120 static inline void chunk_set(struct z_heap *h, chunkid_t c, in chunk_set()
121 enum chunk_fields f, chunkid_t val) in chunk_set()
137 static inline bool chunk_used(struct z_heap *h, chunkid_t c) in chunk_used()
142 static inline chunksz_t chunk_size(struct z_heap *h, chunkid_t c) in chunk_size()
147 static inline void set_chunk_used(struct z_heap *h, chunkid_t c, bool used) in set_chunk_used()
[all …]
Dheap.c24 static void *chunk_mem(struct z_heap *h, chunkid_t c) in chunk_mem()
34 static void free_list_remove_bidx(struct z_heap *h, chunkid_t c, int bidx) in free_list_remove_bidx()
47 chunkid_t first = prev_free_chunk(h, c), in free_list_remove_bidx()
60 static void free_list_remove(struct z_heap *h, chunkid_t c) in free_list_remove()
68 static void free_list_add_bidx(struct z_heap *h, chunkid_t c, int bidx) in free_list_add_bidx()
84 chunkid_t second = b->next; in free_list_add_bidx()
85 chunkid_t first = prev_free_chunk(h, second); in free_list_add_bidx()
98 static void free_list_add(struct z_heap *h, chunkid_t c) in free_list_add()
109 static void split_chunks(struct z_heap *h, chunkid_t lc, chunkid_t rc) in split_chunks()
125 static void merge_chunks(struct z_heap *h, chunkid_t lc, chunkid_t rc) in merge_chunks()
[all …]
Dheap_validate.c23 static bool in_bounds(struct z_heap *h, chunkid_t c) in in_bounds()
31 static bool valid_chunk(struct z_heap *h, chunkid_t c) in valid_chunk()
74 chunkid_t c; in sys_heap_validate()
111 chunkid_t c0 = h->buckets[b].next; in sys_heap_validate()
142 chunkid_t prev_chunk = 0; in sys_heap_validate()
164 chunkid_t c0 = h->buckets[b].next; in sys_heap_validate()
Dheap_info.c26 chunkid_t first = h->buckets[i].next; in heap_print_info()
31 chunkid_t curr = first; in heap_print_info()
48 for (chunkid_t c = 0; ; c = right_chunk(h, c)) { in heap_print_info()