• Home
  • Raw
  • Download

Lines Matching refs:x

15 # define BUG_ON(x) assert(!(x))  argument
17 # define kmalloc(x, f) malloc(x) argument
18 # define kfree(x) free(x) argument
70 int x, int r) in bucket_perm_choose() argument
76 if (bucket->perm_x != (__u32)x || bucket->perm_n == 0) { in bucket_perm_choose()
77 dprintk("bucket %d new x=%d\n", bucket->id, x); in bucket_perm_choose()
78 bucket->perm_x = x; in bucket_perm_choose()
82 s = crush_hash32_3(bucket->hash, x, bucket->id, 0) % in bucket_perm_choose()
107 i = crush_hash32_3(bucket->hash, x, bucket->id, p) % in bucket_perm_choose()
124 bucket->size, x, r, pr, s); in bucket_perm_choose()
130 int x, int r) in bucket_uniform_choose() argument
132 return bucket_perm_choose(&bucket->h, x, r); in bucket_uniform_choose()
137 int x, int r) in bucket_list_choose() argument
142 __u64 w = crush_hash32_4(bucket->h.hash,x, bucket->h.items[i], in bucket_list_choose()
147 i, x, r, bucket->h.items[i], bucket->item_weights[i], in bucket_list_choose()
172 static int left(int x) in left() argument
174 int h = height(x); in left()
175 return x - (1 << (h-1)); in left()
178 static int right(int x) in right() argument
180 int h = height(x); in right()
181 return x + (1 << (h-1)); in right()
184 static int terminal(int x) in terminal() argument
186 return x & 1; in terminal()
190 int x, int r) in bucket_tree_choose() argument
203 t = (__u64)crush_hash32_4(bucket->h.hash, x, n, r, in bucket_tree_choose()
222 int x, int r) in bucket_straw_choose() argument
230 draw = crush_hash32_3(bucket->h.hash, x, bucket->h.items[i], r); in bucket_straw_choose()
241 static int crush_bucket_choose(struct crush_bucket *in, int x, int r) in crush_bucket_choose() argument
243 dprintk(" crush_bucket_choose %d x=%d r=%d\n", in->id, x, r); in crush_bucket_choose()
248 x, r); in crush_bucket_choose()
251 x, r); in crush_bucket_choose()
254 x, r); in crush_bucket_choose()
257 x, r); in crush_bucket_choose()
270 int item, int x) in is_out() argument
278 if ((crush_hash32_2(CRUSH_HASH_RJENKINS1, x, item) & 0xffff) in is_out()
306 int x, int numrep, int type, in crush_choose_firstn() argument
331 bucket->id, x, outpos, numrep, in crush_choose_firstn()
360 item = bucket_perm_choose(in, x, r); in crush_choose_firstn()
362 item = crush_bucket_choose(in, x, r); in crush_choose_firstn()
408 x, outpos+1, 0, in crush_choose_firstn()
430 item, x); in crush_choose_firstn()
484 int x, int left, int numrep, int type, in crush_choose_indep() argument
503 bucket->id, x, outpos, numrep); in crush_choose_indep()
546 item = crush_bucket_choose(in, x, r); in crush_choose_indep()
595 x, 1, numrep, 0, in crush_choose_indep()
611 is_out(map, weight, weight_max, item, x)) in crush_choose_indep()
643 int ruleno, int x, int *result, int result_max, in crush_do_rule() argument
766 x, numrep, in crush_do_rule()
785 x, out_size, numrep, in crush_do_rule()