Lines Matching refs:w
142 __u64 w = crush_hash32_4(bucket->h.hash,x, bucket->h.items[i], in bucket_list_choose() local
144 w &= 0xffff; in bucket_list_choose()
148 bucket->sum_weights[i], w); in bucket_list_choose()
149 w *= bucket->sum_weights[i]; in bucket_list_choose()
150 w = w >> 16; in bucket_list_choose()
152 if (w < bucket->item_weights[i]) in bucket_list_choose()
193 __u32 w; in bucket_tree_choose() local
202 w = bucket->node_weights[n]; in bucket_tree_choose()
204 bucket->h.id) * (__u64)w; in bucket_tree_choose()
295 unsigned w; in bucket_straw2_choose() local
299 w = bucket->item_weights[i]; in bucket_straw2_choose()
300 if (w) { in bucket_straw2_choose()
323 draw = div64_s64(ln, w); in bucket_straw2_choose()
752 int *w; in crush_do_rule() local
784 w = a; in crush_do_rule()
793 w[0] = curstep->arg1; in crush_do_rule()
864 map->buckets[-1-w[i]], in crush_do_rule()
883 map->buckets[-1-w[i]], in crush_do_rule()
904 o = w; in crush_do_rule()
905 w = tmp; in crush_do_rule()
912 result[result_len] = w[i]; in crush_do_rule()