Lines Matching defs:cto

946 	ct7_entry_t local, *cto = &local;
1086 memset(cto, 0, QENTRY_LEN);
1087 cto->ct_header.rqs_entry_type = RQSTYPE_CTIO7;
1088 cto->ct_header.rqs_entry_count = 1;
1089 cto->ct_header.rqs_seqno |= ATPD_SEQ_NOTIFY_CAM;
1090 ATPD_SET_SEQNO(cto, atp);
1091 cto->ct_nphdl = atp->nphdl;
1092 cto->ct_rxid = atp->tag;
1093 cto->ct_iid_lo = atp->sid;
1094 cto->ct_iid_hi = atp->sid >> 16;
1095 cto->ct_oxid = atp->oxid;
1096 cto->ct_vpidx = ISP_GET_VPIDX(isp, XS_CHANNEL(ccb));
1097 cto->ct_timeout = XS_TIME(ccb);
1098 cto->ct_flags = atp->tattr << CT7_TASK_ATTR_SHIFT;
1109 cto->ct_flags |= CT7_SENDSTATUS | CT7_NO_DATA;
1112 cto->ct_flags |= CT7_FLAG_MODE1;
1113 cto->ct_scsi_status = cso->scsi_status;
1115 cto->ct_resid = -resid;
1116 cto->ct_scsi_status |= (FCP_RESID_OVERFLOW << 8);
1118 cto->ct_resid = resid;
1119 cto->ct_scsi_status |= (FCP_RESID_UNDERFLOW << 8);
1122 cto->ct_flags |= CT7_CONFIRM|CT7_EXPLCT_CONF;
1125 cto->ct_scsi_status |= (FCP_SNSLEN_VALID << 8);
1126 cto->rsp.m1.ct_resplen = cto->ct_senselen = sense_length;
1127 memcpy(cto->rsp.m1.ct_resp, &cso->sense_data, sense_length);
1142 cto->ct_flags |= CT7_CONFIRM|CT7_EXPLCT_CONF;
1145 cto->ct_flags |= CT7_FLAG_MODE2;
1156 cto->ct_senselen = sense_length;
1171 cto->rsp.m2.ct_datalen = MIN_FCP_RESPONSE_SIZE + sense_length;
1172 cto->rsp.m2.ct_fcp_rsp_iudata.ds_base = DMA_LO32(addr);
1173 cto->rsp.m2.ct_fcp_rsp_iudata.ds_basehi = DMA_HI32(addr);
1174 cto->rsp.m2.ct_fcp_rsp_iudata.ds_count = MIN_FCP_RESPONSE_SIZE + sense_length;
1178 cto->ct_rxid, ATPD_GET_SEQNO(cto), ATPD_GET_NCAM(cto), atp->cdb0, cto->ct_scsi_status, cto->ct_flags, cto->ct_resid, sense_length,
1182 cto->ct_rxid, ATPD_GET_SEQNO(cto), ATPD_GET_NCAM(cto), atp->cdb0, cto->ct_scsi_status, cto->ct_flags, cto->ct_resid);
1191 cto->ct_flags |= CT7_FLAG_MODE0;
1193 cto->ct_flags |= CT7_DATA_IN;
1195 cto->ct_flags |= CT7_DATA_OUT;
1198 cto->rsp.m0.reloff = atp->bytes_xfered + atp->bytes_in_transit;
1199 cto->rsp.m0.ct_xfrlen = xfrlen;
1205 cto->rsp.m0.ct_xfrlen -= xfrlen >> 2;
1211 cto->ct_flags |= CT7_SENDSTATUS;
1214 cto->ct_flags |= CT7_CONFIRM|CT7_EXPLCT_CONF;
1218 cto->ct_header.rqs_seqno &= ~ATPD_SEQ_NOTIFY_CAM;
1225 cto->ct_rxid, ATPD_GET_SEQNO(cto), ATPD_GET_NCAM(cto), atp->cdb0, cto->ct_scsi_status, cto->ct_flags, xfrlen, atp->bytes_xfered);
1251 cto->ct_syshandle = handle;
1252 dmaresult = ISP_DMASETUP(isp, cso, cto);
1707 ct7_entry_t local, *cto = &local;
1729 ISP_MEMZERO(cto, sizeof (ct7_entry_t));
1730 cto->ct_header.rqs_entry_type = RQSTYPE_CTIO7;
1731 cto->ct_header.rqs_entry_count = 1;
1732 cto->ct_nphdl = nphdl;
1733 cto->ct_rxid = aep->at_rxid;
1734 cto->ct_vpidx = mp->nt_channel;
1735 cto->ct_iid_lo = sid;
1736 cto->ct_iid_hi = sid >> 16;
1737 cto->ct_oxid = aep->at_hdr.ox_id;
1738 cto->ct_flags = CT7_SENDSTATUS|CT7_NOACK|CT7_NO_DATA|CT7_FLAG_MODE1;
1739 cto->ct_flags |= (aep->at_ta_len >> 12) << CT7_TASK_ATTR_SHIFT;
1741 cto->ct_scsi_status |= (FCP_RSPLEN_VALID << 8);
1742 cto->rsp.m1.ct_resplen = 4;
1743 ISP_MEMZERO(cto->rsp.m1.ct_resp, sizeof (cto->rsp.m1.ct_resp));
1744 cto->rsp.m1.ct_resp[0] = rsp & 0xff;
1745 cto->rsp.m1.ct_resp[1] = (rsp >> 8) & 0xff;
1746 cto->rsp.m1.ct_resp[2] = (rsp >> 16) & 0xff;
1747 cto->rsp.m1.ct_resp[3] = (rsp >> 24) & 0xff;
1749 return (isp_send_entry(isp, cto));
2273 ct7_entry_t *cto = (ct7_entry_t *) storage;
2275 ISP_MEMZERO(cto, sizeof (ct7_entry_t));
2276 cto->ct_header.rqs_entry_type = RQSTYPE_CTIO7;
2277 cto->ct_header.rqs_entry_count = 1;
2278 cto->ct_nphdl = atp->nphdl;
2279 cto->ct_vpidx = chan;
2280 cto->ct_iid_lo = atp->sid;
2281 cto->ct_iid_hi = atp->sid >> 16;
2282 cto->ct_rxid = atp->tag;
2283 cto->ct_flags = CT7_NOACK|CT7_TERMINATE;
2284 cto->ct_oxid = atp->oxid;
2285 return (isp_send_entry(isp, cto));