Lines Matching refs:cmd_request
1088 static void storvsc_command_completion(struct storvsc_cmd_request *cmd_request, in storvsc_command_completion() argument
1091 struct scsi_cmnd *scmnd = cmd_request->cmd; in storvsc_command_completion()
1096 u32 payload_sz = cmd_request->payload_sz; in storvsc_command_completion()
1097 void *payload = cmd_request->payload; in storvsc_command_completion()
1101 vm_srb = &cmd_request->vstor_packet.vm_srb; in storvsc_command_completion()
1129 if (data_transfer_length > cmd_request->payload->range.len) in storvsc_command_completion()
1130 data_transfer_length = cmd_request->payload->range.len; in storvsc_command_completion()
1133 cmd_request->payload->range.len - data_transfer_length); in storvsc_command_completion()
1676 struct storvsc_cmd_request *cmd_request = scsi_cmd_priv(scmnd); in storvsc_queuecommand() local
1702 cmd_request->cmd = scmnd; in storvsc_queuecommand()
1704 memset(&cmd_request->vstor_packet, 0, sizeof(struct vstor_packet)); in storvsc_queuecommand()
1705 vm_srb = &cmd_request->vstor_packet.vm_srb; in storvsc_queuecommand()
1756 payload = (struct vmbus_packet_mpb_array *)&cmd_request->mpb; in storvsc_queuecommand()
1822 cmd_request->payload = payload; in storvsc_queuecommand()
1823 cmd_request->payload_sz = payload_sz; in storvsc_queuecommand()
1826 ret = storvsc_do_io(dev, cmd_request, get_cpu()); in storvsc_queuecommand()
1830 if (payload_sz > sizeof(cmd_request->mpb)) in storvsc_queuecommand()