Lines Matching refs:h
138 return bucket_perm_choose(&bucket->h, work, x, r); in bucket_uniform_choose()
147 for (i = bucket->h.size-1; i >= 0; i--) { in bucket_list_choose()
148 __u64 w = crush_hash32_4(bucket->h.hash, x, bucket->h.items[i], in bucket_list_choose()
149 r, bucket->h.id); in bucket_list_choose()
153 i, x, r, bucket->h.items[i], bucket->item_weights[i], in bucket_list_choose()
159 return bucket->h.items[i]; in bucket_list_choose()
163 dprintk("bad list sums for bucket %d\n", bucket->h.id); in bucket_list_choose()
164 return bucket->h.items[0]; in bucket_list_choose()
171 int h = 0; in height() local
173 h++; in height()
176 return h; in height()
181 int h = height(x); in left() local
182 return x - (1 << (h-1)); in left()
187 int h = height(x); in right() local
188 return x + (1 << (h-1)); in right()
210 t = (__u64)crush_hash32_4(bucket->h.hash, x, n, r, in bucket_tree_choose()
211 bucket->h.id) * (__u64)w; in bucket_tree_choose()
222 return bucket->h.items[n >> 1]; in bucket_tree_choose()
236 for (i = 0; i < bucket->h.size; i++) { in bucket_straw_choose()
237 draw = crush_hash32_3(bucket->h.hash, x, bucket->h.items[i], r); in bucket_straw_choose()
245 return bucket->h.items[high]; in bucket_straw_choose()
321 return bucket->h.items; in get_choose_arg_ids()
337 for (i = 0; i < bucket->h.size; i++) { in bucket_straw2_choose()
340 u = crush_hash32_3(bucket->h.hash, x, ids[i], r); in bucket_straw2_choose()
372 return bucket->h.items[high]; in bucket_straw2_choose()