Lines Matching refs:w
146 __u64 w = crush_hash32_4(bucket->h.hash, x, bucket->h.items[i], in bucket_list_choose() local
148 w &= 0xffff; in bucket_list_choose()
152 bucket->sum_weights[i], w); in bucket_list_choose()
153 w *= bucket->sum_weights[i]; in bucket_list_choose()
154 w = w >> 16; in bucket_list_choose()
156 if (w < bucket->item_weights[i]) in bucket_list_choose()
197 __u32 w; in bucket_tree_choose() local
206 w = bucket->node_weights[n]; in bucket_tree_choose()
208 bucket->h.id) * (__u64)w; in bucket_tree_choose()
302 unsigned int w; in bucket_straw2_choose() local
306 w = bucket->item_weights[i]; in bucket_straw2_choose()
307 if (w) { in bucket_straw2_choose()
330 draw = div64_s64(ln, w); in bucket_straw2_choose()
795 int *w; in crush_do_rule() local
827 w = a; in crush_do_rule()
840 w[0] = curstep->arg1; in crush_do_rule()
914 map->buckets[-1-w[i]], in crush_do_rule()
933 map->buckets[-1-w[i]], in crush_do_rule()
954 o = w; in crush_do_rule()
955 w = tmp; in crush_do_rule()
962 result[result_len] = w[i]; in crush_do_rule()