Lines Matching refs:cur_depth
86 uint32_t cur_depth; member
195 atomic_add_int(&ndisk->cur_depth, NVD_ODEPTH); in nvd_bio_submit()
197 atomic_add_int(&ndisk->cur_depth, 1); in nvd_bio_submit()
201 atomic_add_int(&ndisk->cur_depth, -NVD_ODEPTH); in nvd_bio_submit()
203 wakeup(&ndisk->cur_depth); in nvd_bio_submit()
205 if (atomic_fetchadd_int(&ndisk->cur_depth, -1) == 1 && in nvd_bio_submit()
207 wakeup(&ndisk->cur_depth); in nvd_bio_submit()
227 ndisk->cur_depth == 0 && bioq_first(&ndisk->bioq) == NULL) { in nvd_strategy()
352 atomic_add_int(&ndisk->cur_depth, -NVD_ODEPTH); in nvd_done()
354 wakeup(&ndisk->cur_depth); in nvd_done()
356 if (atomic_fetchadd_int(&ndisk->cur_depth, -1) == 1 && in nvd_done()
358 wakeup(&ndisk->cur_depth); in nvd_done()
382 while (ndisk->cur_depth > 0) in nvd_bioq_process()
383 tsleep(&ndisk->cur_depth, 0, "nvdorb", 1); in nvd_bioq_process()
389 while (ndisk->cur_depth >= NVD_ODEPTH) in nvd_bioq_process()
390 tsleep(&ndisk->cur_depth, 0, "nvdora", 1); in nvd_bioq_process()
427 ndisk->cur_depth = 0; in nvd_new_disk()