Lines Matching refs:vstor_packet

262 struct vstor_packet {  struct
391 sizeof(struct vstor_packet))
405 struct vstor_packet vstor_packet; member
724 struct vstor_packet *vstor_packet; in handle_multichannel_storage() local
744 vstor_packet = &request->vstor_packet; in handle_multichannel_storage()
756 vstor_packet->operation = VSTOR_OPERATION_CREATE_SUB_CHANNELS; in handle_multichannel_storage()
757 vstor_packet->flags = REQUEST_COMPLETION_FLAG; in handle_multichannel_storage()
758 vstor_packet->sub_channel_count = num_sc; in handle_multichannel_storage()
760 ret = vmbus_sendpacket(device->channel, vstor_packet, in handle_multichannel_storage()
761 sizeof(struct vstor_packet), in handle_multichannel_storage()
777 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETE_IO || in handle_multichannel_storage()
778 vstor_packet->status != 0) { in handle_multichannel_storage()
780 vstor_packet->operation, vstor_packet->status); in handle_multichannel_storage()
792 struct vstor_packet *vstor_packet) in cache_wwn() argument
797 if (vstor_packet->wwn_packet.primary_active) { in cache_wwn()
799 wwn_to_u64(vstor_packet->wwn_packet.primary_node_wwn); in cache_wwn()
801 wwn_to_u64(vstor_packet->wwn_packet.primary_port_wwn); in cache_wwn()
804 wwn_to_u64(vstor_packet->wwn_packet.secondary_node_wwn); in cache_wwn()
806 wwn_to_u64(vstor_packet->wwn_packet.secondary_port_wwn); in cache_wwn()
816 struct vstor_packet *vstor_packet; in storvsc_execute_vstor_op() local
823 vstor_packet = &request->vstor_packet; in storvsc_execute_vstor_op()
826 vstor_packet->flags = REQUEST_COMPLETION_FLAG; in storvsc_execute_vstor_op()
828 ret = vmbus_sendpacket(device->channel, vstor_packet, in storvsc_execute_vstor_op()
829 sizeof(struct vstor_packet), in storvsc_execute_vstor_op()
843 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETE_IO || in storvsc_execute_vstor_op()
844 vstor_packet->status != 0) in storvsc_execute_vstor_op()
854 struct vstor_packet *vstor_packet; in storvsc_channel_init() local
864 vstor_packet = &request->vstor_packet; in storvsc_channel_init()
871 vstor_packet->operation = VSTOR_OPERATION_BEGIN_INITIALIZATION; in storvsc_channel_init()
881 memset(vstor_packet, 0, sizeof(struct vstor_packet)); in storvsc_channel_init()
882 vstor_packet->operation = in storvsc_channel_init()
885 vstor_packet->version.major_minor = protocol_version[i]; in storvsc_channel_init()
890 vstor_packet->version.revision = 0; in storvsc_channel_init()
895 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETE_IO) in storvsc_channel_init()
898 if (vstor_packet->status == 0) { in storvsc_channel_init()
905 if (vstor_packet->status != 0) { in storvsc_channel_init()
911 memset(vstor_packet, 0, sizeof(struct vstor_packet)); in storvsc_channel_init()
912 vstor_packet->operation = VSTOR_OPERATION_QUERY_PROPERTIES; in storvsc_channel_init()
922 max_chns = vstor_packet->storage_channel_properties.max_channel_cnt; in storvsc_channel_init()
943 if (vstor_packet->storage_channel_properties.flags & in storvsc_channel_init()
948 vstor_packet->storage_channel_properties.max_transfer_bytes; in storvsc_channel_init()
956 memset(vstor_packet, 0, sizeof(struct vstor_packet)); in storvsc_channel_init()
957 vstor_packet->operation = VSTOR_OPERATION_FCHBA_DATA; in storvsc_channel_init()
965 cache_wwn(stor_device, vstor_packet); in storvsc_channel_init()
969 memset(vstor_packet, 0, sizeof(struct vstor_packet)); in storvsc_channel_init()
970 vstor_packet->operation = VSTOR_OPERATION_END_INITIALIZATION; in storvsc_channel_init()
1094 vm_srb = &cmd_request->vstor_packet.vm_srb; in storvsc_command_completion()
1135 struct vstor_packet *vstor_packet, in storvsc_on_io_completion() argument
1138 struct vstor_packet *stor_pkt; in storvsc_on_io_completion()
1141 stor_pkt = &request->vstor_packet; in storvsc_on_io_completion()
1159 vstor_packet->vm_srb.scsi_status = 0; in storvsc_on_io_completion()
1160 vstor_packet->vm_srb.srb_status = SRB_STATUS_SUCCESS; in storvsc_on_io_completion()
1164 stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status; in storvsc_on_io_completion()
1165 stor_pkt->vm_srb.srb_status = vstor_packet->vm_srb.srb_status; in storvsc_on_io_completion()
1172 vstor_packet->vm_srb.sense_info_length); in storvsc_on_io_completion()
1174 if (vstor_packet->vm_srb.scsi_status != 0 || in storvsc_on_io_completion()
1175 vstor_packet->vm_srb.srb_status != SRB_STATUS_SUCCESS) { in storvsc_on_io_completion()
1189 vstor_packet->vm_srb.scsi_status, in storvsc_on_io_completion()
1190 vstor_packet->vm_srb.srb_status, in storvsc_on_io_completion()
1191 vstor_packet->status); in storvsc_on_io_completion()
1194 if (vstor_packet->vm_srb.scsi_status == SAM_STAT_CHECK_CONDITION && in storvsc_on_io_completion()
1195 (vstor_packet->vm_srb.srb_status & SRB_STATUS_AUTOSENSE_VALID)) in storvsc_on_io_completion()
1197 vstor_packet->vm_srb.sense_data, in storvsc_on_io_completion()
1201 vstor_packet->vm_srb.data_transfer_length; in storvsc_on_io_completion()
1211 struct vstor_packet *vstor_packet, in storvsc_on_receive() argument
1215 switch (vstor_packet->operation) { in storvsc_on_receive()
1217 storvsc_on_io_completion(stor_device, vstor_packet, request); in storvsc_on_receive()
1228 cache_wwn(stor_device, vstor_packet); in storvsc_on_receive()
1260 struct vstor_packet *packet = hv_pkt_data(desc); in storvsc_on_channel_callback()
1264 u32 minlen = rqst_id ? sizeof(struct vstor_packet) : in storvsc_on_channel_callback()
1325 memcpy(&request->vstor_packet, packet, in storvsc_on_channel_callback()
1326 sizeof(struct vstor_packet)); in storvsc_on_channel_callback()
1451 struct vstor_packet *vstor_packet; in storvsc_do_io() local
1458 vstor_packet = &request->vstor_packet; in storvsc_do_io()
1537 vstor_packet->flags |= REQUEST_COMPLETION_FLAG; in storvsc_do_io()
1539 vstor_packet->vm_srb.length = sizeof(struct vmscsi_request); in storvsc_do_io()
1542 vstor_packet->vm_srb.sense_info_length = STORVSC_SENSE_BUFFER_SIZE; in storvsc_do_io()
1545 vstor_packet->vm_srb.data_transfer_length = in storvsc_do_io()
1548 vstor_packet->operation = VSTOR_OPERATION_EXECUTE_SRB; in storvsc_do_io()
1554 vstor_packet, in storvsc_do_io()
1555 sizeof(struct vstor_packet), in storvsc_do_io()
1558 ret = vmbus_sendpacket(outgoing_channel, vstor_packet, in storvsc_do_io()
1559 sizeof(struct vstor_packet), in storvsc_do_io()
1648 struct vstor_packet *vstor_packet; in storvsc_host_reset_handler() local
1656 vstor_packet = &request->vstor_packet; in storvsc_host_reset_handler()
1657 memset(vstor_packet, 0, sizeof(struct vstor_packet)); in storvsc_host_reset_handler()
1661 vstor_packet->operation = VSTOR_OPERATION_RESET_BUS; in storvsc_host_reset_handler()
1662 vstor_packet->flags = REQUEST_COMPLETION_FLAG; in storvsc_host_reset_handler()
1663 vstor_packet->vm_srb.path_id = stor_device->path_id; in storvsc_host_reset_handler()
1665 ret = vmbus_sendpacket(device->channel, vstor_packet, in storvsc_host_reset_handler()
1666 sizeof(struct vstor_packet), in storvsc_host_reset_handler()
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()
2221 sizeof(struct vstor_packet) + sizeof(u64), in storvsc_drv_init()