Lines Matching defs:cso

1577 	struct ccb_scsiio *cso;
1612 cso = &ccb->csio;
1613 xfrlen = cso->dxfer_len;
1623 atp = isp_get_atpd(isp, tptr, cso->tag_id);
1625 isp_prt(isp, ISP_LOGERR, "%s: [0x%x] cannot find private data adjunct in %s", __func__, cso->tag_id, __func__);
1636 isp_prt(isp, ISP_LOGERR, "%s: [0x%x] not sending a CTIO for a dead command", __func__, cso->tag_id);
1647 isp_prt(isp, ISP_LOGERR, "%s: [0x%x] stopping sending a CTIO because we're no longer in target mode", __func__, cso->tag_id);
1658 isp_prt(isp, ISP_LOGTINFO, "[0x%x] handling only %d CCBs at a time (flags for this ccb: 0x%x)", cso->tag_id, ATPD_CCB_OUTSTANDING, ccb->ccb_h.flags);
1678 cso->tag_id, atp->orig_datalen, atp->bytes_xfered, atp->bytes_in_transit);
1695 sense_length = cso->sense_len;
1714 isp_prt(isp, ISP_LOGERR, "%s: [0x%x] data overflow by %u bytes", __func__, cso->tag_id, tmp - atp->orig_datalen);
1754 cto->ct_scsi_status = cso->scsi_status;
1766 memcpy(cto->rsp.m1.ct_resp, &cso->sense_data, sense_length);
1787 rp->fcp_rsp_scsi_status = cso->scsi_status;
1800 memcpy(((fcp_rsp_iu_t *)atp->ests)->fcp_rsp_extra, &cso->sense_data, sense_length);
1819 cso->sense_data.error_code, cso->sense_data.sense_buf[1], cso->sense_data.sense_buf[11], cso->sense_data.sense_buf[12]);
1832 if ((cso->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) {
1850 if (cso->scsi_status == SCSI_STATUS_OK && resid == 0 /* && fctape == 0 */) {
1878 ((ct2e_entry_t *)cto)->ct_iid = cso->init_id;
1880 cto->ct_iid = cso->init_id;
1886 cto->ct_rxid = cso->tag_id;
1909 cto->rsp.m1.ct_scsi_status = cso->scsi_status;
1921 memcpy(cto->rsp.m1.ct_resp, &cso->sense_data, sense_length);
1942 rp->fcp_rsp_scsi_status = cso->scsi_status;
1954 memcpy(((fcp_rsp_iu_t *)atp->ests)->fcp_rsp_extra, &cso->sense_data, sense_length);
1977 cto->ct_rxid, ATPD_GET_SEQNO(cto), ATPD_GET_NCAM(cto), atp->cdb0, cso->scsi_status, cto->ct_flags, cto->ct_resid,
1978 cso->sense_data.error_code, cso->sense_data.sense_buf[1], cso->sense_data.sense_buf[11], cso->sense_data.sense_buf[12]);
1981 ATPD_GET_SEQNO(cto), ATPD_GET_NCAM(cto), atp->cdb0, cso->scsi_status, cto->ct_flags, cto->ct_resid);
1988 if ((cso->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) {
1999 if (cso->scsi_status == SCSI_STATUS_OK && resid == 0 /*&& fctape == 0*/) {
2015 ATPD_GET_SEQNO(cto), ATPD_GET_NCAM(cto), atp->cdb0, cso->scsi_status, cto->ct_flags, cto->ct_resid, cso->dxfer_len, atp->bytes_xfered);
2023 cto->ct_iid = cso->init_id;
2027 cto->ct_fwhandle = cso->tag_id;
2035 if (cso->dxfer_len == 0) {
2037 } else if ((cso->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) {
2044 cto->ct_scsi_status = cso->scsi_status;
2047 cto->ct_fwhandle, ATPD_GET_SEQNO(cto), ATPD_GET_NCAM(cto), cso->scsi_status, cso->resid, cso->tag_id);
2088 dmaresult = ISP_DMASETUP(isp, cso, (ispreq_t *) local);
2142 struct ccb_scsiio *cso;
2154 cso = &ccb->csio;
2166 at->at_rxid = cso->tag_id;
2167 at->at_iid = cso->ccb_h.target_id;
2174 at->at_iid = cso->init_id;
2176 at->at_tgt = cso->ccb_h.target_id;
2177 at->at_lun = cso->ccb_h.target_lun;
2179 at->at_tag_val = AT_GET_TAG(cso->tag_id);
2180 at->at_handle = AT_GET_HANDLE(cso->tag_id);