• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/hv/

Lines Matching refs:gVmbusConnection

32 struct VMBUS_CONNECTION gVmbusConnection = {
48 if (gVmbusConnection.ConnectState != Disconnected)
52 gVmbusConnection.ConnectState = Connecting;
53 gVmbusConnection.WorkQueue = create_workqueue("hv_vmbus_con");
54 if (!gVmbusConnection.WorkQueue) {
59 INIT_LIST_HEAD(&gVmbusConnection.ChannelMsgList);
60 spin_lock_init(&gVmbusConnection.channelmsg_lock);
62 INIT_LIST_HEAD(&gVmbusConnection.ChannelList);
63 spin_lock_init(&gVmbusConnection.channel_lock);
69 gVmbusConnection.InterruptPage = osd_PageAlloc(1);
70 if (gVmbusConnection.InterruptPage == NULL) {
75 gVmbusConnection.RecvInterruptPage = gVmbusConnection.InterruptPage;
76 gVmbusConnection.SendInterruptPage =
77 (void *)((unsigned long)gVmbusConnection.InterruptPage +
84 gVmbusConnection.MonitorPages = osd_PageAlloc(2);
85 if (gVmbusConnection.MonitorPages == NULL) {
108 msg->InterruptPage = virt_to_phys(gVmbusConnection.InterruptPage);
109 msg->MonitorPage1 = virt_to_phys(gVmbusConnection.MonitorPages);
111 (void *)((unsigned long)gVmbusConnection.MonitorPages +
118 spin_lock_irqsave(&gVmbusConnection.channelmsg_lock, flags);
120 &gVmbusConnection.ChannelMsgList);
122 spin_unlock_irqrestore(&gVmbusConnection.channelmsg_lock, flags);
144 gVmbusConnection.ConnectState = Connected;
159 gVmbusConnection.ConnectState = Disconnected;
161 if (gVmbusConnection.WorkQueue)
162 destroy_workqueue(gVmbusConnection.WorkQueue);
164 if (gVmbusConnection.InterruptPage) {
165 osd_PageFree(gVmbusConnection.InterruptPage, 1);
166 gVmbusConnection.InterruptPage = NULL;
169 if (gVmbusConnection.MonitorPages) {
170 osd_PageFree(gVmbusConnection.MonitorPages, 2);
171 gVmbusConnection.MonitorPages = NULL;
191 if (gVmbusConnection.ConnectState != Connected)
205 osd_PageFree(gVmbusConnection.InterruptPage, 1);
208 destroy_workqueue(gVmbusConnection.WorkQueue);
210 gVmbusConnection.ConnectState = Disconnected;
228 spin_lock_irqsave(&gVmbusConnection.channel_lock, flags);
229 list_for_each_entry(channel, &gVmbusConnection.ChannelList, ListEntry) {
235 spin_unlock_irqrestore(&gVmbusConnection.channel_lock, flags);
277 u32 *recvInterruptPage = gVmbusConnection.RecvInterruptPage;
294 /* ret = WorkQueueQueueWorkItem(gVmbusConnection.workQueue, VmbusProcessChannelEvent, (void*)relid); */
324 (unsigned long *)gVmbusConnection.SendInterruptPage +