Home
last modified time | relevance | path

Searched refs:weight (Results 1 – 25 of 262) sorted by relevance

1234567891011

/linux/net/netfilter/ipvs/
H A Dip_vs_wrr.c71 int weight; in ip_vs_wrr_gcd_weight() local
75 weight = atomic_read(&dest->weight); in ip_vs_wrr_gcd_weight()
76 if (weight > 0) { in ip_vs_wrr_gcd_weight()
78 g = gcd(weight, g); in ip_vs_wrr_gcd_weight()
80 g = weight; in ip_vs_wrr_gcd_weight()
93 int new_weight, weight = 0; in ip_vs_wrr_max_weight() local
96 new_weight = atomic_read(&dest->weight); in ip_vs_wrr_max_weight()
97 if (new_weight > weight) in ip_vs_wrr_max_weight()
98 weight = new_weight; in ip_vs_wrr_max_weight()
101 return weight; in ip_vs_wrr_max_weight()
[all …]
H A Dip_vs_lblcr.c8 * Julian Anastasov : Added the missing (dest->weight>0)
20 * (n.conns>n.weight AND
21 * there is a node m with m.conns<m.weight/2) then
166 /* select the first destination server, whose weight > 0 */ in ip_vs_dest_set_min()
172 if ((atomic_read(&least->weight) > 0) && in ip_vs_dest_set_min()
188 if (((__s64)loh * atomic_read(&dest->weight) > in ip_vs_dest_set_min()
189 (__s64)doh * atomic_read(&least->weight)) && in ip_vs_dest_set_min()
197 "activeconns %d refcnt %d weight %d overhead %d\n", in ip_vs_dest_set_min()
203 atomic_read(&least->weight), loh); in ip_vs_dest_set_min()
218 /* select the first destination server, whose weight > in ip_vs_dest_set_max()
[all...]
H A Dip_vs_mh.c82 return atomic_read(&dest->weight) <= 0 || in is_unavailable()
323 int weight; in ip_vs_mh_gcd_weight() local
327 weight = atomic_read(&dest->last_weight); in ip_vs_mh_gcd_weight()
328 if (weight > 0) { in ip_vs_mh_gcd_weight()
330 g = gcd(weight, g); in ip_vs_mh_gcd_weight()
332 g = weight; in ip_vs_mh_gcd_weight()
344 int new_weight, weight = 0; in ip_vs_mh_shift_weight() local
356 if (new_weight > weight) in ip_vs_mh_shift_weight()
357 weight = new_weight; in ip_vs_mh_shift_weight()
363 mw = weight / gcd; in ip_vs_mh_shift_weight()
H A Dip_vs_lblc.c27 * (n.conns>n.weight AND
28 * there is a node m with m.conns<m.weight/2) then
410 * (dest overhead) / dest->weight in __ip_vs_lblc_schedule()
415 * if every weight is larger than zero. in __ip_vs_lblc_schedule()
417 * The server with weight=0 is quiesced and will not receive any in __ip_vs_lblc_schedule()
423 if (atomic_read(&dest->weight) > 0) { in __ip_vs_lblc_schedule()
440 if ((__s64)loh * atomic_read(&dest->weight) > in __ip_vs_lblc_schedule()
441 (__s64)doh * atomic_read(&least->weight)) { in __ip_vs_lblc_schedule()
448 "activeconns %d refcnt %d weight %d overhead %d\n", in __ip_vs_lblc_schedule()
453 atomic_read(&least->weight), lo in __ip_vs_lblc_schedule()
[all...]
/linux/lib/
H A Dirq_poll.c88 int work, weight; in irq_poll_softirq() local
107 weight = iop->weight; in irq_poll_softirq()
110 work = iop->poll(iop, weight); in irq_poll_softirq()
124 if (work >= weight) { in irq_poll_softirq()
179 void irq_poll_init(struct irq_poll *iop, int weight, irq_poll_fn *poll_fn) in irq_poll_init() argument
183 iop->weight = weight; in irq_poll_init()
/linux/drivers/net/can/dev/
H A Drx-offload.c354 unsigned int weight) in can_rx_offload_init_queue() argument
359 offload->skb_queue_len_max = 2 << fls(weight); in can_rx_offload_init_queue()
365 weight); in can_rx_offload_init_queue()
376 unsigned int weight; in can_rx_offload_add_timestamp() local
384 weight = offload->mb_last - offload->mb_first; in can_rx_offload_add_timestamp()
387 weight = offload->mb_first - offload->mb_last; in can_rx_offload_add_timestamp()
390 return can_rx_offload_init_queue(dev, offload, weight); in can_rx_offload_add_timestamp()
395 struct can_rx_offload *offload, unsigned int weight) in can_rx_offload_add_fifo() argument
400 return can_rx_offload_init_queue(dev, offload, weight); in can_rx_offload_add_fifo()
406 unsigned int weight) in can_rx_offload_add_manual() argument
[all …]
/linux/drivers/accel/ethosu/
H A Dethosu_gem.c144 struct buffer weight[4]; member
265 bool ifm, bool ifm2, bool weight, bool scale) in calc_sizes() argument
302 if (weight) { in calc_sizes()
304 op, st->weight[0].region, st->weight[0].base, in calc_sizes()
305 st->weight[0].base + st->weight[0].length - 1); in calc_sizes()
306 if (st->weight[0].region < 0 || st->weight[0].base == U64_MAX || in calc_sizes()
307 st->weight[0].length == U32_MAX) in calc_sizes()
309 info->region_size[st->weight[0].region] = in calc_sizes()
310 max(info->region_size[st->weight[0].region], in calc_sizes()
311 st->weight[0].base + st->weight[0].length); in calc_sizes()
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-kernel-mm-mempolicy-weighted-interleave11 The interleave weight for a memory node (N). These weights are
18 The minimum weight for a node is always 1.
20 Minimum weight: 1
21 Maximum weight: 255
26 Changing the weight to a valid value will automatically
46 a default weight of 1.
53 Writing a new weight to a node directly via the nodeN interface
/linux/kernel/events/
H A Dhw_breakpoint.c410 toggle_bp_slot(struct perf_event *bp, bool enable, enum bp_type_idx type, int weight) in toggle_bp_slot() argument
415 weight = -weight; in toggle_bp_slot()
425 bp_slots_histogram_add(&cpu_pinned[type], info->cpu_pinned, weight); in toggle_bp_slot()
426 info->cpu_pinned += weight; in toggle_bp_slot()
479 bp_slots_histogram_add(&tsk_pinned_all[type], next_tsk_pinned, weight); in toggle_bp_slot()
488 next_tsk_pinned, weight); in toggle_bp_slot()
495 next_tsk_pinned + hw_breakpoint_weight(bp), weight); in toggle_bp_slot()
512 next_tsk_pinned, weight); in toggle_bp_slot()
577 int weight; in __reserve_bp_slot() local
589 weight = hw_breakpoint_weight(bp); in __reserve_bp_slot()
[all …]
/linux/tools/testing/selftests/net/
H A Dtcp_ecmp_failover.sh46 nexthop via 192.168.1.1 dev veth-s1 weight 1 \
47 nexthop via 192.168.2.1 dev veth-s2 weight 1
53 nexthop via 2001:db8:1::1 dev veth-s1 weight 1 \
54 nexthop via 2001:db8:2::1 dev veth-s2 weight 1
75 nexthop via 192.168.1.2 dev veth-c1 weight 1 \
76 nexthop via 192.168.2.2 dev veth-c2 weight 1
82 nexthop via 2001:db8:1::2 dev veth-c1 weight 1 \
83 nexthop via 2001:db8:2::2 dev veth-c2 weight 1
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dcn10k.h15 u32 weight; in mtu_to_dwrr_weight() local
20 weight = mtu / pfvf->hw.dwrr_mtu; in mtu_to_dwrr_weight()
22 weight += 1; in mtu_to_dwrr_weight()
24 return weight; in mtu_to_dwrr_weight()
/linux/drivers/dma/qcom/
H A Dhidma_mgmt.c104 if (mgmtdev->weight[i] > HIDMA_MAX_CHANNEL_WEIGHT) { in hidma_mgmt_setup()
112 if (mgmtdev->weight[i] == 0) in hidma_mgmt_setup()
113 mgmtdev->weight[i] = 1; in hidma_mgmt_setup()
137 u32 weight = mgmtdev->weight[i]; in hidma_mgmt_setup() local
144 val |= (weight & HIDMA_WEIGHT_MASK) << HIDMA_WRR_BIT_POS; in hidma_mgmt_setup()
277 mgmtdev->weight = devm_kcalloc(&pdev->dev, in hidma_mgmt_probe()
279 sizeof(*mgmtdev->weight), GFP_KERNEL); in hidma_mgmt_probe()
280 if (!mgmtdev->weight) { in hidma_mgmt_probe()
/linux/tools/sched_ext/
H A Dscx_qmap.bpf.c350 if (p->scx.weight < 2 && !(p->flags & PF_KTHREAD)) in BPF_STRUCT_OPS()
390 static int weight_to_idx(u32 weight) in weight_to_idx() argument
393 if (weight <= 25) in weight_to_idx()
395 else if (weight <= 50) in weight_to_idx()
397 else if (weight < 200) in weight_to_idx()
399 else if (weight < 400) in weight_to_idx()
409 int idx = weight_to_idx(p->scx.weight); in BPF_STRUCT_OPS()
522 p->scx.weight < 2 && !(p->flags & PF_KTHREAD) && !(enq_flags & SCX_ENQ_REENQ)) { in BPF_STRUCT_OPS()
557 if (highpri_boosting && p->scx.weight >= HIGHPRI_WEIGHT) { in BPF_STRUCT_OPS()
582 int idx = weight_to_idx(p->scx.weight); in update_core_sched_head_seq()
[all …]
H A Dscx_flatcg.bpf.c237 div_round_up(pcgc->hweight * cgc->weight, in cgrp_refresh_hweight()
481 pcgc->child_weight_sum += cgc->weight; in update_active_weight_sums()
489 pcgc->child_weight_sum -= cgc->weight; in update_active_weight_sums()
589 void BPF_STRUCT_OPS(fcg_cgroup_set_weight, struct cgroup *cgrp, u32 weight) in BPF_STRUCT_OPS() argument
605 pcgc->child_weight_sum += (s64)weight - cgc->weight; in BPF_STRUCT_OPS()
606 cgc->weight = weight; in BPF_STRUCT_OPS()
871 cgc->weight = args->weight; in BPF_STRUCT_OPS_SLEEPABLE()
/linux/net/dccp/ccids/lib/
H A Dtfrc.h
/linux/arch/powerpc/platforms/pseries/
H A Dlparcfg.c80 u8 weight; member
132 ppp_data->weight = (retbuf[3] >> 5 * 8) & 0xff; in h_get_ppp()
239 seq_printf(m, "capacity_weight=%d\n", ppp_data.weight); in parse_ppp_data()
603 static ssize_t update_ppp(u64 *entitlement, u8 *weight) in update_ppp() argument
616 new_weight = ppp_data.weight; in update_ppp()
618 } else if (weight) { in update_ppp()
619 new_weight = *weight; in update_ppp()
625 __func__, ppp_data.entitlement, ppp_data.weight); in update_ppp()
641 static ssize_t update_mpp(u64 *entitlement, u8 *weight) in update_mpp() argument
664 } else if (weight) { in update_mpp()
[all …]
/linux/drivers/net/wireless/rsi/
H A Drsi_91x_core.c38 common->min_weight = tx_qinfo[ii].weight; in rsi_determine_min_weight_queue()
64 tx_qinfo[ii].weight = in rsi_recalculate_weights()
65 ((tx_qinfo[ii].weight > common->min_weight) ? in rsi_recalculate_weights()
66 tx_qinfo[ii].weight - common->min_weight : 0); in rsi_recalculate_weights()
69 tx_qinfo[ii].weight = tx_qinfo[ii].wme_params; in rsi_recalculate_weights()
73 tx_qinfo[ii].weight = 0; in rsi_recalculate_weights()
174 (common->tx_qinfo[ii].weight < common->min_weight)) && in rsi_core_determine_hal_queue()
176 common->min_weight = common->tx_qinfo[ii].weight; in rsi_core_determine_hal_queue()
/linux/net/ceph/crush/
H A Dmapper.c414 const __u32 *weight, int weight_max, in is_out() argument
419 if (weight[item] >= 0x10000) in is_out()
421 if (weight[item] == 0) in is_out()
424 < weight[item]) in is_out()
456 const __u32 *weight, int weight_max, in crush_choose_firstn() argument
569 weight, weight_max, in crush_choose_firstn()
592 reject = is_out(map, weight, in crush_choose_firstn()
649 const __u32 *weight, int weight_max, in crush_choose_indep() argument
782 weight, weight_max, in crush_choose_indep()
800 is_out(map, weight, weight_max, item, x)) in crush_choose_indep()
[all …]
/linux/block/
H A Dbfq-wf2q.c286 static u64 bfq_delta(unsigned long service, unsigned long weight) in bfq_delta() argument
288 return div64_ul((u64)service << WFQ_SERVICE_SHIFT, weight); in bfq_delta()
301 bfq_delta(service, entity->weight); in bfq_calc_finish()
306 service, entity->weight); in bfq_calc_finish()
310 bfq_delta(service, entity->weight)); in bfq_calc_finish()
518 static unsigned short bfq_weight_to_ioprio(int weight) in bfq_weight_to_ioprio() argument
521 IOPRIO_NR_LEVELS - weight / BFQ_WEIGHT_CONVERSION_COEFF); in bfq_weight_to_ioprio()
632 st->wsum -= entity->weight; in bfq_forget_entity()
713 old_st->wsum -= entity->weight; in __bfq_entity_update_weight_prio()
750 prev_weight = entity->weight; in __bfq_entity_update_weight_prio()
[all …]
/linux/kernel/sched/
H A Dfair.c173 lw->weight += inc; in update_load_add()
179 lw->weight -= dec; in update_load_sub()
185 lw->weight = w; in update_load_set()
245 w = scale_load_down(lw->weight); in __update_inv_weight()
256 * delta_exec * weight / lw.weight
258 * (delta_exec * (weight * lw->inv_weight)) >> WMULT_SHIFT
260 * Either weight := NICE_0_LOAD and lw \e sched_prio_to_wmult[], in which case
264 * Or, weight =< lw.weight (becaus
267 __calc_delta(u64 delta_exec,unsigned long weight,struct load_weight * lw) __calc_delta() argument
294 __calc_delta(u64 delta_exec,unsigned long weight,struct load_weight * lw) __calc_delta() argument
657 unsigned long weight = avg_vruntime_weight(cfs_rq, se->h_load.weight); __sum_w_vruntime_add() local
670 unsigned long weight; sum_w_vruntime_add_paranoid() local
720 unsigned long weight = avg_vruntime_weight(cfs_rq, se->h_load.weight); sum_w_vruntime_sub() local
752 long weight = cfs_rq->sum_weight; avg_vruntime() local
817 long weight = cfs_rq->sum_weight; ineligible_vruntime() local
929 unsigned long weight = avg_vruntime_weight(cfs_rq, curr->h_load.weight); vruntime_eligible() local
2864 unsigned int weight; global() member
4619 rescale_entity(struct sched_entity * se,unsigned long weight,bool rel_vprot) rescale_entity() argument
4722 reweight_eevdf(struct cfs_rq * cfs_rq,struct sched_entity * se,unsigned long weight,bool on_rq) reweight_eevdf() argument
4764 reweight_entity(struct cfs_rq * cfs_rq,struct sched_entity * se,unsigned long weight) reweight_entity() argument
4795 __calc_prop_weight(struct cfs_rq * cfs_rq,struct sched_entity * se,unsigned long weight) __calc_prop_weight() argument
4810 unsigned long weight = NICE_0_LOAD; reweight_task_fair() local
6210 long load, weight; place_entity() local
7937 unsigned long weight = NICE_0_LOAD; enqueue_hierarchy() local
7995 unsigned long weight; enqueue_task_fair() local
8532 int weight; sched_balance_find_dst_cpu() local
14658 unsigned int weight = 1; sched_balance_newidle() local
15076 unsigned long weight = NICE_0_LOAD; task_tick_fair() local
15261 unsigned long weight = NICE_0_LOAD; set_next_task_fair() local
[all...]
/linux/net/sctp/
H A Dstream_sched_fc.c28 __u16 weight, gfp_t gfp) in sctp_sched_wfq_set() argument
32 if (!weight) in sctp_sched_wfq_set()
35 soute->fc_weight = weight; in sctp_sched_wfq_set()
49 __u16 weight, gfp_t gfp) in sctp_sched_fc_set() argument
/linux/drivers/gpu/drm/xe/
H A Dxe_guc_db_mgr.c54 unsigned int weight; in __fini_dbm() local
58 weight = bitmap_weight(dbm->bitmap, dbm->count); in __fini_dbm()
59 if (weight) { in __fini_dbm()
63 weight, dbm->count); in __fini_dbm()
/linux/arch/arm64/boot/dts/renesas/
H A Dr9a09g077.dtsi648 snps,weight = <0x10>;
653 snps,weight = <0x11>;
658 snps,weight = <0x12>;
663 snps,weight = <0x13>;
668 snps,weight = <0x14>;
673 snps,weight = <0x15>;
678 snps,weight = <0x16>;
683 snps,weight = <0x17>;
803 snps,weight = <0x10>;
808 snps,weight = <0x11>;
[all …]
H A Dr9a09g087.dtsi649 snps,weight = <0x10>;
654 snps,weight = <0x11>;
659 snps,weight = <0x12>;
664 snps,weight = <0x13>;
669 snps,weight = <0x14>;
674 snps,weight = <0x15>;
679 snps,weight = <0x16>;
684 snps,weight = <0x17>;
805 snps,weight = <0x10>;
810 snps,weight = <0x11>;
[all …]
/linux/fs/afs/
H A Dvl_list.c207 bs.weight = afs_extract_le16(&b); in afs_extract_vlserver_list()
217 bs.name_len, bs.priority, bs.weight, in afs_extract_vlserver_list()
316 bs.weight > vllist->servers[j].weight) in afs_extract_vlserver_list()
329 vllist->servers[j].weight = bs.weight; in afs_extract_vlserver_list()

1234567891011