Lines Matching refs:vstor_packet

246 struct vstor_packet {  struct
358 struct vstor_packet vstor_packet; member
822 struct vstor_packet *vstor_packet; in handle_multichannel_storage() local
831 vstor_packet = &request->vstor_packet; in handle_multichannel_storage()
853 vstor_packet->operation = VSTOR_OPERATION_CREATE_SUB_CHANNELS; in handle_multichannel_storage()
854 vstor_packet->flags = REQUEST_COMPLETION_FLAG; in handle_multichannel_storage()
855 vstor_packet->sub_channel_count = num_sc; in handle_multichannel_storage()
857 ret = vmbus_sendpacket(device->channel, vstor_packet, in handle_multichannel_storage()
858 (sizeof(struct vstor_packet) - in handle_multichannel_storage()
871 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETE_IO || in handle_multichannel_storage()
872 vstor_packet->status != 0) in handle_multichannel_storage()
887 struct vstor_packet *vstor_packet; in storvsc_channel_init() local
897 vstor_packet = &request->vstor_packet; in storvsc_channel_init()
905 vstor_packet->operation = VSTOR_OPERATION_BEGIN_INITIALIZATION; in storvsc_channel_init()
906 vstor_packet->flags = REQUEST_COMPLETION_FLAG; in storvsc_channel_init()
908 ret = vmbus_sendpacket(device->channel, vstor_packet, in storvsc_channel_init()
909 (sizeof(struct vstor_packet) - in storvsc_channel_init()
923 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETE_IO || in storvsc_channel_init()
924 vstor_packet->status != 0) in storvsc_channel_init()
929 memset(vstor_packet, 0, sizeof(struct vstor_packet)); in storvsc_channel_init()
930 vstor_packet->operation = VSTOR_OPERATION_QUERY_PROTOCOL_VERSION; in storvsc_channel_init()
931 vstor_packet->flags = REQUEST_COMPLETION_FLAG; in storvsc_channel_init()
933 vstor_packet->version.major_minor = in storvsc_channel_init()
939 vstor_packet->version.revision = 0; in storvsc_channel_init()
941 ret = vmbus_sendpacket(device->channel, vstor_packet, in storvsc_channel_init()
942 (sizeof(struct vstor_packet) - in storvsc_channel_init()
956 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETE_IO || in storvsc_channel_init()
957 vstor_packet->status != 0) in storvsc_channel_init()
961 memset(vstor_packet, 0, sizeof(struct vstor_packet)); in storvsc_channel_init()
962 vstor_packet->operation = VSTOR_OPERATION_QUERY_PROPERTIES; in storvsc_channel_init()
963 vstor_packet->flags = REQUEST_COMPLETION_FLAG; in storvsc_channel_init()
965 ret = vmbus_sendpacket(device->channel, vstor_packet, in storvsc_channel_init()
966 (sizeof(struct vstor_packet) - in storvsc_channel_init()
981 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETE_IO || in storvsc_channel_init()
982 vstor_packet->status != 0) in storvsc_channel_init()
990 max_chns = vstor_packet->storage_channel_properties.max_channel_cnt; in storvsc_channel_init()
993 if (vstor_packet->storage_channel_properties.flags & in storvsc_channel_init()
998 vstor_packet->storage_channel_properties.max_transfer_bytes; in storvsc_channel_init()
1000 memset(vstor_packet, 0, sizeof(struct vstor_packet)); in storvsc_channel_init()
1001 vstor_packet->operation = VSTOR_OPERATION_END_INITIALIZATION; in storvsc_channel_init()
1002 vstor_packet->flags = REQUEST_COMPLETION_FLAG; in storvsc_channel_init()
1004 ret = vmbus_sendpacket(device->channel, vstor_packet, in storvsc_channel_init()
1005 (sizeof(struct vstor_packet) - in storvsc_channel_init()
1020 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETE_IO || in storvsc_channel_init()
1021 vstor_packet->status != 0) in storvsc_channel_init()
1115 vm_srb = &cmd_request->vstor_packet.vm_srb; in storvsc_command_completion()
1151 struct vstor_packet *vstor_packet, in storvsc_on_io_completion() argument
1155 struct vstor_packet *stor_pkt; in storvsc_on_io_completion()
1158 stor_pkt = &request->vstor_packet; in storvsc_on_io_completion()
1173 vstor_packet->vm_srb.scsi_status = 0; in storvsc_on_io_completion()
1174 vstor_packet->vm_srb.srb_status = SRB_STATUS_SUCCESS; in storvsc_on_io_completion()
1179 stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status; in storvsc_on_io_completion()
1180 stor_pkt->vm_srb.srb_status = vstor_packet->vm_srb.srb_status; in storvsc_on_io_completion()
1182 vstor_packet->vm_srb.sense_info_length; in storvsc_on_io_completion()
1185 if ((vstor_packet->vm_srb.scsi_status & 0xFF) == 0x02) { in storvsc_on_io_completion()
1187 if (vstor_packet->vm_srb.srb_status & in storvsc_on_io_completion()
1192 vstor_packet->vm_srb.sense_data, in storvsc_on_io_completion()
1193 vstor_packet->vm_srb.sense_info_length); in storvsc_on_io_completion()
1199 vstor_packet->vm_srb.data_transfer_length; in storvsc_on_io_completion()
1211 struct vstor_packet *vstor_packet, in storvsc_on_receive() argument
1217 switch (vstor_packet->operation) { in storvsc_on_receive()
1219 storvsc_on_io_completion(device, vstor_packet, request); in storvsc_on_receive()
1246 unsigned char packet[ALIGN(sizeof(struct vstor_packet), 8)]; in storvsc_on_channel_callback()
1261 ALIGN((sizeof(struct vstor_packet) - in storvsc_on_channel_callback()
1272 memcpy(&request->vstor_packet, packet, in storvsc_on_channel_callback()
1273 (sizeof(struct vstor_packet) - in storvsc_on_channel_callback()
1278 (struct vstor_packet *)packet, in storvsc_on_channel_callback()
1352 struct vstor_packet *vstor_packet; in storvsc_do_io() local
1356 vstor_packet = &request->vstor_packet; in storvsc_do_io()
1371 vstor_packet->flags |= REQUEST_COMPLETION_FLAG; in storvsc_do_io()
1373 vstor_packet->vm_srb.length = (sizeof(struct vmscsi_request) - in storvsc_do_io()
1377 vstor_packet->vm_srb.sense_info_length = sense_buffer_size; in storvsc_do_io()
1380 vstor_packet->vm_srb.data_transfer_length = in storvsc_do_io()
1383 vstor_packet->operation = VSTOR_OPERATION_EXECUTE_SRB; in storvsc_do_io()
1389 vstor_packet, in storvsc_do_io()
1390 (sizeof(struct vstor_packet) - in storvsc_do_io()
1394 ret = vmbus_sendpacket(outgoing_channel, vstor_packet, in storvsc_do_io()
1395 (sizeof(struct vstor_packet) - in storvsc_do_io()
1475 struct vstor_packet *vstor_packet; in storvsc_host_reset_handler() local
1484 vstor_packet = &request->vstor_packet; in storvsc_host_reset_handler()
1488 vstor_packet->operation = VSTOR_OPERATION_RESET_BUS; in storvsc_host_reset_handler()
1489 vstor_packet->flags = REQUEST_COMPLETION_FLAG; in storvsc_host_reset_handler()
1490 vstor_packet->vm_srb.path_id = stor_device->path_id; in storvsc_host_reset_handler()
1492 ret = vmbus_sendpacket(device->channel, vstor_packet, in storvsc_host_reset_handler()
1493 (sizeof(struct vstor_packet) - in storvsc_host_reset_handler()
1584 vm_srb = &cmd_request->vstor_packet.vm_srb; in storvsc_queuecommand()
1920 sizeof(struct vstor_packet) + sizeof(u64) - in storvsc_drv_init()