| /linux/net/netfilter/ |
| H A D | xt_limit.c | 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 = cm->cost, in limit_mt_compat_from_user() 180 .cost = m->cost, in limit_mt_compat_to_user()
|
| H A D | xt_hashlimit.c | 102 u_int64_t cost; member 600 dh->rateinfo.cost = user2credits_byte(hinfo->cfg.avg); in rateinfo_init() 605 dh->rateinfo.cost = user2credits(hinfo->cfg.avg, revision); in rateinfo_init() 718 tmp = tmp * dh->rateinfo.cost; in hashlimit_byte_cost() 739 u64 cost; in hashlimit_mt_common() local 766 cost = (cfg->mode & XT_HASHLIMIT_BYTES) ? skb->len : 1; in hashlimit_mt_common() 767 dh->rateinfo.current_rate += cost; in hashlimit_mt_common() 780 cost = hashlimit_byte_cost(skb->len, dh); in hashlimit_mt_common() 782 cost = dh->rateinfo.cost; in hashlimit_mt_common() 784 if (dh->rateinfo.credit >= cost) { in hashlimit_mt_common() [all …]
|
| /linux/net/bridge/netfilter/ |
| H A D | ebt_limit.c | 46 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
|
| /linux/kernel/power/ |
| H A D | energy_model.c | 76 DEFINE_EM_DBG_SHOW(cost, cost); 266 unsigned long power_res, cost; in em_compute_costs() local 269 ret = cb->get_cost(dev, table[i].frequency, &cost); in em_compute_costs() 270 if (ret || !cost || cost > EM_MAX_POWER) { in em_compute_costs() 272 cost, ret); in em_compute_costs() 278 cost = power_res / table[i].performance; in em_compute_costs() 281 table[i].cost = cost; in em_compute_costs() 283 if (table[i].cost >= prev_cost) { in em_compute_costs() 288 prev_cost = table[i].cost; in em_compute_costs()
|
| /linux/lib/zstd/compress/ |
| H A D | zstd_compress_sequences.c | 87 unsigned cost = 0; in ZSTD_entropyCost() local 96 cost += count[s] * kInverseProbabilityLog256[norm]; in ZSTD_entropyCost() 98 return cost >> 8; in ZSTD_entropyCost() 111 size_t cost = 0; in ZSTD_fseBitCost() local 130 cost += (size_t)count[s] * bitCost; in ZSTD_fseBitCost() 132 return cost >> kAccuracyLog; in ZSTD_fseBitCost() 144 size_t cost = 0; in ZSTD_crossEntropyCost() local 152 cost += count[s] * kInverseProbabilityLog256[norm256]; in ZSTD_crossEntropyCost() 154 return cost >> 8; in ZSTD_crossEntropyCost()
|
| /linux/block/ |
| H A D | blk-iocost.c | 712 static u64 cost_to_abs_cost(u64 cost, u32 hw_inuse) in cost_to_abs_cost() argument 714 return DIV64_U64_ROUND_UP(cost * hw_inuse, WEIGHT_ONE); in cost_to_abs_cost() 718 u64 abs_cost, u64 cost) in iocg_commit_bio() argument 722 bio->bi_iocost_cost = cost; in iocg_commit_bio() 723 atomic64_add(cost, &iocg->vtime); in iocg_commit_bio() 1453 u64 cost = abs_cost_to_cost(wait->abs_cost, ctx->hw_inuse); in iocg_wake_fn() local 1455 ctx->vbudget -= cost; in iocg_wake_fn() 1460 iocg_commit_bio(ctx->iocg, wait->bio, wait->abs_cost, cost); in iocg_wake_fn() 2474 u64 cost, new_inuse; in adjust_inuse_and_calc_cost() local 2479 cost = abs_cost_to_cost(abs_cost, hwi); in adjust_inuse_and_calc_cost() [all …]
|
| /linux/drivers/iio/health/ |
| H A D | Kconfig | 19 heart rate monitor and low-cost pulse oximeter. 32 heart rate monitor and low-cost pulse oximeter.
|
| /linux/include/uapi/linux/netfilter_bridge/ |
| H A D | ebt_limit.h | 22 __u32 credit_cap, cost; member
|
| /linux/include/uapi/linux/netfilter/ |
| H A D | xt_limit.h | 21 __u32 credit_cap, cost; member
|
| /linux/Documentation/virt/ |
| H A D | guest-halt-polling.rst | 13 cost of handling the IPI) when performing a wakeup. 15 2) The VM-exit cost can be avoided.
|
| /linux/fs/f2fs/ |
| H A D | gc.c | 565 unsigned int cost; in atgc_lookup_victim() local 600 cost = UINT_MAX - (age + u); in atgc_lookup_victim() 603 if (cost < p->min_cost || in atgc_lookup_victim() 604 (cost == p->min_cost && age > p->oldest_age)) { in atgc_lookup_victim() 605 p->min_cost = cost; in atgc_lookup_victim() 633 unsigned int cost, iter; in atssr_lookup_victim() local 664 cost = UINT_MAX - vblocks; in atssr_lookup_victim() 666 if (cost < p->min_cost || in atssr_lookup_victim() 667 (cost == p->min_cost && age > p->oldest_age)) { in atssr_lookup_victim() 668 p->min_cost = cost; in atssr_lookup_victim() [all …]
|
| /linux/Documentation/mm/ |
| H A D | overcommit-accounting.rst | 57 | SHARED or READ-only - 0 cost (the file is the map not swap) 62 | PRIVATE READ-only - 0 cost (but of little use)
|
| H A D | multigen_lru.rst | 62 2. The cost of evicting the former channel is higher due to the TLB 103 ``folio->flags`` and therefore has a negligible cost. A feedback loop 187 can incur the highest CPU cost in the reclaim path. 207 is false positive, the cost is an additional scan of a range of PTEs,
|
| /linux/Documentation/scheduler/ |
| H A D | sched-energy.rst | 83 Model (EM) framework. The EM of a platform is composed of a power cost table 161 The CPU capacity and power cost associated with each OPP is listed in 262 increase the cost of the tasks already running there. If the waking task is 263 placed on a big CPU, its own execution cost might be higher than if it was 266 consumed by CPUs, the extra cost of running that one task on a big core can be 267 smaller than the cost of raising the OPP on the little CPUs for all the other 271 for all platforms, without knowing the cost of running at different OPPs on all 346 energy. So, your platform must provide power cost tables to the EM framework in
|
| /linux/Documentation/block/ |
| H A D | deadline-iosched.rst | 43 generally improves throughput, at the cost of latency variation. 68 that comes at basically 0 cost we leave that on. We simply disable the
|
| /linux/Documentation/i2c/busses/ |
| H A D | i2c-diolan-u2c.rst | 18 The Diolan U2C-12 I2C-USB Adapter provides a low cost solution to connect
|
| /linux/drivers/net/ethernet/microchip/sparx5/ |
| H A D | sparx5_qos.h | 59 u8 cost[SPX5_PRIOS]; member
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-iio-ina2xx-adc | 9 in-driver readout rate at the cost of an additional register read.
|
| /linux/net/openvswitch/ |
| H A D | meter.c | 607 u32 cost; in ovs_meter_execute() local 649 cost = (meter->kbps) ? skb->len * 8 : 1000; in ovs_meter_execute() 662 if (band->bucket >= cost) { in ovs_meter_execute() 663 band->bucket -= cost; in ovs_meter_execute()
|
| /linux/Documentation/fb/ |
| H A D | deferred_io.rst | 17 - app continues writing to that page with no additional cost. this is 26 writes to occur at minimum cost. Then after some time when hopefully things
|
| /linux/lib/ |
| H A D | Kconfig.kfence | 14 to have negligible cost to permit enabling it in production 24 enable KASAN due to its cost, consider using KFENCE.
|
| /linux/Documentation/arch/x86/ |
| H A D | tlb.rst | 13 destroyed and must be refilled later, at some cost. 15 time. This could potentially cost many more instructions, but
|
| H A D | pti.rst | 66 this protection comes at a cost: 85 to work under PTI. This doesn't have a direct runtime cost but it can 100 deferred until the exit to userspace, minimizing the cost.
|
| /linux/scripts/gcc-plugins/ |
| H A D | Kconfig | 28 there is little 'natural' source of entropy normally. The cost
|
| /linux/arch/sparc/lib/ |
| H A D | M7memset.S | 183 blu,pn %xcc, .short_set ! to justify cost of membar 253 ! to pay %asi + membar cost
|