Searched refs:secs_avail (Results 1 – 3 of 3) sorted by relevance
/kernel/linux/linux-5.10/drivers/lightnvm/ |
D | pblk-write.c | 348 static int pblk_calc_secs_to_sync(struct pblk *pblk, unsigned int secs_avail, in pblk_calc_secs_to_sync() argument 353 secs_to_sync = pblk_calc_secs(pblk, secs_avail, secs_to_flush, true); in pblk_calc_secs_to_sync() 358 || (secs_to_sync > secs_avail && !secs_to_flush)) { in pblk_calc_secs_to_sync() 360 secs_avail, secs_to_sync, secs_to_flush); in pblk_calc_secs_to_sync() 559 unsigned int secs_avail, secs_to_sync, secs_to_com; in pblk_submit_write() local 580 secs_avail = r_ctx->nr_valid; in pblk_submit_write() 583 pblk_prepare_resubmit(pblk, pos, secs_avail); in pblk_submit_write() 584 secs_to_sync = pblk_calc_secs_to_sync(pblk, secs_avail, in pblk_submit_write() 585 secs_avail); in pblk_submit_write() 593 secs_avail = pblk_rb_read_count(&pblk->rwb); in pblk_submit_write() [all …]
|
D | pblk-core.c | 379 unsigned int secs_avail = pblk_rb_read_count(&pblk->rwb); in pblk_write_should_kick() local 381 if (secs_avail >= pblk->min_write_pgs_data) in pblk_write_should_kick() 578 int pblk_calc_secs(struct pblk *pblk, unsigned long secs_avail, in pblk_calc_secs() argument 588 if (secs_avail >= max) in pblk_calc_secs() 590 else if (secs_avail >= min) in pblk_calc_secs() 591 secs_to_sync = min * (secs_avail / min); in pblk_calc_secs()
|
D | pblk.h | 815 int pblk_calc_secs(struct pblk *pblk, unsigned long secs_avail,
|