Lines Matching refs:cmd_request
1073 static void storvsc_command_completion(struct storvsc_cmd_request *cmd_request, in storvsc_command_completion() argument
1076 struct scsi_cmnd *scmnd = cmd_request->cmd; in storvsc_command_completion()
1081 u32 payload_sz = cmd_request->payload_sz; in storvsc_command_completion()
1082 void *payload = cmd_request->payload; in storvsc_command_completion()
1087 vm_srb = &cmd_request->vstor_packet.vm_srb; in storvsc_command_completion()
1114 if (data_transfer_length > cmd_request->payload->range.len) in storvsc_command_completion()
1115 data_transfer_length = cmd_request->payload->range.len; in storvsc_command_completion()
1118 cmd_request->payload->range.len - data_transfer_length); in storvsc_command_completion()
1715 struct storvsc_cmd_request *cmd_request = scsi_cmd_priv(scmnd); in storvsc_queuecommand() local
1738 cmd_request->cmd = scmnd; in storvsc_queuecommand()
1740 memset(&cmd_request->vstor_packet, 0, sizeof(struct vstor_packet)); in storvsc_queuecommand()
1741 vm_srb = &cmd_request->vstor_packet.vm_srb; in storvsc_queuecommand()
1791 payload = (struct vmbus_packet_mpb_array *)&cmd_request->mpb; in storvsc_queuecommand()
1844 cmd_request->payload = payload; in storvsc_queuecommand()
1845 cmd_request->payload_sz = payload_sz; in storvsc_queuecommand()
1848 ret = storvsc_do_io(dev, cmd_request, get_cpu()); in storvsc_queuecommand()
1863 if (payload_sz > sizeof(cmd_request->mpb)) in storvsc_queuecommand()