Lines Matching refs:hv_cpu

173 	struct hv_per_cpu_context *hv_cpu;  in hv_synic_alloc()  local
182 hv_cpu = per_cpu_ptr(hv_context.cpu_context, cpu); in hv_synic_alloc()
183 memset(hv_cpu, 0, sizeof(*hv_cpu)); in hv_synic_alloc()
193 hv_cpu = per_cpu_ptr(hv_context.cpu_context, cpu); in hv_synic_alloc()
195 tasklet_init(&hv_cpu->msg_dpc, in hv_synic_alloc()
196 vmbus_on_msg_dpc, (unsigned long)hv_cpu); in hv_synic_alloc()
199 ret = hv_alloc_page(&hv_cpu->post_msg_page, in hv_synic_alloc()
211 ret = hv_alloc_page(&hv_cpu->hyp_synic_message_page, in hv_synic_alloc()
215 ret = hv_alloc_page(&hv_cpu->hyp_synic_event_page, in hv_synic_alloc()
222 ret = hv_alloc_page(&hv_cpu->para_synic_message_page, in hv_synic_alloc()
226 ret = hv_alloc_page(&hv_cpu->para_synic_event_page, in hv_synic_alloc()
249 struct hv_per_cpu_context *hv_cpu = in hv_synic_free() local
253 hv_free_page(&hv_cpu->post_msg_page, in hv_synic_free()
256 hv_free_page(&hv_cpu->hyp_synic_event_page, in hv_synic_free()
258 hv_free_page(&hv_cpu->hyp_synic_message_page, in hv_synic_free()
262 hv_free_page(&hv_cpu->para_synic_event_page, in hv_synic_free()
264 hv_free_page(&hv_cpu->para_synic_message_page, in hv_synic_free()
278 struct hv_per_cpu_context *hv_cpu = in hv_hyp_synic_enable_regs() local
292 hv_cpu->hyp_synic_message_page = in hv_hyp_synic_enable_regs()
294 if (!hv_cpu->hyp_synic_message_page) in hv_hyp_synic_enable_regs()
297 simp.base_simp_gpa = virt_to_phys(hv_cpu->hyp_synic_message_page) in hv_hyp_synic_enable_regs()
311 hv_cpu->hyp_synic_event_page = in hv_hyp_synic_enable_regs()
313 if (!hv_cpu->hyp_synic_event_page) in hv_hyp_synic_enable_regs()
316 siefp.base_siefp_gpa = virt_to_phys(hv_cpu->hyp_synic_event_page) in hv_hyp_synic_enable_regs()
349 struct hv_per_cpu_context *hv_cpu in hv_para_synic_enable_regs() local
355 simp.base_simp_gpa = virt_to_phys(hv_cpu->para_synic_message_page) in hv_para_synic_enable_regs()
362 siefp.base_siefp_gpa = virt_to_phys(hv_cpu->para_synic_event_page) in hv_para_synic_enable_regs()
406 struct hv_per_cpu_context *hv_cpu = in hv_hyp_synic_disable_regs() local
430 if (hv_cpu->hyp_synic_message_page) { in hv_hyp_synic_disable_regs()
431 memunmap(hv_cpu->hyp_synic_message_page); in hv_hyp_synic_disable_regs()
432 hv_cpu->hyp_synic_message_page = NULL; in hv_hyp_synic_disable_regs()
444 if (hv_cpu->hyp_synic_event_page) { in hv_hyp_synic_disable_regs()
445 memunmap(hv_cpu->hyp_synic_event_page); in hv_hyp_synic_disable_regs()
446 hv_cpu->hyp_synic_event_page = NULL; in hv_hyp_synic_disable_regs()
531 struct hv_per_cpu_context *hv_cpu = this_cpu_ptr(hv_context.cpu_context); in hv_synic_event_pending() local
532 union hv_synic_event_flags *hyp_synic_event_page = hv_cpu->hyp_synic_event_page; in hv_synic_event_pending()
533 union hv_synic_event_flags *para_synic_event_page = hv_cpu->para_synic_event_page; in hv_synic_event_pending()