Lines Matching defs:xfer
84 struct ata_xfer *xfer = NULL;
94 TAILQ_FOREACH(xfer, &chq->active_xfers, c_activechain) {
95 if (xfer->c_slot == hwslot)
101 KASSERTMSG((xfer != NULL),
102 "%s: xfer with slot %d not found (active %x)", __func__,
105 return xfer;
111 struct ata_xfer *xfer;
114 xfer = TAILQ_FIRST(&chp->ch_queue->active_xfers);
116 if (xfer && ISSET(xfer->c_flags, C_NCQ)) {
117 /* Spurious call, never return NCQ xfer from this interface */
118 xfer = NULL;
121 return xfer;
133 struct ata_xfer *xfer = NULL;
136 xfer = ata_queue_get_active_xfer_locked(chp);
139 return xfer;
145 struct ata_xfer *xfer = NULL;
149 TAILQ_FOREACH(xfer, &chp->ch_queue->active_xfers, c_activechain) {
150 if (xfer->c_drive == drive)
153 KASSERT(xfer != NULL);
157 return xfer;
231 struct ata_xfer *xfer, *nxfer;
248 TAILQ_FOREACH_SAFE(xfer, &chq->active_xfers, c_activechain, nxfer) {
249 ATADEBUG_PRINT(("%s: slot %d\n", __func__, xfer->c_slot),
252 if (ata_timo_xfer_check(xfer)) {
258 xfer->c_flags |= C_TIMEOU;
259 xfer->ops->c_intr(xfer->c_chp, xfer, 0);