• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/smartpqi/

Lines Matching defs:ccb_h

63 	cpi->ccb_h.status = CAM_REQ_CMP;
89 cts->ccb_h.status = CAM_REQ_CMP;
108 if (xpt_create_path(&ccb->ccb_h.path, NULL,
161 if (csio->ccb_h.status & CAM_RELEASE_SIMQ)
162 xpt_release_simq(xpt_path_sim(csio->ccb_h.path), 0);
164 csio->ccb_h.status |= CAM_RELEASE_SIMQ;
221 cdb = (csio->ccb_h.flags & CAM_CDB_POINTER) ?
225 (csio->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN &&
230 device = softs->device_list[csio->ccb_h.target_id][csio->ccb_h.target_lun];
271 csio->ccb_h.status = CAM_REQ_CMP;
300 csio->ccb_h.status = CAM_REQ_CMP_ERR;
302 if (csio->ccb_h.func_code == XPT_SCSI_IO) {
308 csio->ccb_h.status = CAM_REQ_CMP;
332 csio->ccb_h.status = CAM_SCSI_STATUS_ERROR
344 csio->ccb_h.status = CAM_REQ_CMP;
348 csio->ccb_h.status = CAM_REQ_CMP;
355 if (csio->ccb_h.status & CAM_RELEASE_SIMQ)
356 xpt_release_simq(xpt_path_sim(csio->ccb_h.path), 0);
358 csio->ccb_h.status |= CAM_RELEASE_SIMQ;
390 csio->ccb_h.status = err_info->status;
395 csio->ccb_h.status = CAM_REQ_ABORTED;
399 csio->ccb_h.status = CAM_REQ_CMP;
404 csio->ccb_h.status = CAM_REQ_CMP;
409 csio->ccb_h.status |= CAM_REQUEUE_REQ;
416 csio->ccb_h.status |=
423 csio->ccb_h.status = CAM_REQ_CMP;
428 csio->ccb_h.status |= CAM_SCSI_STATUS_ERROR;
432 csio->ccb_h.status |= CAM_SCSI_STATUS_ERROR;
451 csio->ccb_h.status = CAM_SCSI_STATUS_ERROR | CAM_AUTOSNS_VALID;
476 rcb->cm_ccb->ccb_h.status |= (CAM_REQUEUE_REQ|
510 rcb->cm_ccb->ccb_h.status |= (CAM_REQUEUE_REQ
590 xpt_free_path(ccb->ccb_h.path);
618 xpt_setup_ccb(&ccb->ccb_h, path, 5);
619 ccb->ccb_h.func_code = XPT_SCAN_LUN;
620 ccb->ccb_h.cbfcnp = smartpqi_lunrescan_cb;
684 prcb->cm_ccb->ccb_h.status = CAM_REQ_ABORTED | CAM_REQ_CMP;
707 if( softs->device_list[ccb->ccb_h.target_id][ccb->ccb_h.target_lun] == NULL ) {
708 ccb->ccb_h.status = CAM_DEV_NOT_THERE;
709 DBG_INFO("Device = %d not there\n", ccb->ccb_h.target_id);
713 dvp = softs->device_list[ccb->ccb_h.target_id][ccb->ccb_h.target_lun];
716 ccb->ccb_h.status = CAM_SCSI_BUS_RESET
718 DBG_WARN("Device = %d BUSY/IN_RESET\n", ccb->ccb_h.target_id);
723 ccb->ccb_h.status = CAM_DEV_NOT_THERE | CAM_REQ_CMP;
724 DBG_WARN("Device = %d GONE/OFFLINE\n", ccb->ccb_h.target_id);
729 ccb->ccb_h.status = CAM_SCSI_BUSY | CAM_REQ_INPROG | CAM_BUSY;
730 DBG_WARN("Device %d reset returned busy\n", ccb->ccb_h.target_id);
735 ccb->ccb_h.status = CAM_DEV_NOT_THERE;
736 DBG_INFO("Device = %d not exposed\n", ccb->ccb_h.target_id);
745 ccb->ccb_h.status |= (CAM_REQUEUE_REQ | CAM_RELEASE_SIMQ);
756 ccb->ccb_h.sim_priv.entries[0].ptr = rcb;
758 switch (ccb->ccb_h.flags & CAM_DIR_MASK) {
773 rcb->dvp = softs->device_list[ccb->ccb_h.target_id][ccb->ccb_h.target_lun];
792 ccb->ccb_h.status |= CAM_RELEASE_SIMQ;
794 DBG_WARN("In Progress on %d\n", ccb->ccb_h.target_id);
797 ccb->ccb_h.status |= CAM_REQUEUE_REQ;
799 ccb->ccb_h.target_id);
814 rcb_t *rcb = ccb->ccb_h.sim_priv.entries[0].ptr;
835 ccb->ccb_h.status = CAM_REQ_ABORTED;
882 pqi_scsi_dev_t *devp = softs->device_list[ccb->ccb_h.target_id][ccb->ccb_h.target_lun];
890 DBG_ERR("bad target t%d\n", ccb->ccb_h.target_id);
919 struct ccb_hdr *ccb_h = &ccb->ccb_h;
923 switch (ccb_h->func_code) {
936 ccb->ccb_h.status &= ~CAM_SIM_QUEUED;
937 ccb->ccb_h.status = CAM_REQ_INVALID;
941 ccb->ccb_h.status = CAM_REQ_CMP;
947 ccb->ccb_h.status = CAM_REQ_CMP;
952 ccb->ccb_h.status = CAM_REQ_CMP;
956 ccb->ccb_h.status = CAM_REQ_CMP_ERR;
959 ccb->ccb_h.target_id);
965 ccb->ccb_h.status = CAM_REQ_CMP_ERR;
967 ccb->ccb_h.target_id);
974 ccb->ccb_h.status = CAM_REQ_CMP_ERR;
976 ccb->ccb_h.target_id);
980 ccb->ccb_h.status = CAM_REQ_CMP;
984 ccb->ccb_h.status = CAM_REQ_CMP;
987 ccb->ccb_h.status = CAM_FUNC_NOTAVAIL;
991 ccb->ccb_h.status = CAM_FUNC_NOTAVAIL;
1021 xpt_setup_ccb(&crs.ccb_h, path, 5);
1022 crs.ccb_h.func_code = XPT_REL_SIMQ;
1023 crs.ccb_h.flags = CAM_DEV_QFREEZE;
1027 if(crs.ccb_h.status != CAM_REQ_CMP) {
1028 printf("XPT_REL_SIMQ failed stat=%d\n", crs.ccb_h.status);
1054 uint32_t t_id = cgd->ccb_h.target_id;
1058 pqi_scsi_dev_t *dvp = softs->device_list[t_id][cgd->ccb_h.target_lun];
1123 if (xpt_create_path(&ccb->ccb_h.path, NULL,
1138 softs->os_specific.path = ccb->ccb_h.path;
1139 xpt_setup_ccb(&csa.ccb_h, softs->os_specific.path, 5);
1140 csa.ccb_h.func_code = XPT_SASYNC_CB;
1145 if (csa.ccb_h.status != CAM_REQ_CMP) {
1147 csa.ccb_h.status);
1169 xpt_setup_ccb(&csa.ccb_h, softs->os_specific.path, 5);
1170 csa.ccb_h.func_code = XPT_SASYNC_CB;