Lines Matching refs:ch_queue

206 	KASSERT(chp->ch_queue != NULL);  in ata_channel_attach()
442 struct ata_queue *chq = chp->ch_queue; in atabus_thread()
1001 while (chp->ch_queue->queue_active > 0) { in ata_channel_idle()
1002 chp->ch_queue->queue_flags |= QF_IDLE_WAIT; in ata_channel_idle()
1003 cv_timedwait(&chp->ch_queue->queue_idle, &chp->ch_lock, 1); in ata_channel_idle()
1030 SIMPLEQ_INSERT_TAIL(&chp->ch_queue->queue_xfer, xfer, in ata_exec_xfer()
1033 SIMPLEQ_INSERT_HEAD(&chp->ch_queue->queue_xfer, xfer, in ata_exec_xfer()
1040 while (chp->ch_queue->queue_active > 0 || in ata_exec_xfer()
1041 SIMPLEQ_FIRST(&chp->ch_queue->queue_xfer) != xfer) { in ata_exec_xfer()
1043 cv_wait(&chp->ch_queue->c_active, &chp->ch_lock); in ata_exec_xfer()
1085 struct ata_queue *chq = chp->ch_queue; in atastart()
1106 if ((xfer = SIMPLEQ_FIRST(&chp->ch_queue->queue_xfer)) == NULL) { in atastart()
1120 cv_broadcast(&chp->ch_queue->c_active); in atastart()
1130 cv_signal(&chp->ch_queue->queue_idle); in atastart()
1151 if (!skipq && (axfer = TAILQ_FIRST(&chp->ch_queue->active_xfers))) { in atastart()
1271 struct ata_queue * const chq = chp->ch_queue; in ata_activate_xfer_locked()
1307 struct ata_queue *chq = chp->ch_queue; in ata_free_xfer()
1343 struct ata_queue * const chq = chp->ch_queue; in ata_deactivate_xfer()
1393 cv_signal(&chp->ch_queue->queue_drain); in ata_waitdrain_xfer_check()
1452 struct ata_queue * const chq = chp->ch_queue; in ata_kill_active()
1471 struct ata_queue * const chq = chp->ch_queue; in ata_kill_pending()
1483 SIMPLEQ_REMOVE_HEAD(&chp->ch_queue->queue_xfer, c_xferchain); in ata_kill_pending()
1522 chp->ch_queue->queue_freeze++; in ata_channel_freeze_locked()
1525 chp->ch_queue->queue_freeze), DEBUG_FUNCS | DEBUG_XFERS); in ata_channel_freeze_locked()
1540 KASSERT(chp->ch_queue->queue_freeze > 0); in ata_channel_thaw_locked()
1542 chp->ch_queue->queue_freeze--; in ata_channel_thaw_locked()
1545 chp->ch_queue->queue_freeze), DEBUG_FUNCS | DEBUG_XFERS); in ata_channel_thaw_locked()
1761 ATA_REAL_OPENINGS(chp->ch_queue->queue_openings), in ata_print_modes()
2255 if (chp->ch_queue->queue_freeze == 0) { in atabus_resume()
2364 struct ata_queue *chq = chp->ch_queue; in ata_wait_cmd()