Lines Matching refs:arg
306 const struct crush_choose_arg *arg, in get_choose_arg_weights() argument
309 if (!arg || !arg->weight_set) in get_choose_arg_weights()
312 if (position >= arg->weight_set_size) in get_choose_arg_weights()
313 position = arg->weight_set_size - 1; in get_choose_arg_weights()
314 return arg->weight_set[position].weights; in get_choose_arg_weights()
318 const struct crush_choose_arg *arg) in get_choose_arg_ids() argument
320 if (!arg || !arg->ids) in get_choose_arg_ids()
323 return arg->ids; in get_choose_arg_ids()
328 const struct crush_choose_arg *arg, in bucket_straw2_choose() argument
334 __u32 *weights = get_choose_arg_weights(bucket, arg, position); in bucket_straw2_choose()
335 __s32 *ids = get_choose_arg_ids(bucket, arg); in bucket_straw2_choose()
379 const struct crush_choose_arg *arg, in crush_bucket_choose() argument
402 x, r, arg, position); in crush_bucket_choose()