Lines Matching defs:ccb_h

103 #define ccb_adapter ccb_h.spriv_ptr1
134 #define ccb_adapter ccb_h.spriv_ptr1
2007 ccb->ccb_h.pinfo.priority = 1;
2008 ccb->ccb_h.pinfo.index = CAM_UNQUEUED_INDEX;
2051 xpt_setup_ccb(&(ccb->ccb_h), pAdapter->path, /*priority*/5);
2052 ccb->ccb_h.func_code = XPT_SASYNC_CB;
2193 union ccb *ccb = (union ccb *)pAdapter->pending_Q->ccb_h.ccb_ccb_ptr;
2204 KdPrintI(("ccb_done: ccb %p status %x\n", ccb, ccb->ccb_h.status));
2234 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("hpt_action\n"));
2235 KdPrint(("hpt_action(%lx,%lx{%x})\n", (u_long)sim, (u_long)ccb, ccb->ccb_h.func_code));
2237 switch (ccb->ccb_h.func_code)
2241 /* ccb->ccb_h.path_id is not our bus id - don't check it */
2243 if (ccb->ccb_h.target_lun) {
2244 ccb->ccb_h.status = CAM_LUN_INVALID;
2248 if (ccb->ccb_h.target_id >= MAX_VDEVICE_PER_VBUS ||
2249 pAdapter->VBus.pVDevice[ccb->ccb_h.target_id]==0) {
2250 ccb->ccb_h.status = CAM_TID_INVALID;
2282 ccb->ccb_h.status = CAM_REQ_INVALID;
2289 ccb->ccb_h.status = CAM_FUNC_NOTAVAIL;
2323 cpi->ccb_h.status = CAM_REQ_CMP;
2330 ccb->ccb_h.status = CAM_REQ_INVALID;
2342 ccb->ccb_h.ccb_ccb_ptr = ccb;
2344 ccb->ccb_h.ccb_ccb_ptr = (*ccb_Q)->ccb_h.ccb_ccb_ptr;
2345 (*ccb_Q)->ccb_h.ccb_ccb_ptr = (char *)ccb;
2359 if(ccb->ccb_h.ccb_ccb_ptr == ccb) /*it means SCpnt is the last one in CURRCMDs*/
2362 while(TempCCB->ccb_h.ccb_ccb_ptr != (char *)ccb)
2363 TempCCB = (union ccb *)TempCCB->ccb_h.ccb_ccb_ptr;
2365 TempCCB->ccb_h.ccb_ccb_ptr = ccb->ccb_h.ccb_ccb_ptr;
2613 struct ccb_hdr *ccb_h = &ccb->ccb_h;
2616 PVDevice pVDev = pAdapter->VBus.pVDevice[ccb_h->target_id];
2659 struct ccb_hdr *ccb_h = &ccb->ccb_h;
2661 PVDevice pVDev = pAdapter->VBus.pVDevice[ccb_h->target_id];
2673 ccb->ccb_h.status = CAM_REQ_INVALID;
2684 ccb->ccb_h.status = CAM_REQ_CMP;
2690 ccb_h->status = CAM_REQ_CMP;
2714 ccb_h->status = CAM_REQ_CMP;
2736 ccb_h->status = CAM_REQ_CMP;
2757 if ((ccb->ccb_h.flags & CAM_CDB_POINTER) != 0)
2759 if ((ccb->ccb_h.flags & CAM_CDB_PHYS) == 0)
2766 ccb->ccb_h.status = CAM_REQ_INVALID;
2842 ccb->ccb_h.status = CAM_REQ_CMP_ERR;
2853 ccb->ccb_h.status = CAM_REQ_INVALID;
2875 ccb->ccb_h.status = CAM_REQ_CMP;
2878 ccb->ccb_h.status = CAM_DEV_NOT_THERE;
2881 ccb->ccb_h.status = CAM_BUSY;
2884 ccb->ccb_h.status = CAM_REQ_INVALID;
2887 ccb->ccb_h.status = CAM_SEL_TIMEOUT;
2890 ccb->ccb_h.status = CAM_BUSY;
2893 ccb->ccb_h.status = CAM_SCSI_STATUS_ERROR;