/linux/arch/arm/include/asm/ |
A D | mmu_context.h | 120 !cpumask_empty(mm_cpumask(next)) && in switch_mm() 121 !cpumask_test_cpu(cpu, mm_cpumask(next))) in switch_mm() 124 if (!cpumask_test_and_set_cpu(cpu, mm_cpumask(next)) || prev != next) { in switch_mm() 127 cpumask_clear_cpu(cpu, mm_cpumask(prev)); in switch_mm()
|
A D | cacheflush.h | 220 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()
|
/linux/arch/powerpc/include/asm/ |
A D | tlb.h | 55 return cpumask_subset(mm_cpumask(mm), in mm_is_core_local() 64 return cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm)); in mm_is_thread_local() 69 return cpumask_equal(mm_cpumask(mm), in mm_is_thread_local()
|
/linux/arch/openrisc/kernel/ |
A D | smp.c | 126 cpumask_set_cpu(cpu, mm_cpumask(mm)); in secondary_start_kernel() 308 smp_flush_tlb_mm(mm_cpumask(mm), mm); in flush_tlb_mm() 313 smp_flush_tlb_range(mm_cpumask(vma->vm_mm), uaddr, uaddr + PAGE_SIZE); in flush_tlb_page() 319 const struct cpumask *cmask = vma ? mm_cpumask(vma->vm_mm) in flush_tlb_range()
|
/linux/arch/ia64/include/asm/ |
A D | mmu_context.h | 87 cpumask_clear(mm_cpumask(mm)); in get_mmu_context() 161 if (!cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm))) in activate_context() 162 cpumask_set_cpu(smp_processor_id(), mm_cpumask(mm)); in activate_context()
|
/linux/arch/mips/include/asm/ |
A D | mmu_context.h | 169 cpumask_clear_cpu(cpu, mm_cpumask(prev)); in switch_mm() 170 cpumask_set_cpu(cpu, mm_cpumask(next)); in switch_mm() 218 } else if (cpumask_test_cpu(cpu, mm_cpumask(mm))) { in drop_mmu_context()
|
/linux/arch/um/include/asm/ |
A D | mmu_context.h | 34 cpumask_clear_cpu(cpu, mm_cpumask(prev)); in switch_mm() 35 cpumask_set_cpu(cpu, mm_cpumask(next)); in switch_mm()
|
/linux/arch/arm/kernel/ |
A D | smp_tlb.c | 190 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()
|
/linux/arch/powerpc/mm/ |
A D | mmu_context.c | 40 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()
|
/linux/arch/x86/mm/ |
A D | tlb.c | 563 !cpumask_test_cpu(cpu, mm_cpumask(next)))) in switch_mm_irqs_off() 564 cpumask_set_cpu(cpu, mm_cpumask(next)); in switch_mm_irqs_off() 606 mm_cpumask(real_prev))); in switch_mm_irqs_off() 607 cpumask_clear_cpu(cpu, mm_cpumask(real_prev)); in switch_mm_irqs_off() 614 cpumask_set_cpu(cpu, mm_cpumask(next)); in switch_mm_irqs_off() 1012 if (cpumask_any_but(mm_cpumask(mm), cpu) < nr_cpu_ids) { in flush_tlb_mm_range() 1013 flush_tlb_multi(mm_cpumask(mm), info); in flush_tlb_mm_range()
|
/linux/arch/sh/include/asm/ |
A D | mmu_context.h | 116 cpumask_set_cpu(cpu, mm_cpumask(next)); in switch_mm() 120 if (!cpumask_test_and_set_cpu(cpu, mm_cpumask(next))) in switch_mm()
|
/linux/arch/openrisc/mm/ |
A D | tlb.c | 147 cpumask_clear_cpu(cpu, mm_cpumask(prev)); in switch_mm() 148 cpumask_set_cpu(cpu, mm_cpumask(next)); in switch_mm()
|
/linux/arch/sparc/include/asm/ |
A D | mmu_context_64.h | 130 if (!ctx_valid || !cpumask_test_cpu(cpu, mm_cpumask(mm))) { in switch_mm() 131 cpumask_set_cpu(cpu, mm_cpumask(mm)); in switch_mm()
|
A D | switch_to_32.h | 61 cpumask_set_cpu(smp_processor_id(), mm_cpumask(next->active_mm)); \
|
/linux/arch/s390/include/asm/ |
A D | mmu_context.h | 110 cpumask_set_cpu(smp_processor_id(), mm_cpumask(mm)); in finish_arch_post_lock_switch() 122 cpumask_set_cpu(smp_processor_id(), mm_cpumask(next)); in activate_mm()
|
A D | tlbflush.h | 59 cpumask_copy(mm_cpumask(mm), &mm->context.cpu_attach_mask); in __tlb_flush_mm()
|
/linux/arch/powerpc/include/asm/book3s/64/ |
A D | mmu.h | 249 if (cpumask_test_cpu(cpu, mm_cpumask(mm))) { \ 251 cpumask_clear_cpu(cpu, mm_cpumask(mm)); \
|
/linux/arch/csky/mm/ |
A D | asid.c | 126 cpumask_clear(mm_cpumask(mm)); in new_context() 155 cpumask_set_cpu(cpu, mm_cpumask(mm)); in asid_new_context()
|
/linux/arch/powerpc/mm/book3s64/ |
A D | radix_tlb.c | 464 struct cpumask *cpus = mm_cpumask(mm); in _tlbiel_pid_multicast() 617 struct cpumask *cpus = mm_cpumask(mm); in _tlbiel_va_multicast() 680 struct cpumask *cpus = mm_cpumask(mm); in _tlbiel_va_range_multicast() 803 if (cpumask_test_cpu(cpu, mm_cpumask(mm))) { in exit_lazy_flush_tlb() 805 cpumask_clear_cpu(cpu, mm_cpumask(mm)); in exit_lazy_flush_tlb() 830 smp_call_function_many(mm_cpumask(mm), do_exit_flush_lazy_tlb, in exit_flush_lazy_tlbs() 872 if (active_cpus == 1 && cpumask_test_cpu(cpu, mm_cpumask(mm))) { in flush_type_needed() 925 if (cpumask_test_cpu(cpu, mm_cpumask(mm))) in flush_type_needed()
|
/linux/arch/arm/mm/ |
A D | context.c | 233 cpumask_clear(mm_cpumask(mm)); in new_context() 272 cpumask_set_cpu(cpu, mm_cpumask(mm)); in check_and_switch_context()
|
/linux/arch/arc/mm/ |
A D | tlb.c | 338 on_each_cpu_mask(mm_cpumask(mm), (smp_call_func_t)local_flush_tlb_mm, in flush_tlb_mm() 349 on_each_cpu_mask(mm_cpumask(vma->vm_mm), ipi_flush_tlb_page, &ta, 1); in flush_tlb_page() 361 on_each_cpu_mask(mm_cpumask(vma->vm_mm), ipi_flush_tlb_range, &ta, 1); in flush_tlb_range() 374 on_each_cpu_mask(mm_cpumask(vma->vm_mm), ipi_flush_pmd_tlb_range, &ta, 1); in flush_pmd_tlb_range()
|
/linux/arch/riscv/mm/ |
A D | context.c | 320 cpumask_clear_cpu(cpu, mm_cpumask(prev)); in switch_mm() 321 cpumask_set_cpu(cpu, mm_cpumask(next)); in switch_mm()
|
A D | cacheflush.c | 57 cpumask_andnot(&others, mm_cpumask(mm), cpumask_of(cpu)); in flush_icache_mm()
|
/linux/arch/sparc/mm/ |
A D | srmmu.c | 1659 cpumask_copy(&cpu_mask, mm_cpumask(mm)); in smp_flush_cache_mm() 1671 cpumask_copy(&cpu_mask, mm_cpumask(mm)); in smp_flush_tlb_mm() 1676 cpumask_copy(mm_cpumask(mm), in smp_flush_tlb_mm() 1691 cpumask_copy(&cpu_mask, mm_cpumask(mm)); in smp_flush_cache_range() 1708 cpumask_copy(&cpu_mask, mm_cpumask(mm)); in smp_flush_tlb_range() 1723 cpumask_copy(&cpu_mask, mm_cpumask(mm)); in smp_flush_cache_page() 1738 cpumask_copy(&cpu_mask, mm_cpumask(mm)); in smp_flush_tlb_page() 1764 cpumask_copy(&cpu_mask, mm_cpumask(mm)); in smp_flush_sig_insns()
|
/linux/arch/nds32/include/asm/ |
A D | mmu_context.h | 54 if (!cpumask_test_and_set_cpu(cpu, mm_cpumask(next)) || prev != next) { in switch_mm()
|