Lines Matching refs:flush

60 	struct hv_tlb_flush *flush;  in hyperv_flush_tlb_multi()  local
83 flush = *flush_pcpu; in hyperv_flush_tlb_multi()
85 if (unlikely(!flush)) { in hyperv_flush_tlb_multi()
95 flush->address_space = virt_to_phys(info->mm->pgd); in hyperv_flush_tlb_multi()
96 flush->address_space &= CR3_ADDR_MASK; in hyperv_flush_tlb_multi()
97 flush->flags = 0; in hyperv_flush_tlb_multi()
99 flush->address_space = 0; in hyperv_flush_tlb_multi()
100 flush->flags = HV_FLUSH_ALL_VIRTUAL_ADDRESS_SPACES; in hyperv_flush_tlb_multi()
103 flush->processor_mask = 0; in hyperv_flush_tlb_multi()
105 flush->flags |= HV_FLUSH_ALL_PROCESSORS; in hyperv_flush_tlb_multi()
132 &flush->processor_mask); in hyperv_flush_tlb_multi()
140 max_gvas = (PAGE_SIZE - sizeof(*flush)) / sizeof(flush->gva_list[0]); in hyperv_flush_tlb_multi()
143 flush->flags |= HV_FLUSH_NON_GLOBAL_MAPPINGS_ONLY; in hyperv_flush_tlb_multi()
145 flush, NULL); in hyperv_flush_tlb_multi()
149 flush, NULL); in hyperv_flush_tlb_multi()
151 gva_n = fill_gva_list(flush->gva_list, 0, in hyperv_flush_tlb_multi()
154 gva_n, 0, flush, NULL); in hyperv_flush_tlb_multi()
175 struct hv_tlb_flush_ex *flush; in hyperv_flush_tlb_others_ex() local
184 flush = *flush_pcpu; in hyperv_flush_tlb_others_ex()
191 flush->address_space = virt_to_phys(info->mm->pgd); in hyperv_flush_tlb_others_ex()
192 flush->address_space &= CR3_ADDR_MASK; in hyperv_flush_tlb_others_ex()
193 flush->flags = 0; in hyperv_flush_tlb_others_ex()
195 flush->address_space = 0; in hyperv_flush_tlb_others_ex()
196 flush->flags = HV_FLUSH_ALL_VIRTUAL_ADDRESS_SPACES; in hyperv_flush_tlb_others_ex()
199 flush->hv_vp_set.valid_bank_mask = 0; in hyperv_flush_tlb_others_ex()
201 flush->hv_vp_set.format = HV_GENERIC_SET_SPARSE_4K; in hyperv_flush_tlb_others_ex()
202 nr_bank = cpumask_to_vpset(&(flush->hv_vp_set), cpus); in hyperv_flush_tlb_others_ex()
211 (PAGE_SIZE - sizeof(*flush) - nr_bank * in hyperv_flush_tlb_others_ex()
212 sizeof(flush->hv_vp_set.bank_contents[0])) / in hyperv_flush_tlb_others_ex()
213 sizeof(flush->gva_list[0]); in hyperv_flush_tlb_others_ex()
216 flush->flags |= HV_FLUSH_NON_GLOBAL_MAPPINGS_ONLY; in hyperv_flush_tlb_others_ex()
219 0, nr_bank, flush, NULL); in hyperv_flush_tlb_others_ex()
224 0, nr_bank, flush, NULL); in hyperv_flush_tlb_others_ex()
226 gva_n = fill_gva_list(flush->gva_list, nr_bank, in hyperv_flush_tlb_others_ex()
230 gva_n, nr_bank, flush, NULL); in hyperv_flush_tlb_others_ex()