Lines Matching refs:hv_cpu

49 	struct hv_per_cpu_context *hv_cpu;  in hv_post_message()  local
55 hv_cpu = get_cpu_ptr(hv_context.cpu_context); in hv_post_message()
56 aligned_msg = hv_cpu->post_msg_page; in hv_post_message()
69 put_cpu_ptr(hv_cpu); in hv_post_message()
77 struct hv_per_cpu_context *hv_cpu; in hv_synic_alloc() local
85 hv_cpu = per_cpu_ptr(hv_context.cpu_context, cpu); in hv_synic_alloc()
86 memset(hv_cpu, 0, sizeof(*hv_cpu)); in hv_synic_alloc()
97 hv_cpu = per_cpu_ptr(hv_context.cpu_context, cpu); in hv_synic_alloc()
99 tasklet_init(&hv_cpu->msg_dpc, in hv_synic_alloc()
100 vmbus_on_msg_dpc, (unsigned long) hv_cpu); in hv_synic_alloc()
102 hv_cpu->synic_message_page = in hv_synic_alloc()
104 if (hv_cpu->synic_message_page == NULL) { in hv_synic_alloc()
109 hv_cpu->synic_event_page = (void *)get_zeroed_page(GFP_ATOMIC); in hv_synic_alloc()
110 if (hv_cpu->synic_event_page == NULL) { in hv_synic_alloc()
115 hv_cpu->post_msg_page = (void *)get_zeroed_page(GFP_ATOMIC); in hv_synic_alloc()
116 if (hv_cpu->post_msg_page == NULL) { in hv_synic_alloc()
121 INIT_LIST_HEAD(&hv_cpu->chan_list); in hv_synic_alloc()
139 struct hv_per_cpu_context *hv_cpu in hv_synic_free() local
142 free_page((unsigned long)hv_cpu->synic_event_page); in hv_synic_free()
143 free_page((unsigned long)hv_cpu->synic_message_page); in hv_synic_free()
144 free_page((unsigned long)hv_cpu->post_msg_page); in hv_synic_free()
159 struct hv_per_cpu_context *hv_cpu in hv_synic_enable_regs() local
169 simp.base_simp_gpa = virt_to_phys(hv_cpu->synic_message_page) in hv_synic_enable_regs()
177 siefp.base_siefp_gpa = virt_to_phys(hv_cpu->synic_event_page) in hv_synic_enable_regs()