Lines Matching refs:vm_srb
312 struct vmscsi_request vm_srb; member
855 static void storvsc_handle_error(struct vmscsi_request *vm_srb, in storvsc_handle_error() argument
864 switch (SRB_STATUS(vm_srb->srb_status)) { in storvsc_handle_error()
893 if (vm_srb->srb_status & SRB_STATUS_AUTOSENSE_VALID && in storvsc_handle_error()
918 wrk->lun = vm_srb->lun; in storvsc_handle_error()
929 struct vmscsi_request *vm_srb; in storvsc_command_completion() local
939 vm_srb = &cmd_request->vstor_packet.vm_srb; in storvsc_command_completion()
941 scmnd->result = vm_srb->scsi_status; in storvsc_command_completion()
950 if (vm_srb->srb_status != SRB_STATUS_SUCCESS) in storvsc_command_completion()
951 storvsc_handle_error(vm_srb, scmnd, host, sense_hdr.asc, in storvsc_command_completion()
956 vm_srb->data_transfer_length); in storvsc_command_completion()
986 if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) || in storvsc_on_io_completion()
987 (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) { in storvsc_on_io_completion()
988 vstor_packet->vm_srb.scsi_status = 0; in storvsc_on_io_completion()
989 vstor_packet->vm_srb.srb_status = SRB_STATUS_SUCCESS; in storvsc_on_io_completion()
994 stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status; in storvsc_on_io_completion()
995 stor_pkt->vm_srb.srb_status = vstor_packet->vm_srb.srb_status; in storvsc_on_io_completion()
996 stor_pkt->vm_srb.sense_info_length = in storvsc_on_io_completion()
997 vstor_packet->vm_srb.sense_info_length; in storvsc_on_io_completion()
1000 if ((vstor_packet->vm_srb.scsi_status & 0xFF) == 0x02) { in storvsc_on_io_completion()
1002 if (vstor_packet->vm_srb.srb_status & in storvsc_on_io_completion()
1007 vstor_packet->vm_srb.sense_data, in storvsc_on_io_completion()
1008 vstor_packet->vm_srb.sense_info_length); in storvsc_on_io_completion()
1013 stor_pkt->vm_srb.data_transfer_length = in storvsc_on_io_completion()
1014 vstor_packet->vm_srb.data_transfer_length; in storvsc_on_io_completion()
1188 vstor_packet->vm_srb.length = (sizeof(struct vmscsi_request) - in storvsc_do_io()
1192 vstor_packet->vm_srb.sense_info_length = sense_buffer_size; in storvsc_do_io()
1195 vstor_packet->vm_srb.data_transfer_length = in storvsc_do_io()
1312 vstor_packet->vm_srb.path_id = stor_device->path_id; in storvsc_host_reset_handler()
1382 struct vmscsi_request *vm_srb; in storvsc_queuecommand() local
1406 vm_srb = &cmd_request->vstor_packet.vm_srb; in storvsc_queuecommand()
1407 vm_srb->win8_extension.time_out_value = 60; in storvsc_queuecommand()
1409 vm_srb->win8_extension.srb_flags |= in storvsc_queuecommand()
1415 vm_srb->data_in = WRITE_TYPE; in storvsc_queuecommand()
1416 vm_srb->win8_extension.srb_flags |= SRB_FLAGS_DATA_OUT; in storvsc_queuecommand()
1419 vm_srb->data_in = READ_TYPE; in storvsc_queuecommand()
1420 vm_srb->win8_extension.srb_flags |= SRB_FLAGS_DATA_IN; in storvsc_queuecommand()
1423 vm_srb->data_in = UNKNOWN_TYPE; in storvsc_queuecommand()
1424 vm_srb->win8_extension.srb_flags |= SRB_FLAGS_NO_DATA_TRANSFER; in storvsc_queuecommand()
1437 vm_srb->port_number = host_dev->port; in storvsc_queuecommand()
1438 vm_srb->path_id = scmnd->device->channel; in storvsc_queuecommand()
1439 vm_srb->target_id = scmnd->device->id; in storvsc_queuecommand()
1440 vm_srb->lun = scmnd->device->lun; in storvsc_queuecommand()
1442 vm_srb->cdb_length = scmnd->cmd_len; in storvsc_queuecommand()
1444 memcpy(vm_srb->cdb, scmnd->cmnd, vm_srb->cdb_length); in storvsc_queuecommand()