Lines Matching refs:vmbus_connection
167 spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags); in vmbus_rescind_cleanup()
169 list_for_each_entry(msginfo, &vmbus_connection.chn_msg_list, in vmbus_rescind_cleanup()
177 spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags); in vmbus_rescind_cleanup()
403 vmbus_connection.channels[channel->offermsg.child_relid], in vmbus_channel_map_relid()
412 vmbus_connection.channels[channel->offermsg.child_relid], in vmbus_channel_unmap_relid()
432 lockdep_assert_held(&vmbus_connection.channel_mutex); in hv_process_channel_removal()
481 list_for_each_entry_safe(channel, tmp, &vmbus_connection.chn_list, in vmbus_free_channels()
548 mutex_lock(&vmbus_connection.channel_mutex); in vmbus_add_channel_work()
564 mutex_unlock(&vmbus_connection.channel_mutex); in vmbus_add_channel_work()
606 mutex_lock(&vmbus_connection.channel_mutex); in vmbus_process_offer()
608 list_for_each_entry(channel, &vmbus_connection.chn_list, listentry) { in vmbus_process_offer()
623 atomic_inc(&vmbus_connection.nr_chan_close_on_suspend); in vmbus_process_offer()
629 atomic_dec(&vmbus_connection.offer_in_progress); in vmbus_process_offer()
633 &vmbus_connection.chn_list); in vmbus_process_offer()
639 mutex_unlock(&vmbus_connection.channel_mutex); in vmbus_process_offer()
656 mutex_unlock(&vmbus_connection.channel_mutex); in vmbus_process_offer()
681 wq = fnew ? vmbus_connection.handle_primary_chan_wq : in vmbus_process_offer()
682 vmbus_connection.handle_sub_chan_wq; in vmbus_process_offer()
695 lockdep_assert_held(&vmbus_connection.channel_mutex); in hv_cpuself_used()
822 if (completion_done(&vmbus_connection.unload_event)) in vmbus_wait_for_unload()
841 complete(&vmbus_connection.unload_event); in vmbus_wait_for_unload()
887 complete(&vmbus_connection.unload_event); in vmbus_unload_response()
894 if (xchg(&vmbus_connection.conn_state, DISCONNECTED) == DISCONNECTED) in vmbus_initiate_unload()
901 reinit_completion(&vmbus_connection.unload_event); in vmbus_initiate_unload()
912 wait_for_completion(&vmbus_connection.unload_event); in vmbus_initiate_unload()
923 if (atomic_dec_and_test(&vmbus_connection.nr_chan_fixup_on_resume)) in check_ready_for_resume_event()
924 complete(&vmbus_connection.ready_for_resume_event); in check_ready_for_resume_event()
962 mutex_lock(&vmbus_connection.channel_mutex); in find_primary_channel_by_offer()
964 list_for_each_entry(iter, &vmbus_connection.chn_list, listentry) { in find_primary_channel_by_offer()
974 mutex_unlock(&vmbus_connection.channel_mutex); in find_primary_channel_by_offer()
1010 atomic_dec(&vmbus_connection.offer_in_progress); in vmbus_onoffer()
1046 mutex_lock(&vmbus_connection.channel_mutex); in vmbus_onoffer()
1048 atomic_dec(&vmbus_connection.offer_in_progress); in vmbus_onoffer()
1082 mutex_unlock(&vmbus_connection.channel_mutex); in vmbus_onoffer()
1090 atomic_dec(&vmbus_connection.offer_in_progress); in vmbus_onoffer()
1106 if (atomic_dec_and_test(&vmbus_connection.nr_chan_close_on_suspend)) in check_ready_for_suspend_event()
1107 complete(&vmbus_connection.ready_for_suspend_event); in check_ready_for_suspend_event()
1150 while (atomic_read(&vmbus_connection.offer_in_progress) != 0) { in vmbus_onoffer_rescind()
1158 mutex_lock(&vmbus_connection.channel_mutex); in vmbus_onoffer_rescind()
1167 mutex_unlock(&vmbus_connection.channel_mutex); in vmbus_onoffer_rescind()
1172 mutex_unlock(&vmbus_connection.channel_mutex); in vmbus_onoffer_rescind()
1233 mutex_lock(&vmbus_connection.channel_mutex); in vmbus_onoffer_rescind()
1243 mutex_unlock(&vmbus_connection.channel_mutex); in vmbus_onoffer_rescind()
1298 spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags); in vmbus_onopen_result()
1300 list_for_each_entry(msginfo, &vmbus_connection.chn_msg_list, in vmbus_onopen_result()
1319 spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags); in vmbus_onopen_result()
1345 spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags); in vmbus_ongpadl_created()
1347 list_for_each_entry(msginfo, &vmbus_connection.chn_msg_list, in vmbus_ongpadl_created()
1368 spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags); in vmbus_ongpadl_created()
1390 spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags); in vmbus_onmodifychannel_response()
1392 list_for_each_entry(msginfo, &vmbus_connection.chn_msg_list, msglistentry) { in vmbus_onmodifychannel_response()
1408 spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags); in vmbus_onmodifychannel_response()
1434 spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags); in vmbus_ongpadl_torndown()
1436 list_for_each_entry(msginfo, &vmbus_connection.chn_msg_list, in vmbus_ongpadl_torndown()
1455 spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags); in vmbus_ongpadl_torndown()
1477 spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags); in vmbus_onversion_response()
1479 list_for_each_entry(msginfo, &vmbus_connection.chn_msg_list, in vmbus_onversion_response()
1492 spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags); in vmbus_onversion_response()