Lines Matching defs:sccb
2293 struct ccb_hdr *sccb;
2299 SLIST_FOREACH(sccb, &tptr->atios, sim_links.sle) {
2300 if (sccb != &accb->ccb_h)
2302 SLIST_REMOVE(&tptr->atios, sccb, ccb_hdr, sim_links.sle);
2303 ISP_PATH_PRT(isp, ISP_LOGTDEBUG2, sccb->path,
2330 struct ccb_hdr *sccb;
2336 SLIST_FOREACH(sccb, &tptr->inots, sim_links.sle) {
2337 if (sccb != &accb->ccb_h)
2339 SLIST_REMOVE(&tptr->inots, sccb, ccb_hdr, sim_links.sle);
2340 ISP_PATH_PRT(isp, ISP_LOGTDEBUG2, sccb->path,
2805 isp_done(XS_T *sccb)
2807 ispsoftc_t *isp = XS_ISP(sccb);
2810 if (XS_NOERR(sccb))
2811 XS_SETERR(sccb, CAM_REQ_CMP);
2813 if ((sccb->ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP && (sccb->scsi_status != SCSI_STATUS_OK)) {
2814 sccb->ccb_h.status &= ~CAM_STATUS_MASK;
2815 if ((sccb->scsi_status == SCSI_STATUS_CHECK_COND) && (sccb->ccb_h.status & CAM_AUTOSNS_VALID) == 0) {
2816 sccb->ccb_h.status |= CAM_AUTOSENSE_FAIL;
2818 sccb->ccb_h.status |= CAM_SCSI_STATUS_ERROR;
2822 sccb->ccb_h.status &= ~CAM_SIM_QUEUED;
2823 status = sccb->ccb_h.status & CAM_STATUS_MASK;
2825 (sccb->ccb_h.status & CAM_DEV_QFRZN) == 0) {
2826 sccb->ccb_h.status |= CAM_DEV_QFRZN;
2827 xpt_freeze_devq(sccb->ccb_h.path, 1);
2830 if (ISP_PCMD(sccb)) {
2831 if (callout_active(&PISP_PCMD(sccb)->wdog))
2832 callout_stop(&PISP_PCMD(sccb)->wdog);
2833 isp_free_pcmd(isp, (union ccb *) sccb);
2836 xpt_done((union ccb *) sccb);