/linux-6.12.1/net/netfilter/ipvs/ |
D | ip_vs_twos.c | 50 int overhead2, total_weight = 0, weight; in ip_vs_twos_schedule() local 57 weight = atomic_read(&dest->weight); in ip_vs_twos_schedule() 58 if (weight > 0) { in ip_vs_twos_schedule() 59 total_weight += weight; in ip_vs_twos_schedule() 82 weight = atomic_read(&dest->weight); in ip_vs_twos_schedule() 83 if (weight <= 0) in ip_vs_twos_schedule() 86 rweight1 -= weight; in ip_vs_twos_schedule() 87 rweight2 -= weight; in ip_vs_twos_schedule() 91 weight1 = weight; in ip_vs_twos_schedule() 97 weight2 = weight; in ip_vs_twos_schedule() [all …]
|
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_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() 583 if (atomic_read(&dest->weight) > 0) { in __ip_vs_lblcr_schedule() [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_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_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_mh.c | 83 return atomic_read(&dest->weight) <= 0 || in is_unavailable() 325 int weight; in ip_vs_mh_gcd_weight() local 329 weight = atomic_read(&dest->last_weight); in ip_vs_mh_gcd_weight() 330 if (weight > 0) { in ip_vs_mh_gcd_weight() 332 g = gcd(weight, g); in ip_vs_mh_gcd_weight() 334 g = weight; in ip_vs_mh_gcd_weight() 346 int new_weight, weight = 0; in ip_vs_mh_shift_weight() local 358 if (new_weight > weight) in ip_vs_mh_shift_weight() 359 weight = new_weight; in ip_vs_mh_shift_weight() 365 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()
|
/linux-6.12.1/tools/perf/arch/powerpc/util/ |
D | event.c | 17 union perf_sample_weight weight; in arch_perf_parse_sample_weight() local 19 weight.full = *array; in arch_perf_parse_sample_weight() 21 data->weight = weight.full; in arch_perf_parse_sample_weight() 23 data->weight = weight.var1_dw; in arch_perf_parse_sample_weight() 24 data->ins_lat = weight.var2_w; in arch_perf_parse_sample_weight() 25 data->p_stage_cyc = weight.var3_w; in arch_perf_parse_sample_weight() 32 *array = data->weight; in arch_perf_synthesize_sample_weight()
|
/linux-6.12.1/tools/perf/arch/x86/util/ |
D | event.c | 98 union perf_sample_weight weight; in arch_perf_parse_sample_weight() local 100 weight.full = *array; in arch_perf_parse_sample_weight() 102 data->weight = weight.full; in arch_perf_parse_sample_weight() 104 data->weight = weight.var1_dw; in arch_perf_parse_sample_weight() 105 data->ins_lat = weight.var2_w; in arch_perf_parse_sample_weight() 106 data->retire_lat = weight.var3_w; in arch_perf_parse_sample_weight() 113 *array = data->weight; in arch_perf_synthesize_sample_weight()
|
/linux-6.12.1/fs/bcachefs/ |
D | mean_and_variance.c | 113 s64 x, bool initted, u8 weight) in mean_and_variance_weighted_update() argument 116 u8 w = weight; in mean_and_variance_weighted_update() 141 u8 weight) in mean_and_variance_weighted_get_mean() argument 143 return fast_divpow2(s.mean, weight); in mean_and_variance_weighted_get_mean() 153 u8 weight) in mean_and_variance_weighted_get_variance() argument 156 return s.variance >> weight; in mean_and_variance_weighted_get_variance() 166 u8 weight) in mean_and_variance_weighted_get_stddev() argument 168 return int_sqrt64(mean_and_variance_weighted_get_variance(s, weight)); in mean_and_variance_weighted_get_stddev()
|
D | mean_and_variance_test.c | 93 unsigned weight, in do_mean_and_variance_test() argument 105 mean_and_variance_weighted_update(&vw, initial_value, false, weight); in do_mean_and_variance_test() 109 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(vw, weight), initial_value); in do_mean_and_variance_test() 110 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_stddev(vw, weight),0); in do_mean_and_variance_test() 115 mean_and_variance_weighted_update(&vw, data[i], true, weight); in do_mean_and_variance_test() 119 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(vw, weight), weighted_mean[i]); in do_mean_and_variance_test() 120 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_stddev(vw, weight),weighted_stddev[i]); in do_mean_and_variance_test()
|
/linux-6.12.1/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-6.12.1/drivers/gpu/drm/ingenic/ |
D | ingenic-ipu.c | 45 unsigned int weight, unsigned int offset); 157 unsigned int weight, unsigned int offset) in jz4760_set_coefs() argument 162 weight = clamp_val(weight, 0, 512); in jz4760_set_coefs() 171 weight = weight >= 256 ? 512 : 0; in jz4760_set_coefs() 173 w1 = weight; in jz4760_set_coefs() 174 w2 = 512 - weight; in jz4760_set_coefs() 186 weight = 512 - weight; in jz4760_set_coefs() 187 w0 = F2I(f_h + 512 * cubic_conv(f_a, I2F(512 + weight) / 512)); in jz4760_set_coefs() 188 w1 = F2I(f_h + 512 * cubic_conv(f_a, I2F(0 + weight) / 512)); in jz4760_set_coefs() 189 w2 = F2I(f_h + 512 * cubic_conv(f_a, I2F(512 - weight) / 512)); in jz4760_set_coefs() [all …]
|
/linux-6.12.1/drivers/net/can/dev/ |
D | rx-offload.c | 354 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-6.12.1/Documentation/ABI/testing/ |
D | sysfs-kernel-mm-mempolicy-weighted-interleave | 11 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 23 Writing an empty string or `0` will reset the weight to the
|
D | sysfs-class-firmware | 4 Contact: Russ Weight <russ.weight@linux.dev> 16 Contact: Russ Weight <russ.weight@linux.dev> 26 Contact: Russ Weight <russ.weight@linux.dev> 40 Contact: Russ Weight <russ.weight@linux.dev> 52 Contact: Russ Weight <russ.weight@linux.dev> 65 Contact: Russ Weight <russ.weight@linux.dev> 73 Contact: Russ Weight <russ.weight@linux.dev>
|
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | cn10k.h | 15 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-6.12.1/kernel/events/ |
D | hw_breakpoint.c | 409 toggle_bp_slot(struct perf_event *bp, bool enable, enum bp_type_idx type, int weight) in toggle_bp_slot() argument 414 weight = -weight; in toggle_bp_slot() 424 bp_slots_histogram_add(&cpu_pinned[type], info->cpu_pinned, weight); in toggle_bp_slot() 425 info->cpu_pinned += weight; in toggle_bp_slot() 478 bp_slots_histogram_add(&tsk_pinned_all[type], next_tsk_pinned, weight); in toggle_bp_slot() 487 next_tsk_pinned, weight); in toggle_bp_slot() 494 next_tsk_pinned + hw_breakpoint_weight(bp), weight); in toggle_bp_slot() 511 next_tsk_pinned, weight); in toggle_bp_slot() 576 int weight; in __reserve_bp_slot() local 588 weight = hw_breakpoint_weight(bp); in __reserve_bp_slot() [all …]
|
/linux-6.12.1/drivers/dma/qcom/ |
D | hidma_mgmt.c | 104 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-6.12.1/tools/sched_ext/ |
D | scx_qmap.bpf.c | 179 static int weight_to_idx(u32 weight) in weight_to_idx() argument 182 if (weight <= 25) in weight_to_idx() 184 else if (weight <= 50) in weight_to_idx() 186 else if (weight < 200) in weight_to_idx() 188 else if (weight < 400) in weight_to_idx() 199 int idx = weight_to_idx(p->scx.weight); in BPF_STRUCT_OPS() 269 if (highpri_boosting && p->scx.weight >= HIGHPRI_WEIGHT) { in BPF_STRUCT_OPS() 289 int idx = weight_to_idx(p->scx.weight); in update_core_sched_head_seq() 464 core_sched_tail_seqs[weight_to_idx(prev->scx.weight)]++; in BPF_STRUCT_OPS() 484 cpuc->avg_weight = cpuc->avg_weight * 3 / 4 + p->scx.weight / 4; in BPF_STRUCT_OPS() [all …]
|
D | scx_flatcg.bpf.c | 242 div_round_up(pcgc->hweight * cgc->weight, in cgrp_refresh_hweight() 484 pcgc->child_weight_sum += cgc->weight; in update_active_weight_sums() 492 pcgc->child_weight_sum -= cgc->weight; in update_active_weight_sums() 559 (SCX_SLICE_DFL - p->scx.slice) * 100 / p->scx.weight; in BPF_STRUCT_OPS() 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() 858 cgc->weight = args->weight; in BPF_STRUCT_OPS_SLEEPABLE()
|
/linux-6.12.1/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-6.12.1/arch/powerpc/platforms/pseries/ |
D | lparcfg.c | 80 u8 weight; member 128 ppp_data->weight = (retbuf[3] >> 5 * 8) & 0xff; in h_get_ppp() 235 seq_printf(m, "capacity_weight=%d\n", ppp_data.weight); in parse_ppp_data() 591 static ssize_t update_ppp(u64 *entitlement, u8 *weight) in update_ppp() argument 604 new_weight = ppp_data.weight; in update_ppp() 606 } else if (weight) { in update_ppp() 607 new_weight = *weight; in update_ppp() 613 __func__, ppp_data.entitlement, ppp_data.weight); in update_ppp() 629 static ssize_t update_mpp(u64 *entitlement, u8 *weight) in update_mpp() argument 652 } else if (weight) { in update_mpp() [all …]
|
/linux-6.12.1/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()
|