Lines Matching refs:vm_srb

311 		struct vmscsi_request vm_srb;  member
1026 static void storvsc_handle_error(struct vmscsi_request *vm_srb, in storvsc_handle_error() argument
1041 if (vm_srb->srb_status & SRB_STATUS_INVALID_LUN) { in storvsc_handle_error()
1047 if (vm_srb->srb_status & SRB_STATUS_ABORTED) { in storvsc_handle_error()
1048 if (vm_srb->srb_status & SRB_STATUS_AUTOSENSE_VALID && in storvsc_handle_error()
1060 if (vm_srb->srb_status & SRB_STATUS_ERROR) { in storvsc_handle_error()
1065 if (vm_srb->srb_status & SRB_STATUS_AUTOSENSE_VALID) in storvsc_handle_error()
1103 wrk->lun = vm_srb->lun; in storvsc_handle_error()
1104 wrk->tgt_id = vm_srb->target_id; in storvsc_handle_error()
1115 struct vmscsi_request *vm_srb; in storvsc_command_completion() local
1124 vm_srb = &cmd_request->vstor_packet.vm_srb; in storvsc_command_completion()
1125 data_transfer_length = vm_srb->data_transfer_length; in storvsc_command_completion()
1127 scmnd->result = vm_srb->scsi_status; in storvsc_command_completion()
1138 if (vm_srb->srb_status != SRB_STATUS_SUCCESS) { in storvsc_command_completion()
1139 storvsc_handle_error(vm_srb, scmnd, host, sense_hdr.asc, in storvsc_command_completion()
1146 if (vm_srb->srb_status != SRB_STATUS_DATA_OVERRUN) in storvsc_command_completion()
1184 if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) || in storvsc_on_io_completion()
1185 (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) { in storvsc_on_io_completion()
1186 vstor_packet->vm_srb.scsi_status = 0; in storvsc_on_io_completion()
1187 vstor_packet->vm_srb.srb_status = SRB_STATUS_SUCCESS; in storvsc_on_io_completion()
1191 stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status; in storvsc_on_io_completion()
1192 stor_pkt->vm_srb.srb_status = vstor_packet->vm_srb.srb_status; in storvsc_on_io_completion()
1198 stor_pkt->vm_srb.sense_info_length = min_t(u8, sense_buffer_size, in storvsc_on_io_completion()
1199 vstor_packet->vm_srb.sense_info_length); in storvsc_on_io_completion()
1201 if (vstor_packet->vm_srb.scsi_status != 0 || in storvsc_on_io_completion()
1202 vstor_packet->vm_srb.srb_status != SRB_STATUS_SUCCESS) { in storvsc_on_io_completion()
1209 int loglevel = (stor_pkt->vm_srb.cdb[0] == TEST_UNIT_READY) ? in storvsc_on_io_completion()
1215 stor_pkt->vm_srb.cdb[0], in storvsc_on_io_completion()
1216 vstor_packet->vm_srb.scsi_status, in storvsc_on_io_completion()
1217 vstor_packet->vm_srb.srb_status, in storvsc_on_io_completion()
1221 if (vstor_packet->vm_srb.scsi_status == SAM_STAT_CHECK_CONDITION && in storvsc_on_io_completion()
1222 (vstor_packet->vm_srb.srb_status & SRB_STATUS_AUTOSENSE_VALID)) in storvsc_on_io_completion()
1224 vstor_packet->vm_srb.sense_data, in storvsc_on_io_completion()
1225 stor_pkt->vm_srb.sense_info_length); in storvsc_on_io_completion()
1227 stor_pkt->vm_srb.data_transfer_length = in storvsc_on_io_completion()
1228 vstor_packet->vm_srb.data_transfer_length; in storvsc_on_io_completion()
1557 vstor_packet->vm_srb.length = (sizeof(struct vmscsi_request) - in storvsc_do_io()
1561 vstor_packet->vm_srb.sense_info_length = sense_buffer_size; in storvsc_do_io()
1564 vstor_packet->vm_srb.data_transfer_length = in storvsc_do_io()
1681 vstor_packet->vm_srb.path_id = stor_device->path_id; in storvsc_host_reset_handler()
1755 struct vmscsi_request *vm_srb; in storvsc_queuecommand() local
1779 vm_srb = &cmd_request->vstor_packet.vm_srb; in storvsc_queuecommand()
1780 vm_srb->win8_extension.time_out_value = 60; in storvsc_queuecommand()
1782 vm_srb->win8_extension.srb_flags |= in storvsc_queuecommand()
1786 vm_srb->win8_extension.srb_flags |= in storvsc_queuecommand()
1788 vm_srb->win8_extension.queue_tag = SP_UNTAGGED; in storvsc_queuecommand()
1789 vm_srb->win8_extension.queue_action = SRB_SIMPLE_TAG_REQUEST; in storvsc_queuecommand()
1795 vm_srb->data_in = WRITE_TYPE; in storvsc_queuecommand()
1796 vm_srb->win8_extension.srb_flags |= SRB_FLAGS_DATA_OUT; in storvsc_queuecommand()
1799 vm_srb->data_in = READ_TYPE; in storvsc_queuecommand()
1800 vm_srb->win8_extension.srb_flags |= SRB_FLAGS_DATA_IN; in storvsc_queuecommand()
1803 vm_srb->data_in = UNKNOWN_TYPE; in storvsc_queuecommand()
1804 vm_srb->win8_extension.srb_flags |= SRB_FLAGS_NO_DATA_TRANSFER; in storvsc_queuecommand()
1817 vm_srb->port_number = host_dev->port; in storvsc_queuecommand()
1818 vm_srb->path_id = scmnd->device->channel; in storvsc_queuecommand()
1819 vm_srb->target_id = scmnd->device->id; in storvsc_queuecommand()
1820 vm_srb->lun = scmnd->device->lun; in storvsc_queuecommand()
1822 vm_srb->cdb_length = scmnd->cmd_len; in storvsc_queuecommand()
1824 memcpy(vm_srb->cdb, scmnd->cmnd, vm_srb->cdb_length); in storvsc_queuecommand()