Searched refs:vm_srb (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/scsi/
H A Dstorvsc_drv.c262 struct vmscsi_request vm_srb; member in union:vstor_packet::__anon9647
1032 static void storvsc_handle_error(struct vmscsi_request *vm_srb, storvsc_handle_error() argument
1041 switch (vm_srb->srb_status) { storvsc_handle_error()
1094 wrk->lun = vm_srb->lun; storvsc_handle_error()
1105 struct vmscsi_request *vm_srb; storvsc_command_completion() local
1115 vm_srb = &cmd_request->vstor_packet.vm_srb; storvsc_command_completion()
1117 if (vm_srb->data_in == READ_TYPE) storvsc_command_completion()
1126 scmnd->result = vm_srb->scsi_status; storvsc_command_completion()
1135 if (vm_srb->srb_status != SRB_STATUS_SUCCESS) storvsc_command_completion()
1136 storvsc_handle_error(vm_srb, scmnd, host, sense_hdr.asc, storvsc_command_completion()
1141 vm_srb->data_transfer_length); storvsc_command_completion()
1171 if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) || storvsc_on_io_completion()
1172 (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) { storvsc_on_io_completion()
1173 vstor_packet->vm_srb.scsi_status = 0; storvsc_on_io_completion()
1174 vstor_packet->vm_srb.srb_status = SRB_STATUS_SUCCESS; storvsc_on_io_completion()
1179 stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status; storvsc_on_io_completion()
1180 stor_pkt->vm_srb.srb_status = vstor_packet->vm_srb.srb_status; storvsc_on_io_completion()
1181 stor_pkt->vm_srb.sense_info_length = storvsc_on_io_completion()
1182 vstor_packet->vm_srb.sense_info_length; storvsc_on_io_completion()
1185 if ((vstor_packet->vm_srb.scsi_status & 0xFF) == 0x02) { storvsc_on_io_completion()
1187 if (vstor_packet->vm_srb.srb_status & storvsc_on_io_completion()
1192 vstor_packet->vm_srb.sense_data, storvsc_on_io_completion()
1193 vstor_packet->vm_srb.sense_info_length); storvsc_on_io_completion()
1198 stor_pkt->vm_srb.data_transfer_length = storvsc_on_io_completion()
1199 vstor_packet->vm_srb.data_transfer_length; storvsc_on_io_completion()
1373 vstor_packet->vm_srb.length = (sizeof(struct vmscsi_request) - storvsc_do_io()
1377 vstor_packet->vm_srb.sense_info_length = sense_buffer_size; storvsc_do_io()
1380 vstor_packet->vm_srb.data_transfer_length = storvsc_do_io()
1490 vstor_packet->vm_srb.path_id = stor_device->path_id; storvsc_host_reset_handler()
1560 struct vmscsi_request *vm_srb; storvsc_queuecommand() local
1584 vm_srb = &cmd_request->vstor_packet.vm_srb; storvsc_queuecommand()
1585 vm_srb->win8_extension.time_out_value = 60; storvsc_queuecommand()
1587 vm_srb->win8_extension.srb_flags |= storvsc_queuecommand()
1594 vm_srb->data_in = WRITE_TYPE; storvsc_queuecommand()
1595 vm_srb->win8_extension.srb_flags |= SRB_FLAGS_DATA_OUT; storvsc_queuecommand()
1598 vm_srb->data_in = READ_TYPE; storvsc_queuecommand()
1599 vm_srb->win8_extension.srb_flags |= SRB_FLAGS_DATA_IN; storvsc_queuecommand()
1602 vm_srb->data_in = UNKNOWN_TYPE; storvsc_queuecommand()
1603 vm_srb->win8_extension.srb_flags |= SRB_FLAGS_NO_DATA_TRANSFER; storvsc_queuecommand()
1608 vm_srb->port_number = host_dev->port; storvsc_queuecommand()
1609 vm_srb->path_id = scmnd->device->channel; storvsc_queuecommand()
1610 vm_srb->target_id = scmnd->device->id; storvsc_queuecommand()
1611 vm_srb->lun = scmnd->device->lun; storvsc_queuecommand()
1613 vm_srb->cdb_length = scmnd->cmd_len; storvsc_queuecommand()
1615 memcpy(vm_srb->cdb, scmnd->cmnd, vm_srb->cdb_length); storvsc_queuecommand()
1630 vm_srb->data_in); storvsc_queuecommand()
1637 if (vm_srb->data_in == WRITE_TYPE) storvsc_queuecommand()

Completed in 65 milliseconds