Home
last modified time | relevance | path

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

123456789

/Linux-v4.19/net/netfilter/ipvs/
Dip_vs_wrr.c77 int weight; in ip_vs_wrr_gcd_weight() local
81 weight = atomic_read(&dest->weight); in ip_vs_wrr_gcd_weight()
82 if (weight > 0) { in ip_vs_wrr_gcd_weight()
84 g = gcd(weight, g); in ip_vs_wrr_gcd_weight()
86 g = weight; in ip_vs_wrr_gcd_weight()
99 int new_weight, weight = 0; in ip_vs_wrr_max_weight() local
102 new_weight = atomic_read(&dest->weight); in ip_vs_wrr_max_weight()
103 if (new_weight > weight) in ip_vs_wrr_max_weight()
104 weight = new_weight; in ip_vs_wrr_max_weight()
107 return weight; in ip_vs_wrr_max_weight()
[all …]
Dip_vs_nq.c82 !atomic_read(&dest->weight)) in ip_vs_nq_schedule()
95 ((__s64)loh * atomic_read(&dest->weight) > in ip_vs_nq_schedule()
96 (__s64)doh * atomic_read(&least->weight))) { in ip_vs_nq_schedule()
114 atomic_read(&least->weight), loh); in ip_vs_nq_schedule()
Dip_vs_wlc.c57 atomic_read(&dest->weight) > 0) { in ip_vs_wlc_schedule()
74 if ((__s64)loh * atomic_read(&dest->weight) > in ip_vs_wlc_schedule()
75 (__s64)doh * atomic_read(&least->weight)) { in ip_vs_wlc_schedule()
87 atomic_read(&least->weight), loh); in ip_vs_wlc_schedule()
Dip_vs_sed.c85 atomic_read(&dest->weight) > 0) { in ip_vs_sed_schedule()
102 if ((__s64)loh * atomic_read(&dest->weight) > in ip_vs_sed_schedule()
103 (__s64)doh * atomic_read(&least->weight)) { in ip_vs_sed_schedule()
115 atomic_read(&least->weight), loh); in ip_vs_sed_schedule()
Dip_vs_lblcr.c178 if ((atomic_read(&least->weight) > 0) in ip_vs_dest_set_min()
194 if (((__s64)loh * atomic_read(&dest->weight) > in ip_vs_dest_set_min()
195 (__s64)doh * atomic_read(&least->weight)) in ip_vs_dest_set_min()
209 atomic_read(&least->weight), loh); in ip_vs_dest_set_min()
227 if (atomic_read(&most->weight) > 0) { in ip_vs_dest_set_max()
240 if (((__s64)moh * atomic_read(&dest->weight) < in ip_vs_dest_set_max()
241 (__s64)doh * atomic_read(&most->weight)) in ip_vs_dest_set_max()
242 && (atomic_read(&dest->weight) > 0)) { in ip_vs_dest_set_max()
254 atomic_read(&most->weight), moh); in ip_vs_dest_set_max()
589 if (atomic_read(&dest->weight) > 0) { in __ip_vs_lblcr_schedule()
[all …]
Dip_vs_mh.c83 return atomic_read(&dest->weight) <= 0 || in is_unavailable()
326 int weight; in ip_vs_mh_gcd_weight() local
330 weight = atomic_read(&dest->last_weight); in ip_vs_mh_gcd_weight()
331 if (weight > 0) { in ip_vs_mh_gcd_weight()
333 g = gcd(weight, g); in ip_vs_mh_gcd_weight()
335 g = weight; in ip_vs_mh_gcd_weight()
347 int new_weight, weight = 0; in ip_vs_mh_shift_weight() local
359 if (new_weight > weight) in ip_vs_mh_shift_weight()
360 weight = new_weight; in ip_vs_mh_shift_weight()
366 mw = weight / gcd; in ip_vs_mh_shift_weight()
Dip_vs_fo.c39 atomic_read(&dest->weight) > hw) { in ip_vs_fo_schedule()
41 hw = atomic_read(&dest->weight); in ip_vs_fo_schedule()
50 atomic_read(&hweight->weight)); in ip_vs_fo_schedule()
Dip_vs_lblc.c425 if (atomic_read(&dest->weight) > 0) { in __ip_vs_lblc_schedule()
442 if ((__s64)loh * atomic_read(&dest->weight) > in __ip_vs_lblc_schedule()
443 (__s64)doh * atomic_read(&least->weight)) { in __ip_vs_lblc_schedule()
455 atomic_read(&least->weight), loh); in __ip_vs_lblc_schedule()
468 if (atomic_read(&dest->activeconns) > atomic_read(&dest->weight)) { in is_overloaded()
473 < atomic_read(&d->weight)) { in is_overloaded()
512 atomic_read(&dest->weight) > 0 && !is_overloaded(dest, svc)) in ip_vs_lblc_schedule()
Dip_vs_ovf.c41 w = atomic_read(&dest->weight); in ip_vs_ovf_schedule()
57 atomic_read(&h->weight)); in ip_vs_ovf_schedule()
/Linux-v4.19/drivers/s390/crypto/
Dzcrypt_api.c157 unsigned int weight) in zcrypt_pick_queue() argument
163 atomic_add(weight, &zc->load); in zcrypt_pick_queue()
164 atomic_add(weight, &zq->load); in zcrypt_pick_queue()
171 unsigned int weight) in zcrypt_drop_queue() argument
176 atomic_sub(weight, &zc->load); in zcrypt_drop_queue()
177 atomic_sub(weight, &zq->load); in zcrypt_drop_queue()
185 unsigned int weight, in zcrypt_card_compare() argument
190 weight += atomic_read(&zc->load); in zcrypt_card_compare()
192 if (weight == pref_weight) in zcrypt_card_compare()
195 return weight > pref_weight; in zcrypt_card_compare()
[all …]
/Linux-v4.19/lib/
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-v4.19/kernel/events/
Dhw_breakpoint.c177 fetch_this_slot(struct bp_busy_slots *slots, int weight) in fetch_this_slot() argument
179 slots->pinned += weight; in fetch_this_slot()
186 enum bp_type_idx type, int weight) in toggle_bp_task_slot() argument
192 new_idx = old_idx + weight; in toggle_bp_task_slot()
205 int weight) in toggle_bp_slot() argument
211 weight = -weight; in toggle_bp_slot()
215 get_bp_info(bp->cpu, type)->cpu_pinned += weight; in toggle_bp_slot()
221 toggle_bp_task_slot(bp, cpu, type, weight); in toggle_bp_slot()
285 int weight; in __reserve_bp_slot() local
297 weight = hw_breakpoint_weight(bp); in __reserve_bp_slot()
[all …]
/Linux-v4.19/drivers/net/can/
Drx-offload.c225 …_rx_offload_init_queue(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight) in can_rx_offload_init_queue() argument
230 offload->skb_queue_len_max = 2 << fls(weight); in can_rx_offload_init_queue()
235 netif_napi_add(dev, &offload->napi, can_rx_offload_napi_poll, weight); in can_rx_offload_init_queue()
245 unsigned int weight; in can_rx_offload_add_timestamp() local
253 weight = offload->mb_last - offload->mb_first; in can_rx_offload_add_timestamp()
256 weight = offload->mb_first - offload->mb_last; in can_rx_offload_add_timestamp()
259 return can_rx_offload_init_queue(dev, offload, weight); in can_rx_offload_add_timestamp()
263 …an_rx_offload_add_fifo(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight) in can_rx_offload_add_fifo() argument
268 return can_rx_offload_init_queue(dev, offload, weight); in can_rx_offload_add_fifo()
/Linux-v4.19/net/mac80211/
Drc80211_minstrel.h28 minstrel_ewma(int old, int new, int weight) in minstrel_ewma() argument
33 incr = (EWMA_DIV - weight) * diff / EWMA_DIV; in minstrel_ewma()
42 minstrel_ewmv(int old_ewmv, int cur_prob, int prob_ewma, int weight) in minstrel_ewmv() argument
47 incr = (EWMA_DIV - weight) * diff / EWMA_DIV; in minstrel_ewmv()
48 return weight * (old_ewmv + MINSTREL_TRUNC(diff * incr)) / EWMA_DIV; in minstrel_ewmv()
/Linux-v4.19/arch/powerpc/platforms/pseries/
Dlparcfg.c81 u8 weight; member
129 ppp_data->weight = (retbuf[3] >> 5 * 8) & 0xff; in h_get_ppp()
193 seq_printf(m, "capacity_weight=%d\n", ppp_data.weight); in parse_ppp_data()
498 static ssize_t update_ppp(u64 *entitlement, u8 *weight) in update_ppp() argument
511 new_weight = ppp_data.weight; in update_ppp()
513 } else if (weight) { in update_ppp()
514 new_weight = *weight; in update_ppp()
520 __func__, ppp_data.entitlement, ppp_data.weight); in update_ppp()
536 static ssize_t update_mpp(u64 *entitlement, u8 *weight) in update_mpp() argument
559 } else if (weight) { in update_mpp()
[all …]
/Linux-v4.19/drivers/dma/qcom/
Dhidma_mgmt.c115 if (mgmtdev->weight[i] > HIDMA_MAX_CHANNEL_WEIGHT) { in hidma_mgmt_setup()
123 if (mgmtdev->weight[i] == 0) in hidma_mgmt_setup()
124 mgmtdev->weight[i] = 1; in hidma_mgmt_setup()
148 u32 weight = mgmtdev->weight[i]; in hidma_mgmt_setup() local
155 val |= (weight & HIDMA_WEIGHT_MASK) << HIDMA_WRR_BIT_POS; in hidma_mgmt_setup()
290 mgmtdev->weight = devm_kcalloc(&pdev->dev, in hidma_mgmt_probe()
292 sizeof(*mgmtdev->weight), GFP_KERNEL); in hidma_mgmt_probe()
293 if (!mgmtdev->weight) { in hidma_mgmt_probe()
/Linux-v4.19/net/dccp/ccids/lib/
Dtfrc.h53 static inline u32 tfrc_ewma(const u32 avg, const u32 newval, const u8 weight) in tfrc_ewma() argument
55 return avg ? (weight * avg + (10 - weight) * newval) / 10 : newval; in tfrc_ewma()
/Linux-v4.19/drivers/gpu/drm/i915/gvt/
Dvgpu.c88 unsigned int weight; member
142 if (vgpu_types[i].weight < 1 || in intel_gvt_init_vgpu_types()
143 vgpu_types[i].weight > VGPU_MAX_WEIGHT) in intel_gvt_init_vgpu_types()
146 gvt->types[i].weight = vgpu_types[i].weight; in intel_gvt_init_vgpu_types()
163 gvt->types[i].weight, in intel_gvt_init_vgpu_types()
381 vgpu->sched_ctl.weight = param->weight; in __intel_gvt_create_vgpu()
477 param.weight = type->weight; in intel_gvt_create_vgpu()
/Linux-v4.19/drivers/net/wireless/rsi/
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-v4.19/net/ceph/crush/
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()
452 const __u32 *weight, int weight_max, in crush_choose_firstn() argument
565 weight, weight_max, in crush_choose_firstn()
588 reject = is_out(map, weight, in crush_choose_firstn()
646 const __u32 *weight, int weight_max, in crush_choose_indep() argument
779 weight, weight_max, in crush_choose_indep()
797 is_out(map, weight, weight_max, item, x)) in crush_choose_indep()
[all …]
/Linux-v4.19/net/sched/
Dsch_qfq.c266 u32 lmax, u32 weight) in qfq_init_agg() argument
272 agg->class_weight = weight; in qfq_init_agg()
276 u32 lmax, u32 weight) in qfq_find_agg() argument
281 if (agg->lmax == lmax && agg->class_weight == weight) in qfq_find_agg()
386 static int qfq_change_agg(struct Qdisc *sch, struct qfq_class *cl, u32 weight, in qfq_change_agg() argument
390 struct qfq_aggregate *new_agg = qfq_find_agg(q, lmax, weight); in qfq_change_agg()
396 qfq_init_agg(q, new_agg, lmax, weight); in qfq_change_agg()
413 u32 weight, lmax, inv_w; in qfq_change_class() local
428 weight = nla_get_u32(tb[TCA_QFQ_WEIGHT]); in qfq_change_class()
429 if (!weight || weight > (1UL << QFQ_MAX_WSHIFT)) { in qfq_change_class()
[all …]
/Linux-v4.19/Documentation/cgroup-v1/
Dblkio-controller.txt12 weight time based division of disk policy. It is implemented in CFQ. Hence
42 echo 1000 > /sys/fs/cgroup/blkio/test1/blkio.weight
43 echo 500 > /sys/fs/cgroup/blkio/test2/blkio.weight
64 ideally io.disk_time of cgroups should be in proportion to the weight.
142 Proportional weight policy files
144 - blkio.weight
145 - Specifies per cgroup weight. This is default weight of the group
152 These rules override the default value of group weight as specified
153 by blkio.weight.
157 # echo dev_maj:dev_minor weight > blkio.weight_device
[all …]
/Linux-v4.19/block/
Dbfq-wf2q.c281 static u64 bfq_delta(unsigned long service, unsigned long weight) in bfq_delta() argument
285 do_div(d, weight); in bfq_delta()
299 bfq_delta(service, entity->weight); in bfq_calc_finish()
304 service, entity->weight); in bfq_calc_finish()
308 bfq_delta(service, entity->weight)); in bfq_calc_finish()
528 static unsigned short bfq_weight_to_ioprio(int weight) in bfq_weight_to_ioprio() argument
531 IOPRIO_BE_NR * BFQ_WEIGHT_CONVERSION_COEFF - weight); in bfq_weight_to_ioprio()
655 st->wsum -= entity->weight; in bfq_forget_entity()
750 old_st->wsum -= entity->weight; in __bfq_entity_update_weight_prio()
787 prev_weight = entity->weight; in __bfq_entity_update_weight_prio()
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/iio/adc/
Davia-hx711.txt1 * AVIA HX711 ADC chip for weight cells
17 weight {
/Linux-v4.19/drivers/thermal/
Dpower_allocator.c352 total_weight += instance->weight; in allocate_power()
389 int weight; in allocate_power() local
402 weight = 1 << FRAC_BITS; in allocate_power()
404 weight = instance->weight; in allocate_power()
406 weighted_req_power[i] = frac_to_int(weight * req_power[i]); in allocate_power()

123456789