Home
last modified time | relevance | path

Searched refs:bps_limit (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/block/
H A Dblk-throttle.c730 if (ilog2(bps_limit) + ilog2(jiffy_elapsed) - ilog2(HZ) > 62) in calculate_bytes_allowed()
732 return mul_u64_u64_div_u64(bps_limit, (u64)jiffy_elapsed, (u64)HZ); in calculate_bytes_allowed()
799 u64 bps_limit = tg_bps_limit(tg, rw); in __tg_update_carryover() local
808 if (bps_limit != U64_MAX) in __tg_update_carryover()
810 calculate_bytes_allowed(bps_limit, jiffy_elapsed) - in __tg_update_carryover()
857 u64 bps_limit) in tg_within_bps_limit() argument
866 if (bps_limit == U64_MAX || bio_flagged(bio, BIO_BPS_THROTTLED)) { in tg_within_bps_limit()
884 jiffy_wait = div64_u64(extra_bytes * HZ, bps_limit); in tg_within_bps_limit()
906 u64 bps_limit = tg_bps_limit(tg, rw); in tg_may_dispatch() local
919 if ((bps_limit == U64_MAX && iops_limit == UINT_MAX) || in tg_may_dispatch()
[all …]
/openbmc/linux/fs/btrfs/
H A Ddiscard.c396 u64 bps_limit = ((u64)kbps_limit) * SZ_1K; in __btrfs_discard_schedule_work() local
398 NSEC_PER_SEC, bps_limit); in __btrfs_discard_schedule_work()