Home
last modified time | relevance | path

Searched refs:vmbus_connection (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.4/drivers/hv/
Dconnection.c26 struct vmbus_connection vmbus_connection = { variable
31 vmbus_connection.ready_for_suspend_event),
33 vmbus_connection.ready_for_resume_event),
35 EXPORT_SYMBOL_GPL(vmbus_connection);
95 vmbus_connection.msg_conn_id = VMBUS_MESSAGE_CONNECTION_ID_4; in vmbus_negotiate_version()
97 msg->interrupt_page = virt_to_phys(vmbus_connection.int_page); in vmbus_negotiate_version()
98 vmbus_connection.msg_conn_id = VMBUS_MESSAGE_CONNECTION_ID; in vmbus_negotiate_version()
101 msg->monitor_page1 = virt_to_phys(vmbus_connection.monitor_pages[0]); in vmbus_negotiate_version()
102 msg->monitor_page2 = virt_to_phys(vmbus_connection.monitor_pages[1]); in vmbus_negotiate_version()
115 vmbus_connection.connect_cpu = cur_cpu; in vmbus_negotiate_version()
[all …]
Dchannel_mgmt.c149 spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags); in vmbus_rescind_cleanup()
151 list_for_each_entry(msginfo, &vmbus_connection.chn_msg_list, in vmbus_rescind_cleanup()
159 spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags); in vmbus_rescind_cleanup()
379 BUG_ON(!mutex_is_locked(&vmbus_connection.channel_mutex)); in hv_process_channel_removal()
427 list_for_each_entry_safe(channel, tmp, &vmbus_connection.chn_list, in vmbus_free_channels()
510 mutex_lock(&vmbus_connection.channel_mutex); in vmbus_add_channel_work()
526 mutex_unlock(&vmbus_connection.channel_mutex); in vmbus_add_channel_work()
554 mutex_lock(&vmbus_connection.channel_mutex); in vmbus_process_offer()
558 atomic_inc(&vmbus_connection.nr_chan_close_on_suspend); in vmbus_process_offer()
564 atomic_dec(&vmbus_connection.offer_in_progress); in vmbus_process_offer()
[all …]
Dchannel.c58 monitorpage = vmbus_connection.monitor_pages[1]; in vmbus_setevent()
184 spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags); in __vmbus_open()
186 &vmbus_connection.chn_msg_list); in __vmbus_open()
187 spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags); in __vmbus_open()
204 spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags); in __vmbus_open()
206 spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags); in __vmbus_open()
223 spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags); in __vmbus_open()
225 spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags); in __vmbus_open()
452 (atomic_inc_return(&vmbus_connection.next_gpadl_handle) - 1); in vmbus_establish_gpadl()
467 spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags); in vmbus_establish_gpadl()
[all …]
Dvmbus_drv.c227 vmbus_connection.monitor_pages[0])); in server_monitor_pending_show()
241 vmbus_connection.monitor_pages[1])); in client_monitor_pending_show()
255 vmbus_connection.monitor_pages[0])); in server_monitor_latency_show()
269 vmbus_connection.monitor_pages[1])); in client_monitor_latency_show()
283 vmbus_connection.monitor_pages[0])); in server_monitor_conn_id_show()
297 vmbus_connection.monitor_pages[1])); in client_monitor_conn_id_show()
963 mutex_lock(&vmbus_connection.channel_mutex); in vmbus_device_release()
965 mutex_unlock(&vmbus_connection.channel_mutex); in vmbus_device_release()
1000 if (vmbus_connection.conn_state == DISCONNECTED) in vmbus_onmessage_work()
1054 schedule_work_on(vmbus_connection.connect_cpu, in vmbus_on_msg_dpc()
[all …]
Dhyperv_vmbus.h215 struct vmbus_connection { struct
299 extern struct vmbus_connection vmbus_connection; argument
305 sync_set_bit(relid, vmbus_connection.send_int_page); in vmbus_send_interrupt()
Dhv.c258 mutex_lock(&vmbus_connection.channel_mutex); in hv_synic_cleanup()
259 list_for_each_entry(channel, &vmbus_connection.chn_list, listentry) { in hv_synic_cleanup()
275 mutex_unlock(&vmbus_connection.channel_mutex); in hv_synic_cleanup()
277 if (channel_found && vmbus_connection.conn_state == CONNECTED) in hv_synic_cleanup()
/Linux-v5.4/drivers/uio/
Duio_hv_generic.c281 = (uintptr_t)vmbus_connection.int_page; in hv_uio_probe()
287 = (uintptr_t)vmbus_connection.monitor_pages[1]; in hv_uio_probe()