Lines Matching defs:ccb_h

214 	xpt_setup_ccb(&csa.ccb_h, path, /*priority*/5);
215 csa.ccb_h.func_code = XPT_SASYNC_CB;
255 xpt_setup_ccb(&csa.ccb_h, path2, /*priority*/5);
256 csa.ccb_h.func_code = XPT_SASYNC_CB;
310 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO)
315 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == rdmask)
333 CAM_DEBUG(scb->io_ctx->ccb_h.path, CAM_DEBUG_TRACE,
353 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) {
358 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) {
367 ccb_path = ccb->ccb_h.path;
370 if ((ccb->ccb_h.flags & CAM_SEND_STATUS) != 0) {
374 xpt_print_path(ccb->ccb_h.path);
382 ccb->ccb_h.status |= CAM_REQ_CMP;
383 ccb->ccb_h.status &= ~CAM_SIM_QUEUED;
416 ccb->ccb_h.status);
422 ccb->ccb_h.status |= CAM_REQ_CMP;
439 scb->io_ctx->ccb_h.status |= CAM_AUTOSNS_VALID;
441 ccb->ccb_h.status &= ~CAM_SIM_QUEUED;
454 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("ahc_action\n"));
458 target_id = ccb->ccb_h.target_id;
461 switch (ccb->ccb_h.func_code) {
473 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) {
478 ccb->ccb_h.status = status;
483 if (ccb->ccb_h.func_code == XPT_ACCEPT_TARGET_IO) {
484 SLIST_INSERT_HEAD(&lstate->accept_tios, &ccb->ccb_h,
486 ccb->ccb_h.status = CAM_REQ_INPROG;
508 && (ccb->ccb_h.func_code == XPT_SCSI_IO
509 || ccb->ccb_h.func_code == XPT_RESET_DEV)) {
510 ccb->ccb_h.status = CAM_PROVIDE_FAIL;
521 ccb->ccb_h.status = CAM_REQUEUE_REQ;
528 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_SUBTRACE,
534 ccb->ccb_h.ccb_scb_ptr = scb;
541 hscb->lun = ccb->ccb_h.target_lun;
542 if (ccb->ccb_h.func_code == XPT_RESET_DEV) {
548 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) {
557 if ((ccb->ccb_h.flags & CAM_SEND_STATUS) != 0) {
562 if (ccb->ccb_h.flags & CAM_DIS_DISCONNECT)
567 if (ccb->ccb_h.flags & CAM_TAG_ACTION_VALID)
585 ccb->ccb_h.status = status;
589 SLIST_INSERT_HEAD(&lstate->immed_notifies, &ccb->ccb_h,
591 ccb->ccb_h.status = CAM_REQ_INPROG;
620 cts->ccb_h.target_id,
621 cts->ccb_h.target_lun,
649 ccb->ccb_h.status = CAM_REQ_INVALID;
729 ccb->ccb_h.status = CAM_REQ_CMP;
763 ccb->ccb_h.status = CAM_REQ_CMP;
769 ccb->ccb_h.status = CAM_REQ_INVALID;
816 cpi->ccb_h.status = CAM_REQ_CMP;
821 ccb->ccb_h.status = CAM_PROVIDE_FAIL;
841 cts->ccb_h.target_id,
842 cts->ccb_h.target_lun,
883 if (cts->ccb_h.target_lun != CAM_LUN_WILDCARD) {
890 cts->ccb_h.status = CAM_REQ_CMP;
984 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) {
992 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_OUT)
1009 && (ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_OUT) {
1063 && (ccb->ccb_h.flags & CAM_DIS_DISCONNECT) == 0)
1066 if ((ccb->ccb_h.flags & CAM_NEGOTIATE) != 0
1079 ccb->ccb_h.status |= CAM_SIM_QUEUED;
1134 struct ccb_hdr *ccb_h;
1138 ccb_h = &csio->ccb_h;
1142 if (ccb_h->func_code == XPT_SCSI_IO) {
1144 if ((ccb_h->flags & CAM_CDB_POINTER) != 0) {
1146 || (ccb_h->flags & CAM_CDB_PHYS) != 0) {
1190 scb->io_ctx->ccb_h.status |= CAM_RELEASE_SIMQ;
1200 switch (abort_ccb->ccb_h.func_code) {
1214 ccb->ccb_h.status = status;
1218 if (abort_ccb->ccb_h.func_code == XPT_ACCEPT_TARGET_IO)
1220 else if (abort_ccb->ccb_h.func_code == XPT_IMMEDIATE_NOTIFY)
1231 if (curelm == &abort_ccb->ccb_h) {
1241 if (nextelm == &abort_ccb->ccb_h) {
1254 abort_ccb->ccb_h.status = CAM_REQ_ABORTED;
1256 ccb->ccb_h.status = CAM_REQ_CMP;
1258 xpt_print_path(abort_ccb->ccb_h.path);
1260 ccb->ccb_h.status = CAM_PATH_INVALID;
1268 ccb->ccb_h.status = CAM_UA_ABORT;
1271 ccb->ccb_h.status = CAM_REQ_INVALID;
1299 cts.ccb_h.path = path;
1300 cts.ccb_h.target_id = target;
1301 cts.ccb_h.target_lun = lun;