Searched refs:weight (Results 101 - 125 of 259) sorted by relevance

1234567891011

/linux-master/net/netfilter/ipvs/
H A Dip_vs_dh.c19 * (n is overloaded) OR (n.weight <= 0) then
225 || atomic_read(&dest->weight) <= 0
/linux-master/lib/
H A Dsbitmap.c299 unsigned int i, weight = 0; local
306 weight += bitmap_weight(&word->word, word_depth);
308 weight += bitmap_weight(&word->cleared, word_depth);
310 return weight;
/linux-master/net/core/
H A Dsysctl_net_core.c302 int ret, weight; local
307 weight = READ_ONCE(weight_p);
308 WRITE_ONCE(net_hotdata.dev_rx_weight, weight * dev_weight_rx_bias);
309 WRITE_ONCE(net_hotdata.dev_tx_weight, weight * dev_weight_tx_bias);
/linux-master/drivers/md/
H A Ddm-zoned.h114 /* Zone weight (number of valid blocks in the zone) */
115 unsigned int weight; member in struct:dm_zone
172 #define dmz_weight(z) ((z)->weight)
H A Ddm-zoned-metadata.c1958 * Find the buffer zone with the heaviest weight or the first (oldest)
1966 if (!maxw_z || maxw_z->weight < dzone->weight)
2443 to_zone->weight = from_zone->weight;
2514 if (likely(zone->weight + n <= zone_nr_blocks))
2515 zone->weight += n;
2517 dmz_zmd_warn(zmd, "Zone %u: weight %u should be <= %u",
2518 zone->id, zone->weight,
2520 zone->weight
[all...]
/linux-master/tools/perf/util/
H A Dbpf-filter.l79 weight { return sample(PERF_SAMPLE_WEIGHT); }
H A Dcpumap.c92 int weight = 0, mask_nr = data->mask32_data.nr; local
97 weight += bitmap_weight(local_copy, 64);
100 map = perf_cpu_map__empty_new(weight);
/linux-master/drivers/vhost/
H A Dvhost.h173 int weight; member in struct:vhost_dev
183 int nvqs, int iov_limit, int weight, int byte_weight,
/linux-master/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_fdma.c391 static void lan966x_fdma_tx_clear_buf(struct lan966x *lan966x, int weight) argument
426 napi_consume_skb(dcb_buf->data.skb, weight);
545 static int lan966x_fdma_napi_poll(struct napi_struct *napi, int weight) argument
559 lan966x_fdma_tx_clear_buf(lan966x, weight);
562 while (counter < weight) {
617 if (counter < weight && napi_complete_done(napi, counter))
/linux-master/drivers/net/ethernet/broadcom/
H A Dbcm4908_enet.c581 static int bcm4908_enet_poll_rx(struct napi_struct *napi, int weight) argument
588 while (handled < weight) {
640 if (handled < weight) {
651 static int bcm4908_enet_poll_tx(struct napi_struct *napi, int weight) argument
661 while (handled < weight && tx_ring->read_idx != tx_ring->write_idx) {
681 if (handled < weight) {
/linux-master/kernel/sched/
H A Dfair.c173 lw->weight += inc;
179 lw->weight -= dec;
185 lw->weight = w;
244 w = scale_load_down(lw->weight);
255 * delta_exec * weight / lw.weight
257 * (delta_exec * (weight * lw->inv_weight)) >> WMULT_SHIFT
259 * Either weight := NICE_0_LOAD and lw \e sched_prio_to_wmult[], in which case
263 * Or, weight =< lw.weight (becaus
266 __calc_delta(u64 delta_exec, unsigned long weight, struct load_weight *lw) argument
630 unsigned long weight = scale_load_down(se->load.weight); local
640 unsigned long weight = scale_load_down(se->load.weight); local
667 unsigned long weight = scale_load_down(curr->load.weight); local
740 unsigned long weight = scale_load_down(curr->load.weight); local
1968 unsigned int weight; member in struct:numa_stats
3685 reweight_eevdf(struct sched_entity *se, u64 avruntime, unsigned long weight) argument
3791 reweight_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, unsigned long weight) argument
3849 unsigned long weight = scale_load(sched_prio_to_weight[prio]); local
7193 int weight; local
[all...]
/linux-master/drivers/s390/crypto/
H A Dzcrypt_api.c576 unsigned int weight)
583 atomic_add(weight, &zc->load);
584 atomic_add(weight, &zq->load);
593 unsigned int weight)
596 atomic_sub(weight, &zc->load);
597 atomic_sub(weight, &zq->load);
606 unsigned int weight,
611 weight += atomic_read(&zc->load);
613 if (weight == pref_weight)
616 return weight < pref_weigh
573 zcrypt_pick_queue(struct zcrypt_card *zc, struct zcrypt_queue *zq, struct module **pmod, unsigned int weight) argument
590 zcrypt_drop_queue(struct zcrypt_card *zc, struct zcrypt_queue *zq, struct module *mod, unsigned int weight) argument
604 zcrypt_card_compare(struct zcrypt_card *zc, struct zcrypt_card *pref_zc, unsigned int weight, unsigned int pref_weight) argument
619 zcrypt_queue_compare(struct zcrypt_queue *zq, struct zcrypt_queue *pref_zq, unsigned int weight, unsigned int pref_weight) argument
[all...]
/linux-master/block/
H A Dbfq-iosched.c33 * process/queue is assigned a user-configurable weight, and B-WF2Q+
35 * proportional to its weight. Thanks to the accurate policy of
54 * mainly, by raising the weight of the queue. So, for brevity, we
55 * call just weight-raising periods the time periods during which a
71 * weight-raised while it is deemed interactive, this maximum time
73 * weight-raising for interactive queues.
271 * When configured for computing the duration of the weight-raising
285 * weight raising to interactive applications.
313 * BFQ uses the above-detailed, time-based weight-raising mechanism to
316 * doing I/O for much longer than the duration of weight
3452 u32 rate, weight, divisor; local
[all...]
/linux-master/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_b0.c393 u32 weight, max_credit; local
400 weight = tc_weight[tc];
402 if (!weight && sum_weight < max_weight)
403 weight = (max_weight - sum_weight) /
405 else if (!weight)
406 weight = 0x64;
408 max_credit = max(8 * weight, fixed_max_credit);
410 weight = 0x64;
414 hw_atl_tps_tx_pkt_shed_tc_data_weight_set(self, tc, weight);
/linux-master/drivers/thermal/
H A Dthermal_sysfs.c917 return sprintf(buf, "%d\n", instance->weight);
924 int ret, weight; local
926 ret = kstrtoint(buf, 0, &weight);
932 /* Don't race with governors using the 'weight' value */
935 instance->weight = weight;
/linux-master/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_fdma.c258 static int sparx5_fdma_napi_callback(struct napi_struct *napi, int weight) argument
264 while (counter < weight && sparx5_fdma_rx_get_frame(sparx5, rx)) {
284 if (counter < weight) {
H A Dsparx5_qos.c356 static u32 sparx5_weight_to_hw_cost(u32 weight_min, u32 weight) argument
358 return ((((SPX5_DWRR_COST_MAX << 4) * weight_min / weight) + 8) >> 4) -
539 /* Minimum weight for each iteration */
543 /* Find minimum weight for all dwrr bands */
561 * Also convert the weight to something the hardware
/linux-master/lib/zstd/compress/
H A Dfse_compress.c463 U32 const weight = sEnd - sStart; local
464 if (weight < 1)
466 norm[s] = (short)weight;
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Ddebugfs.c174 int weight; local
179 weight = bitmap_weight(&cmd->vars.bitmask, cmd->vars.max_reg_cmds);
180 field = cmd->vars.max_reg_cmds - weight;
/linux-master/drivers/md/bcache/
H A Dutil.h409 #define ewma_add(ewma, val, weight, factor) \
411 (ewma) *= (weight) - 1; \
413 (ewma) /= (weight); \
/linux-master/drivers/thunderbolt/
H A Dpath.c23 regs->weight, regs->priority, regs->initial_credits,
559 hop.weight = path->weight;
/linux-master/tools/perf/tests/
H A Dsample-parsing.c151 COMP(weight);
235 .weight = 109,
/linux-master/tools/bpf/bpftool/
H A Dcfg.c419 int weight = 10; local
425 printf("\tfn_%d_bb_%d:s -> fn_%d_bb_%d:n [style=%s, color=%s, weight=%d, constraint=true",
427 style, color, weight);
/linux-master/arch/x86/events/intel/
H A Dds.c1205 * + For RTM TSX weight we need GPRs for the abort code.
1637 * Use latency for weight (only avail with PEBS-LL)
1640 data->weight.full = pebs->lat;
1737 /* Only set the TSX weight when no memory weight. */
1739 data->weight.full = intel_get_tsx_weight(pebs->tsx_tuning);
1835 data->weight.var3_w = format_size >> PEBS_RETIRE_LATENCY_OFFSET & PEBS_LATENCY_MASK;
1862 u64 weight = meminfo->latency; local
1865 data->weight.var2_w = weight
[all...]
/linux-master/drivers/video/fbdev/nvidia/
H A Dnv_type.h31 int weight; member in struct:__anon9835

Completed in 466 milliseconds

1234567891011