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

Lines Matching defs:ccb_h

108 #define ccb_adapter ccb_h.spriv_ptr1
139 #define ccb_adapter ccb_h.spriv_ptr1
2014 ccb->ccb_h.pinfo.priority = 1;
2015 ccb->ccb_h.pinfo.index = CAM_UNQUEUED_INDEX;
2062 xpt_setup_ccb(&(ccb->ccb_h), pAdapter->path, /*priority*/5);
2063 ccb->ccb_h.func_code = XPT_SASYNC_CB;
2208 union ccb *ccb = (union ccb *)pAdapter->pending_Q->ccb_h.ccb_ccb_ptr;
2219 KdPrintI(("ccb_done: ccb %p status %x\n", ccb, ccb->ccb_h.status));
2249 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("hpt_action\n"));
2250 KdPrint(("hpt_action(%lx,%lx{%x})\n", (u_long)sim, (u_long)ccb, ccb->ccb_h.func_code));
2252 switch (ccb->ccb_h.func_code)
2256 /* ccb->ccb_h.path_id is not our bus id - don't check it */
2258 if (ccb->ccb_h.target_lun) {
2259 ccb->ccb_h.status = CAM_LUN_INVALID;
2263 if (ccb->ccb_h.target_id >= MAX_VDEVICE_PER_VBUS ||
2264 pAdapter->VBus.pVDevice[ccb->ccb_h.target_id]==0) {
2265 ccb->ccb_h.status = CAM_TID_INVALID;
2297 ccb->ccb_h.status = CAM_REQ_INVALID;
2304 ccb->ccb_h.status = CAM_FUNC_NOTAVAIL;
2338 cpi->ccb_h.status = CAM_REQ_CMP;
2345 ccb->ccb_h.status = CAM_REQ_INVALID;
2357 ccb->ccb_h.ccb_ccb_ptr = ccb;
2359 ccb->ccb_h.ccb_ccb_ptr = (*ccb_Q)->ccb_h.ccb_ccb_ptr;
2360 (*ccb_Q)->ccb_h.ccb_ccb_ptr = (char *)ccb;
2374 if(ccb->ccb_h.ccb_ccb_ptr == ccb) /*it means SCpnt is the last one in CURRCMDs*/
2377 while(TempCCB->ccb_h.ccb_ccb_ptr != (char *)ccb)
2378 TempCCB = (union ccb *)TempCCB->ccb_h.ccb_ccb_ptr;
2380 TempCCB->ccb_h.ccb_ccb_ptr = ccb->ccb_h.ccb_ccb_ptr;
2628 struct ccb_hdr *ccb_h = &ccb->ccb_h;
2631 PVDevice pVDev = pAdapter->VBus.pVDevice[ccb_h->target_id];
2674 struct ccb_hdr *ccb_h = &ccb->ccb_h;
2676 PVDevice pVDev = pAdapter->VBus.pVDevice[ccb_h->target_id];
2688 ccb->ccb_h.status = CAM_REQ_INVALID;
2699 ccb->ccb_h.status = CAM_REQ_CMP;
2705 ccb_h->status = CAM_REQ_CMP;
2729 ccb_h->status = CAM_REQ_CMP;
2751 ccb_h->status = CAM_REQ_CMP;
2772 if ((ccb->ccb_h.flags & CAM_CDB_POINTER) != 0)
2774 if ((ccb->ccb_h.flags & CAM_CDB_PHYS) == 0)
2781 ccb->ccb_h.status = CAM_REQ_INVALID;
2857 ccb->ccb_h.status = CAM_REQ_CMP_ERR;
2868 ccb->ccb_h.status = CAM_REQ_INVALID;
2890 ccb->ccb_h.status = CAM_REQ_CMP;
2893 ccb->ccb_h.status = CAM_DEV_NOT_THERE;
2896 ccb->ccb_h.status = CAM_BUSY;
2899 ccb->ccb_h.status = CAM_REQ_INVALID;
2902 ccb->ccb_h.status = CAM_SEL_TIMEOUT;
2905 ccb->ccb_h.status = CAM_BUSY;
2908 ccb->ccb_h.status = CAM_SCSI_STATUS_ERROR;