Lines Matching refs:cur_depth
88 uint32_t cur_depth;
197 atomic_add_int(&ndisk->cur_depth, NVD_ODEPTH);
199 atomic_add_int(&ndisk->cur_depth, 1);
203 atomic_add_int(&ndisk->cur_depth, -NVD_ODEPTH);
205 wakeup(&ndisk->cur_depth);
207 if (atomic_fetchadd_int(&ndisk->cur_depth, -1) == 1 &&
209 wakeup(&ndisk->cur_depth);
229 ndisk->cur_depth == 0 && bioq_first(&ndisk->bioq) == NULL) {
354 atomic_add_int(&ndisk->cur_depth, -NVD_ODEPTH);
356 wakeup(&ndisk->cur_depth);
358 if (atomic_fetchadd_int(&ndisk->cur_depth, -1) == 1 &&
360 wakeup(&ndisk->cur_depth);
384 while (ndisk->cur_depth > 0)
385 tsleep(&ndisk->cur_depth, 0, "nvdorb", 1);
391 while (ndisk->cur_depth >= NVD_ODEPTH)
392 tsleep(&ndisk->cur_depth, 0, "nvdora", 1);
429 ndisk->cur_depth = 0;