| /Linux-v5.4/net/netfilter/ipvs/ |
| D | ip_vs_wrr.c | 72 int weight; in ip_vs_wrr_gcd_weight() local 76 weight = atomic_read(&dest->weight); in ip_vs_wrr_gcd_weight() 77 if (weight > 0) { in ip_vs_wrr_gcd_weight() 79 g = gcd(weight, g); in ip_vs_wrr_gcd_weight() 81 g = weight; in ip_vs_wrr_gcd_weight() 94 int new_weight, weight = 0; in ip_vs_wrr_max_weight() local 97 new_weight = atomic_read(&dest->weight); in ip_vs_wrr_max_weight() 98 if (new_weight > weight) in ip_vs_wrr_max_weight() 99 weight = new_weight; in ip_vs_wrr_max_weight() 102 return weight; in ip_vs_wrr_max_weight() [all …]
|
| D | ip_vs_nq.c | 77 !atomic_read(&dest->weight)) in ip_vs_nq_schedule() 90 ((__s64)loh * atomic_read(&dest->weight) > in ip_vs_nq_schedule() 91 (__s64)doh * atomic_read(&least->weight))) { in ip_vs_nq_schedule() 109 atomic_read(&least->weight), loh); in ip_vs_nq_schedule()
|
| D | ip_vs_sed.c | 80 atomic_read(&dest->weight) > 0) { in ip_vs_sed_schedule() 97 if ((__s64)loh * atomic_read(&dest->weight) > in ip_vs_sed_schedule() 98 (__s64)doh * atomic_read(&least->weight)) { in ip_vs_sed_schedule() 110 atomic_read(&least->weight), loh); in ip_vs_sed_schedule()
|
| D | ip_vs_wlc.c | 52 atomic_read(&dest->weight) > 0) { in ip_vs_wlc_schedule() 69 if ((__s64)loh * atomic_read(&dest->weight) > in ip_vs_wlc_schedule() 70 (__s64)doh * atomic_read(&least->weight)) { in ip_vs_wlc_schedule() 82 atomic_read(&least->weight), loh); in ip_vs_wlc_schedule()
|
| D | ip_vs_lblcr.c | 173 if ((atomic_read(&least->weight) > 0) in ip_vs_dest_set_min() 189 if (((__s64)loh * atomic_read(&dest->weight) > in ip_vs_dest_set_min() 190 (__s64)doh * atomic_read(&least->weight)) in ip_vs_dest_set_min() 204 atomic_read(&least->weight), loh); in ip_vs_dest_set_min() 222 if (atomic_read(&most->weight) > 0) { in ip_vs_dest_set_max() 235 if (((__s64)moh * atomic_read(&dest->weight) < in ip_vs_dest_set_max() 236 (__s64)doh * atomic_read(&most->weight)) in ip_vs_dest_set_max() 237 && (atomic_read(&dest->weight) > 0)) { in ip_vs_dest_set_max() 249 atomic_read(&most->weight), moh); in ip_vs_dest_set_max() 584 if (atomic_read(&dest->weight) > 0) { in __ip_vs_lblcr_schedule() [all …]
|
| D | ip_vs_mh.c | 83 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()
|
| D | ip_vs_fo.c | 34 atomic_read(&dest->weight) > hw) { in ip_vs_fo_schedule() 36 hw = atomic_read(&dest->weight); in ip_vs_fo_schedule() 45 atomic_read(&hweight->weight)); in ip_vs_fo_schedule()
|
| D | ip_vs_lblc.c | 420 if (atomic_read(&dest->weight) > 0) { in __ip_vs_lblc_schedule() 437 if ((__s64)loh * atomic_read(&dest->weight) > in __ip_vs_lblc_schedule() 438 (__s64)doh * atomic_read(&least->weight)) { in __ip_vs_lblc_schedule() 450 atomic_read(&least->weight), loh); in __ip_vs_lblc_schedule() 463 if (atomic_read(&dest->activeconns) > atomic_read(&dest->weight)) { in is_overloaded() 468 < atomic_read(&d->weight)) { in is_overloaded() 507 atomic_read(&dest->weight) > 0 && !is_overloaded(dest, svc)) in ip_vs_lblc_schedule()
|
| D | ip_vs_ovf.c | 36 w = atomic_read(&dest->weight); in ip_vs_ovf_schedule() 52 atomic_read(&h->weight)); in ip_vs_ovf_schedule()
|
| /Linux-v5.4/lib/ |
| D | irq_poll.c | 88 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-v5.4/kernel/events/ |
| D | hw_breakpoint.c | 164 fetch_this_slot(struct bp_busy_slots *slots, int weight) in fetch_this_slot() argument 166 slots->pinned += weight; in fetch_this_slot() 173 enum bp_type_idx type, int weight) in toggle_bp_task_slot() argument 179 new_idx = old_idx + weight; in toggle_bp_task_slot() 192 int weight) in toggle_bp_slot() argument 198 weight = -weight; in toggle_bp_slot() 202 get_bp_info(bp->cpu, type)->cpu_pinned += weight; in toggle_bp_slot() 208 toggle_bp_task_slot(bp, cpu, type, weight); in toggle_bp_slot() 272 int weight; in __reserve_bp_slot() local 284 weight = hw_breakpoint_weight(bp); in __reserve_bp_slot() [all …]
|
| /Linux-v5.4/drivers/s390/crypto/ |
| D | zcrypt_api.c | 572 unsigned int weight) in zcrypt_pick_queue() argument 578 atomic_add(weight, &zc->load); in zcrypt_pick_queue() 579 atomic_add(weight, &zq->load); in zcrypt_pick_queue() 588 unsigned int weight) in zcrypt_drop_queue() argument 591 atomic_sub(weight, &zc->load); in zcrypt_drop_queue() 592 atomic_sub(weight, &zq->load); in zcrypt_drop_queue() 600 unsigned int weight, in zcrypt_card_compare() argument 605 weight += atomic_read(&zc->load); in zcrypt_card_compare() 607 if (weight == pref_weight) in zcrypt_card_compare() 610 return weight > pref_weight; in zcrypt_card_compare() [all …]
|
| /Linux-v5.4/drivers/net/can/ |
| D | rx-offload.c | 331 …_rx_offload_init_queue(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight) in can_rx_offload_init_queue() argument 336 offload->skb_queue_len_max = 2 << fls(weight); in can_rx_offload_init_queue() 341 netif_napi_add(dev, &offload->napi, can_rx_offload_napi_poll, weight); in can_rx_offload_init_queue() 351 unsigned int weight; in can_rx_offload_add_timestamp() local 359 weight = offload->mb_last - offload->mb_first; in can_rx_offload_add_timestamp() 362 weight = offload->mb_first - offload->mb_last; in can_rx_offload_add_timestamp() 365 return can_rx_offload_init_queue(dev, offload, weight); in can_rx_offload_add_timestamp() 369 …an_rx_offload_add_fifo(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight) in can_rx_offload_add_fifo() argument 374 return can_rx_offload_init_queue(dev, offload, weight); in can_rx_offload_add_fifo()
|
| /Linux-v5.4/arch/powerpc/platforms/pseries/ |
| D | lparcfg.c | 79 u8 weight; member 127 ppp_data->weight = (retbuf[3] >> 5 * 8) & 0xff; in h_get_ppp() 191 seq_printf(m, "capacity_weight=%d\n", ppp_data.weight); in parse_ppp_data() 508 static ssize_t update_ppp(u64 *entitlement, u8 *weight) in update_ppp() argument 521 new_weight = ppp_data.weight; in update_ppp() 523 } else if (weight) { in update_ppp() 524 new_weight = *weight; in update_ppp() 530 __func__, ppp_data.entitlement, ppp_data.weight); in update_ppp() 546 static ssize_t update_mpp(u64 *entitlement, u8 *weight) in update_mpp() argument 569 } else if (weight) { in update_mpp() [all …]
|
| /Linux-v5.4/drivers/dma/qcom/ |
| D | hidma_mgmt.c | 107 if (mgmtdev->weight[i] > HIDMA_MAX_CHANNEL_WEIGHT) { in hidma_mgmt_setup() 115 if (mgmtdev->weight[i] == 0) in hidma_mgmt_setup() 116 mgmtdev->weight[i] = 1; in hidma_mgmt_setup() 140 u32 weight = mgmtdev->weight[i]; in hidma_mgmt_setup() local 147 val |= (weight & HIDMA_WEIGHT_MASK) << HIDMA_WRR_BIT_POS; in hidma_mgmt_setup() 281 mgmtdev->weight = devm_kcalloc(&pdev->dev, in hidma_mgmt_probe() 283 sizeof(*mgmtdev->weight), GFP_KERNEL); in hidma_mgmt_probe() 284 if (!mgmtdev->weight) { in hidma_mgmt_probe()
|
| /Linux-v5.4/net/dccp/ccids/lib/ |
| D | tfrc.h | 49 static inline u32 tfrc_ewma(const u32 avg, const u32 newval, const u8 weight) in tfrc_ewma() argument 51 return avg ? (weight * avg + (10 - weight) * newval) / 10 : newval; in tfrc_ewma()
|
| /Linux-v5.4/drivers/gpu/drm/i915/gvt/ |
| D | vgpu.c | 88 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() 481 param.weight = type->weight; in intel_gvt_create_vgpu()
|
| /Linux-v5.4/drivers/net/wireless/rsi/ |
| D | rsi_91x_core.c | 38 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-v5.4/drivers/net/ethernet/stmicro/stmmac/ |
| D | stmmac_pci.c | 148 plat->tx_queues_cfg[0].weight = 0x09; in intel_mgbe_common_data() 149 plat->tx_queues_cfg[1].weight = 0x0A; in intel_mgbe_common_data() 150 plat->tx_queues_cfg[2].weight = 0x0B; in intel_mgbe_common_data() 151 plat->tx_queues_cfg[3].weight = 0x0C; in intel_mgbe_common_data() 152 plat->tx_queues_cfg[4].weight = 0x0D; in intel_mgbe_common_data() 153 plat->tx_queues_cfg[5].weight = 0x0E; in intel_mgbe_common_data() 154 plat->tx_queues_cfg[6].weight = 0x0F; in intel_mgbe_common_data() 155 plat->tx_queues_cfg[7].weight = 0x10; in intel_mgbe_common_data() 408 plat->tx_queues_cfg[i].weight = 25; in snps_gmac5_default_data()
|
| /Linux-v5.4/net/ceph/crush/ |
| D | mapper.c | 414 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-v5.4/net/sched/ |
| D | sch_qfq.c | 254 u32 lmax, u32 weight) in qfq_init_agg() argument 260 agg->class_weight = weight; in qfq_init_agg() 264 u32 lmax, u32 weight) in qfq_find_agg() argument 269 if (agg->lmax == lmax && agg->class_weight == weight) in qfq_find_agg() 374 static int qfq_change_agg(struct Qdisc *sch, struct qfq_class *cl, u32 weight, in qfq_change_agg() argument 378 struct qfq_aggregate *new_agg = qfq_find_agg(q, lmax, weight); in qfq_change_agg() 384 qfq_init_agg(q, new_agg, lmax, weight); in qfq_change_agg() 401 u32 weight, lmax, inv_w; in qfq_change_class() local 416 weight = nla_get_u32(tb[TCA_QFQ_WEIGHT]); in qfq_change_class() 417 if (!weight || weight > (1UL << QFQ_MAX_WSHIFT)) { in qfq_change_class() [all …]
|
| /Linux-v5.4/fs/afs/ |
| D | vl_list.c | 201 bs.weight = afs_extract_le16(&b); in afs_extract_vlserver_list() 209 bs.name_len, bs.priority, bs.weight, in afs_extract_vlserver_list() 296 bs.weight > vllist->servers[j].weight) in afs_extract_vlserver_list() 309 vllist->servers[j].weight = bs.weight; in afs_extract_vlserver_list()
|
| /Linux-v5.4/block/ |
| D | bfq-wf2q.c | 278 static u64 bfq_delta(unsigned long service, unsigned long weight) in bfq_delta() argument 282 do_div(d, weight); in bfq_delta() 296 bfq_delta(service, entity->weight); in bfq_calc_finish() 301 service, entity->weight); in bfq_calc_finish() 305 bfq_delta(service, entity->weight)); in bfq_calc_finish() 525 static unsigned short bfq_weight_to_ioprio(int weight) in bfq_weight_to_ioprio() argument 528 IOPRIO_BE_NR * BFQ_WEIGHT_CONVERSION_COEFF - weight); in bfq_weight_to_ioprio() 652 st->wsum -= entity->weight; in bfq_forget_entity() 749 old_st->wsum -= entity->weight; in __bfq_entity_update_weight_prio() 786 prev_weight = entity->weight; in __bfq_entity_update_weight_prio() [all …]
|
| D | bfq-cgroup.c | 417 entity->weight = entity->new_weight; in bfq_init_entity() 495 d->weight = cgroup_subsys_on_dfl(io_cgrp_subsys) ? in bfq_cpd_init() 531 entity->orig_weight = entity->weight = entity->new_weight = d->weight; in bfq_pd_init() 915 val = bfqgd->weight; in bfq_io_show_weight_legacy() 937 seq_printf(sf, "default %u\n", bfqgd->weight); in bfq_io_show_weight() 943 static void bfq_group_set_weight(struct bfq_group *bfqg, u64 weight, u64 dev_weight) in bfq_group_set_weight() argument 945 weight = dev_weight ?: weight; in bfq_group_set_weight() 954 if ((unsigned short)weight != bfqg->entity.new_weight) { in bfq_group_set_weight() 955 bfqg->entity.new_weight = (unsigned short)weight; in bfq_group_set_weight() 990 bfqgd->weight = (unsigned short)val; in bfq_io_set_weight_legacy() [all …]
|
| /Linux-v5.4/Documentation/admin-guide/cgroup-v1/ |
| D | blkio-controller.rst | 94 Proportional weight policy files 96 - blkio.weight 97 - Specifies per cgroup weight. This is default weight of the group 104 These rules override the default value of group weight as specified 105 by blkio.weight. 109 # echo dev_maj:dev_minor weight > blkio.weight_device 111 Configure weight=300 on /dev/sdb (8:16) in this cgroup:: 115 dev weight 118 Configure weight=500 on /dev/sda (8:0) in this cgroup:: 122 dev weight [all …]
|