Lines Matching defs:pending_scb
2036 struct scb *pending_scb;
2049 pending_scb = NULL;
2067 * there, check the pending_scb list. If not found
2100 LIST_FOREACH(pending_scb, &ahc->pending_scbs, pending_links) {
2101 if (pending_scb->io_ctx == cmd)
2105 if (pending_scb == NULL && flag == SCB_DEVICE_RESET) {
2108 LIST_FOREACH(pending_scb, &ahc->pending_scbs, pending_links) {
2109 if (ahc_match_scb(ahc, pending_scb, scmd_id(cmd),
2117 if (pending_scb == NULL) {
2122 if ((pending_scb->flags & SCB_RECOVERY_SCB) != 0) {
2139 if ((pending_scb->flags & SCB_ACTIVE) == 0) {
2153 pending_scb->hscb->tag,
2165 pending_scb->hscb->tag,
2175 if (bus_scb == pending_scb)
2178 && ahc_inb(ahc, SAVED_SCSIID) == pending_scb->hscb->scsiid
2179 && ahc_inb(ahc, SAVED_LUN) == SCB_GET_LUN(pending_scb))
2184 * At this point, pending_scb is the scb associated with the
2196 && (pending_scb->hscb->tag == active_scb_index
2204 pending_scb = ahc_lookup_scb(ahc, active_scb_index);
2205 pending_scb->flags |= SCB_RECOVERY_SCB|flag;
2228 pending_scb->hscb->control |= MK_MESSAGE|DISCONNECTED;
2229 pending_scb->flags |= SCB_RECOVERY_SCB|flag;
2240 cmd->device->lun, pending_scb->hscb->tag,
2253 ahc_outb(ahc, SCBPTR, pending_scb->hscb->tag);
2268 ahc_qinfifo_requeue_tail(ahc, pending_scb);
2270 ahc_print_path(ahc, pending_scb);