drivers/hv/channel.c
1005
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/channel.c
1011
mutex_lock(&vmbus_connection.channel_mutex);
drivers/hv/channel.c
1013
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/channel.c
138
monitorpage = vmbus_connection.monitor_pages[1];
drivers/hv/channel.c
253
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
254
list_add_tail(&info->msglistentry, &vmbus_connection.chn_msg_list);
drivers/hv/channel.c
255
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
260
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
262
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
273
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/channel.c
275
mutex_lock(&vmbus_connection.channel_mutex);
drivers/hv/channel.c
277
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
279
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
454
(atomic_inc_return(&vmbus_connection.next_gpadl_handle) - 1);
drivers/hv/channel.c
491
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
493
&vmbus_connection.chn_msg_list);
drivers/hv/channel.c
495
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
551
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
553
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
737
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
739
&vmbus_connection.chn_msg_list);
drivers/hv/channel.c
740
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
757
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
759
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
776
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
778
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
849
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
851
&vmbus_connection.chn_msg_list);
drivers/hv/channel.c
852
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
878
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
880
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel.c
998
mutex_lock(&vmbus_connection.channel_mutex);
drivers/hv/channel_mgmt.c
1034
atomic_dec(&vmbus_connection.offer_in_progress);
drivers/hv/channel_mgmt.c
1049
atomic_dec(&vmbus_connection.offer_in_progress);
drivers/hv/channel_mgmt.c
1086
mutex_lock(&vmbus_connection.channel_mutex);
drivers/hv/channel_mgmt.c
1088
atomic_dec(&vmbus_connection.offer_in_progress);
drivers/hv/channel_mgmt.c
1120
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/channel_mgmt.c
1128
atomic_dec(&vmbus_connection.offer_in_progress);
drivers/hv/channel_mgmt.c
1146
if (atomic_dec_and_test(&vmbus_connection.nr_chan_close_on_suspend))
drivers/hv/channel_mgmt.c
1147
complete(&vmbus_connection.ready_for_suspend_event);
drivers/hv/channel_mgmt.c
1190
while (atomic_read(&vmbus_connection.offer_in_progress) != 0) {
drivers/hv/channel_mgmt.c
1198
mutex_lock(&vmbus_connection.channel_mutex);
drivers/hv/channel_mgmt.c
1207
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/channel_mgmt.c
1212
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/channel_mgmt.c
1273
mutex_lock(&vmbus_connection.channel_mutex);
drivers/hv/channel_mgmt.c
1283
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/channel_mgmt.c
1328
complete(&vmbus_connection.all_offers_delivered_event);
drivers/hv/channel_mgmt.c
1353
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel_mgmt.c
1355
list_for_each_entry(msginfo, &vmbus_connection.chn_msg_list,
drivers/hv/channel_mgmt.c
1374
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel_mgmt.c
1400
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel_mgmt.c
1402
list_for_each_entry(msginfo, &vmbus_connection.chn_msg_list,
drivers/hv/channel_mgmt.c
1423
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel_mgmt.c
1445
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel_mgmt.c
1447
list_for_each_entry(msginfo, &vmbus_connection.chn_msg_list, msglistentry) {
drivers/hv/channel_mgmt.c
1463
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel_mgmt.c
1489
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel_mgmt.c
1491
list_for_each_entry(msginfo, &vmbus_connection.chn_msg_list,
drivers/hv/channel_mgmt.c
1510
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel_mgmt.c
1532
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel_mgmt.c
1534
list_for_each_entry(msginfo, &vmbus_connection.chn_msg_list,
drivers/hv/channel_mgmt.c
1547
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel_mgmt.c
1643
if (!wait_for_completion_timeout(&vmbus_connection.all_offers_delivered_event,
drivers/hv/channel_mgmt.c
1652
flush_workqueue(vmbus_connection.work_queue);
drivers/hv/channel_mgmt.c
1659
flush_workqueue(vmbus_connection.handle_primary_chan_wq);
drivers/hv/channel_mgmt.c
179
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel_mgmt.c
181
list_for_each_entry(msginfo, &vmbus_connection.chn_msg_list,
drivers/hv/channel_mgmt.c
189
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/channel_mgmt.c
415
vmbus_connection.channels[channel->offermsg.child_relid],
drivers/hv/channel_mgmt.c
424
vmbus_connection.channels[channel->offermsg.child_relid],
drivers/hv/channel_mgmt.c
444
lockdep_assert_held(&vmbus_connection.channel_mutex);
drivers/hv/channel_mgmt.c
493
list_for_each_entry_safe(channel, tmp, &vmbus_connection.chn_list,
drivers/hv/channel_mgmt.c
564
mutex_lock(&vmbus_connection.channel_mutex);
drivers/hv/channel_mgmt.c
580
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/channel_mgmt.c
622
mutex_lock(&vmbus_connection.channel_mutex);
drivers/hv/channel_mgmt.c
624
list_for_each_entry(channel, &vmbus_connection.chn_list, listentry) {
drivers/hv/channel_mgmt.c
639
atomic_inc(&vmbus_connection.nr_chan_close_on_suspend);
drivers/hv/channel_mgmt.c
645
atomic_dec(&vmbus_connection.offer_in_progress);
drivers/hv/channel_mgmt.c
649
&vmbus_connection.chn_list);
drivers/hv/channel_mgmt.c
655
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/channel_mgmt.c
673
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/channel_mgmt.c
698
wq = fnew ? vmbus_connection.handle_primary_chan_wq :
drivers/hv/channel_mgmt.c
699
vmbus_connection.handle_sub_chan_wq;
drivers/hv/channel_mgmt.c
712
lockdep_assert_held(&vmbus_connection.channel_mutex);
drivers/hv/channel_mgmt.c
839
if (completion_done(&vmbus_connection.unload_event))
drivers/hv/channel_mgmt.c
869
complete(&vmbus_connection.unload_event);
drivers/hv/channel_mgmt.c
918
complete(&vmbus_connection.unload_event);
drivers/hv/channel_mgmt.c
925
if (xchg(&vmbus_connection.conn_state, DISCONNECTED) == DISCONNECTED)
drivers/hv/channel_mgmt.c
932
reinit_completion(&vmbus_connection.unload_event);
drivers/hv/channel_mgmt.c
943
wait_for_completion(&vmbus_connection.unload_event);
drivers/hv/channel_mgmt.c
981
mutex_lock(&vmbus_connection.channel_mutex);
drivers/hv/channel_mgmt.c
983
list_for_each_entry(iter, &vmbus_connection.chn_list, listentry) {
drivers/hv/channel_mgmt.c
993
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/connection.c
103
vmbus_connection.msg_conn_id = VMBUS_MESSAGE_CONNECTION_ID_4;
drivers/hv/connection.c
105
msg->interrupt_page = virt_to_phys(vmbus_connection.int_page);
drivers/hv/connection.c
106
vmbus_connection.msg_conn_id = VMBUS_MESSAGE_CONNECTION_ID;
drivers/hv/connection.c
116
msg->monitor_page1 = virt_to_phys(vmbus_connection.monitor_pages[0]) |
drivers/hv/connection.c
118
msg->monitor_page2 = virt_to_phys(vmbus_connection.monitor_pages[1]) |
drivers/hv/connection.c
127
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/connection.c
129
&vmbus_connection.chn_msg_list);
drivers/hv/connection.c
131
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/connection.c
140
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/connection.c
142
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock,
drivers/hv/connection.c
150
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/connection.c
152
spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
drivers/hv/connection.c
156
vmbus_connection.conn_state = CONNECTED;
drivers/hv/connection.c
159
vmbus_connection.msg_conn_id =
drivers/hv/connection.c
178
vmbus_connection.conn_state = CONNECTING;
drivers/hv/connection.c
179
vmbus_connection.work_queue = create_workqueue("hv_vmbus_con");
drivers/hv/connection.c
180
if (!vmbus_connection.work_queue) {
drivers/hv/connection.c
185
vmbus_connection.rescind_work_queue =
drivers/hv/connection.c
187
if (!vmbus_connection.rescind_work_queue) {
drivers/hv/connection.c
191
vmbus_connection.ignore_any_offer_msg = false;
drivers/hv/connection.c
193
vmbus_connection.handle_primary_chan_wq =
drivers/hv/connection.c
195
if (!vmbus_connection.handle_primary_chan_wq) {
drivers/hv/connection.c
200
vmbus_connection.handle_sub_chan_wq =
drivers/hv/connection.c
202
if (!vmbus_connection.handle_sub_chan_wq) {
drivers/hv/connection.c
207
INIT_LIST_HEAD(&vmbus_connection.chn_msg_list);
drivers/hv/connection.c
208
spin_lock_init(&vmbus_connection.channelmsg_lock);
drivers/hv/connection.c
210
INIT_LIST_HEAD(&vmbus_connection.chn_list);
drivers/hv/connection.c
211
mutex_init(&vmbus_connection.channel_mutex);
drivers/hv/connection.c
225
vmbus_connection.int_page =
drivers/hv/connection.c
227
if (vmbus_connection.int_page == NULL) {
drivers/hv/connection.c
232
vmbus_connection.recv_int_page = vmbus_connection.int_page;
drivers/hv/connection.c
233
vmbus_connection.send_int_page =
drivers/hv/connection.c
234
(void *)((unsigned long)vmbus_connection.int_page +
drivers/hv/connection.c
241
vmbus_connection.monitor_pages[0] = (void *)__get_free_page(GFP_KERNEL);
drivers/hv/connection.c
242
vmbus_connection.monitor_pages[1] = (void *)__get_free_page(GFP_KERNEL);
drivers/hv/connection.c
243
if ((vmbus_connection.monitor_pages[0] == NULL) ||
drivers/hv/connection.c
244
(vmbus_connection.monitor_pages[1] == NULL)) {
drivers/hv/connection.c
250
vmbus_connection.monitor_pages[0], 1);
drivers/hv/connection.c
252
vmbus_connection.monitor_pages[1], 1);
drivers/hv/connection.c
260
vmbus_connection.monitor_pages[0] = NULL;
drivers/hv/connection.c
261
vmbus_connection.monitor_pages[1] = NULL;
drivers/hv/connection.c
269
memset(vmbus_connection.monitor_pages[0], 0x00, HV_HYP_PAGE_SIZE);
drivers/hv/connection.c
270
memset(vmbus_connection.monitor_pages[1], 0x00, HV_HYP_PAGE_SIZE);
drivers/hv/connection.c
29
struct vmbus_connection vmbus_connection = {
drivers/hv/connection.c
301
if (vmbus_connection.conn_state == CONNECTED)
drivers/hv/connection.c
316
vmbus_connection.channels = kzalloc_objs(struct vmbus_channel *,
drivers/hv/connection.c
318
if (vmbus_connection.channels == NULL) {
drivers/hv/connection.c
32
vmbus_connection.unload_event),
drivers/hv/connection.c
329
vmbus_connection.conn_state = DISCONNECTED;
drivers/hv/connection.c
344
if (vmbus_connection.handle_sub_chan_wq)
drivers/hv/connection.c
345
destroy_workqueue(vmbus_connection.handle_sub_chan_wq);
drivers/hv/connection.c
347
if (vmbus_connection.handle_primary_chan_wq)
drivers/hv/connection.c
348
destroy_workqueue(vmbus_connection.handle_primary_chan_wq);
drivers/hv/connection.c
350
if (vmbus_connection.rescind_work_queue)
drivers/hv/connection.c
351
destroy_workqueue(vmbus_connection.rescind_work_queue);
drivers/hv/connection.c
353
if (vmbus_connection.work_queue)
drivers/hv/connection.c
354
destroy_workqueue(vmbus_connection.work_queue);
drivers/hv/connection.c
356
if (vmbus_connection.int_page) {
drivers/hv/connection.c
357
free_page((unsigned long)vmbus_connection.int_page);
drivers/hv/connection.c
358
vmbus_connection.int_page = NULL;
drivers/hv/connection.c
36
vmbus_connection.ready_for_suspend_event),
drivers/hv/connection.c
361
if (vmbus_connection.monitor_pages[0]) {
drivers/hv/connection.c
363
(unsigned long)vmbus_connection.monitor_pages[0], 1))
drivers/hv/connection.c
365
vmbus_connection.monitor_pages[0]);
drivers/hv/connection.c
366
vmbus_connection.monitor_pages[0] = NULL;
drivers/hv/connection.c
369
if (vmbus_connection.monitor_pages[1]) {
drivers/hv/connection.c
371
(unsigned long)vmbus_connection.monitor_pages[1], 1))
drivers/hv/connection.c
373
vmbus_connection.monitor_pages[1]);
drivers/hv/connection.c
374
vmbus_connection.monitor_pages[1] = NULL;
drivers/hv/connection.c
38
vmbus_connection.all_offers_delivered_event),
drivers/hv/connection.c
384
if (vmbus_connection.channels == NULL) {
drivers/hv/connection.c
390
return READ_ONCE(vmbus_connection.channels[relid]);
drivers/hv/connection.c
40
EXPORT_SYMBOL_GPL(vmbus_connection);
drivers/hv/connection.c
448
conn_id.u.id = vmbus_connection.msg_conn_id;
drivers/hv/hv.c
547
lockdep_assert_held(&vmbus_connection.channel_mutex);
drivers/hv/hv.c
582
if (vmbus_connection.conn_state != CONNECTED)
drivers/hv/hv.c
599
mutex_lock(&vmbus_connection.channel_mutex);
drivers/hv/hv.c
600
list_for_each_entry(channel, &vmbus_connection.chn_list, listentry) {
drivers/hv/hv.c
604
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/hv.c
612
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/hv.c
618
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/hyperv_vmbus.h
327
extern struct vmbus_connection vmbus_connection;
drivers/hv/hyperv_vmbus.h
333
sync_set_bit(relid, vmbus_connection.send_int_page);
drivers/hv/hyperv_vmbus.h
483
lockdep_assert_held(&vmbus_connection.channel_mutex);
drivers/hv/hyperv_vmbus.h
488
list_for_each_entry(channel, &vmbus_connection.chn_list, listentry) {
drivers/hv/vmbus_drv.c
1001
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/vmbus_drv.c
1052
if (vmbus_connection.conn_state == DISCONNECTED)
drivers/hv/vmbus_drv.c
1158
if (vmbus_connection.ignore_any_offer_msg)
drivers/hv/vmbus_drv.c
1160
queue_work(vmbus_connection.rescind_work_queue, &ctx->work);
drivers/hv/vmbus_drv.c
1186
if (vmbus_connection.ignore_any_offer_msg)
drivers/hv/vmbus_drv.c
1188
atomic_inc(&vmbus_connection.offer_in_progress);
drivers/hv/vmbus_drv.c
1192
queue_work(vmbus_connection.work_queue, &ctx->work);
drivers/hv/vmbus_drv.c
1242
queue_work(vmbus_connection.work_queue, &ctx->work);
drivers/hv/vmbus_drv.c
1765
lockdep_assert_held(&vmbus_connection.channel_mutex);
drivers/hv/vmbus_drv.c
1863
mutex_lock(&vmbus_connection.channel_mutex);
drivers/hv/vmbus_drv.c
1865
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/vmbus_drv.c
1877
vmbus_connection.monitor_pages[1]));
drivers/hv/vmbus_drv.c
1886
vmbus_connection.monitor_pages[1]));
drivers/hv/vmbus_drv.c
237
vmbus_connection.monitor_pages[0]));
drivers/hv/vmbus_drv.c
250
vmbus_connection.monitor_pages[1]));
drivers/hv/vmbus_drv.c
263
vmbus_connection.monitor_pages[0]));
drivers/hv/vmbus_drv.c
2714
vmbus_connection.ignore_any_offer_msg = true;
drivers/hv/vmbus_drv.c
2719
drain_workqueue(vmbus_connection.rescind_work_queue);
drivers/hv/vmbus_drv.c
2720
drain_workqueue(vmbus_connection.work_queue);
drivers/hv/vmbus_drv.c
2721
drain_workqueue(vmbus_connection.handle_primary_chan_wq);
drivers/hv/vmbus_drv.c
2722
drain_workqueue(vmbus_connection.handle_sub_chan_wq);
drivers/hv/vmbus_drv.c
2724
mutex_lock(&vmbus_connection.channel_mutex);
drivers/hv/vmbus_drv.c
2725
list_for_each_entry(channel, &vmbus_connection.chn_list, listentry) {
drivers/hv/vmbus_drv.c
2731
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/vmbus_drv.c
2747
if (atomic_read(&vmbus_connection.nr_chan_close_on_suspend) > 0)
drivers/hv/vmbus_drv.c
2748
wait_for_completion(&vmbus_connection.ready_for_suspend_event);
drivers/hv/vmbus_drv.c
2750
mutex_lock(&vmbus_connection.channel_mutex);
drivers/hv/vmbus_drv.c
2752
list_for_each_entry(channel, &vmbus_connection.chn_list, listentry) {
drivers/hv/vmbus_drv.c
276
vmbus_connection.monitor_pages[1]));
drivers/hv/vmbus_drv.c
2776
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/vmbus_drv.c
2790
vmbus_connection.ignore_any_offer_msg = false;
drivers/hv/vmbus_drv.c
2818
mutex_lock(&vmbus_connection.channel_mutex);
drivers/hv/vmbus_drv.c
2819
list_for_each_entry(channel, &vmbus_connection.chn_list, listentry) {
drivers/hv/vmbus_drv.c
2832
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/vmbus_drv.c
2835
reinit_completion(&vmbus_connection.ready_for_suspend_event);
drivers/hv/vmbus_drv.c
289
vmbus_connection.monitor_pages[0]));
drivers/hv/vmbus_drv.c
302
vmbus_connection.monitor_pages[1]));
drivers/hv/vmbus_drv.c
3026
vmbus_connection.conn_state = DISCONNECTED;
drivers/hv/vmbus_drv.c
3046
kfree(vmbus_connection.channels);
drivers/hv/vmbus_drv.c
504
mutex_lock(&vmbus_connection.channel_mutex);
drivers/hv/vmbus_drv.c
518
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/hv/vmbus_drv.c
999
mutex_lock(&vmbus_connection.channel_mutex);
drivers/uio/uio_hv_generic.c
100
mutex_unlock(&vmbus_connection.channel_mutex);
drivers/uio/uio_hv_generic.c
294
= (uintptr_t)vmbus_connection.int_page;
drivers/uio/uio_hv_generic.c
300
= (uintptr_t)vmbus_connection.monitor_pages[1];
drivers/uio/uio_hv_generic.c
97
mutex_lock(&vmbus_connection.channel_mutex);