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

/linux-master/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_ets.c44 if (params->quanta[i] && params->weights[i] == 0)
55 w_min = min(w_min, params->weights[i]);
64 lan_wr(lan966x_ets_hw_cost(w_min, params->weights[i]),
/linux-master/mm/damon/
H A Dsysfs-schemes.c1058 * scheme/weights directory
1071 struct damon_sysfs_weights *weights = kmalloc(sizeof(*weights), local
1074 if (!weights)
1076 weights->kobj = (struct kobject){};
1077 weights->sz = sz;
1078 weights->nr_accesses = nr_accesses;
1079 weights->age = age;
1080 return weights;
1086 struct damon_sysfs_weights *weights local
1095 struct damon_sysfs_weights *weights = container_of(kobj, local
1105 struct damon_sysfs_weights *weights = container_of(kobj, local
1114 struct damon_sysfs_weights *weights = container_of(kobj, local
1124 struct damon_sysfs_weights *weights = container_of(kobj, local
1133 struct damon_sysfs_weights *weights = container_of(kobj, local
1174 struct damon_sysfs_weights *weights; member in struct:damon_sysfs_quotas
1189 struct damon_sysfs_weights *weights; local
[all...]
/linux-master/drivers/md/
H A Ddm-ps-historical-service-time.c50 unsigned int weights[HST_WEIGHT_COUNT]; member in struct:selector
153 return s->weights[bucket];
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);
172 s->weights[HST_WEIGHT_COUNT - 1] = 0;
246 DMEMIT("2 %u %u ", s->weights[0], s->threshold_multiplier);
/linux-master/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_tc.c135 /* Throw an error if we receive zero weights by tc */
136 if (params->quanta[i] && params->weights[i] == 0) {
H A Dsparx5_qos.c547 w_min = min(w_min, params->weights[i]);
565 sparx5_weight_to_hw_cost(w_min, params->weights[i]);
/linux-master/net/sched/
H A Dsch_fq.c950 s32 *weights = nla_data(attr); local
954 if (weights[i] < FQ_MIN_WEIGHT) {
956 weights[i], FQ_MIN_WEIGHT);
961 q->band_flows[i].quantum = weights[i];
1169 s32 weights[3]; local
1203 weights[0] = q->band_flows[0].quantum;
1204 weights[1] = q->band_flows[1].quantum;
1205 weights[2] = q->band_flows[2].quantum;
1206 if (nla_put(skb, TCA_FQ_WEIGHTS, sizeof(weights), &weights))
[all...]
H A Dsch_ets.c140 qopt.replace_params.weights[i] = weight;
/linux-master/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 in struct:crush_weight_set
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...]
/linux-master/net/ceph/crush/
H A Dmapper.c314 return arg->weight_set[position].weights;
334 __u32 *weights = get_choose_arg_weights(bucket, arg, position); local
338 dprintk("weight 0x%x item %d\n", weights[i], ids[i]);
339 if (weights[i]) {
361 draw = div64_s64(ln, weights[i]);
892 * @choose_args: weights and ids for each known bucket
/linux-master/mm/
H A Dmempolicy.c24 * a set of weights (per-node), with normal fallback if it
26 * Example: nodeset(0,1) & weights (2,1) - 2 pages allocated
2391 u8 *table, *weights, weight; local
2435 /* create a local copy of node weights to operate on outside rcu */
2436 weights = kzalloc(nr_node_ids, GFP_KERNEL);
2437 if (!weights)
2443 memcpy(weights, table, nr_node_ids);
2448 if (!weights[node])
2449 weights[node] = 1;
2450 weight_total += weights[nod
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_qdisc.c1324 const unsigned int *weights,
1361 weights[band]);
1559 p->weights, p->priomap);
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) argument
/linux-master/net/ceph/
H A Dosdmap.c253 kfree(arg->weight_set[j].weights);
328 w->weights = decode_array_32_alloc(p, end, &w->size);
329 if (IS_ERR(w->weights)) {
330 ret = PTR_ERR(w->weights);
331 w->weights = NULL;
2486 * also doesn't exist, fall back to canonical weights.
/linux-master/drivers/staging/media/ipu3/
H A Dipu3-css-params.c2448 acc->ae.weights[i] = acc_user->ae.weights[i];
2454 acc->ae.weights[i] = acc_old->ae.weights[i];
2463 acc->ae.weights[i] = weight_def;
H A Dipu3-abi.h1229 struct ipu3_uapi_ae_weight_elem weights[IPU3_UAPI_AE_WEIGHTS]
/linux-master/include/net/
H A Dpkt_cls.h994 unsigned int weights[TCQ_ETS_MAX_BANDS]; member in struct:tc_ets_qopt_offload_replace_params
/linux-master/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 in struct:ipu3_uapi_ae_config
921 * @lc_ctrl: Parameter that controls weights of Chroma Homogeneity metric

Completed in 209 milliseconds