Home
last modified time | relevance | path

Searched refs:weights (Results 1 - 24 of 24) sorted by relevance

/kernel/linux/linux-6.6/mm/damon/
H A Dsysfs-schemes.c779 * scheme/weights directory
792 struct damon_sysfs_weights *weights = kmalloc(sizeof(*weights), in damon_sysfs_weights_alloc() local
795 if (!weights) in damon_sysfs_weights_alloc()
797 weights->kobj = (struct kobject){}; in damon_sysfs_weights_alloc()
798 weights->sz = sz; in damon_sysfs_weights_alloc()
799 weights->nr_accesses = nr_accesses; in damon_sysfs_weights_alloc()
800 weights->age = age; in damon_sysfs_weights_alloc()
801 return weights; in damon_sysfs_weights_alloc()
807 struct damon_sysfs_weights *weights in sz_permil_show() local
816 struct damon_sysfs_weights *weights = container_of(kobj, sz_permil_store() local
826 struct damon_sysfs_weights *weights = container_of(kobj, nr_accesses_permil_show() local
835 struct damon_sysfs_weights *weights = container_of(kobj, nr_accesses_permil_store() local
845 struct damon_sysfs_weights *weights = container_of(kobj, age_permil_show() local
854 struct damon_sysfs_weights *weights = container_of(kobj, age_permil_store() local
895 struct damon_sysfs_weights *weights; global() member
908 struct damon_sysfs_weights *weights; damon_sysfs_quotas_add_dirs() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_ets.c44 if (params->quanta[i] && params->weights[i] == 0) in lan966x_ets_add()
55 w_min = min(w_min, params->weights[i]); in lan966x_ets_add()
64 lan_wr(lan966x_ets_hw_cost(w_min, params->weights[i]), in lan966x_ets_add()
/kernel/linux/linux-5.10/drivers/md/
H A Ddm-historical-service-time.c50 unsigned int weights[HST_WEIGHT_COUNT]; member
153 return s->weights[bucket]; in hst_weight()
157 * Set up the weights array.
159 * weights[len-1] = 0
160 * weights[n] = base ^ (n + 1)
171 s->weights[i] = fixed_power(base, HST_FIXED_SHIFT, i + 1); in hst_set_weights()
172 s->weights[HST_WEIGHT_COUNT - 1] = 0; in hst_set_weights()
246 DMEMIT("2 %u %u ", s->weights[0], s->threshold_multiplier); in hst_status()
/kernel/linux/linux-6.6/drivers/md/
H A Ddm-ps-historical-service-time.c50 unsigned int weights[HST_WEIGHT_COUNT]; member
153 return s->weights[bucket]; in hst_weight()
157 * Set up the weights array.
159 * weights[len-1] = 0
160 * weights[n] = base ^ (n + 1)
171 s->weights[i] = fixed_power(base, HST_FIXED_SHIFT, i + 1); in hst_set_weights()
172 s->weights[HST_WEIGHT_COUNT - 1] = 0; in hst_set_weights()
246 DMEMIT("2 %u %u ", s->weights[0], s->threshold_multiplier); in hst_status()
/kernel/linux/linux-5.10/net/ceph/crush/
H A Dmapper.c314 return arg->weight_set[position].weights; in get_choose_arg_weights()
334 __u32 *weights = get_choose_arg_weights(bucket, arg, position); in bucket_straw2_choose() local
338 dprintk("weight 0x%x item %d\n", weights[i], ids[i]); in bucket_straw2_choose()
339 if (weights[i]) { in bucket_straw2_choose()
361 draw = div64_s64(ln, weights[i]); in bucket_straw2_choose()
892 * @choose_args: weights and ids for each known bucket
/kernel/linux/linux-6.6/net/ceph/crush/
H A Dmapper.c314 return arg->weight_set[position].weights; in get_choose_arg_weights()
334 __u32 *weights = get_choose_arg_weights(bucket, arg, position); in bucket_straw2_choose() local
338 dprintk("weight 0x%x item %d\n", weights[i], ids[i]); in bucket_straw2_choose()
339 if (weights[i]) { in bucket_straw2_choose()
361 draw = div64_s64(ln, weights[i]); in bucket_straw2_choose()
892 * @choose_args: weights and ids for each known bucket
/kernel/linux/linux-5.10/include/linux/crush/
H A Dcrush.h144 * Replacement weights for each item in a bucket. The size of the
150 __u32 *weights; /*!< 16.16 fixed point weights member
157 * Replacement weights and ids for a given straw2 bucket, for
161 * replacement weights found at __weight_set[N]__ are used instead of
162 * the weights from __item_weights__. If __N__ is greater than
163 * __weight_set_size__, the weights found at __weight_set_size-1__ are
169 * choosing the 0th item will use position 0 weights [ 0x10000, 0x20000 ]
170 * choosing the 1th item will use position 1 weights [ 0x20000, 0x40000 ]
171 * choosing the 2th item will use position 1 weights [
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_tc.c135 /* Throw an error if we receive zero weights by tc */ in sparx5_tc_setup_qdisc_ets()
136 if (params->quanta[i] && params->weights[i] == 0) { in sparx5_tc_setup_qdisc_ets()
H A Dsparx5_qos.c547 w_min = min(w_min, params->weights[i]); in sparx5_tc_ets_add()
565 sparx5_weight_to_hw_cost(w_min, params->weights[i]); in sparx5_tc_ets_add()
/kernel/linux/linux-6.6/include/linux/crush/
H A Dcrush.h144 * Replacement weights for each item in a bucket. The size of the
150 __u32 *weights; /*!< 16.16 fixed point weights member
157 * Replacement weights and ids for a given straw2 bucket, for
161 * replacement weights found at __weight_set[N]__ are used instead of
162 * the weights from __item_weights__. If __N__ is greater than
163 * __weight_set_size__, the weights found at __weight_set_size-1__ are
169 * choosing the 0th item will use position 0 weights [ 0x10000, 0x20000 ]
170 * choosing the 1th item will use position 1 weights [ 0x20000, 0x40000 ]
171 * choosing the 2th item will use position 1 weights [
[all...]
/kernel/linux/linux-5.10/net/ceph/
H A Dosdmap.c237 kfree(arg->weight_set[j].weights); in free_choose_arg_map()
312 w->weights = decode_array_32_alloc(p, end, &w->size); in decode_choose_arg()
313 if (IS_ERR(w->weights)) { in decode_choose_arg()
314 ret = PTR_ERR(w->weights); in decode_choose_arg()
315 w->weights = NULL; in decode_choose_arg()
2451 * also doesn't exist, fall back to canonical weights.
/kernel/linux/linux-6.6/net/ceph/
H A Dosdmap.c253 kfree(arg->weight_set[j].weights); in free_choose_arg_map()
328 w->weights = decode_array_32_alloc(p, end, &w->size); in decode_choose_arg()
329 if (IS_ERR(w->weights)) { in decode_choose_arg()
330 ret = PTR_ERR(w->weights); in decode_choose_arg()
331 w->weights = NULL; in decode_choose_arg()
2486 * also doesn't exist, fall back to canonical weights.
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_qdisc.c963 const unsigned int *weights, in __mlxsw_sp_qdisc_ets_replace()
981 weights[band]); in __mlxsw_sp_qdisc_ets_replace()
1143 p->quanta, p->weights, p->priomap); in mlxsw_sp_qdisc_ets_replace()
960 __mlxsw_sp_qdisc_ets_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, unsigned int nbands, const unsigned int *quanta, const unsigned int *weights, const u8 *priomap) __mlxsw_sp_qdisc_ets_replace() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_qdisc.c1324 const unsigned int *weights, in __mlxsw_sp_qdisc_ets_replace()
1361 weights[band]); in __mlxsw_sp_qdisc_ets_replace()
1559 p->weights, p->priomap); in mlxsw_sp_qdisc_ets_replace()
1320 __mlxsw_sp_qdisc_ets_replace(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, u32 handle, unsigned int nbands, const unsigned int *quanta, const unsigned int *weights, const u8 *priomap) __mlxsw_sp_qdisc_ets_replace() argument
/kernel/linux/linux-5.10/drivers/staging/media/ipu3/
H A Dipu3-css-params.c2451 acc->ae.weights[i] = acc_user->ae.weights[i]; in imgu_css_cfg_acc()
2457 acc->ae.weights[i] = acc_old->ae.weights[i]; in imgu_css_cfg_acc()
2466 acc->ae.weights[i] = weight_def; in imgu_css_cfg_acc()
H A Dipu3-abi.h1229 struct ipu3_uapi_ae_weight_elem weights[IPU3_UAPI_AE_WEIGHTS]
/kernel/linux/linux-6.6/drivers/staging/media/ipu3/
H A Dipu3-css-params.c2448 acc->ae.weights[i] = acc_user->ae.weights[i]; in imgu_css_cfg_acc()
2454 acc->ae.weights[i] = acc_old->ae.weights[i]; in imgu_css_cfg_acc()
2463 acc->ae.weights[i] = weight_def; in imgu_css_cfg_acc()
H A Dipu3-abi.h1229 struct ipu3_uapi_ae_weight_elem weights[IPU3_UAPI_AE_WEIGHTS]
/kernel/linux/linux-5.10/include/net/
H A Dpkt_cls.h925 unsigned int weights[TCQ_ETS_MAX_BANDS]; member
/kernel/linux/linux-5.10/net/sched/
H A Dsch_ets.c140 qopt.replace_params.weights[i] = weight; in ets_offload_change()
/kernel/linux/linux-6.6/include/net/
H A Dpkt_cls.h992 unsigned int weights[TCQ_ETS_MAX_BANDS]; member
/kernel/linux/linux-6.6/net/sched/
H A Dsch_ets.c140 qopt.replace_params.weights[i] = weight; in ets_offload_change()
/kernel/linux/linux-5.10/drivers/staging/media/ipu3/include/
H A Dintel-ipu3.h181 * struct ipu3_uapi_ae_weight_elem - AE weights LUT
237 * @weights: &IPU3_UAPI_AE_WEIGHTS is based on 32x24 blocks in the grid.
238 * Each grid cell has a corresponding value in weights LUT called
243 * Calculate AE grid from image resolution, resample ae weights.
247 struct ipu3_uapi_ae_weight_elem weights[ member
884 * @lc_ctrl: Parameter that controls weights of Chroma Homogeneity metric
/kernel/linux/linux-6.6/drivers/staging/media/ipu3/include/uapi/
H A Dintel-ipu3.h210 * struct ipu3_uapi_ae_weight_elem - AE weights LUT
268 * @weights: &IPU3_UAPI_AE_WEIGHTS is based on 32x24 blocks in the grid.
269 * Each grid cell has a corresponding value in weights LUT called
274 * Calculate AE grid from image resolution, resample ae weights.
278 struct ipu3_uapi_ae_weight_elem weights[IPU3_UAPI_AE_WEIGHTS] member
921 * @lc_ctrl: Parameter that controls weights of Chroma Homogeneity metric

Completed in 69 milliseconds