/kernel/linux/linux-6.6/net/netfilter/ipvs/ |
H A D | ip_vs_twos.c | 28 * decrement rweight1 and rweight2 by the destination weight 33 * by weight 50 int overhead2, total_weight = 0, weight; in ip_vs_twos_schedule() local 54 /* Generate a random weight between [0,sum of all weights) */ in ip_vs_twos_schedule() 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() [all...] |
H A D | ip_vs_wrr.c | 13 * with weight 0 when all weights are zero 28 * - mw: maximum weight 29 * - di: weight step, greatest common divisor from all weights 30 * - cw: current required weight 33 * First, we start with cw = mw and select dests with weight >= cw. 37 * pass 1: cw = max weight 38 * pass 2: cw = max weight - di 39 * pass 3: cw = max weight - 2 * di 44 * weight changes, it is possible some dest weight t 72 int weight; ip_vs_wrr_gcd_weight() local 94 int new_weight, weight = 0; ip_vs_wrr_max_weight() local [all...] |
H A D | ip_vs_wlc.c | 14 * Wensong Zhang : added any dest with weight=0 is quiesced 39 * (dest overhead) / dest->weight in ip_vs_wlc_schedule() 44 * if every weight is larger than zero. in ip_vs_wlc_schedule() 46 * The server with weight=0 is quiesced and will not receive any in ip_vs_wlc_schedule() 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() 77 "activeconns %d refcnt %d weight %d overhead %d\n", in ip_vs_wlc_schedule() 82 atomic_read(&least->weight), loh); in ip_vs_wlc_schedule()
|
H A D | ip_vs_nq.c | 63 * (server expected overhead) / dest->weight in ip_vs_nq_schedule() 68 * if every weight is larger than zero. in ip_vs_nq_schedule() 70 * The server with weight=0 is quiesced and will not receive any in ip_vs_nq_schedule() 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() 104 "activeconns %d refcnt %d weight %d overhead %d\n", in ip_vs_nq_schedule() 109 atomic_read(&least->weight), loh); in ip_vs_nq_schedule()
|
H A D | ip_vs_sed.c | 14 * jobs on the ith server and Ui is the fixed service rate (weight) of 29 * (the server weight varies a lot). 67 * (server expected overhead) / dest->weight in ip_vs_sed_schedule() 72 * if every weight is larger than zero. in ip_vs_sed_schedule() 74 * The server with weight=0 is quiesced and will not receive any in ip_vs_sed_schedule() 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() 105 "activeconns %d refcnt %d weight %d overhead %d\n", in ip_vs_sed_schedule() 110 atomic_read(&least->weight), lo in ip_vs_sed_schedule() [all...] |
H A D | ip_vs_lblcr.c | 8 * 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 167 /* select the first destination server, whose weight > 0 */ in ip_vs_dest_set_min() 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() 198 "activeconns %d refcnt %d weight %d overhead %d\n", in ip_vs_dest_set_min() 204 atomic_read(&least->weight), loh); in ip_vs_dest_set_min() 219 /* select the first destination server, whose weight > in ip_vs_dest_set_max() [all...] |
/kernel/linux/linux-6.6/tools/perf/arch/powerpc/util/ |
H A 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()
|
/kernel/linux/linux-5.10/net/netfilter/ipvs/ |
H A D | ip_vs_wrr.c | 13 * with weight 0 when all weights are zero 28 * - mw: maximum weight 29 * - di: weight step, greatest common divisor from all weights 30 * - cw: current required weight 33 * First, we start with cw = mw and select dests with weight >= cw. 37 * pass 1: cw = max weight 38 * pass 2: cw = max weight - di 39 * pass 3: cw = max weight - 2 * di 44 * weight changes, it is possible some dest weight t 72 int weight; ip_vs_wrr_gcd_weight() local 94 int new_weight, weight = 0; ip_vs_wrr_max_weight() local [all...] |
H A D | ip_vs_nq.c | 63 * (server expected overhead) / dest->weight in ip_vs_nq_schedule() 68 * if every weight is larger than zero. in ip_vs_nq_schedule() 70 * The server with weight=0 is quiesced and will not receive any in ip_vs_nq_schedule() 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() 104 "activeconns %d refcnt %d weight %d overhead %d\n", in ip_vs_nq_schedule() 109 atomic_read(&least->weight), loh); in ip_vs_nq_schedule()
|
H A D | ip_vs_sed.c | 14 * jobs on the ith server and Ui is the fixed service rate (weight) of 29 * (the server weight varies a lot). 67 * (server expected overhead) / dest->weight in ip_vs_sed_schedule() 72 * if every weight is larger than zero. in ip_vs_sed_schedule() 74 * The server with weight=0 is quiesced and will not receive any in ip_vs_sed_schedule() 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() 105 "activeconns %d refcnt %d weight %d overhead %d\n", in ip_vs_sed_schedule() 110 atomic_read(&least->weight), lo in ip_vs_sed_schedule() [all...] |
H A D | ip_vs_wlc.c | 14 * Wensong Zhang : added any dest with weight=0 is quiesced 39 * (dest overhead) / dest->weight in ip_vs_wlc_schedule() 44 * if every weight is larger than zero. in ip_vs_wlc_schedule() 46 * The server with weight=0 is quiesced and will not receive any in ip_vs_wlc_schedule() 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() 77 "activeconns %d refcnt %d weight %d overhead %d\n", in ip_vs_wlc_schedule() 82 atomic_read(&least->weight), loh); in ip_vs_wlc_schedule()
|
H A D | ip_vs_lblcr.c | 8 * 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 167 /* select the first destination server, whose weight > 0 */ in ip_vs_dest_set_min() 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() 198 "activeconns %d refcnt %d weight %d overhead %d\n", in ip_vs_dest_set_min() 204 atomic_read(&least->weight), loh); in ip_vs_dest_set_min() 219 /* select the first destination server, whose weight > in ip_vs_dest_set_max() [all...] |
H A D | ip_vs_fo.c | 8 * Kenny Mathis : added initial functionality based on weight 25 int hw = 0; /* Track highest weight */ in ip_vs_fo_schedule() 30 * Find virtual server with highest weight and send it traffic in ip_vs_fo_schedule() 34 atomic_read(&dest->weight) > hw) { in ip_vs_fo_schedule() 36 hw = atomic_read(&dest->weight); in ip_vs_fo_schedule() 41 IP_VS_DBG_BUF(6, "FO: server %s:%u activeconns %d weight %d\n", in ip_vs_fo_schedule() 45 atomic_read(&hweight->weight)); in ip_vs_fo_schedule()
|
/kernel/linux/linux-6.6/tools/perf/arch/x86/util/ |
H A D | event.c | 85 union perf_sample_weight weight; in arch_perf_parse_sample_weight() local 87 weight.full = *array; in arch_perf_parse_sample_weight() 89 data->weight = weight.full; in arch_perf_parse_sample_weight() 91 data->weight = weight.var1_dw; in arch_perf_parse_sample_weight() 92 data->ins_lat = weight.var2_w; in arch_perf_parse_sample_weight() 93 data->retire_lat = weight.var3_w; in arch_perf_parse_sample_weight() 100 *array = data->weight; in arch_perf_synthesize_sample_weight()
|
/kernel/linux/linux-5.10/lib/ |
H A 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() 118 * consume their assigned weight (or more, some drivers can't in irq_poll_softirq() 124 if (work >= weight) { in irq_poll_softirq() 173 * @weight: The default weight (or command completion budget) 179 void irq_poll_init(struct irq_poll *iop, int weight, irq_poll_fn *poll_fn) in irq_poll_init() argument 183 iop->weight in irq_poll_init() [all...] |
/kernel/linux/linux-6.6/lib/ |
H A 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() 118 * consume their assigned weight (or more, some drivers can't in irq_poll_softirq() 124 if (work >= weight) { in irq_poll_softirq() 173 * @weight: The default weight (or command completion budget) 179 void irq_poll_init(struct irq_poll *iop, int weight, irq_poll_fn *poll_fn) in irq_poll_init() argument 183 iop->weight in irq_poll_init() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ingenic/ |
H A D | ingenic-ipu.c | 42 unsigned int weight, unsigned int offset); 107 * On entry, "weight" is a coefficient suitable for bilinear mode, 110 * "weight 512" means all of pixel 0; 111 * "weight 256" means half of pixel 0 and half of pixel 1; 112 * "weight 0" means all of pixel 1; 118 unsigned int weight, unsigned int offset) in jz4760_set_coefs() 123 weight = clamp_val(weight, 0, 512); in jz4760_set_coefs() 132 weight = weight > in jz4760_set_coefs() 116 jz4760_set_coefs(struct ingenic_ipu *ipu, unsigned int reg, unsigned int sharpness, bool downscale, unsigned int weight, unsigned int offset) jz4760_set_coefs() argument 168 jz4725b_set_coefs(struct ingenic_ipu *ipu, unsigned int reg, unsigned int sharpness, bool downscale, unsigned int weight, unsigned int offset) jz4725b_set_coefs() argument 197 unsigned int i, offset, weight, weight_num = denom; ingenic_ipu_set_downscale_coefs() local 229 unsigned int i, offset, weight, weight_num = 0; ingenic_ipu_set_upscale_coefs() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/ingenic/ |
H A D | ingenic-ipu.c | 45 unsigned int weight, unsigned int offset); 146 * On entry, "weight" is a coefficient suitable for bilinear mode, 149 * "weight 512" means all of pixel 0; 150 * "weight 256" means half of pixel 0 and half of pixel 1; 151 * "weight 0" means all of pixel 1; 157 unsigned int weight, unsigned int offset) in jz4760_set_coefs() 162 weight = clamp_val(weight, 0, 512); in jz4760_set_coefs() 171 weight = weight > in jz4760_set_coefs() 155 jz4760_set_coefs(struct ingenic_ipu *ipu, unsigned int reg, unsigned int sharpness, bool downscale, unsigned int weight, unsigned int offset) jz4760_set_coefs() argument 207 jz4725b_set_coefs(struct ingenic_ipu *ipu, unsigned int reg, unsigned int sharpness, bool downscale, unsigned int weight, unsigned int offset) jz4725b_set_coefs() argument 236 unsigned int i, offset, weight, weight_num = denom; ingenic_ipu_set_downscale_coefs() local 268 unsigned int i, offset, weight, weight_num = 0; ingenic_ipu_set_upscale_coefs() local [all...] |
/kernel/linux/linux-5.10/kernel/events/ |
H A 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() 179 new_idx = old_idx + weight; in toggle_bp_task_slot() 192 int weight) in toggle_bp_slot() 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() 281 int weight; in __reserve_bp_slot() local 172 toggle_bp_task_slot(struct perf_event *bp, int cpu, enum bp_type_idx type, int weight) toggle_bp_task_slot() argument 191 toggle_bp_slot(struct perf_event *bp, bool enable, enum bp_type_idx type, int weight) toggle_bp_slot() argument 332 int weight; __release_bp_slot() local [all...] |
/kernel/linux/linux-5.10/drivers/net/can/dev/ |
H A D | rx-offload.c | 306 unsigned int weight) in can_rx_offload_init_queue() 310 /* Limit queue len to 4x the weight (rounted to next power of two) */ in can_rx_offload_init_queue() 311 offload->skb_queue_len_max = 2 << fls(weight); in can_rx_offload_init_queue() 315 netif_napi_add(dev, &offload->napi, can_rx_offload_napi_poll, weight); in can_rx_offload_init_queue() 326 unsigned int weight; in can_rx_offload_add_timestamp() local 334 weight = offload->mb_last - offload->mb_first; in can_rx_offload_add_timestamp() 337 weight = offload->mb_first - offload->mb_last; in can_rx_offload_add_timestamp() 340 return can_rx_offload_init_queue(dev, offload, weight); in can_rx_offload_add_timestamp() 345 struct can_rx_offload *offload, unsigned int weight) in can_rx_offload_add_fifo() 350 return can_rx_offload_init_queue(dev, offload, weight); in can_rx_offload_add_fifo() 304 can_rx_offload_init_queue(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight) can_rx_offload_init_queue() argument 344 can_rx_offload_add_fifo(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight) can_rx_offload_add_fifo() argument 354 can_rx_offload_add_manual(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight) can_rx_offload_add_manual() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/can/dev/ |
H A D | rx-offload.c | 354 unsigned int weight) in can_rx_offload_init_queue() 358 /* Limit queue len to 4x the weight (rounded to next power of two) */ in can_rx_offload_init_queue() 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() 400 return can_rx_offload_init_queue(dev, offload, weight); in can_rx_offload_add_fifo() 352 can_rx_offload_init_queue(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight) can_rx_offload_init_queue() argument 394 can_rx_offload_add_fifo(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight) can_rx_offload_add_fifo() argument 404 can_rx_offload_add_manual(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight) can_rx_offload_add_manual() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A 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()
|
/kernel/linux/linux-6.6/kernel/events/ |
H A 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() local 511 next_tsk_pinned, weight); in toggle_bp_slot() 576 int weight; in __reserve_bp_slot() local 610 int weight; __release_bp_slot() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
H A D | lparcfg.c | 79 u8 weight; member 127 ppp_data->weight = (retbuf[3] >> 5 * 8) & 0xff; in h_get_ppp() 224 seq_printf(m, "capacity_weight=%d\n", ppp_data.weight); in parse_ppp_data() 543 static ssize_t update_ppp(u64 *entitlement, u8 *weight) in update_ppp() argument 556 new_weight = ppp_data.weight; in update_ppp() 558 } else if (weight) { in update_ppp() 559 new_weight = *weight; in update_ppp() 565 __func__, ppp_data.entitlement, ppp_data.weight); in update_ppp() 577 * Update the memory entitlement and weight for the partition. Caller must 578 * specify either a new entitlement or weight, no 581 update_mpp(u64 *entitlement, u8 *weight) update_mpp() argument [all...] |
/kernel/linux/linux-5.10/net/dccp/ccids/lib/ |
H A D | tfrc.h | 47 * @weight: Weight to be used as damping factor, in units of 1/10 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()
|