Lines Matching refs:storage
101 pool->storage[offset++] = words[--lev]; in ba_init()
121 bitalloc_word_t *storage = &pool->storage[offset]; in ba_alloc_helper() local
122 int loc = ba_ffs(storage[index]); in ba_alloc_helper()
133 storage[words], in ba_alloc_helper()
144 storage[index] &= ~(1 << loc); in ba_alloc_helper()
145 *clear = (storage[index] == 0); in ba_alloc_helper()
194 bitalloc_word_t *storage = &pool->storage[offset]; in ba_alloc_reverse_helper() local
195 int loc = ba_fls(storage[index]); in ba_alloc_reverse_helper()
206 storage[words], in ba_alloc_reverse_helper()
217 storage[index] &= ~(1 << loc); in ba_alloc_reverse_helper()
218 *clear = (storage[index] == 0); in ba_alloc_reverse_helper()
240 bitalloc_word_t *storage = &pool->storage[offset]; in ba_alloc_index_helper() local
247 storage[words], in ba_alloc_index_helper()
258 r = (storage[*index] & (1 << loc)) ? 0 : -1; in ba_alloc_index_helper()
266 storage[*index] &= ~(1 << loc); in ba_alloc_index_helper()
267 *clear = (storage[*index] == 0); in ba_alloc_index_helper()
295 bitalloc_word_t *storage = &pool->storage[offset]; in ba_inuse_helper() local
302 storage[words], in ba_inuse_helper()
312 r = (storage[*index] & (1 << loc)) ? -1 : 0; in ba_inuse_helper()
333 bitalloc_word_t *storage = &pool->storage[offset]; in ba_free_helper() local
340 storage[words], in ba_free_helper()
350 r = (storage[*index] & (1 << loc)) ? -1 : 0; in ba_free_helper()
356 storage[*index] |= (1 << loc); in ba_free_helper()
398 bitalloc_word_t *storage = &pool->storage[offset]; in ba_find_next_helper() local
404 storage[words], in ba_find_next_helper()
417 loc = ba_ffs(~storage[*index] & ((bitalloc_word_t)-1 << loc)); in ba_find_next_helper()
429 loc = ba_ffs(~storage[*index]); in ba_find_next_helper()
447 storage[*index] |= (1 << loc); in ba_find_next_helper()