Lines Matching refs:msg

190     struct hyperv_message msg;  member
286 memcpy(dst_msg, &staged_msg->msg, sizeof(*dst_msg)); in cpu_post_msg()
321 memcpy(&staged_msg->msg, src_msg, sizeof(*src_msg)); in hyperv_post_msg()
608 struct hyperv_post_message_input *msg; in hyperv_hcall_post_message() local
614 if (param & (__alignof__(*msg) - 1)) { in hyperv_hcall_post_message()
618 len = sizeof(*msg); in hyperv_hcall_post_message()
619 msg = cpu_physical_memory_map(param, &len, 0); in hyperv_hcall_post_message()
620 if (len < sizeof(*msg)) { in hyperv_hcall_post_message()
624 if (msg->payload_size > sizeof(msg->payload)) { in hyperv_hcall_post_message()
632 if (mh->conn_id == (msg->connection_id & HV_CONNECTION_ID_MASK)) { in hyperv_hcall_post_message()
633 ret = mh->handler(msg, mh->data); in hyperv_hcall_post_message()
640 cpu_physical_memory_unmap(msg, len, 0, 0); in hyperv_hcall_post_message()
750 HvSynDbgMsg msg; in hyperv_hcall_reset_dbg_session() local
766 msg.type = HV_SYNDBG_MSG_CONNECTION_INFO; in hyperv_hcall_reset_dbg_session()
767 ret = hv_syndbg_handler(hv_syndbg_context, &msg); in hyperv_hcall_reset_dbg_session()
772 reset_dbg_session->host_ip = msg.u.connection_info.host_ip; in hyperv_hcall_reset_dbg_session()
773 reset_dbg_session->host_port = msg.u.connection_info.host_port; in hyperv_hcall_reset_dbg_session()
777 reset_dbg_session->target_ip = msg.u.connection_info.host_ip; in hyperv_hcall_reset_dbg_session()
778 reset_dbg_session->target_port = msg.u.connection_info.host_port; in hyperv_hcall_reset_dbg_session()
797 HvSynDbgMsg msg; in hyperv_hcall_retreive_dbg_data() local
818 msg.type = HV_SYNDBG_MSG_RECV; in hyperv_hcall_retreive_dbg_data()
819 msg.u.recv.buf_gpa = outgpa + sizeof(*debug_data_out); in hyperv_hcall_retreive_dbg_data()
820 msg.u.recv.count = TARGET_PAGE_SIZE - sizeof(*debug_data_out); in hyperv_hcall_retreive_dbg_data()
821 msg.u.recv.options = debug_data_in->options; in hyperv_hcall_retreive_dbg_data()
822 msg.u.recv.timeout = debug_data_in->timeout; in hyperv_hcall_retreive_dbg_data()
823 msg.u.recv.is_raw = true; in hyperv_hcall_retreive_dbg_data()
824 ret = hv_syndbg_handler(hv_syndbg_context, &msg); in hyperv_hcall_retreive_dbg_data()
833 debug_data_out->retrieved_count = msg.u.recv.retrieved_count; in hyperv_hcall_retreive_dbg_data()
835 debug_data_in->count - msg.u.recv.retrieved_count; in hyperv_hcall_retreive_dbg_data()
856 HvSynDbgMsg msg; in hyperv_hcall_post_dbg_data() local
882 msg.type = HV_SYNDBG_MSG_SEND; in hyperv_hcall_post_dbg_data()
883 msg.u.send.buf_gpa = ingpa + sizeof(*post_data_in); in hyperv_hcall_post_dbg_data()
884 msg.u.send.count = post_data_in->count; in hyperv_hcall_post_dbg_data()
885 msg.u.send.is_raw = true; in hyperv_hcall_post_dbg_data()
886 ret = hv_syndbg_handler(hv_syndbg_context, &msg); in hyperv_hcall_post_dbg_data()
891 post_data_out->pending_count = msg.u.send.pending_count; in hyperv_hcall_post_dbg_data()
910 HvSynDbgMsg msg; in hyperv_syndbg_send() local
916 msg.type = HV_SYNDBG_MSG_SEND; in hyperv_syndbg_send()
917 msg.u.send.buf_gpa = ingpa; in hyperv_syndbg_send()
918 msg.u.send.count = count; in hyperv_syndbg_send()
919 msg.u.send.is_raw = false; in hyperv_syndbg_send()
920 if (hv_syndbg_handler(hv_syndbg_context, &msg)) { in hyperv_syndbg_send()
930 HvSynDbgMsg msg; in hyperv_syndbg_recv() local
936 msg.type = HV_SYNDBG_MSG_RECV; in hyperv_syndbg_recv()
937 msg.u.recv.buf_gpa = ingpa; in hyperv_syndbg_recv()
938 msg.u.recv.count = count; in hyperv_syndbg_recv()
939 msg.u.recv.options = 0; in hyperv_syndbg_recv()
940 msg.u.recv.timeout = 0; in hyperv_syndbg_recv()
941 msg.u.recv.is_raw = false; in hyperv_syndbg_recv()
942 ret = hv_syndbg_handler(hv_syndbg_context, &msg); in hyperv_syndbg_recv()
948 msg.u.recv.retrieved_count); in hyperv_syndbg_recv()
953 HvSynDbgMsg msg; in hyperv_syndbg_set_pending_page() local
959 msg.type = HV_SYNDBG_MSG_SET_PENDING_PAGE; in hyperv_syndbg_set_pending_page()
960 msg.u.pending_page.buf_gpa = ingpa; in hyperv_syndbg_set_pending_page()
961 hv_syndbg_handler(hv_syndbg_context, &msg); in hyperv_syndbg_set_pending_page()
966 HvSynDbgMsg msg; in hyperv_syndbg_query_options() local
972 msg.type = HV_SYNDBG_MSG_QUERY_OPTIONS; in hyperv_syndbg_query_options()
973 if (hv_syndbg_handler(hv_syndbg_context, &msg) != HV_STATUS_SUCCESS) { in hyperv_syndbg_query_options()
977 return msg.u.query_options.options; in hyperv_syndbg_query_options()