Lines Matching refs:vss_msg

110 static int vss_handle_handshake(struct hv_vss_msg *vss_msg)  in vss_handle_handshake()  argument
114 switch (vss_msg->vss_hdr.operation) { in vss_handle_handshake()
135 struct hv_vss_msg *vss_msg = (struct hv_vss_msg *)msg; in vss_on_msg() local
137 if (len != sizeof(*vss_msg)) { in vss_on_msg()
142 if (vss_msg->vss_hdr.operation == VSS_OP_REGISTER || in vss_on_msg()
143 vss_msg->vss_hdr.operation == VSS_OP_REGISTER1) { in vss_on_msg()
153 return vss_handle_handshake(vss_msg); in vss_on_msg()
157 if (vss_msg->vss_hdr.operation == VSS_OP_HOT_BACKUP) in vss_on_msg()
162 vss_respond_to_host(vss_msg->error); in vss_on_msg()
179 struct hv_vss_msg *vss_msg; in vss_send_op() local
187 vss_msg = kzalloc(sizeof(*vss_msg), GFP_KERNEL); in vss_send_op()
188 if (!vss_msg) in vss_send_op()
191 vss_msg->vss_hdr.operation = op; in vss_send_op()
199 rc = hvutil_transport_send(hvt, vss_msg, sizeof(*vss_msg), NULL); in vss_send_op()
208 kfree(vss_msg); in vss_send_op()
297 struct hv_vss_msg *vss_msg; in hv_vss_onchannelcallback() local
340 vss_msg = (struct hv_vss_msg *)&recv_buffer[ICMSG_HDR]; in hv_vss_onchannelcallback()
349 vss_transaction.msg = (struct hv_vss_msg *)vss_msg; in hv_vss_onchannelcallback()
417 struct hv_vss_msg *vss_msg; in hv_vss_pre_suspend() local
427 vss_msg = kzalloc(sizeof(*vss_msg), GFP_KERNEL); in hv_vss_pre_suspend()
428 if (!vss_msg) in hv_vss_pre_suspend()
433 vss_msg->vss_hdr.operation = VSS_OP_THAW; in hv_vss_pre_suspend()
439 hvutil_transport_send(hvt, vss_msg, sizeof(*vss_msg), NULL); in hv_vss_pre_suspend()
441 kfree(vss_msg); in hv_vss_pre_suspend()