Lines Matching defs:ccb_h

312 			xpt_setup_ccb(&ccb->ccb_h, path, CAM_PRIORITY_NONE);
314 ccb->ccb_h.func_code = XPT_SET_SIM_KNOB;
320 if ((ccb->ccb_h.status & CAM_STATUS_MASK) !=
325 cpi->unit_number, cpi->ccb_h.path_id,
326 ccb->ccb_h.status);
331 cpi->unit_number, cpi->ccb_h.path_id);
357 softc->path_id = cpi->ccb_h.path_id;
517 xpt_setup_ccb(&en_lun_ccb.ccb_h, periph->path, CAM_PRIORITY_NONE);
518 en_lun_ccb.ccb_h.func_code = XPT_EN_LUN;
523 status = (en_lun_ccb.ccb_h.status & CAM_STATUS_MASK);
526 __func__, en_lun_ccb.ccb_h.status);
559 new_ccb->ccb_h.io_ptr = new_io;
561 xpt_setup_ccb(&new_ccb->ccb_h, periph->path, /*priority*/ 1);
562 new_ccb->ccb_h.func_code = XPT_ACCEPT_TARGET_IO;
563 new_ccb->ccb_h.cbfcnp = ctlfedone;
564 new_ccb->ccb_h.flags |= CAM_UNLOCKED;
566 status = new_ccb->ccb_h.status;
605 new_ccb->ccb_h.io_ptr = new_io;
607 xpt_setup_ccb(&new_ccb->ccb_h, periph->path, /*priority*/ 1);
608 new_ccb->ccb_h.func_code = XPT_IMMEDIATE_NOTIFY;
609 new_ccb->ccb_h.cbfcnp = ctlfedone;
610 new_ccb->ccb_h.flags |= CAM_UNLOCKED;
612 status = new_ccb->ccb_h.status;
649 xpt_setup_ccb(&en_lun_ccb.ccb_h, periph->path, CAM_PRIORITY_NONE);
650 en_lun_ccb.ccb_h.func_code = XPT_EN_LUN;
655 status = (en_lun_ccb.ccb_h.status & CAM_STATUS_MASK);
658 __func__, en_lun_ccb.ccb_h.status);
782 struct ccb_hdr *ccb_h;
794 ccb_h = TAILQ_FIRST(&softc->work_queue);
795 if (ccb_h == NULL) {
802 TAILQ_REMOVE(&softc->work_queue, ccb_h, periph_links.tqe);
803 atio = (struct ccb_accept_tio *)ccb_h;
804 io = (union ctl_io *)ccb_h->io_ptr;
807 flags = atio->ccb_h.flags &
857 atio->ccb_h.target_id = CAM_TARGET_WILDCARD;
858 atio->ccb_h.target_lun = CAM_LUN_WILDCARD;
861 if (atio->ccb_h.func_code != XPT_ACCEPT_TARGET_IO) {
864 atio->ccb_h.func_code);
866 start_ccb->ccb_h.func_code = XPT_ABORT;
958 start_ccb->ccb_h.flags |= CAM_UNLOCKED;
959 start_ccb->ccb_h.ccb_atio = atio;
985 io = ccb->ccb_h.io_ptr;
987 switch (ccb->ccb_h.func_code) {
1027 uint8_t *cmdbyt = (atio->ccb_h.flags & CAM_CDB_POINTER)?
1100 KASSERT((done_ccb->ccb_h.flags & CAM_UNLOCKED) != 0,
1104 done_ccb->ccb_h.func_code);
1111 if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) {
1117 done_ccb->ccb_h.status &= ~CAM_DEV_QFRZN;
1134 switch (done_ccb->ccb_h.func_code) {
1145 switch (done_ccb->ccb_h.func_code) {
1156 io = done_ccb->ccb_h.io_ptr;
1163 done_ccb->ccb_h.io_ptr = io;
1174 CAM_EXTLUN_BYTE_SWIZZLE(atio->ccb_h.target_lun));
1176 io->io_hdr.nexus.targ_lun = atio->ccb_h.target_lun;
1224 atio = (struct ccb_accept_tio *)done_ccb->ccb_h.ccb_atio;
1225 io = (union ctl_io *)atio->ccb_h.io_ptr;
1230 __func__, atio->tag_id, done_ccb->ccb_h.flags);
1235 if ((done_ccb->ccb_h.status & CAM_STATUS_MASK) == CAM_MESSAGE_RECV
1276 TAILQ_INSERT_HEAD(&softc->work_queue, &atio->ccb_h,
1282 if ((done_ccb->ccb_h.flags & CAM_SEND_STATUS) &&
1283 (done_ccb->ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP)
1303 atio->ccb_h.target_id = CAM_TARGET_WILDCARD;
1304 atio->ccb_h.target_lun = CAM_LUN_WILDCARD;
1339 switch (done_ccb->ccb_h.status & CAM_STATUS_MASK) {
1374 flags = atio->ccb_h.flags &
1407 csio->ccb_h.flags |= CAM_UNLOCKED;
1409 csio->ccb_h.ccb_atio = atio;
1438 "seq %#x\n", __func__, inot->ccb_h.status,
1441 io = done_ccb->ccb_h.io_ptr;
1448 inot->ccb_h.io_ptr = io;
1453 CAM_EXTLUN_BYTE_SWIZZLE(inot->ccb_h.target_lun));
1455 io->io_hdr.nexus.targ_lun = inot->ccb_h.target_lun;
1460 status = inot->ccb_h.status & CAM_STATUS_MASK;
1545 done_ccb->ccb_h.status = CAM_REQ_INPROG;
1546 done_ccb->ccb_h.func_code = XPT_NOTIFY_ACKNOWLEDGE;
1555 done_ccb->ccb_h.func_code = XPT_IMMEDIATE_NOTIFY;
1563 done_ccb->ccb_h.func_code);
1591 xpt_setup_ccb(&ccb->ccb_h, path, CAM_PRIORITY_NONE);
1592 ccb->ccb_h.func_code = XPT_GET_SIM_KNOB;
1700 ccb->ccb_h.func_code = XPT_SET_SIM_KNOB;
1712 if ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) {
1717 ccb->ccb_h.status);
2004 periph = xpt_path_periph(ccb->ccb_h.path);
2010 TAILQ_INSERT_TAIL(&softc->work_queue, &ccb->ccb_h,
2024 periph = xpt_path_periph(ccb->ccb_h.path);
2034 xpt_print(ccb->ccb_h.path, "%s: returning task I/O "
2041 ccb->ccb_h.status = CAM_REQ_INPROG;
2042 ccb->ccb_h.func_code = XPT_NOTIFY_ACKNOWLEDGE;
2046 ccb->ccb_h.target_id = CAM_TARGET_WILDCARD;
2047 ccb->ccb_h.target_lun = CAM_LUN_WILDCARD;
2058 TAILQ_INSERT_TAIL(&softc->work_queue, &ccb->ccb_h,