Lines Matching refs:bucket
3293 #define for_each_chain_block(bucket, prev, curr) \ argument
3294 for ((prev) = -1, (curr) = chain_block_buckets[bucket]; \
3325 static inline void init_chain_block(int offset, int next, int bucket, int size) in init_chain_block() argument
3330 if (size && !bucket) { in init_chain_block()
3338 int bucket = size_to_bucket(size); in add_chain_block() local
3339 int next = chain_block_buckets[bucket]; in add_chain_block()
3356 if (!bucket) { in add_chain_block()
3376 init_chain_block(offset, next, bucket, size); in add_chain_block()
3377 chain_block_buckets[bucket] = offset; in add_chain_block()
3391 static inline void del_chain_block(int bucket, int size, int next) in del_chain_block() argument
3394 chain_block_buckets[bucket] = next; in del_chain_block()
3396 if (!bucket) in del_chain_block()
3418 int bucket, curr, size; in alloc_chain_hlocks() local
3436 bucket = size_to_bucket(req); in alloc_chain_hlocks()
3437 curr = chain_block_buckets[bucket]; in alloc_chain_hlocks()
3439 if (bucket) { in alloc_chain_hlocks()
3441 del_chain_block(bucket, req, chain_block_next(curr)); in alloc_chain_hlocks()
3466 bucket = size_to_bucket(size); in alloc_chain_hlocks()
3467 curr = chain_block_buckets[bucket]; in alloc_chain_hlocks()
3471 del_chain_block(bucket, size, chain_block_next(curr)); in alloc_chain_hlocks()