Lines Matching refs:csio

323 		xpt_path_string(cm->cm_ccb->csio.ccb_h.path, path_str,
327 scsi_command_string(&cm->cm_ccb->csio, &sb);
329 cm->cm_ccb->csio.dxfer_len);
1634 struct ccb_scsiio *csio;
1647 csio = &ccb->csio;
1648 KASSERT(csio->ccb_h.target_id < sassc->maxtargets,
1650 csio->ccb_h.target_id));
1651 targ = &sassc->targets[csio->ccb_h.target_id];
1655 __func__, csio->ccb_h.target_id);
1662 "supported %u\n", __func__, csio->ccb_h.target_id);
1674 "target %u\n", __func__, csio->ccb_h.target_id);
1745 req->DataLength = htole32(csio->dxfer_len);
1747 req->IoFlags = htole16(csio->cdb_len);
1751 switch (csio->ccb_h.flags & CAM_DIR_MASK) {
1766 if (csio->cdb_len == 32)
1773 switch (csio->tag_action) {
1789 mpi_control |= (csio->priority << MPI2_SCSIIO_CONTROL_TASKPRI_SHIFT) &
1791 mpi_control |= sc->mapping_table[csio->ccb_h.target_id].TLR_bits;
1793 if (MPS_SET_LUN(req->LUN, csio->ccb_h.target_lun) != 0) {
1800 if (csio->ccb_h.flags & CAM_CDB_POINTER)
1801 bcopy(csio->cdb_io.cdb_ptr, &req->CDB.CDB32[0], csio->cdb_len);
1803 bcopy(csio->cdb_io.cdb_bytes, &req->CDB.CDB32[0],csio->cdb_len);
1804 req->IoFlags = htole16(csio->cdb_len);
1815 if (lun->lun_id == csio->ccb_h.target_lun) {
1835 if (csio->cdb_len != 32) {
1836 lba_byte = (csio->cdb_len == 16) ? 6 : 2;
1860 cm->cm_length = csio->dxfer_len;
1874 cm->cm_lun = csio->ccb_h.target_lun;
1891 if (csio->bio != NULL)
1892 biotrack(csio->bio, __func__);
1894 csio->ccb_h.qos.sim_data = sbinuptime();
1914 mps_sc_failed_io_info(struct mps_softc *sc, struct ccb_scsiio *csio,
1949 scsi_sense_print(csio);
1968 struct ccb_scsiio *csio;
1988 csio = &ccb->csio;
1989 target_id = csio->ccb_h.target_id;
2011 if (ccb->csio.bio != NULL)
2012 biotrack(ccb->csio.bio, __func__);
2086 if (sc->SSU_started && (csio->cdb_io.cdb_bytes[0] == START_STOP_UNIT)) {
2098 ccb->csio.scsi_status = SCSI_STATUS_OK;
2148 csio->resid = cm->cm_length - le32toh(rep->TransferCount);
2199 csio->scsi_status = rep->SCSIStatus;
2210 if (returned_sense_len < ccb->csio.sense_len)
2211 ccb->csio.sense_resid = ccb->csio.sense_len -
2214 ccb->csio.sense_resid = 0;
2217 ccb->csio.sense_len - ccb->csio.sense_resid);
2218 bzero(&ccb->csio.sense_data,
2219 sizeof(ccb->csio.sense_data));
2220 bcopy(cm->cm_sense, &ccb->csio.sense_data, sense_len);
2232 if ((csio->cdb_io.cdb_bytes[0] == INQUIRY) &&
2233 (csio->cdb_io.cdb_bytes[1] & SI_EVPD) &&
2234 (csio->cdb_io.cdb_bytes[2] == SVPD_SUPPORTED_PAGE_LIST) &&
2235 ((csio->ccb_h.flags & CAM_DATA_MASK) == CAM_DATA_VADDR) &&
2236 (csio->data_ptr != NULL) &&
2237 ((csio->data_ptr[0] & 0x1f) == T_SEQUENTIAL) &&
2242 csio->data_ptr;
2246 alloc_len = ((u16)csio->cdb_io.cdb_bytes[3] << 8) +
2247 csio->cdb_io.cdb_bytes[4];
2248 alloc_len -= csio->resid;
2262 if ((csio->cdb_io.cdb_bytes[0] == INQUIRY) &&
2263 ((csio->data_ptr[0] & 0x1f) == T_DIRECT) &&
2309 csio->resid = 0;
2363 csio->resid = cm->cm_length;
2368 mps_sc_failed_io_info(sc,csio,rep);