Lines Matching defs:csio

107 			     struct ccb_scsiio *csio,
112 U8 opcode = scsiio_cdb_ptr(csio)[0];
113 U16 service_action = ((scsiio_cdb_ptr(csio)[8] << 8) | scsiio_cdb_ptr(csio)[9]);
122 unmap = scsiio_cdb_ptr(csio)[unmap_ndob_index] & 0x08;
123 ndob = scsiio_cdb_ptr(csio)[unmap_ndob_index] & 0x01;
124 num_blocks = get_unaligned_be32(scsiio_cdb_ptr(csio) +
319 struct ccb_scsiio *csio;
322 csio = &ccb->csio;
323 param_list_len = (uint16_t) ((scsiio_cdb_ptr(csio)[7] << 8) | scsiio_cdb_ptr(csio)[8]);
342 scsi_set_sense_data(&ccb->csio.sense_data,
349 ccb->csio.scsi_status = SCSI_STATUS_CHECK_COND;
356 if (param_list_len != csio->dxfer_len) {
359 __func__, param_list_len, csio->dxfer_len);
361 scsi_set_sense_data(&ccb->csio.sense_data,
368 ccb->csio.scsi_status = SCSI_STATUS_CHECK_COND;
376 block_desc_len = (uint16_t) (csio->data_ptr[2] << 8 | csio->data_ptr[3]);
383 scsi_set_sense_data(&ccb->csio.sense_data,
390 ccb->csio.scsi_status = SCSI_STATUS_CHECK_COND;
404 scsiio_cdb_ptr(csio)[7] = (param_list_len >> 8) | 0xff;
405 scsiio_cdb_ptr(csio)[8] = param_list_len | 0xff;
417 scsiio_cdb_ptr(csio)[7] = (param_list_len >> 8) | 0xff;
418 scsiio_cdb_ptr(csio)[8] = param_list_len | 0xff;
949 struct ccb_scsiio *csio;
965 csio = &ccb->csio;
966 KASSERT(csio->ccb_h.target_id < cam_sc->maxtargets,
968 csio->ccb_h.target_id));
970 scsi_opcode = scsiio_cdb_ptr(csio)[0];
980 targ = mpi3mr_find_target_by_per_id(cam_sc, csio->ccb_h.target_id);
983 csio->ccb_h.target_id);
991 csio->ccb_h.target_id);
998 mpi3mr_dprint(sc, MPI3MR_XINFO, "Device with target ID: 0x%x is removed\n", csio->ccb_h.target_id);
1006 __func__, csio->ccb_h.target_id);
1015 __func__, csio->ccb_h.target_id);
1028 "target %u\n", __func__, csio->ccb_h.target_id);
1067 switch (csio->ccb_h.flags & CAM_DIR_MASK) {
1082 if (csio->cdb_len > 16)
1089 req->DataLength = htole32(csio->dxfer_len);
1097 switch (csio->tag_action) {
1115 mpi3mr_divert_ws(req, csio, targ->ws_len);
1119 if (csio->ccb_h.flags & CAM_CDB_POINTER)
1120 bcopy(csio->cdb_io.cdb_ptr, &req->CDB.CDB32[0], csio->cdb_len);
1122 KASSERT(csio->cdb_len <= IOCDBLEN,
1124 "is not set", csio->cdb_len));
1125 bcopy(csio->cdb_io.cdb_bytes, &req->CDB.CDB32[0],csio->cdb_len);
1128 cm->length = csio->dxfer_len;
1130 int_to_lun(csio->ccb_h.target_lun, req->LUN);
1132 csio->ccb_h.qos.sim_data = sbinuptime();
1137 (queue_idx + 1), __func__, __LINE__, scsi_opcode, csio->ccb_h.target_id, cm->hosttag);
1157 if (csio->dxfer_len > (MPI3MR_SG_DEPTH * MPI3MR_4K_PGSZ)) {
1164 cm->length = csio->dxfer_len;
1166 cm->data = csio->data_ptr;
1193 data_len_blks = ccb->csio.dxfer_len >> 9;