Lines Matching refs:vss_msg
107 static int vss_handle_handshake(struct hv_vss_msg *vss_msg) in vss_handle_handshake() argument
111 switch (vss_msg->vss_hdr.operation) { in vss_handle_handshake()
132 struct hv_vss_msg *vss_msg = (struct hv_vss_msg *)msg; in vss_on_msg() local
134 if (len != sizeof(*vss_msg)) { in vss_on_msg()
139 if (vss_msg->vss_hdr.operation == VSS_OP_REGISTER || in vss_on_msg()
140 vss_msg->vss_hdr.operation == VSS_OP_REGISTER1) { in vss_on_msg()
150 return vss_handle_handshake(vss_msg); in vss_on_msg()
154 if (vss_msg->vss_hdr.operation == VSS_OP_HOT_BACKUP) in vss_on_msg()
159 vss_respond_to_host(vss_msg->error); in vss_on_msg()
176 struct hv_vss_msg *vss_msg; in vss_send_op() local
184 vss_msg = kzalloc(sizeof(*vss_msg), GFP_KERNEL); in vss_send_op()
185 if (!vss_msg) in vss_send_op()
188 vss_msg->vss_hdr.operation = op; in vss_send_op()
195 rc = hvutil_transport_send(hvt, vss_msg, sizeof(*vss_msg), NULL); in vss_send_op()
204 kfree(vss_msg); in vss_send_op()
293 struct hv_vss_msg *vss_msg; in hv_vss_onchannelcallback() local
336 vss_msg = (struct hv_vss_msg *)&recv_buffer[ICMSG_HDR]; in hv_vss_onchannelcallback()
345 vss_transaction.msg = (struct hv_vss_msg *)vss_msg; in hv_vss_onchannelcallback()
407 struct hv_vss_msg *vss_msg; in hv_vss_pre_suspend() local
417 vss_msg = kzalloc(sizeof(*vss_msg), GFP_KERNEL); in hv_vss_pre_suspend()
418 if (!vss_msg) in hv_vss_pre_suspend()
423 vss_msg->vss_hdr.operation = VSS_OP_THAW; in hv_vss_pre_suspend()
429 hvutil_transport_send(hvt, vss_msg, sizeof(*vss_msg), NULL); in hv_vss_pre_suspend()
431 kfree(vss_msg); in hv_vss_pre_suspend()