Searched refs:vstor_packet (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/drivers/scsi/ |
H A D | storvsc_drv.c | 246 struct vstor_packet { struct 358 struct vstor_packet vstor_packet; member in struct:storvsc_cmd_request 822 struct vstor_packet *vstor_packet; handle_multichannel_storage() local 831 vstor_packet = &request->vstor_packet; handle_multichannel_storage() 853 vstor_packet->operation = VSTOR_OPERATION_CREATE_SUB_CHANNELS; handle_multichannel_storage() 854 vstor_packet->flags = REQUEST_COMPLETION_FLAG; handle_multichannel_storage() 855 vstor_packet->sub_channel_count = num_sc; handle_multichannel_storage() 857 ret = vmbus_sendpacket(device->channel, vstor_packet, handle_multichannel_storage() 858 (sizeof(struct vstor_packet) - handle_multichannel_storage() 871 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETE_IO || handle_multichannel_storage() 872 vstor_packet->status != 0) handle_multichannel_storage() 887 struct vstor_packet *vstor_packet; storvsc_channel_init() local 897 vstor_packet = &request->vstor_packet; storvsc_channel_init() 905 vstor_packet->operation = VSTOR_OPERATION_BEGIN_INITIALIZATION; storvsc_channel_init() 906 vstor_packet->flags = REQUEST_COMPLETION_FLAG; storvsc_channel_init() 908 ret = vmbus_sendpacket(device->channel, vstor_packet, storvsc_channel_init() 909 (sizeof(struct vstor_packet) - storvsc_channel_init() 923 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETE_IO || storvsc_channel_init() 924 vstor_packet->status != 0) storvsc_channel_init() 929 memset(vstor_packet, 0, sizeof(struct vstor_packet)); storvsc_channel_init() 930 vstor_packet->operation = VSTOR_OPERATION_QUERY_PROTOCOL_VERSION; storvsc_channel_init() 931 vstor_packet->flags = REQUEST_COMPLETION_FLAG; storvsc_channel_init() 933 vstor_packet->version.major_minor = storvsc_channel_init() 939 vstor_packet->version.revision = 0; storvsc_channel_init() 941 ret = vmbus_sendpacket(device->channel, vstor_packet, storvsc_channel_init() 942 (sizeof(struct vstor_packet) - storvsc_channel_init() 956 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETE_IO || storvsc_channel_init() 957 vstor_packet->status != 0) storvsc_channel_init() 961 memset(vstor_packet, 0, sizeof(struct vstor_packet)); storvsc_channel_init() 962 vstor_packet->operation = VSTOR_OPERATION_QUERY_PROPERTIES; storvsc_channel_init() 963 vstor_packet->flags = REQUEST_COMPLETION_FLAG; storvsc_channel_init() 965 ret = vmbus_sendpacket(device->channel, vstor_packet, storvsc_channel_init() 966 (sizeof(struct vstor_packet) - storvsc_channel_init() 981 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETE_IO || storvsc_channel_init() 982 vstor_packet->status != 0) storvsc_channel_init() 990 max_chns = vstor_packet->storage_channel_properties.max_channel_cnt; storvsc_channel_init() 993 if (vstor_packet->storage_channel_properties.flags & storvsc_channel_init() 998 vstor_packet->storage_channel_properties.max_transfer_bytes; storvsc_channel_init() 1000 memset(vstor_packet, 0, sizeof(struct vstor_packet)); storvsc_channel_init() 1001 vstor_packet->operation = VSTOR_OPERATION_END_INITIALIZATION; storvsc_channel_init() 1002 vstor_packet->flags = REQUEST_COMPLETION_FLAG; storvsc_channel_init() 1004 ret = vmbus_sendpacket(device->channel, vstor_packet, storvsc_channel_init() 1005 (sizeof(struct vstor_packet) - storvsc_channel_init() 1020 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETE_IO || storvsc_channel_init() 1021 vstor_packet->status != 0) storvsc_channel_init() 1115 vm_srb = &cmd_request->vstor_packet.vm_srb; storvsc_command_completion() 1151 struct vstor_packet *vstor_packet, storvsc_on_io_completion() 1155 struct vstor_packet *stor_pkt; storvsc_on_io_completion() 1158 stor_pkt = &request->vstor_packet; 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() 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() 1199 vstor_packet->vm_srb.data_transfer_length; storvsc_on_io_completion() 1211 struct vstor_packet *vstor_packet, storvsc_on_receive() 1217 switch (vstor_packet->operation) { storvsc_on_receive() 1219 storvsc_on_io_completion(device, vstor_packet, request); storvsc_on_receive() 1246 unsigned char packet[ALIGN(sizeof(struct vstor_packet), 8)]; storvsc_on_channel_callback() 1261 ALIGN((sizeof(struct vstor_packet) - storvsc_on_channel_callback() 1272 memcpy(&request->vstor_packet, packet, storvsc_on_channel_callback() 1273 (sizeof(struct vstor_packet) - storvsc_on_channel_callback() 1278 (struct vstor_packet *)packet, storvsc_on_channel_callback() 1352 struct vstor_packet *vstor_packet; storvsc_do_io() local 1356 vstor_packet = &request->vstor_packet; storvsc_do_io() 1371 vstor_packet->flags |= REQUEST_COMPLETION_FLAG; storvsc_do_io() 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() 1383 vstor_packet->operation = VSTOR_OPERATION_EXECUTE_SRB; storvsc_do_io() 1389 vstor_packet, storvsc_do_io() 1390 (sizeof(struct vstor_packet) - storvsc_do_io() 1394 ret = vmbus_sendpacket(outgoing_channel, vstor_packet, storvsc_do_io() 1395 (sizeof(struct vstor_packet) - storvsc_do_io() 1475 struct vstor_packet *vstor_packet; storvsc_host_reset_handler() local 1484 vstor_packet = &request->vstor_packet; storvsc_host_reset_handler() 1488 vstor_packet->operation = VSTOR_OPERATION_RESET_BUS; storvsc_host_reset_handler() 1489 vstor_packet->flags = REQUEST_COMPLETION_FLAG; storvsc_host_reset_handler() 1490 vstor_packet->vm_srb.path_id = stor_device->path_id; storvsc_host_reset_handler() 1492 ret = vmbus_sendpacket(device->channel, vstor_packet, storvsc_host_reset_handler() 1493 (sizeof(struct vstor_packet) - storvsc_host_reset_handler() 1584 vm_srb = &cmd_request->vstor_packet.vm_srb; storvsc_queuecommand() 1915 * vmbus_channel_packet_multipage_buffer + struct vstor_packet + u64) storvsc_drv_init() 1920 sizeof(struct vstor_packet) + sizeof(u64) - storvsc_drv_init() 1150 storvsc_on_io_completion(struct hv_device *device, struct vstor_packet *vstor_packet, struct storvsc_cmd_request *request) storvsc_on_io_completion() argument 1210 storvsc_on_receive(struct hv_device *device, struct vstor_packet *vstor_packet, struct storvsc_cmd_request *request) storvsc_on_receive() argument
|
Completed in 57 milliseconds