Lines Matching defs:ccb_h

220 	xpt_setup_ccb(&csa.ccb_h, path, /*priority*/5);
221 csa.ccb_h.func_code = XPT_SASYNC_CB;
261 xpt_setup_ccb(&csa.ccb_h, path2, /*priority*/5);
262 csa.ccb_h.func_code = XPT_SASYNC_CB;
320 CAM_DEBUG(scb->io_ctx->ccb_h.path, CAM_DEBUG_TRACE,
340 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) {
343 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN)
351 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) {
360 ccb_path = ccb->ccb_h.path;
364 if ((ccb->ccb_h.flags & CAM_SEND_STATUS) != 0) {
368 xpt_print_path(ccb->ccb_h.path);
376 ccb->ccb_h.status |= CAM_REQ_CMP;
377 ccb->ccb_h.status &= ~CAM_SIM_QUEUED;
411 ccb->ccb_h.status);
417 ccb->ccb_h.status |= CAM_REQ_CMP;
434 scb->io_ctx->ccb_h.status |= CAM_AUTOSNS_VALID;
436 ccb->ccb_h.status &= ~CAM_SIM_QUEUED;
449 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("ahc_action\n"));
453 target_id = ccb->ccb_h.target_id;
456 switch (ccb->ccb_h.func_code) {
468 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) {
473 ccb->ccb_h.status = status;
478 if (ccb->ccb_h.func_code == XPT_ACCEPT_TARGET_IO) {
480 SLIST_INSERT_HEAD(&lstate->accept_tios, &ccb->ccb_h,
482 ccb->ccb_h.status = CAM_REQ_INPROG;
504 && (ccb->ccb_h.func_code == XPT_SCSI_IO
505 || ccb->ccb_h.func_code == XPT_RESET_DEV)) {
506 ccb->ccb_h.status = CAM_PROVIDE_FAIL;
518 ccb->ccb_h.status = CAM_REQUEUE_REQ;
525 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_SUBTRACE,
531 ccb->ccb_h.ccb_scb_ptr = scb;
538 hscb->lun = ccb->ccb_h.target_lun;
539 if (ccb->ccb_h.func_code == XPT_RESET_DEV) {
545 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) {
554 if ((ccb->ccb_h.flags & CAM_SEND_STATUS) != 0) {
559 if (ccb->ccb_h.flags & CAM_DIS_DISCONNECT)
564 if (ccb->ccb_h.flags & CAM_TAG_ACTION_VALID)
582 ccb->ccb_h.status = status;
586 SLIST_INSERT_HEAD(&lstate->immed_notifies, &ccb->ccb_h,
588 ccb->ccb_h.status = CAM_REQ_INPROG;
617 cts->ccb_h.target_id,
618 cts->ccb_h.target_lun,
646 ccb->ccb_h.status = CAM_REQ_INVALID;
726 ccb->ccb_h.status = CAM_REQ_CMP;
761 ccb->ccb_h.status = CAM_REQ_CMP;
767 ccb->ccb_h.status = CAM_REQ_INVALID;
814 cpi->ccb_h.status = CAM_REQ_CMP;
819 ccb->ccb_h.status = CAM_PROVIDE_FAIL;
839 cts->ccb_h.target_id,
840 cts->ccb_h.target_lun,
881 if (cts->ccb_h.target_lun != CAM_LUN_WILDCARD) {
888 cts->ccb_h.status = CAM_REQ_CMP;
981 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN)
988 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) {
996 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_OUT)
1013 && (ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_OUT) {
1069 && (ccb->ccb_h.flags & CAM_DIS_DISCONNECT) == 0)
1072 if ((ccb->ccb_h.flags & CAM_NEGOTIATE) != 0
1085 ccb->ccb_h.status |= CAM_SIM_QUEUED;
1140 struct ccb_hdr *ccb_h;
1144 ccb_h = &csio->ccb_h;
1148 if (ccb_h->func_code == XPT_SCSI_IO) {
1150 if ((ccb_h->flags & CAM_CDB_POINTER) != 0) {
1153 || (ccb_h->flags & CAM_CDB_PHYS) != 0) {
1197 scb->io_ctx->ccb_h.status |= CAM_RELEASE_SIMQ;
1207 switch (abort_ccb->ccb_h.func_code) {
1221 ccb->ccb_h.status = status;
1225 if (abort_ccb->ccb_h.func_code == XPT_ACCEPT_TARGET_IO)
1227 else if (abort_ccb->ccb_h.func_code == XPT_IMMEDIATE_NOTIFY)
1238 if (curelm == &abort_ccb->ccb_h) {
1248 if (nextelm == &abort_ccb->ccb_h) {
1261 abort_ccb->ccb_h.status = CAM_REQ_ABORTED;
1263 ccb->ccb_h.status = CAM_REQ_CMP;
1265 xpt_print_path(abort_ccb->ccb_h.path);
1267 ccb->ccb_h.status = CAM_PATH_INVALID;
1275 ccb->ccb_h.status = CAM_UA_ABORT;
1278 ccb->ccb_h.status = CAM_REQ_INVALID;
1306 cts.ccb_h.path = path;
1307 cts.ccb_h.target_id = target;
1308 cts.ccb_h.target_lun = lun;