Searched refs:secs_to_sync (Results 1 – 2 of 2) sorted by relevance
/drivers/lightnvm/ |
D | pblk-write.c | 351 int secs_to_sync; in pblk_calc_secs_to_sync() local 353 secs_to_sync = pblk_calc_secs(pblk, secs_avail, secs_to_flush, true); in pblk_calc_secs_to_sync() 356 if ((!secs_to_sync && secs_to_flush) in pblk_calc_secs_to_sync() 357 || (secs_to_sync < 0) 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() 364 return secs_to_sync; in pblk_calc_secs_to_sync() 559 unsigned int secs_avail, secs_to_sync, secs_to_com; in pblk_submit_write() local 584 secs_to_sync = pblk_calc_secs_to_sync(pblk, secs_avail, in pblk_submit_write() 601 secs_to_sync = pblk_calc_secs_to_sync(pblk, secs_avail, in pblk_submit_write() [all …]
|
D | pblk-core.c | 583 int secs_to_sync = 0; in pblk_calc_secs() local 589 secs_to_sync = max; in pblk_calc_secs() 591 secs_to_sync = min * (secs_avail / min); in pblk_calc_secs() 593 secs_to_sync = min; in pblk_calc_secs() 595 return secs_to_sync; in pblk_calc_secs()
|