Lines Matching defs:patching_mm
240 struct mm_struct *patching_mm;
244 patching_mm = __this_cpu_read(cpu_patching_context.mm);
248 pte = get_locked_pte(patching_mm, text_poke_addr, &ptl);
252 __set_pte_at(patching_mm, text_poke_addr, pte, pfn_pte(pfn, PAGE_KERNEL), 0);
260 orig_mm = start_using_temp_mm(patching_mm);
265 stop_using_temp_mm(patching_mm, orig_mm);
267 pte_clear(patching_mm, text_poke_addr, pte);
272 local_flush_tlb_page_psize(patching_mm, text_poke_addr, mmu_virtual_psize);
422 struct mm_struct *patching_mm, *orig_mm;
430 patching_mm = __this_cpu_read(cpu_patching_context.mm);
434 pte = get_locked_pte(patching_mm, text_poke_addr, &ptl);
438 __set_pte_at(patching_mm, text_poke_addr, pte, pfn_pte(pfn, PAGE_KERNEL), 0);
446 orig_mm = start_using_temp_mm(patching_mm);
453 stop_using_temp_mm(patching_mm, orig_mm);
455 pte_clear(patching_mm, text_poke_addr, pte);
460 local_flush_tlb_page_psize(patching_mm, text_poke_addr, mmu_virtual_psize);