Home
last modified time | relevance | path

Searched refs:cost (Results 1 - 25 of 56) sorted by relevance

123

/kernel/linux/linux-5.10/net/netfilter/
H A Dxt_limit.c36 `credit_cap'. The `peak rate' becomes the cost of passing the
37 test, `cost'.
41 discarded. Every time the match passes, you lose `cost' credits;
76 if (priv->credit >= r->cost) { in limit_mt()
78 priv->credit -= r->cost; in limit_mt()
121 if (r->cost == 0) { in limit_mt_check()
123 r->cost = user2credits(r->avg); in limit_mt_check()
144 u_int32_t credit_cap, cost; member
160 .cost = cm->cost, in limit_mt_compat_from_user()
[all...]
H A Dnft_limit.c28 static inline bool nft_limit_eval(struct nft_limit *limit, u64 cost) in nft_limit_eval() argument
40 delta = tokens - cost; in nft_limit_eval()
126 u64 cost; member
135 if (nft_limit_eval(&priv->limit, priv->cost)) in nft_limit_pkts_eval()
158 priv->cost = div64_u64(priv->limit.nsecs, priv->limit.rate); in nft_limit_pkts_init()
183 u64 cost = div64_u64(priv->nsecs * pkt->skb->len, priv->rate); in nft_limit_bytes_eval() local
185 if (nft_limit_eval(priv, cost)) in nft_limit_bytes_eval()
245 if (nft_limit_eval(&priv->limit, priv->cost)) in nft_limit_obj_pkts_eval()
260 priv->cost = div64_u64(priv->limit.nsecs, priv->limit.rate); in nft_limit_obj_pkts_init()
287 u64 cost in nft_limit_obj_bytes_eval() local
[all...]
H A Dxt_hashlimit.c103 u_int64_t cost; member
443 `credit_cap'. The `peak rate' becomes the cost of passing the
444 test, `cost'.
448 discarded. Every time the match passes, you lose `cost' credits;
596 dh->rateinfo.cost = user2credits_byte(hinfo->cfg.avg); in rateinfo_init()
601 dh->rateinfo.cost = user2credits(hinfo->cfg.avg, revision); in rateinfo_init()
712 tmp = tmp * dh->rateinfo.cost; in hashlimit_byte_cost()
733 u64 cost; in hashlimit_mt_common() local
760 cost = (cfg->mode & XT_HASHLIMIT_BYTES) ? skb->len : 1; in hashlimit_mt_common()
761 dh->rateinfo.current_rate += cost; in hashlimit_mt_common()
[all...]
/kernel/linux/linux-6.6/net/netfilter/
H A Dxt_limit.c34 `credit_cap'. The `peak rate' becomes the cost of passing the
35 test, `cost'.
39 discarded. Every time the match passes, you lose `cost' credits;
72 if ((READ_ONCE(priv->credit) < r->cost) && (READ_ONCE(priv->prev) == jiffies)) in limit_mt()
83 if (new_credit >= r->cost) { in limit_mt()
85 new_credit -= r->cost; in limit_mt()
128 if (r->cost == 0) { in limit_mt_check()
130 r->cost = user2credits(r->avg); in limit_mt_check()
150 u_int32_t credit_cap, cost; member
166 .cost in limit_mt_compat_from_user()
[all...]
H A Dnft_limit.c32 static inline bool nft_limit_eval(struct nft_limit_priv *priv, u64 cost) in nft_limit_eval() argument
44 delta = tokens - cost; in nft_limit_eval()
174 u64 cost; member
183 if (nft_limit_eval(&priv->limit, priv->cost)) in nft_limit_pkts_eval()
206 priv->cost = div64_u64(priv->limit.nsecs, priv->limit.rate); in nft_limit_pkts_init()
231 priv_dst->cost = priv_src->cost; in nft_limit_pkts_clone()
253 u64 cost = div64_u64(priv->nsecs * pkt->skb->len, priv->rate); in nft_limit_bytes_eval() local
255 if (nft_limit_eval(priv, cost)) in nft_limit_bytes_eval()
334 if (nft_limit_eval(&priv->limit, priv->cost)) in nft_limit_obj_pkts_eval()
385 u64 cost = div64_u64(priv->nsecs * pkt->skb->len, priv->rate); nft_limit_obj_bytes_eval() local
[all...]
H A Dxt_hashlimit.c103 u_int64_t cost; member
443 `credit_cap'. The `peak rate' becomes the cost of passing the
444 test, `cost'.
448 discarded. Every time the match passes, you lose `cost' credits;
596 dh->rateinfo.cost = user2credits_byte(hinfo->cfg.avg); in rateinfo_init()
601 dh->rateinfo.cost = user2credits(hinfo->cfg.avg, revision); in rateinfo_init()
712 tmp = tmp * dh->rateinfo.cost; in hashlimit_byte_cost()
733 u64 cost; in hashlimit_mt_common() local
760 cost = (cfg->mode & XT_HASHLIMIT_BYTES) ? skb->len : 1; in hashlimit_mt_common()
761 dh->rateinfo.current_rate += cost; in hashlimit_mt_common()
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Denergy_model.h18 * @cost: The cost coefficient associated with this level, used during
25 unsigned long cost; member
34 * but a lower or equal power cost. Such inefficient states are ignored when
104 * which would reduce big value stored in the 'cost' field, then multiply by
106 * e.g. power ~1.3 Watt at max freq, so the 'cost' value > 1mln micro-Watts.
108 * could be 4096, then multiplication: 'cost' * 'sum_util' would overflow.
115 #define em_estimate_energy(cost, sum_util, scale_cpu) \
116 (((cost) * (sum_util)) / (scale_cpu))
118 #define em_estimate_energy(cost, sum_uti
[all...]
/kernel/linux/linux-6.6/kernel/power/
H A Denergy_model.c45 debugfs_create_ulong("cost", 0444, d, &ps->cost); in em_debug_create_ps()
157 /* Compute the cost of each performance state. */ in em_create_perf_table()
160 unsigned long power_res, cost; in em_create_perf_table() local
163 ret = cb->get_cost(dev, table[i].frequency, &cost); in em_create_perf_table()
164 if (ret || !cost || cost > EM_MAX_POWER) { in em_create_perf_table()
165 dev_err(dev, "EM: invalid cost %lu %d\n", in em_create_perf_table()
166 cost, ret); in em_create_perf_table()
171 cost in em_create_perf_table()
[all...]
/kernel/linux/linux-5.10/net/bridge/netfilter/
H A Debt_limit.c46 if (info->credit >= info->cost) { in ebt_limit_mt()
48 info->credit -= info->cost; in ebt_limit_mt()
85 info->cost = user2credits(info->avg); in ebt_limit_mt_check()
98 compat_uint_t credit, credit_cap, cost; member
/kernel/linux/linux-6.6/net/bridge/netfilter/
H A Debt_limit.c46 if (info->credit >= info->cost) { in ebt_limit_mt()
48 info->credit -= info->cost; in ebt_limit_mt()
85 info->cost = user2credits(info->avg); in ebt_limit_mt_check()
98 compat_uint_t credit, credit_cap, cost; member
/kernel/linux/linux-6.6/lib/zstd/compress/
H A Dzstd_compress_sequences.c67 * Returns the cost in bytes of encoding the normalized count header.
81 * Returns the cost in bits of encoding the distribution described by count
86 unsigned cost = 0; in ZSTD_entropyCost() local
95 cost += count[s] * kInverseProbabilityLog256[norm]; in ZSTD_entropyCost()
97 return cost >> 8; in ZSTD_entropyCost()
101 * Returns the cost in bits of encoding the distribution in count using ctable.
110 size_t cost = 0; in ZSTD_fseBitCost() local
129 cost += (size_t)count[s] * bitCost; in ZSTD_fseBitCost()
131 return cost >> kAccuracyLog; in ZSTD_fseBitCost()
135 * Returns the cost i
143 size_t cost = 0; ZSTD_crossEntropyCost() local
[all...]
/kernel/linux/linux-5.10/block/
H A Dblk-iocost.c3 * IO cost model based controller.
10 * observable cost metric. This is distinguished from CPU and memory where
22 * While there is no cost metric we can trivially observe, it isn't a
23 * complete mystery. For example, on a rotational device, seek cost
32 * IO cost model estimates the cost of an IO given its basic parameters and
33 * history (e.g. the end sector of the last IO). The cost is measured in
34 * device time. If a given IO is estimated to cost 10ms, the device should
37 * Currently, there's only one builtin cost model - linear. Each IO is
38 * classified as sequential or random and given a base cost accordingl
720 cost_to_abs_cost(u64 cost, u32 hw_inuse) cost_to_abs_cost() argument
725 iocg_commit_bio(struct ioc_gq *iocg, struct bio *bio, u64 abs_cost, u64 cost) iocg_commit_bio() argument
1405 u64 cost = abs_cost_to_cost(wait->abs_cost, ctx->hw_inuse); iocg_wake_fn() local
2435 u64 cost, new_inuse; adjust_inuse_and_calc_cost() local
2495 u64 cost = 0; calc_vtime_cost_builtin() local
2531 u64 cost; calc_vtime_cost() local
2556 u64 cost; calc_size_vtime_cost() local
2569 u64 abs_cost, cost, vtime; ioc_rqos_throttle() local
2704 u64 vtime, abs_cost, cost; ioc_rqos_merge() local
[all...]
/kernel/linux/linux-5.10/kernel/power/
H A Denergy_model.c44 debugfs_create_ulong("cost", 0444, d, &ps->cost); in em_debug_create_ps()
141 /* Compute the cost of each performance state. */ in em_create_perf_table()
146 table[i].cost = div64_u64(fmax * power_res, in em_create_perf_table()
148 if (table[i].cost >= prev_cost) { in em_create_perf_table()
152 prev_cost = table[i].cost; in em_create_perf_table()
/kernel/linux/linux-6.6/block/
H A Dblk-iocost.c3 * IO cost model based controller.
10 * observable cost metric. This is distinguished from CPU and memory where
22 * While there is no cost metric we can trivially observe, it isn't a
23 * complete mystery. For example, on a rotational device, seek cost
32 * IO cost model estimates the cost of an IO given its basic parameters and
33 * history (e.g. the end sector of the last IO). The cost is measured in
34 * device time. If a given IO is estimated to cost 10ms, the device should
37 * Currently, there's only one builtin cost model - linear. Each IO is
38 * classified as sequential or random and given a base cost accordingl
712 cost_to_abs_cost(u64 cost, u32 hw_inuse) cost_to_abs_cost() argument
717 iocg_commit_bio(struct ioc_gq *iocg, struct bio *bio, u64 abs_cost, u64 cost) iocg_commit_bio() argument
1462 u64 cost = abs_cost_to_cost(wait->abs_cost, ctx->hw_inuse); iocg_wake_fn() local
2464 u64 cost, new_inuse; adjust_inuse_and_calc_cost() local
2524 u64 cost = 0; calc_vtime_cost_builtin() local
2564 u64 cost; calc_vtime_cost() local
2589 u64 cost; calc_size_vtime_cost() local
2602 u64 abs_cost, cost, vtime; ioc_rqos_throttle() local
2737 u64 vtime, abs_cost, cost; ioc_rqos_merge() local
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Denergy_model.h19 * @cost: The cost coefficient associated with this level, used during
25 unsigned long cost; member
173 * as 'ps->cost'. in em_cpu_energy()
176 * share the same 'ps->cost', and the same CPU capacity. Hence, the in em_cpu_energy()
180 * ps->cost * \Sum cpu_util in em_cpu_energy()
184 return ps->cost * sum_util / scale_cpu; in em_cpu_energy()
/kernel/linux/linux-5.10/include/uapi/linux/netfilter/
H A Dxt_limit.h21 __u32 credit_cap, cost; member
/kernel/linux/linux-5.10/include/uapi/linux/netfilter_bridge/
H A Debt_limit.h22 __u32 credit_cap, cost; member
/kernel/linux/linux-6.6/include/uapi/linux/netfilter/
H A Dxt_limit.h21 __u32 credit_cap, cost; member
/kernel/linux/linux-6.6/include/uapi/linux/netfilter_bridge/
H A Debt_limit.h22 __u32 credit_cap, cost; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/netfilter_bridge/
H A Debt_limit.h29 __u32 credit_cap, cost; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/netfilter/
H A Dxt_limit.h29 __u32 credit_cap, cost; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/netfilter_bridge/
H A Debt_limit.h29 __u32 credit_cap, cost; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/netfilter/
H A Dxt_limit.h29 __u32 credit_cap, cost; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/netfilter/
H A Dxt_limit.h17 __u32 credit_cap, cost; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/netfilter_bridge/
H A Debt_limit.h17 __u32 credit_cap, cost; member

Completed in 14 milliseconds

123