Searched refs:weight (Results 1 - 25 of 259) sorted by relevance

1234567891011

/linux-master/tools/perf/arch/powerpc/util/
H A Devent.c17 union perf_sample_weight weight; local
19 weight.full = *array;
21 data->weight = weight.full;
23 data->weight = weight.var1_dw;
24 data->ins_lat = weight.var2_w;
25 data->p_stage_cyc = weight.var3_w;
32 *array = data->weight;
/linux-master/net/netfilter/ipvs/
H A Dip_vs_twos.c28 * decrement rweight1 and rweight2 by the destination weight
33 * by weight
50 int overhead2, total_weight = 0, weight; local
54 /* Generate a random weight between [0,sum of all weights) */
57 weight = atomic_read(&dest->weight);
58 if (weight > 0) {
59 total_weight += weight;
82 weight = atomic_read(&dest->weight);
[all...]
H A Dip_vs_nq.c63 * (server expected overhead) / dest->weight
68 * if every weight is larger than zero.
70 * The server with weight=0 is quiesced and will not receive any
77 !atomic_read(&dest->weight))
90 ((__s64)loh * atomic_read(&dest->weight) >
91 (__s64)doh * atomic_read(&least->weight))) {
104 "activeconns %d refcnt %d weight %d overhead %d\n",
109 atomic_read(&least->weight), loh);
H A Dip_vs_wlc.c14 * Wensong Zhang : added any dest with weight=0 is quiesced
39 * (dest overhead) / dest->weight
44 * if every weight is larger than zero.
46 * The server with weight=0 is quiesced and will not receive any
52 atomic_read(&dest->weight) > 0) {
69 if ((__s64)loh * atomic_read(&dest->weight) >
70 (__s64)doh * atomic_read(&least->weight)) {
77 "activeconns %d refcnt %d weight %d overhead %d\n",
82 atomic_read(&least->weight), loh);
H A Dip_vs_wrr.c13 * 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; local
94 int new_weight, weight = 0; local
[all...]
H A Dip_vs_sed.c14 * 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
72 * if every weight is larger than zero.
74 * The server with weight=0 is quiesced and will not receive any
80 atomic_read(&dest->weight) > 0) {
97 if ((__s64)loh * atomic_read(&dest->weight) >
98 (__s64)doh * atomic_read(&least->weight)) {
105 "activeconns %d refcnt %d weight %d overhead %d\n",
110 atomic_read(&least->weight), lo
[all...]
H A Dip_vs_fo.c8 * Kenny Mathis : added initial functionality based on weight
25 int hw = 0; /* Track highest weight */
30 * Find virtual server with highest weight and send it traffic
34 atomic_read(&dest->weight) > hw) {
36 hw = atomic_read(&dest->weight);
41 IP_VS_DBG_BUF(6, "FO: server %s:%u activeconns %d weight %d\n",
45 atomic_read(&hweight->weight));
H A Dip_vs_ovf.c8 * connections , will keep all connections to the node with the highest weight
10 * weight.
32 /* select the node with highest weight, go to next in line if active
33 * connections exceed weight
36 w = atomic_read(&dest->weight);
52 atomic_read(&h->weight));
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dcn10k.h15 u32 weight; local
20 weight = mtu / pfvf->hw.dwrr_mtu;
22 weight += 1;
24 return weight;
/linux-master/tools/perf/arch/x86/util/
H A Devent.c98 union perf_sample_weight weight; local
100 weight.full = *array;
102 data->weight = weight.full;
104 data->weight = weight.var1_dw;
105 data->ins_lat = weight.var2_w;
106 data->retire_lat = weight.var3_w;
113 *array = data->weight;
/linux-master/lib/
H A Dirq_poll.c88 int work, weight; local
107 weight = iop->weight;
110 work = iop->poll(iop, weight);
118 * consume their assigned weight (or more, some drivers can't
124 if (work >= weight) {
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) argument
183 iop->weight
[all...]
/linux-master/fs/bcachefs/
H A Dmean_and_variance.c24 * Create a struct and if it's the weighted variant set the w field (weight = 2^k).
34 * DO NOT change the weight after calling update.
107 * @weight: ewma weight
113 s64 x, bool initted, u8 weight)
116 u8 w = weight;
138 * @weight: ewma weight
141 u8 weight)
143 return fast_divpow2(s.mean, weight);
112 mean_and_variance_weighted_update(struct mean_and_variance_weighted *s, s64 x, bool initted, u8 weight) argument
140 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s, u8 weight) argument
152 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s, u8 weight) argument
165 mean_and_variance_weighted_get_stddev(struct mean_and_variance_weighted s, u8 weight) argument
[all...]
H A Dmean_and_variance_test.c93 unsigned weight,
105 mean_and_variance_weighted_update(&vw, initial_value, false, weight);
109 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(vw, weight), initial_value);
110 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_stddev(vw, weight),0);
115 mean_and_variance_weighted_update(&vw, data[i], true, weight);
119 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(vw, weight), weighted_mean[i]);
120 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_stddev(vw, weight),weighted_stddev[i]);
89 do_mean_and_variance_test(struct kunit *test, s64 initial_value, s64 initial_n, s64 n, unsigned weight, s64 *data, s64 *mean, s64 *stddev, s64 *weighted_mean, s64 *weighted_stddev) argument
/linux-master/include/linux/
H A Dirq_poll.h11 int weight; member in struct:irq_poll
/linux-master/include/linux/crush/
H A Dmapper.h17 const __u32 *weight, int weight_max,
/linux-master/drivers/dma/qcom/
H A Dhidma_mgmt.h20 u32 *weight; member in struct:hidma_mgmt_dev
/linux-master/net/dccp/ccids/lib/
H A Dtfrc.h47 * @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) argument
51 return avg ? (weight * avg + (10 - weight) * newval) / 10 : newval;
/linux-master/fs/dlm/
H A Dconfig.h19 int weight; member in struct:dlm_config_node
/linux-master/drivers/net/can/dev/
H A Drx-offload.c354 unsigned int weight)
358 /* Limit queue len to 4x the weight (rounded to next power of two) */
359 offload->skb_queue_len_max = 2 << fls(weight);
365 weight);
376 unsigned int weight; local
384 weight = offload->mb_last - offload->mb_first;
387 weight = offload->mb_first - offload->mb_last;
390 return can_rx_offload_init_queue(dev, offload, weight);
395 struct can_rx_offload *offload, unsigned int weight)
400 return can_rx_offload_init_queue(dev, offload, weight);
352 can_rx_offload_init_queue(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight) argument
394 can_rx_offload_add_fifo(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight) argument
404 can_rx_offload_add_manual(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight) argument
[all...]
/linux-master/include/linux/can/
H A Drx-offload.h38 unsigned int weight);
41 unsigned int weight);
/linux-master/drivers/thermal/
H A Dgov_fair_share.c3 * fair_share.c - A simple weight based Thermal governor
82 total_weight += instance->weight;
96 percentage = (instance->weight * 100) / total_weight;
/linux-master/drivers/gpu/drm/ingenic/
H A Dingenic-ipu.c45 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)
162 weight = clamp_val(weight, 0, 512);
171 weight = weight >
155 jz4760_set_coefs(struct ingenic_ipu *ipu, unsigned int reg, unsigned int sharpness, bool downscale, unsigned int weight, unsigned int offset) argument
207 jz4725b_set_coefs(struct ingenic_ipu *ipu, unsigned int reg, unsigned int sharpness, bool downscale, unsigned int weight, unsigned int offset) argument
236 unsigned int i, offset, weight, weight_num = denom; local
268 unsigned int i, offset, weight, weight_num = 0; local
[all...]
/linux-master/include/uapi/linux/
H A Ddns_resolver.h100 __u16 weight; /* Weight (as SRV record) (LE) */ member in struct:dns_server_list_v1_server
/linux-master/tools/perf/util/bpf_skel/
H A Dsample_filter.bpf.c77 return kctx->data->weight.var1_dw;
79 return kctx->data->weight.var2_w;
81 return kctx->data->weight.var3_w;
84 return kctx->data->weight.full;
/linux-master/kernel/events/
H A Dhw_breakpoint.c409 toggle_bp_slot(struct perf_event *bp, bool enable, enum bp_type_idx type, int weight) argument
414 weight = -weight;
424 bp_slots_histogram_add(&cpu_pinned[type], info->cpu_pinned, weight);
425 info->cpu_pinned += weight;
478 bp_slots_histogram_add(&tsk_pinned_all[type], next_tsk_pinned, weight);
487 next_tsk_pinned, weight);
494 next_tsk_pinned + hw_breakpoint_weight(bp), weight); local
511 next_tsk_pinned, weight);
576 int weight; local
610 int weight; local
[all...]

Completed in 402 milliseconds

1234567891011