Home
last modified time | relevance | path

Searched refs:mm_cpumask (Results 1 – 25 of 57) sorted by relevance

123

/kernel/linux/linux-5.10/arch/arm/include/asm/
Dmmu_context.h140 !cpumask_empty(mm_cpumask(next)) && in switch_mm()
141 !cpumask_test_cpu(cpu, mm_cpumask(next))) in switch_mm()
144 if (!cpumask_test_and_set_cpu(cpu, mm_cpumask(next)) || prev != next) { in switch_mm()
147 cpumask_clear_cpu(cpu, mm_cpumask(prev)); in switch_mm()
Dcacheflush.h220 if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm))) in vivt_flush_cache_mm()
229 if (!mm || cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm))) in vivt_flush_cache_range()
239 if (!mm || cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm))) { in vivt_flush_cache_page()
/kernel/linux/linux-5.10/arch/riscv/mm/
Dtlbflush.c44 __sbi_tlb_flush_range(mm_cpumask(mm), 0, -1); in flush_tlb_mm()
49 __sbi_tlb_flush_range(mm_cpumask(vma->vm_mm), addr, PAGE_SIZE); in flush_tlb_page()
55 __sbi_tlb_flush_range(mm_cpumask(vma->vm_mm), start, end - start); in flush_tlb_range()
Dcontext.c58 cpumask_clear_cpu(cpu, mm_cpumask(prev)); in switch_mm()
59 cpumask_set_cpu(cpu, mm_cpumask(next)); in switch_mm()
Dcacheflush.c57 cpumask_andnot(&others, mm_cpumask(mm), cpumask_of(cpu)); in flush_icache_mm()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dtlb.h58 return cpumask_subset(mm_cpumask(mm), in mm_is_core_local()
67 return cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm)); in mm_is_thread_local()
72 return cpumask_equal(mm_cpumask(mm), in mm_is_thread_local()
/kernel/linux/linux-5.10/arch/openrisc/kernel/
Dsmp.c119 cpumask_set_cpu(cpu, mm_cpumask(mm)); in secondary_start_kernel()
301 smp_flush_tlb_mm(mm_cpumask(mm), mm); in flush_tlb_mm()
306 smp_flush_tlb_range(mm_cpumask(vma->vm_mm), uaddr, uaddr + PAGE_SIZE); in flush_tlb_page()
312 const struct cpumask *cmask = vma ? mm_cpumask(vma->vm_mm) in flush_tlb_range()
/kernel/linux/linux-5.10/arch/ia64/include/asm/
Dmmu_context.h92 cpumask_clear(mm_cpumask(mm)); in get_mmu_context()
171 if (!cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm))) in activate_context()
172 cpumask_set_cpu(smp_processor_id(), mm_cpumask(mm)); in activate_context()
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dmmu_context.h172 cpumask_clear_cpu(cpu, mm_cpumask(prev)); in switch_mm()
173 cpumask_set_cpu(cpu, mm_cpumask(next)); in switch_mm()
223 } else if (cpumask_test_cpu(cpu, mm_cpumask(mm))) { in drop_mmu_context()
/kernel/linux/linux-5.10/arch/powerpc/mm/
Dmmu_context.c40 if (!cpumask_test_cpu(smp_processor_id(), mm_cpumask(next))) { in switch_mm_irqs_off()
41 cpumask_set_cpu(smp_processor_id(), mm_cpumask(next)); in switch_mm_irqs_off()
/kernel/linux/linux-5.10/arch/um/include/asm/
Dmmu_context.h62 cpumask_clear_cpu(cpu, mm_cpumask(prev)); in switch_mm()
63 cpumask_set_cpu(cpu, mm_cpumask(next)); in switch_mm()
/kernel/linux/linux-5.10/arch/arm/kernel/
Dsmp_tlb.c190 on_each_cpu_mask(mm_cpumask(mm), ipi_flush_tlb_mm, mm, 1); in flush_tlb_mm()
202 on_each_cpu_mask(mm_cpumask(vma->vm_mm), ipi_flush_tlb_page, in flush_tlb_page()
228 on_each_cpu_mask(mm_cpumask(vma->vm_mm), ipi_flush_tlb_range, in flush_tlb_range()
/kernel/linux/linux-5.10/arch/x86/mm/
Dtlb.c496 !cpumask_test_cpu(cpu, mm_cpumask(next)))) in switch_mm_irqs_off()
497 cpumask_set_cpu(cpu, mm_cpumask(next)); in switch_mm_irqs_off()
540 mm_cpumask(real_prev))); in switch_mm_irqs_off()
541 cpumask_clear_cpu(cpu, mm_cpumask(real_prev)); in switch_mm_irqs_off()
548 cpumask_set_cpu(cpu, mm_cpumask(next)); in switch_mm_irqs_off()
915 if (cpumask_any_but(mm_cpumask(mm), cpu) < nr_cpu_ids) in flush_tlb_mm_range()
916 flush_tlb_others(mm_cpumask(mm), info); in flush_tlb_mm_range()
/kernel/linux/linux-5.10/arch/openrisc/mm/
Dtlb.c147 cpumask_clear_cpu(cpu, mm_cpumask(prev)); in switch_mm()
148 cpumask_set_cpu(cpu, mm_cpumask(next)); in switch_mm()
/kernel/linux/linux-5.10/arch/sh/include/asm/
Dmmu_context.h115 cpumask_set_cpu(cpu, mm_cpumask(next)); in switch_mm()
119 if (!cpumask_test_and_set_cpu(cpu, mm_cpumask(next))) in switch_mm()
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Dmmu_context_64.h131 if (!ctx_valid || !cpumask_test_cpu(cpu, mm_cpumask(mm))) { in switch_mm()
132 cpumask_set_cpu(cpu, mm_cpumask(mm)); in switch_mm()
Dswitch_to_32.h61 cpumask_set_cpu(smp_processor_id(), mm_cpumask(next->active_mm)); \
/kernel/linux/linux-5.10/arch/s390/include/asm/
Dmmu_context.h121 cpumask_set_cpu(smp_processor_id(), mm_cpumask(mm)); in finish_arch_post_lock_switch()
135 cpumask_set_cpu(smp_processor_id(), mm_cpumask(next)); in activate_mm()
Dtlbflush.h59 cpumask_copy(mm_cpumask(mm), &mm->context.cpu_attach_mask); in __tlb_flush_mm()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/book3s/64/
Dmmu.h248 if (cpumask_test_cpu(cpu, mm_cpumask(mm))) { \
250 cpumask_clear_cpu(cpu, mm_cpumask(mm)); \
/kernel/linux/linux-5.10/arch/csky/mm/
Dasid.c126 cpumask_clear(mm_cpumask(mm)); in new_context()
155 cpumask_set_cpu(cpu, mm_cpumask(mm)); in asid_new_context()
/kernel/linux/linux-5.10/arch/arm/mm/
Dcontext.c233 cpumask_clear(mm_cpumask(mm)); in new_context()
272 cpumask_set_cpu(cpu, mm_cpumask(mm)); in check_and_switch_context()
/kernel/linux/linux-5.10/arch/arc/mm/
Dtlb.c440 on_each_cpu_mask(mm_cpumask(mm), (smp_call_func_t)local_flush_tlb_mm, in flush_tlb_mm()
451 on_each_cpu_mask(mm_cpumask(vma->vm_mm), ipi_flush_tlb_page, &ta, 1); in flush_tlb_page()
463 on_each_cpu_mask(mm_cpumask(vma->vm_mm), ipi_flush_tlb_range, &ta, 1); in flush_tlb_range()
476 on_each_cpu_mask(mm_cpumask(vma->vm_mm), ipi_flush_pmd_tlb_range, &ta, 1); in flush_pmd_tlb_range()
/kernel/linux/linux-5.10/arch/nds32/include/asm/
Dmmu_context.h59 if (!cpumask_test_and_set_cpu(cpu, mm_cpumask(next)) || prev != next) { in switch_mm()
/kernel/linux/linux-5.10/arch/csky/abiv2/
Dcacheflush.c77 cpumask_andnot(&others, mm_cpumask(mm), cpumask_of(cpu)); in flush_icache_mm_range()

123