Lines Matching refs:cmd_request
1080 static void storvsc_command_completion(struct storvsc_cmd_request *cmd_request, in storvsc_command_completion() argument
1083 struct scsi_cmnd *scmnd = cmd_request->cmd; in storvsc_command_completion()
1088 u32 payload_sz = cmd_request->payload_sz; in storvsc_command_completion()
1089 void *payload = cmd_request->payload; in storvsc_command_completion()
1094 vm_srb = &cmd_request->vstor_packet.vm_srb; in storvsc_command_completion()
1121 if (data_transfer_length > cmd_request->payload->range.len) in storvsc_command_completion()
1122 data_transfer_length = cmd_request->payload->range.len; in storvsc_command_completion()
1125 cmd_request->payload->range.len - data_transfer_length); in storvsc_command_completion()
1728 struct storvsc_cmd_request *cmd_request = scsi_cmd_priv(scmnd); in storvsc_queuecommand() local
1751 cmd_request->cmd = scmnd; in storvsc_queuecommand()
1753 memset(&cmd_request->vstor_packet, 0, sizeof(struct vstor_packet)); in storvsc_queuecommand()
1754 vm_srb = &cmd_request->vstor_packet.vm_srb; in storvsc_queuecommand()
1804 payload = (struct vmbus_packet_mpb_array *)&cmd_request->mpb; in storvsc_queuecommand()
1859 cmd_request->payload = payload; in storvsc_queuecommand()
1860 cmd_request->payload_sz = payload_sz; in storvsc_queuecommand()
1863 ret = storvsc_do_io(dev, cmd_request, get_cpu()); in storvsc_queuecommand()
1878 if (payload_sz > sizeof(cmd_request->mpb)) in storvsc_queuecommand()