Lines Matching defs:ccb_h

314 			xpt_setup_ccb(&ccb->ccb_h, path, CAM_PRIORITY_NONE);
316 ccb->ccb_h.func_code = XPT_SET_SIM_KNOB;
322 if ((ccb->ccb_h.status & CAM_STATUS_MASK) !=
327 cpi->unit_number, cpi->ccb_h.path_id,
328 ccb->ccb_h.status);
333 cpi->unit_number, cpi->ccb_h.path_id);
359 softc->path_id = cpi->ccb_h.path_id;
516 xpt_setup_ccb(&en_lun_ccb.ccb_h, periph->path, CAM_PRIORITY_NONE);
517 en_lun_ccb.ccb_h.func_code = XPT_EN_LUN;
522 status = (en_lun_ccb.ccb_h.status & CAM_STATUS_MASK);
525 __func__, en_lun_ccb.ccb_h.status);
548 new_ccb->ccb_h.io_ptr = new_io;
550 xpt_setup_ccb(&new_ccb->ccb_h, periph->path, /*priority*/ 1);
551 new_ccb->ccb_h.func_code = XPT_ACCEPT_TARGET_IO;
552 new_ccb->ccb_h.cbfcnp = ctlfedone;
553 new_ccb->ccb_h.flags |= CAM_UNLOCKED;
555 status = new_ccb->ccb_h.status;
593 new_ccb->ccb_h.io_ptr = new_io;
595 xpt_setup_ccb(&new_ccb->ccb_h, periph->path, /*priority*/ 1);
596 new_ccb->ccb_h.func_code = XPT_IMMEDIATE_NOTIFY;
597 new_ccb->ccb_h.cbfcnp = ctlfedone;
598 new_ccb->ccb_h.flags |= CAM_UNLOCKED;
600 status = new_ccb->ccb_h.status;
637 xpt_setup_ccb(&en_lun_ccb.ccb_h, periph->path, CAM_PRIORITY_NONE);
638 en_lun_ccb.ccb_h.func_code = XPT_EN_LUN;
643 status = (en_lun_ccb.ccb_h.status & CAM_STATUS_MASK);
646 __func__, en_lun_ccb.ccb_h.status);
770 struct ccb_hdr *ccb_h;
782 ccb_h = TAILQ_FIRST(&softc->work_queue);
783 if (ccb_h == NULL) {
790 TAILQ_REMOVE(&softc->work_queue, ccb_h, periph_links.tqe);
791 atio = (struct ccb_accept_tio *)ccb_h;
792 io = (union ctl_io *)ccb_h->io_ptr;
795 flags = atio->ccb_h.flags &
845 atio->ccb_h.target_id = CAM_TARGET_WILDCARD;
846 atio->ccb_h.target_lun = CAM_LUN_WILDCARD;
849 if (atio->ccb_h.func_code != XPT_ACCEPT_TARGET_IO) {
852 atio->ccb_h.func_code);
854 start_ccb->ccb_h.func_code = XPT_ABORT;
946 start_ccb->ccb_h.flags |= CAM_UNLOCKED;
947 start_ccb->ccb_h.ccb_atio = atio;
972 switch (ccb->ccb_h.func_code) {
984 ctl_free_io(ccb->ccb_h.io_ptr);
1010 uint8_t *cmdbyt = (atio->ccb_h.flags & CAM_CDB_POINTER)?
1083 KASSERT((done_ccb->ccb_h.flags & CAM_UNLOCKED) != 0,
1087 done_ccb->ccb_h.func_code);
1094 if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) {
1100 done_ccb->ccb_h.status &= ~CAM_DEV_QFRZN;
1117 switch (done_ccb->ccb_h.func_code) {
1128 switch (done_ccb->ccb_h.func_code) {
1139 io = done_ccb->ccb_h.io_ptr;
1144 done_ccb->ccb_h.io_ptr = io;
1153 io->io_hdr.nexus.targ_target.id = atio->ccb_h.target_id;
1154 io->io_hdr.nexus.targ_lun = atio->ccb_h.target_lun;
1202 atio = (struct ccb_accept_tio *)done_ccb->ccb_h.ccb_atio;
1203 io = (union ctl_io *)atio->ccb_h.io_ptr;
1208 __func__, atio->tag_id, done_ccb->ccb_h.flags);
1213 if ((done_ccb->ccb_h.status & CAM_STATUS_MASK) == CAM_MESSAGE_RECV
1254 TAILQ_INSERT_HEAD(&softc->work_queue, &atio->ccb_h,
1260 if ((done_ccb->ccb_h.flags & CAM_SEND_STATUS) &&
1261 (done_ccb->ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP)
1281 atio->ccb_h.target_id = CAM_TARGET_WILDCARD;
1282 atio->ccb_h.target_lun = CAM_LUN_WILDCARD;
1318 switch (done_ccb->ccb_h.status & CAM_STATUS_MASK) {
1353 flags = atio->ccb_h.flags &
1386 csio->ccb_h.flags |= CAM_UNLOCKED;
1388 csio->ccb_h.ccb_atio = atio;
1417 "seq %#x\n", __func__, inot->ccb_h.status,
1420 io = done_ccb->ccb_h.io_ptr;
1427 inot->ccb_h.io_ptr = io;
1430 io->io_hdr.nexus.targ_target.id = inot->ccb_h.target_id;
1431 io->io_hdr.nexus.targ_lun = inot->ccb_h.target_lun;
1435 status = inot->ccb_h.status & CAM_STATUS_MASK;
1513 done_ccb->ccb_h.status = CAM_REQ_INPROG;
1514 done_ccb->ccb_h.func_code = XPT_NOTIFY_ACKNOWLEDGE;
1523 done_ccb->ccb_h.func_code = XPT_IMMEDIATE_NOTIFY;
1531 done_ccb->ccb_h.func_code);
1559 xpt_setup_ccb(&ccb->ccb_h, path, CAM_PRIORITY_NONE);
1576 ccb->ccb_h.func_code = XPT_GET_SIM_KNOB;
1674 ccb->ccb_h.func_code = XPT_SET_SIM_KNOB;
1686 if ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) {
1691 ccb->ccb_h.status);
1974 periph = xpt_path_periph(ccb->ccb_h.path);
1980 TAILQ_INSERT_TAIL(&softc->work_queue, &ccb->ccb_h,
1994 periph = xpt_path_periph(ccb->ccb_h.path);
2004 xpt_print(ccb->ccb_h.path, "%s: returning task I/O "
2011 ccb->ccb_h.status = CAM_REQ_INPROG;
2012 ccb->ccb_h.func_code = XPT_NOTIFY_ACKNOWLEDGE;
2016 ccb->ccb_h.target_id = CAM_TARGET_WILDCARD;
2017 ccb->ccb_h.target_lun = CAM_LUN_WILDCARD;
2028 TAILQ_INSERT_TAIL(&softc->work_queue, &ccb->ccb_h,