Home
last modified time | relevance | path

Searched refs:bidx (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/lib/heap/
Dheap.c34 static void free_list_remove_bidx(struct z_heap *h, chunkid_t c, int bidx) in free_list_remove_bidx() argument
36 struct z_heap_bucket *b = &h->buckets[bidx]; in free_list_remove_bidx()
40 CHECK(h->avail_buckets & BIT(bidx)); in free_list_remove_bidx()
44 h->avail_buckets &= ~BIT(bidx); in free_list_remove_bidx()
63 int bidx = bucket_idx(h, chunk_size(h, c)); in free_list_remove() local
64 free_list_remove_bidx(h, c, bidx); 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() argument
70 struct z_heap_bucket *b = &h->buckets[bidx]; in free_list_add_bidx()
73 CHECK((h->avail_buckets & BIT(bidx)) == 0); in free_list_add_bidx()
76 h->avail_buckets |= BIT(bidx); in free_list_add_bidx()
[all …]
Dheap_validate.c55 static inline void check_nexts(struct z_heap *h, int bidx) in check_nexts() argument
57 struct z_heap_bucket *b = &h->buckets[bidx]; in check_nexts()
59 bool emptybit = (h->avail_buckets & BIT(bidx)) == 0; in check_nexts()