Lines Matching refs:ccb_h
282 TAILQ_INSERT_TAIL(&softc->request_ccbs, &request_ccb->ccb_h, in aproberegister()
332 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("aprobestart\n")); in aprobestart()
335 path = start_ccb->ccb_h.path; in aprobestart()
395 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobestart()
396 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aprobestart()
418 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobestart()
419 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in aprobestart()
431 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobestart()
432 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aprobestart()
531 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobestart()
532 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aprobestart()
547 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobestart()
548 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in aprobestart()
562 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobestart()
563 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aprobestart()
593 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobestart()
594 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aprobestart()
613 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobestart()
614 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in aprobestart()
704 start_ccb->ccb_h.flags |= CAM_DEV_QFREEZE; in aprobestart()
714 xpt_setup_ccb(&cts.ccb_h, periph->path, CAM_PRIORITY_NONE); in aproberequestdefaultnegotiation()
715 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aproberequestdefaultnegotiation()
718 if ((cts.ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) in aproberequestdefaultnegotiation()
721 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in aproberequestdefaultnegotiation()
742 CAM_DEBUG(done_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("aprobedone\n")); in aprobedone()
745 path = done_ccb->ccb_h.path; in aprobedone()
746 priority = done_ccb->ccb_h.pinfo.priority; in aprobedone()
750 if ((done_ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) { in aprobedone()
759 if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) { in aprobedone()
763 status = done_ccb->ccb_h.status & CAM_STATUS_MASK; in aprobedone()
766 if ((done_ccb->ccb_h.status & CAM_STATUS_MASK) == in aprobedone()
848 done_ccb->ccb_h.target_id != 15) { in aprobedone()
852 done_ccb->ccb_h.target_id == 15) { in aprobedone()
855 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobedone()
856 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in aprobedone()
864 done_ccb->ccb_h.target_id != 15) { in aprobedone()
868 done_ccb->ccb_h.target_id != 15) { in aprobedone()
872 if (done_ccb->ccb_h.target_id != 15) { in aprobedone()
994 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobedone()
995 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in aprobedone()
1021 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobedone()
1022 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aprobedone()
1042 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobedone()
1043 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aprobedone()
1071 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobedone()
1072 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in aprobedone()
1140 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; in aprobedone()
1183 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; in aprobedone()
1218 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobedone()
1219 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aprobedone()
1230 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobedone()
1231 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aprobedone()
1246 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobedone()
1247 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in aprobedone()
1256 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; in aprobedone()
1262 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; in aprobedone()
1309 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; in aprobedone()
1329 &done_ccb->ccb_h, periph_links.tqe); in aprobedone()
1330 done_ccb->ccb_h.status = found ? CAM_REQ_CMP : CAM_REQ_CMP_ERR; in aprobedone()
1387 CAM_DEBUG(request_ccb->ccb_h.path, CAM_DEBUG_TRACE, in ata_scan_bus()
1389 switch (request_ccb->ccb_h.func_code) { in ata_scan_bus()
1395 request_ccb->ccb_h.status = CAM_RESRC_UNAVAIL; in ata_scan_bus()
1399 xpt_path_inq(&work_ccb->cpi, request_ccb->ccb_h.path); in ata_scan_bus()
1400 if (work_ccb->ccb_h.status != CAM_REQ_CMP) { in ata_scan_bus()
1401 request_ccb->ccb_h.status = work_ccb->ccb_h.status; in ata_scan_bus()
1411 !timevalisset(&request_ccb->ccb_h.path->bus->last_reset)) { in ata_scan_bus()
1414 request_ccb->ccb_h.status = CAM_RESRC_UNAVAIL; in ata_scan_bus()
1419 xpt_setup_ccb(&reset_ccb->ccb_h, request_ccb->ccb_h.path, in ata_scan_bus()
1421 reset_ccb->ccb_h.func_code = XPT_RESET_BUS; in ata_scan_bus()
1423 if (reset_ccb->ccb_h.status != CAM_REQ_CMP) { in ata_scan_bus()
1424 request_ccb->ccb_h.status = reset_ccb->ccb_h.status; in ata_scan_bus()
1437 request_ccb->ccb_h.status = CAM_RESRC_UNAVAIL; in ata_scan_bus()
1453 request_ccb->ccb_h.status = CAM_RESRC_UNAVAIL; in ata_scan_bus()
1457 mtx = xpt_path_mtx(scan_info->request_ccb->ccb_h.path); in ata_scan_bus()
1462 scan_info = (ata_scan_bus_info *)work_ccb->ccb_h.ppriv_ptr0; in ata_scan_bus()
1463 mtx = xpt_path_mtx(scan_info->request_ccb->ccb_h.path); in ata_scan_bus()
1471 xpt_free_path(work_ccb->ccb_h.path); in ata_scan_bus()
1478 xpt_setup_ccb(&cts.ccb_h, in ata_scan_bus()
1479 work_ccb->ccb_h.path, CAM_PRIORITY_NONE); in ata_scan_bus()
1480 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in ata_scan_bus()
1488 xpt_free_path(work_ccb->ccb_h.path); in ata_scan_bus()
1498 request_ccb->ccb_h.status = CAM_REQ_CMP; in ata_scan_bus()
1507 scan_info->request_ccb->ccb_h.path_id, in ata_scan_bus()
1510 if (request_ccb->ccb_h.func_code == XPT_SCAN_LUN) in ata_scan_bus()
1519 request_ccb->ccb_h.status = status; in ata_scan_bus()
1523 xpt_setup_ccb(&work_ccb->ccb_h, path, in ata_scan_bus()
1524 scan_info->request_ccb->ccb_h.pinfo.priority); in ata_scan_bus()
1525 work_ccb->ccb_h.func_code = XPT_SCAN_LUN; in ata_scan_bus()
1526 work_ccb->ccb_h.cbfcnp = ata_scan_bus; in ata_scan_bus()
1527 work_ccb->ccb_h.flags |= CAM_UNLOCKED; in ata_scan_bus()
1528 work_ccb->ccb_h.ppriv_ptr0 = scan_info; in ata_scan_bus()
1531 if (request_ccb->ccb_h.func_code == XPT_SCAN_LUN) in ata_scan_bus()
1555 if (cpi.ccb_h.status != CAM_REQ_CMP) { in ata_scan_lun()
1557 request_ccb->ccb_h.status = cpi.ccb_h.status; in ata_scan_lun()
1580 xpt_setup_ccb(&request_ccb->ccb_h, new_path, CAM_PRIORITY_XPT); in ata_scan_lun()
1581 request_ccb->ccb_h.cbfcnp = axptscandone; in ata_scan_lun()
1582 request_ccb->ccb_h.flags |= CAM_UNLOCKED; in ata_scan_lun()
1583 request_ccb->ccb_h.func_code = XPT_SCAN_LUN; in ata_scan_lun()
1596 &request_ccb->ccb_h, periph_links.tqe); in ata_scan_lun()
1599 request_ccb->ccb_h.status = CAM_REQ_CMP_ERR; in ata_scan_lun()
1606 request_ccb->ccb_h.path, NULL, 0, in ata_scan_lun()
1612 request_ccb->ccb_h.status = status; in ata_scan_lun()
1624 xpt_free_path(done_ccb->ccb_h.path); in axptscandone()
1682 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in ata_device_transport()
1683 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in ata_device_transport()
1716 xpt_path_assert(start_ccb->ccb_h.path, MA_OWNED); in ata_dev_advinfo()
1717 start_ccb->ccb_h.status = CAM_REQ_INVALID; in ata_dev_advinfo()
1718 device = start_ccb->ccb_h.path->device; in ata_dev_advinfo()
1755 start_ccb->ccb_h.status = CAM_REQ_ABORTED; in ata_dev_advinfo()
1773 start_ccb->ccb_h.status = CAM_REQ_CMP; in ata_dev_advinfo()
1776 xpt_async(AC_ADVINFO_CHANGED, start_ccb->ccb_h.path, in ata_dev_advinfo()
1785 if (start_ccb->ccb_h.func_code != XPT_ATA_IO) { in ata_action()
1786 KASSERT((start_ccb->ccb_h.alloc_flags & CAM_CCB_FROM_UMA) == 0, in ata_action()
1788 __func__, start_ccb, start_ccb->ccb_h.func_code)); in ata_action()
1791 switch (start_ccb->ccb_h.func_code) { in ata_action()
1795 start_ccb->ccb_h.path, in ata_action()
1801 ata_scan_bus(start_ccb->ccb_h.path->periph, start_ccb); in ata_action()
1804 ata_scan_lun(start_ccb->ccb_h.path->periph, in ata_action()
1805 start_ccb->ccb_h.path, start_ccb->crcn.flags, in ata_action()
1818 device = start_ccb->ccb_h.path->device; in ata_action()
1830 start_ccb->ccb_h.status = CAM_REQ_INVALID; in ata_action()
1855 device = cts->ccb_h.path->device; in ata_get_transfer_settings()
1904 cts->ccb_h.status = CAM_PATH_INVALID; in ata_set_transfer_settings()
2093 xpt_setup_ccb(&cts->ccb_h, path, CAM_PRIORITY_NORMAL); in _ata_announce_periph()
2094 cts->ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in _ata_announce_periph()
2097 if ((cts->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) in _ata_announce_periph()
2127 if ((cts.ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) in ata_announce_periph_sbuf()
2201 if (ccb->ccb_h.func_code != XPT_ATA_IO) in ata_proto_debug_out()
2204 CAM_DEBUG(ccb->ccb_h.path, in ata_proto_debug_out()