/linux-master/tools/perf/arch/powerpc/util/ |
H A D | event.c | 17 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 D | ip_vs_twos.c | 28 * 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 D | ip_vs_nq.c | 63 * (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 D | ip_vs_wlc.c | 14 * 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 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; local 94 int new_weight, weight = 0; local [all...] |
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 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 D | ip_vs_fo.c | 8 * 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 D | ip_vs_ovf.c | 8 * 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 D | cn10k.h | 15 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 D | event.c | 98 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 D | irq_poll.c | 88 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 D | mean_and_variance.c | 24 * 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 D | mean_and_variance_test.c | 93 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 D | irq_poll.h | 11 int weight; member in struct:irq_poll
|
/linux-master/include/linux/crush/ |
H A D | mapper.h | 17 const __u32 *weight, int weight_max,
|
/linux-master/drivers/dma/qcom/ |
H A D | hidma_mgmt.h | 20 u32 *weight; member in struct:hidma_mgmt_dev
|
H A D | hidma_mgmt.c | 104 if (mgmtdev->weight[i] > HIDMA_MAX_CHANNEL_WEIGHT) { 106 "max value of weight can be %d.\n", 111 /* weight needs to be at least one */ 112 if (mgmtdev->weight[i] == 0) 113 mgmtdev->weight[i] = 1; 137 u32 weight = mgmtdev->weight[i]; local 144 val |= (weight & HIDMA_WEIGHT_MASK) << HIDMA_WRR_BIT_POS; 277 mgmtdev->weight = devm_kcalloc(&pdev->dev, 279 sizeof(*mgmtdev->weight), GFP_KERNE [all...] |
/linux-master/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) argument 51 return avg ? (weight * avg + (10 - weight) * newval) / 10 : newval;
|
/linux-master/fs/dlm/ |
H A D | config.h | 19 int weight; member in struct:dlm_config_node
|
/linux-master/drivers/net/can/dev/ |
H A D | rx-offload.c | 354 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 D | rx-offload.h | 38 unsigned int weight); 41 unsigned int weight);
|
/linux-master/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) 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 D | dns_resolver.h | 100 __u16 weight; /* Weight (as SRV record) (LE) */ member in struct:dns_server_list_v1_server
|
/linux-master/tools/perf/util/bpf_skel/ |
H A D | sample_filter.bpf.c | 77 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 D | hw_breakpoint.c | 409 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...] |