Searched refs:pending_scb (Results 1 - 4 of 4) sorted by relevance

/linux-4.1.27/drivers/scsi/aic7xxx/
H A Daic7xxx_osm.c2058 struct scb *pending_scb; ahc_linux_queue_recovery_cmd() local
2071 pending_scb = NULL; ahc_linux_queue_recovery_cmd()
2089 * there, check the pending_scb list. If not found ahc_linux_queue_recovery_cmd()
2122 LIST_FOREACH(pending_scb, &ahc->pending_scbs, pending_links) { ahc_linux_queue_recovery_cmd()
2123 if (pending_scb->io_ctx == cmd) ahc_linux_queue_recovery_cmd()
2127 if (pending_scb == NULL && flag == SCB_DEVICE_RESET) { ahc_linux_queue_recovery_cmd()
2130 LIST_FOREACH(pending_scb, &ahc->pending_scbs, pending_links) { ahc_linux_queue_recovery_cmd()
2131 if (ahc_match_scb(ahc, pending_scb, scmd_id(cmd), ahc_linux_queue_recovery_cmd()
2139 if (pending_scb == NULL) { ahc_linux_queue_recovery_cmd()
2144 if ((pending_scb->flags & SCB_RECOVERY_SCB) != 0) { ahc_linux_queue_recovery_cmd()
2161 if ((pending_scb->flags & SCB_ACTIVE) == 0) { ahc_linux_queue_recovery_cmd()
2175 pending_scb->hscb->tag, ahc_linux_queue_recovery_cmd()
2187 pending_scb->hscb->tag, ahc_linux_queue_recovery_cmd()
2197 if (bus_scb == pending_scb) ahc_linux_queue_recovery_cmd()
2200 && ahc_inb(ahc, SAVED_SCSIID) == pending_scb->hscb->scsiid ahc_linux_queue_recovery_cmd()
2201 && ahc_inb(ahc, SAVED_LUN) == SCB_GET_LUN(pending_scb)) ahc_linux_queue_recovery_cmd()
2206 * At this point, pending_scb is the scb associated with the ahc_linux_queue_recovery_cmd()
2218 && (pending_scb->hscb->tag == active_scb_index ahc_linux_queue_recovery_cmd()
2226 pending_scb = ahc_lookup_scb(ahc, active_scb_index); ahc_linux_queue_recovery_cmd()
2227 pending_scb->flags |= SCB_RECOVERY_SCB|flag; ahc_linux_queue_recovery_cmd()
2250 pending_scb->hscb->control |= MK_MESSAGE|DISCONNECTED; ahc_linux_queue_recovery_cmd()
2251 pending_scb->flags |= SCB_RECOVERY_SCB|flag; ahc_linux_queue_recovery_cmd()
2262 cmd->device->lun, pending_scb->hscb->tag, ahc_linux_queue_recovery_cmd()
2275 ahc_outb(ahc, SCBPTR, pending_scb->hscb->tag); ahc_linux_queue_recovery_cmd()
2290 ahc_qinfifo_requeue_tail(ahc, pending_scb); ahc_linux_queue_recovery_cmd()
2292 ahc_print_path(ahc, pending_scb); ahc_linux_queue_recovery_cmd()
H A Daic79xx_osm.c2153 struct scb *pending_scb; ahd_linux_queue_abort_cmd() local
2167 pending_scb = NULL; ahd_linux_queue_abort_cmd()
2185 * there, check the pending_scb list. If not found ahd_linux_queue_abort_cmd()
2204 LIST_FOREACH(pending_scb, &ahd->pending_scbs, pending_links) { ahd_linux_queue_abort_cmd()
2205 if (pending_scb->io_ctx == cmd) ahd_linux_queue_abort_cmd()
2209 if (pending_scb == NULL) { ahd_linux_queue_abort_cmd()
2214 if ((pending_scb->flags & SCB_RECOVERY_SCB) != 0) { ahd_linux_queue_abort_cmd()
2232 if ((pending_scb->flags & SCB_ACTIVE) == 0) { ahd_linux_queue_abort_cmd()
2245 pending_scb->hscb->tag, ahd_linux_queue_abort_cmd()
2264 if (bus_scb == pending_scb) ahd_linux_queue_abort_cmd()
2269 * At this point, pending_scb is the scb associated with the ahd_linux_queue_abort_cmd()
2275 && SCB_GET_TAG(pending_scb) == active_scbptr) { ahd_linux_queue_abort_cmd()
2281 pending_scb = ahd_lookup_scb(ahd, active_scbptr); ahd_linux_queue_abort_cmd()
2282 pending_scb->flags |= SCB_RECOVERY_SCB|SCB_ABORT; ahd_linux_queue_abort_cmd()
2293 pending_scb->flags |= SCB_RECOVERY_SCB|SCB_ABORT; ahd_linux_queue_abort_cmd()
2294 ahd_set_scbptr(ahd, SCB_GET_TAG(pending_scb)); ahd_linux_queue_abort_cmd()
2295 pending_scb->hscb->cdb_len = 0; ahd_linux_queue_abort_cmd()
2296 pending_scb->hscb->task_attribute = 0; ahd_linux_queue_abort_cmd()
2297 pending_scb->hscb->task_management = SIU_TASKMGMT_ABORT_TASK; ahd_linux_queue_abort_cmd()
2299 if ((pending_scb->flags & SCB_PACKETIZED) != 0) { ahd_linux_queue_abort_cmd()
2308 pending_scb->hscb->task_management); ahd_linux_queue_abort_cmd()
2319 pending_scb->hscb->control |= MK_MESSAGE|DISCONNECTED; ahd_linux_queue_abort_cmd()
2340 ahd_qinfifo_requeue_tail(ahd, pending_scb); ahd_linux_queue_abort_cmd()
2342 ahd_print_path(ahd, pending_scb); ahd_linux_queue_abort_cmd()
H A Daic7xxx_core.c2694 struct scb *pending_scb; ahc_update_pending_scbs() local
2705 LIST_FOREACH(pending_scb, &ahc->pending_scbs, pending_links) { ahc_update_pending_scbs()
2711 ahc_scb_devinfo(ahc, &devinfo, pending_scb); ahc_update_pending_scbs()
2715 pending_hscb = pending_scb->hscb; ahc_update_pending_scbs()
2722 && (pending_scb->flags & SCB_AUTO_NEGOTIATE) != 0) { ahc_update_pending_scbs()
2723 pending_scb->flags &= ~SCB_AUTO_NEGOTIATE; ahc_update_pending_scbs()
2726 ahc_sync_scb(ahc, pending_scb, ahc_update_pending_scbs()
2750 pending_scb = ahc_lookup_scb(ahc, scb_tag); ahc_update_pending_scbs()
2751 if (pending_scb == NULL) ahc_update_pending_scbs()
2754 pending_hscb = pending_scb->hscb; ahc_update_pending_scbs()
H A Daic79xx_core.c4222 struct scb *pending_scb; ahd_update_pending_scbs() local
4239 LIST_FOREACH(pending_scb, &ahd->pending_scbs, pending_links) { ahd_update_pending_scbs()
4244 ahd_scb_devinfo(ahd, &devinfo, pending_scb); ahd_update_pending_scbs()
4249 && (pending_scb->flags & SCB_AUTO_NEGOTIATE) != 0) { ahd_update_pending_scbs()
4250 pending_scb->flags &= ~SCB_AUTO_NEGOTIATE; ahd_update_pending_scbs()
4251 pending_scb->hscb->control &= ~MK_MESSAGE; ahd_update_pending_scbs()
4253 ahd_sync_scb(ahd, pending_scb, ahd_update_pending_scbs()
4283 LIST_FOREACH(pending_scb, &ahd->pending_scbs, pending_links) { ahd_update_pending_scbs()
4287 scb_tag = SCB_GET_TAG(pending_scb); ahd_update_pending_scbs()
4291 control |= pending_scb->hscb->control & MK_MESSAGE; ahd_update_pending_scbs()

Completed in 188 milliseconds