Lines Matching refs:hv_cpu
87 struct hv_per_cpu_context *hv_cpu; in hv_post_message() local
93 hv_cpu = get_cpu_ptr(hv_context.cpu_context); in hv_post_message()
94 aligned_msg = hv_cpu->post_msg_page; in hv_post_message()
113 put_cpu_ptr(hv_cpu); in hv_post_message()
121 struct hv_per_cpu_context *hv_cpu; in hv_synic_alloc() local
129 hv_cpu = per_cpu_ptr(hv_context.cpu_context, cpu); in hv_synic_alloc()
130 memset(hv_cpu, 0, sizeof(*hv_cpu)); in hv_synic_alloc()
141 hv_cpu = per_cpu_ptr(hv_context.cpu_context, cpu); in hv_synic_alloc()
143 tasklet_init(&hv_cpu->msg_dpc, in hv_synic_alloc()
144 vmbus_on_msg_dpc, (unsigned long) hv_cpu); in hv_synic_alloc()
151 hv_cpu->synic_message_page = in hv_synic_alloc()
153 if (hv_cpu->synic_message_page == NULL) { in hv_synic_alloc()
158 hv_cpu->synic_event_page = in hv_synic_alloc()
160 if (hv_cpu->synic_event_page == NULL) { in hv_synic_alloc()
166 hv_cpu->post_msg_page = (void *)get_zeroed_page(GFP_ATOMIC); in hv_synic_alloc()
167 if (hv_cpu->post_msg_page == NULL) { in hv_synic_alloc()
188 struct hv_per_cpu_context *hv_cpu in hv_synic_free() local
191 free_page((unsigned long)hv_cpu->synic_event_page); in hv_synic_free()
192 free_page((unsigned long)hv_cpu->synic_message_page); in hv_synic_free()
193 free_page((unsigned long)hv_cpu->post_msg_page); in hv_synic_free()
208 struct hv_per_cpu_context *hv_cpu in hv_synic_enable_regs() local
220 hv_cpu->synic_message_page in hv_synic_enable_regs()
223 if (!hv_cpu->synic_message_page) in hv_synic_enable_regs()
226 simp.base_simp_gpa = virt_to_phys(hv_cpu->synic_message_page) in hv_synic_enable_regs()
237 hv_cpu->synic_event_page = in hv_synic_enable_regs()
241 if (!hv_cpu->synic_event_page) in hv_synic_enable_regs()
244 siefp.base_siefp_gpa = virt_to_phys(hv_cpu->synic_event_page) in hv_synic_enable_regs()
293 struct hv_per_cpu_context *hv_cpu in hv_synic_disable_regs() local
319 memunmap(hv_cpu->synic_message_page); in hv_synic_disable_regs()
329 memunmap(hv_cpu->synic_event_page); in hv_synic_disable_regs()
356 struct hv_per_cpu_context *hv_cpu = this_cpu_ptr(hv_context.cpu_context); in hv_synic_event_pending() local
358 (union hv_synic_event_flags *)hv_cpu->synic_event_page + VMBUS_MESSAGE_SINT; in hv_synic_event_pending()