Lines Matching refs:done_ccb
165 static void aprobedone(struct cam_periph *periph, union ccb *done_ccb);
172 static void axptscandone(struct cam_periph *periph, union ccb *done_ccb);
727 aprobedone(struct cam_periph *periph, union ccb *done_ccb) in aprobedone() argument
742 CAM_DEBUG(done_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("aprobedone\n")); in aprobedone()
745 path = done_ccb->ccb_h.path; in aprobedone()
746 priority = done_ccb->ccb_h.pinfo.priority; in aprobedone()
750 if ((done_ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) { in aprobedone()
751 if (cam_periph_error(done_ccb, in aprobedone()
759 if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) { in aprobedone()
763 status = done_ccb->ccb_h.status & CAM_STATUS_MASK; in aprobedone()
766 if ((done_ccb->ccb_h.status & CAM_STATUS_MASK) == in aprobedone()
816 xpt_release_ccb(done_ccb); in aprobedone()
843 int sign = (done_ccb->ataio.res.lba_high << 8) + in aprobedone()
844 done_ccb->ataio.res.lba_mid; in aprobedone()
848 done_ccb->ccb_h.target_id != 15) { in aprobedone()
852 done_ccb->ccb_h.target_id == 15) { in aprobedone()
864 done_ccb->ccb_h.target_id != 15) { in aprobedone()
868 done_ccb->ccb_h.target_id != 15) { in aprobedone()
872 if (done_ccb->ccb_h.target_id != 15) { in aprobedone()
878 xpt_release_ccb(done_ccb); in aprobedone()
909 xpt_release_ccb(done_ccb); in aprobedone()
1006 xpt_release_ccb(done_ccb); in aprobedone()
1015 xpt_release_ccb(done_ccb); in aprobedone()
1089 xpt_release_ccb(done_ccb); in aprobedone()
1100 xpt_release_ccb(done_ccb); in aprobedone()
1110 xpt_release_ccb(done_ccb); in aprobedone()
1121 xpt_release_ccb(done_ccb); in aprobedone()
1133 xpt_release_ccb(done_ccb); in aprobedone()
1140 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; in aprobedone()
1141 xpt_action(done_ccb); in aprobedone()
1142 xpt_async(AC_FOUND_DEVICE, path, done_ccb); in aprobedone()
1174 xpt_release_ccb(done_ccb); in aprobedone()
1183 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; in aprobedone()
1184 xpt_action(done_ccb); in aprobedone()
1185 xpt_async(AC_FOUND_DEVICE, path, done_ccb); in aprobedone()
1193 softc->pm_pid = (done_ccb->ataio.res.lba_high << 24) + in aprobedone()
1194 (done_ccb->ataio.res.lba_mid << 16) + in aprobedone()
1195 (done_ccb->ataio.res.lba_low << 8) + in aprobedone()
1196 done_ccb->ataio.res.sector_count; in aprobedone()
1201 xpt_release_ccb(done_ccb); in aprobedone()
1205 softc->pm_prv = (done_ccb->ataio.res.lba_high << 24) + in aprobedone()
1206 (done_ccb->ataio.res.lba_mid << 16) + in aprobedone()
1207 (done_ccb->ataio.res.lba_low << 8) + in aprobedone()
1208 done_ccb->ataio.res.sector_count; in aprobedone()
1256 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; in aprobedone()
1257 xpt_action(done_ccb); in aprobedone()
1258 xpt_async(AC_FOUND_DEVICE, path, done_ccb); in aprobedone()
1262 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; in aprobedone()
1263 xpt_action(done_ccb); in aprobedone()
1264 xpt_async(AC_SCSI_AEN, path, done_ccb); in aprobedone()
1309 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; in aprobedone()
1310 xpt_action(done_ccb); in aprobedone()
1311 xpt_async(AC_FOUND_DEVICE, path, done_ccb); in aprobedone()
1321 xpt_release_ccb(done_ccb); in aprobedone()
1325 xpt_release_ccb(done_ccb); in aprobedone()
1327 while ((done_ccb = (union ccb *)TAILQ_FIRST(&softc->request_ccbs))) { in aprobedone()
1329 &done_ccb->ccb_h, periph_links.tqe); in aprobedone()
1330 done_ccb->ccb_h.status = found ? CAM_REQ_CMP : CAM_REQ_CMP_ERR; in aprobedone()
1331 xpt_done(done_ccb); in aprobedone()
1621 axptscandone(struct cam_periph *periph, union ccb *done_ccb) in axptscandone() argument
1624 xpt_free_path(done_ccb->ccb_h.path); in axptscandone()
1625 xpt_free_ccb(done_ccb); in axptscandone()