Lines Matching refs:mh
575 MsgHandler *mh; in hyperv_set_msg_handler() local
578 QLIST_FOREACH(mh, &msg_handlers, link) { in hyperv_set_msg_handler()
579 if (mh->conn_id == conn_id) { in hyperv_set_msg_handler()
583 QLIST_REMOVE_RCU(mh, link); in hyperv_set_msg_handler()
584 g_free_rcu(mh, rcu); in hyperv_set_msg_handler()
592 mh = g_new(MsgHandler, 1); in hyperv_set_msg_handler()
593 mh->conn_id = conn_id; in hyperv_set_msg_handler()
594 mh->handler = handler; in hyperv_set_msg_handler()
595 mh->data = data; in hyperv_set_msg_handler()
596 QLIST_INSERT_HEAD_RCU(&msg_handlers, mh, link); in hyperv_set_msg_handler()
610 MsgHandler *mh; in hyperv_hcall_post_message() local
632 QLIST_FOREACH_RCU(mh, &msg_handlers, link) { in hyperv_hcall_post_message()
633 if (mh->conn_id == (msg->connection_id & HV_CONNECTION_ID_MASK)) { in hyperv_hcall_post_message()
634 ret = mh->handler(msg, mh->data); in hyperv_hcall_post_message()