Searched refs:work_queue (Results 1 - 5 of 5) sorted by relevance

/freebsd-9.3-release/share/examples/scsi_target/
H A Dscsi_target.c76 static struct ccb_queue work_queue; variable in typeref:struct:ccb_queue
119 TAILQ_INIT(&work_queue);
356 while ((ccb_h = TAILQ_FIRST(&work_queue)) != NULL) {
357 TAILQ_REMOVE(&work_queue, ccb_h, periph_links.tqe);
495 if ((ccb_h = TAILQ_FIRST(&work_queue)) != NULL) {
525 TAILQ_REMOVE(&work_queue, ccb_h,
532 * are processing CCBs on the work_queue. Once it's
535 if (!TAILQ_EMPTY(&work_queue))
584 TAILQ_INSERT_TAIL(&work_queue, &ccb->ccb_h,
604 TAILQ_INSERT_HEAD(&work_queue,
[all...]
/freebsd-9.3-release/sys/cam/scsi/
H A Dscsi_targ_bh.c87 struct ccb_queue work_queue; member in struct:targbh_softc
404 TAILQ_INIT(&softc->work_queue);
452 ccbh = TAILQ_FIRST(&softc->work_queue);
462 TAILQ_REMOVE(&softc->work_queue, ccbh, periph_links.tqe);
525 ccbh = TAILQ_FIRST(&softc->work_queue);
645 TAILQ_INSERT_HEAD(&softc->work_queue, &atio->ccb_h,
649 TAILQ_INSERT_TAIL(&softc->work_queue, &atio->ccb_h,
H A Dscsi_target.c83 struct descr_queue work_queue; member in struct:targ_softc
204 TAILQ_INIT(&softc->work_queue);
617 TAILQ_INSERT_TAIL(&softc->work_queue,
664 descr = TAILQ_FIRST(&softc->work_queue);
668 TAILQ_REMOVE(&softc->work_queue, descr, tqe);
669 next_descr = TAILQ_FIRST(&softc->work_queue);
1078 while ((descr = TAILQ_FIRST(&softc->work_queue)) != NULL) {
1081 TAILQ_REMOVE(&softc->work_queue, descr, tqe);
/freebsd-9.3-release/sys/cam/ctl/
H A Dscsi_ctl.c117 TAILQ_HEAD(, ccb_hdr) work_queue;
555 TAILQ_INIT(&softc->work_queue);
712 ccb_h = TAILQ_FIRST(&softc->work_queue);
733 TAILQ_REMOVE(&softc->work_queue, ccb_h, periph_links.tqe);
789 ccb_h = TAILQ_FIRST(&softc->work_queue);
1030 ccb_h = TAILQ_FIRST(&softc->work_queue);
1218 TAILQ_INSERT_TAIL(&softc->work_queue, &atio->ccb_h,
1338 TAILQ_INSERT_HEAD(&softc->work_queue, &atio->ccb_h,
2094 TAILQ_FOREACH(hdr, &softc->work_queue, periph_links.tqe) {
2177 if (TAILQ_FIRST(&softc->work_queue)
[all...]
/freebsd-9.3-release/sys/dev/isp/
H A Disp_freebsd.c3619 struct isp_ccbq work_queue; member in struct:isptarg_softc
3696 TAILQ_FIRST(&softc->inot_queue)? 'y' : 'n', TAILQ_FIRST(&softc->work_queue)? 'y' : 'n', TAILQ_FIRST(&softc->rework_queue)? 'y' : 'n');
3703 if (TAILQ_FIRST(&softc->inot_queue) || TAILQ_FIRST(&softc->work_queue) || TAILQ_FIRST(&softc->rework_queue)) {
3717 more = TAILQ_FIRST(&softc->work_queue) || TAILQ_FIRST(&softc->rework_queue);
3720 ccbh = TAILQ_FIRST(&softc->work_queue);
3726 TAILQ_REMOVE(&softc->work_queue, ccbh, periph_links.tqe);
3727 more = TAILQ_FIRST(&softc->work_queue) != NULL;
4008 TAILQ_INSERT_TAIL(&softc->work_queue, &ccb->ccb_h, periph_links.tqe);
4122 TAILQ_INIT(&softc->work_queue);

Completed in 76 milliseconds