Lines Matching refs:vm_srb

323 		struct vmscsi_request vm_srb;  member
994 static void storvsc_handle_error(struct vmscsi_request *vm_srb, in storvsc_handle_error() argument
1003 switch (SRB_STATUS(vm_srb->srb_status)) { in storvsc_handle_error()
1007 if (vm_srb->srb_status & SRB_STATUS_AUTOSENSE_VALID) { in storvsc_handle_error()
1065 wrk->lun = vm_srb->lun; in storvsc_handle_error()
1066 wrk->tgt_id = vm_srb->target_id; in storvsc_handle_error()
1077 struct vmscsi_request *vm_srb; in storvsc_command_completion() local
1085 vm_srb = &cmd_request->vstor_packet.vm_srb; in storvsc_command_completion()
1086 data_transfer_length = vm_srb->data_transfer_length; in storvsc_command_completion()
1088 scmnd->result = vm_srb->scsi_status; in storvsc_command_completion()
1100 if (vm_srb->srb_status != SRB_STATUS_SUCCESS) { in storvsc_command_completion()
1101 storvsc_handle_error(vm_srb, scmnd, host, sense_hdr.asc, in storvsc_command_completion()
1108 if (vm_srb->srb_status != SRB_STATUS_DATA_OVERRUN) in storvsc_command_completion()
1146 if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) || in storvsc_on_io_completion()
1147 (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) { in storvsc_on_io_completion()
1148 vstor_packet->vm_srb.scsi_status = 0; in storvsc_on_io_completion()
1149 vstor_packet->vm_srb.srb_status = SRB_STATUS_SUCCESS; in storvsc_on_io_completion()
1154 stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status; in storvsc_on_io_completion()
1155 stor_pkt->vm_srb.srb_status = vstor_packet->vm_srb.srb_status; in storvsc_on_io_completion()
1158 if (vstor_packet->vm_srb.sense_info_length > sense_buffer_size) in storvsc_on_io_completion()
1159 vstor_packet->vm_srb.sense_info_length = sense_buffer_size; in storvsc_on_io_completion()
1161 stor_pkt->vm_srb.sense_info_length = in storvsc_on_io_completion()
1162 vstor_packet->vm_srb.sense_info_length; in storvsc_on_io_completion()
1164 if (vstor_packet->vm_srb.scsi_status != 0 || in storvsc_on_io_completion()
1165 vstor_packet->vm_srb.srb_status != SRB_STATUS_SUCCESS) in storvsc_on_io_completion()
1168 stor_pkt->vm_srb.cdb[0], in storvsc_on_io_completion()
1169 vstor_packet->vm_srb.scsi_status, in storvsc_on_io_completion()
1170 vstor_packet->vm_srb.srb_status); in storvsc_on_io_completion()
1172 if ((vstor_packet->vm_srb.scsi_status & 0xFF) == 0x02) { in storvsc_on_io_completion()
1174 if (vstor_packet->vm_srb.srb_status & in storvsc_on_io_completion()
1180 request, vstor_packet->vm_srb.sense_info_length); in storvsc_on_io_completion()
1183 vstor_packet->vm_srb.sense_data, in storvsc_on_io_completion()
1184 vstor_packet->vm_srb.sense_info_length); in storvsc_on_io_completion()
1189 stor_pkt->vm_srb.data_transfer_length = in storvsc_on_io_completion()
1190 vstor_packet->vm_srb.data_transfer_length; in storvsc_on_io_completion()
1467 vstor_packet->vm_srb.length = (sizeof(struct vmscsi_request) - in storvsc_do_io()
1471 vstor_packet->vm_srb.sense_info_length = sense_buffer_size; in storvsc_do_io()
1474 vstor_packet->vm_srb.data_transfer_length = in storvsc_do_io()
1592 vstor_packet->vm_srb.path_id = stor_device->path_id; in storvsc_host_reset_handler()
1666 struct vmscsi_request *vm_srb; in storvsc_queuecommand() local
1691 vm_srb = &cmd_request->vstor_packet.vm_srb; in storvsc_queuecommand()
1692 vm_srb->win8_extension.time_out_value = 60; in storvsc_queuecommand()
1694 vm_srb->win8_extension.srb_flags |= in storvsc_queuecommand()
1698 vm_srb->win8_extension.srb_flags |= in storvsc_queuecommand()
1700 vm_srb->win8_extension.queue_tag = SP_UNTAGGED; in storvsc_queuecommand()
1701 vm_srb->win8_extension.queue_action = SRB_SIMPLE_TAG_REQUEST; in storvsc_queuecommand()
1707 vm_srb->data_in = WRITE_TYPE; in storvsc_queuecommand()
1708 vm_srb->win8_extension.srb_flags |= SRB_FLAGS_DATA_OUT; in storvsc_queuecommand()
1711 vm_srb->data_in = READ_TYPE; in storvsc_queuecommand()
1712 vm_srb->win8_extension.srb_flags |= SRB_FLAGS_DATA_IN; in storvsc_queuecommand()
1715 vm_srb->data_in = UNKNOWN_TYPE; in storvsc_queuecommand()
1716 vm_srb->win8_extension.srb_flags |= SRB_FLAGS_NO_DATA_TRANSFER; in storvsc_queuecommand()
1729 vm_srb->port_number = host_dev->port; in storvsc_queuecommand()
1730 vm_srb->path_id = scmnd->device->channel; in storvsc_queuecommand()
1731 vm_srb->target_id = scmnd->device->id; in storvsc_queuecommand()
1732 vm_srb->lun = scmnd->device->lun; in storvsc_queuecommand()
1734 vm_srb->cdb_length = scmnd->cmd_len; in storvsc_queuecommand()
1736 memcpy(vm_srb->cdb, scmnd->cmnd, vm_srb->cdb_length); in storvsc_queuecommand()