Lines Matching refs:mbps
28 static inline u64 mb_per_tick(int mbps) in mb_per_tick() argument
30 return (1 << 20) / TICKS_PER_SEC * ((u64) mbps); in mb_per_tick()
214 MODULE_PARM_DESC(mbps, "Cache size in MiB for memory-backed device. Default: 0 (none)");
217 module_param_named(mbps, g_mbps, uint, 0444);
218 MODULE_PARM_DESC(mbps, "Limit maximum bandwidth (in MiB/s). Default: 0 (no limit)");
419 NULLB_DEVICE_ATTR(mbps, uint, NULL);
702 dev->mbps = g_mbps; in null_alloc_dev()
1490 unsigned int mbps = nullb->dev->mbps; in nullb_bwtimer_fn() local
1492 if (atomic_long_read(&nullb->cur_bytes) == mb_per_tick(mbps)) in nullb_bwtimer_fn()
1495 atomic_long_set(&nullb->cur_bytes, mb_per_tick(mbps)); in nullb_bwtimer_fn()
1509 atomic_long_set(&nullb->cur_bytes, mb_per_tick(nullb->dev->mbps)); in nullb_setup_bwtimer()
1994 dev->mbps = min_t(unsigned int, 1024 * 40, dev->mbps); in null_validate_conf()
1997 dev->mbps = 0; in null_validate_conf()
2092 if (dev->mbps) { in null_add_dev()