Lines Matching refs:ct

830 			ct7_entry_t *ct = (ct7_entry_t *) storage;
831 ct->ct_header.rqs_entry_type = RQSTYPE_CTIO7;
832 ct->ct_nphdl = CT7_OK;
833 ct->ct_syshandle = bus;
834 ct->ct_flags = CT7_SENDSTATUS;
837 ct2_entry_t *ct = (ct2_entry_t *) storage;
838 ct->ct_header.rqs_entry_type = RQSTYPE_CTIO2;
839 ct->ct_status = CT_OK;
840 ct->ct_syshandle = bus;
841 ct->ct_flags = CT2_SENDSTATUS|CT2_FASTPOST;
843 ct_entry_t *ct = (ct_entry_t *) storage;
844 ct->ct_header.rqs_entry_type = RQSTYPE_CTIO;
845 ct->ct_status = CT_OK;
846 ct->ct_syshandle = bus;
848 ct->ct_fwhandle = 0;
849 ct->ct_flags = CT_SENDSTATUS;
1405 isp_handle_ctio(ispsoftc_t *isp, ct_entry_t *ct)
1411 if (ct->ct_syshandle) {
1412 xs = isp_find_xs_tgt(isp, ct->ct_syshandle);
1420 switch (ct->ct_status & ~QLTM_SVALID) {
1430 if (ct->ct_flags & CT_SENDSTATUS) {
1432 } else if ((ct->ct_flags & CT_DATAMASK) == CT_NO_DATA) {
1436 isp_prt(isp, pl, "CTIO- iid %d disconnected OK", ct->ct_iid);
1473 isp_prt(isp, ISP_LOGERR, "Firmware rejected CTIO for disabled lun %d", ct->ct_lun);
1483 isp_prt(isp, ISP_LOGERR, "Firmware rejected CTIO for bad nexus %d/%d/%d", ct->ct_iid, ct->ct_tgt, ct->ct_lun);
1517 isp_prt(isp, ISP_LOGERR, "Unknown CTIO status 0x%x", ct->ct_status & ~QLTM_SVALID);
1529 if (ct->ct_syshandle == 0) {
1530 if ((ct->ct_flags & CT_SENDSTATUS) == 0) {
1536 isp_prt(isp, pl, "NO xs for CTIO (handle 0x%x) status 0x%x", ct->ct_syshandle, ct->ct_status & ~QLTM_SVALID);
1543 if ((ct->ct_flags & CT_DATAMASK) != CT_NO_DATA) {
1544 ISP_DMAFREE(isp, xs, ct->ct_syshandle);
1550 isp_async(isp, ISPASYNC_TARGET_ACTION, ct);
1555 isp_handle_ctio2(ispsoftc_t *isp, ct2_entry_t *ct)
1561 if (ct->ct_syshandle) {
1562 xs = isp_find_xs_tgt(isp, ct->ct_syshandle);
1570 switch (ct->ct_status & ~QLTM_SVALID) {
1611 isp_prt(isp, ISP_LOGTDEBUG0, "CTIO2 destroyed by %s: RX_ID=0x%x", fmsg, ct->ct_rxid);
1656 isp_prt(isp, ISP_LOGWARN, "CTIO2 completed with Invalid RX_ID 0x%x", ct->ct_rxid);
1660 isp_prt(isp, ISP_LOGERR, "Unknown CTIO2 status 0x%x", ct->ct_status & ~QLTM_SVALID);
1672 if (ct->ct_syshandle == 0) {
1673 if ((ct->ct_flags & CT2_SENDSTATUS) == 0) {
1679 isp_prt(isp, pl, "NO xs for CTIO (handle 0x%x) status 0x%x", ct->ct_syshandle, ct->ct_status & ~QLTM_SVALID);
1682 if ((ct->ct_flags & CT2_DATAMASK) != CT2_NO_DATA) {
1683 ISP_DMAFREE(isp, xs, ct->ct_syshandle);
1685 if (ct->ct_flags & CT2_SENDSTATUS) {
1702 isp_async(isp, ISPASYNC_TARGET_ACTION, ct);
1710 isp_handle_ctio7(ispsoftc_t *isp, ct7_entry_t *ct)
1716 if (ct->ct_syshandle) {
1717 xs = isp_find_xs_tgt(isp, ct->ct_syshandle);
1725 switch (ct->ct_nphdl) {
1755 isp_prt(isp, ISP_LOGTDEBUG0, "CTIO7 destroyed by %s: RX_ID=0x%x", fmsg, ct->ct_rxid);
1790 isp_prt(isp, ISP_LOGWARN, "CTIO7 completed with Invalid RX_ID 0x%x", ct->ct_rxid);
1802 isp_prt(isp, ISP_LOGERR, "Unknown CTIO7 status 0x%x", ct->ct_nphdl);
1814 if (ct->ct_syshandle == 0) {
1815 if (ct->ct_flags & CT7_TERMINATE) {
1816 isp_prt(isp, ISP_LOGINFO, "termination of [RX_ID 0x%x] complete", ct->ct_rxid);
1817 } else if ((ct->ct_flags & CT7_SENDSTATUS) == 0) {
1823 isp_prt(isp, pl, "NO xs for CTIO (handle 0x%x) status 0x%x", ct->ct_syshandle, ct->ct_nphdl);
1826 if ((ct->ct_flags & CT7_DATAMASK) != CT7_NO_DATA) {
1827 ISP_DMAFREE(isp, xs, ct->ct_syshandle);
1829 if (ct->ct_flags & CT7_SENDSTATUS) {
1846 isp_async(isp, ISPASYNC_TARGET_ACTION, ct);