Searched refs:scbp (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/drivers/scsi/
H A Dinitio.c735 static void initio_append_pend_scb(struct initio_host * host, struct scsi_ctrl_blk * scbp) initio_append_pend_scb() argument
739 printk("Append pend SCB %p; ", scbp); initio_append_pend_scb()
741 scbp->status = SCB_PEND; initio_append_pend_scb()
742 scbp->next = NULL; initio_append_pend_scb()
744 host->last_pending->next = scbp; initio_append_pend_scb()
745 host->last_pending = scbp; initio_append_pend_scb()
747 host->first_pending = scbp; initio_append_pend_scb()
748 host->last_pending = scbp; initio_append_pend_scb()
753 static void initio_push_pend_scb(struct initio_host * host, struct scsi_ctrl_blk * scbp) initio_push_pend_scb() argument
757 printk("Push pend SCB %p; ", scbp); initio_push_pend_scb()
759 scbp->status = SCB_PEND; initio_push_pend_scb()
760 if ((scbp->next = host->first_pending) != NULL) { initio_push_pend_scb()
761 host->first_pending = scbp; initio_push_pend_scb()
763 host->first_pending = scbp; initio_push_pend_scb()
764 host->last_pending = scbp; initio_push_pend_scb()
822 static void initio_append_busy_scb(struct initio_host * host, struct scsi_ctrl_blk * scbp) initio_append_busy_scb() argument
826 printk("append busy SCB %p; ", scbp); initio_append_busy_scb()
828 if (scbp->tagmsg) initio_append_busy_scb()
829 host->act_tags[scbp->target]++; initio_append_busy_scb()
831 host->targets[scbp->target].flags |= TCF_BUSY; initio_append_busy_scb()
832 scbp->status = SCB_BUSY; initio_append_busy_scb()
833 scbp->next = NULL; initio_append_busy_scb()
835 host->last_busy->next = scbp; initio_append_busy_scb()
836 host->last_busy = scbp; initio_append_busy_scb()
838 host->first_busy = scbp; initio_append_busy_scb()
839 host->last_busy = scbp; initio_append_busy_scb()
918 static void initio_append_done_scb(struct initio_host * host, struct scsi_ctrl_blk * scbp) initio_append_done_scb() argument
921 printk("append done SCB %p; ", scbp); initio_append_done_scb()
924 scbp->status = SCB_DONE; initio_append_done_scb()
925 scbp->next = NULL; initio_append_done_scb()
927 host->last_done->next = scbp; initio_append_done_scb()
928 host->last_done = scbp; initio_append_done_scb()
930 host->first_done = scbp; initio_append_done_scb()
931 host->last_done = scbp; initio_append_done_scb()
/linux-4.1.27/drivers/scsi/aic7xxx/
H A Daic7xxx_core.c6173 struct scb *scbp; ahc_search_disc_list() local
6208 scbp = ahc_lookup_scb(ahc, scb_index); ahc_search_disc_list()
6209 if (ahc_match_scb(ahc, scbp, target, channel, lun, ahc_search_disc_list()
6335 struct scb *scbp; ahc_abort_scbs() local
6394 scbp = ahc_lookup_scb(ahc, scbid); ahc_abort_scbs()
6395 if (scbp == NULL ahc_abort_scbs()
6396 || ahc_match_scb(ahc, scbp, target, channel, ahc_abort_scbs()
6426 scbp = ahc_lookup_scb(ahc, scbid); ahc_abort_scbs()
6427 if ((scbp == NULL && scbid != SCB_LIST_NULL) ahc_abort_scbs()
6428 || (scbp != NULL ahc_abort_scbs()
6429 && ahc_match_scb(ahc, scbp, target, channel, lun, tag, role))) ahc_abort_scbs()
6441 scbp = scbp_next; ahc_abort_scbs()
6442 scbp_next = LIST_NEXT(scbp, pending_links); ahc_abort_scbs()
6443 if (ahc_match_scb(ahc, scbp, target, channel, lun, tag, role)) { ahc_abort_scbs()
6446 ostat = ahc_get_transaction_status(scbp); ahc_abort_scbs()
6448 ahc_set_transaction_status(scbp, status); ahc_abort_scbs()
6449 if (ahc_get_transaction_status(scbp) != CAM_REQ_CMP) ahc_abort_scbs()
6450 ahc_freeze_scb(scbp); ahc_abort_scbs()
6451 if ((scbp->flags & SCB_ACTIVE) == 0) ahc_abort_scbs()
6453 ahc_done(ahc, scbp); ahc_abort_scbs()
H A Daic79xx_core.c8586 struct scb *scbp; ahd_abort_scbs() local
8632 scbp = ahd_lookup_scb(ahd, scbid); ahd_abort_scbs()
8633 if (scbp == NULL ahd_abort_scbs()
8634 || ahd_match_scb(ahd, scbp, target, channel, ahd_abort_scbs()
8656 scbp = scbp_next; ahd_abort_scbs()
8657 scbp_next = LIST_NEXT(scbp, pending_links); ahd_abort_scbs()
8658 if (ahd_match_scb(ahd, scbp, target, channel, lun, tag, role)) { ahd_abort_scbs()
8661 ostat = ahd_get_transaction_status(scbp); ahd_abort_scbs()
8663 ahd_set_transaction_status(scbp, status); ahd_abort_scbs()
8664 if (ahd_get_transaction_status(scbp) != CAM_REQ_CMP) ahd_abort_scbs()
8665 ahd_freeze_scb(scbp); ahd_abort_scbs()
8666 if ((scbp->flags & SCB_ACTIVE) == 0) ahd_abort_scbs()
8668 ahd_done(ahd, scbp); ahd_abort_scbs()

Completed in 272 milliseconds