Home
last modified time | relevance | path

Searched refs:prev_mm (Results 1 - 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/arch/alpha/include/asm/
H A Dmmu_context.h136 ev5_switch_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm, in ev5_switch_mm() argument
166 ev4_switch_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm, in ev4_switch_mm() argument
177 if (prev_mm != next_mm) in ev4_switch_mm()
182 ev5_switch_mm(prev_mm, next_mm, next); in ev4_switch_mm()
205 ev5_activate_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm) in ev5_activate_mm() argument
211 ev4_activate_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm) in ev4_activate_mm() argument
/kernel/linux/linux-6.6/arch/alpha/include/asm/
H A Dmmu_context.h136 ev5_switch_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm, in ev5_switch_mm() argument
166 ev4_switch_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm, in ev4_switch_mm() argument
177 if (prev_mm != next_mm) in ev4_switch_mm()
182 ev5_switch_mm(prev_mm, next_mm, next); in ev4_switch_mm()
205 ev5_activate_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm) in ev5_activate_mm() argument
211 ev4_activate_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm) in ev4_activate_mm() argument
/kernel/linux/linux-6.6/include/asm-generic/
H A Dmmu_context.h53 * @prev_mm: previous mm of this task
57 static inline void activate_mm(struct mm_struct *prev_mm, in activate_mm() argument
60 switch_mm(prev_mm, next_mm, current); in activate_mm()
/kernel/linux/linux-6.6/arch/x86/mm/
H A Dtlb.c345 static void l1d_flush_evaluate(unsigned long prev_mm, unsigned long next_mm, in l1d_flush_evaluate() argument
349 if (prev_mm & LAST_USER_MM_L1D_FLUSH) in l1d_flush_evaluate()
385 unsigned long prev_mm, next_mm; in cond_mitigation() local
391 prev_mm = this_cpu_read(cpu_tlbstate.last_user_mm_spec); in cond_mitigation()
441 if (next_mm != prev_mm && in cond_mitigation()
442 (next_mm | prev_mm) & LAST_USER_MM_IBPB) in cond_mitigation()
452 if ((prev_mm & ~LAST_USER_MM_SPEC_MASK) != in cond_mitigation()
463 if (unlikely((prev_mm | next_mm) & LAST_USER_MM_L1D_FLUSH)) in cond_mitigation()
464 l1d_flush_evaluate(prev_mm, next_mm, next); in cond_mitigation()
/kernel/linux/linux-5.10/arch/m68k/include/asm/
H A Dmmu_context.h215 static inline void activate_mm(struct mm_struct *prev_mm, in activate_mm() argument
305 static inline void activate_mm(struct mm_struct *prev_mm, in activate_mm() argument
333 static inline void activate_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm) in activate_mm() argument
/kernel/linux/linux-5.10/arch/ia64/include/asm/
H A Dmmu_context.h197 #define switch_mm(prev_mm,next_mm,next_task) activate_mm(prev_mm, next_mm)
/kernel/linux/linux-6.6/arch/ia64/include/asm/
H A Dmmu_context.h189 #define switch_mm(prev_mm,next_mm,next_task) activate_mm(prev_mm, next_mm)
/kernel/linux/linux-5.10/include/asm-generic/
H A Dmmu_context.h41 static inline void activate_mm(struct mm_struct *prev_mm, in activate_mm() argument
/kernel/linux/linux-6.6/arch/m68k/include/asm/
H A Dmmu_context.h214 static inline void activate_mm(struct mm_struct *prev_mm, in activate_mm() argument
302 static inline void activate_mm(struct mm_struct *prev_mm, in activate_mm() argument
/kernel/linux/linux-5.10/arch/x86/mm/
H A Dtlb.c342 unsigned long prev_mm, next_mm; in cond_ibpb() local
376 prev_mm = this_cpu_read(cpu_tlbstate.last_user_mm_ibpb); in cond_ibpb()
382 if (next_mm != prev_mm && in cond_ibpb()
383 (next_mm | prev_mm) & LAST_USER_MM_IBPB) in cond_ibpb()
/kernel/linux/linux-5.10/arch/x86/platform/efi/
H A Defi_64.c467 efi_scratch.prev_mm = current->active_mm; in efi_switch_mm()
469 switch_mm(efi_scratch.prev_mm, mm, NULL); in efi_switch_mm()
538 efi_switch_mm(efi_scratch.prev_mm); in efi_thunk_set_virtual_address_map()
848 efi_switch_mm(efi_scratch.prev_mm); in efi_set_virtual_address_map()
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Defi.h100 * @prev_mm: store/restore stolen mm_struct while switching to/from efi_mm
104 struct mm_struct *prev_mm; member
120 efi_switch_mm(efi_scratch.prev_mm); \
/kernel/linux/linux-5.10/mm/
H A Dswapfile.c2189 struct mm_struct *prev_mm; in try_to_unuse() local
2209 prev_mm = &init_mm; in try_to_unuse()
2210 mmget(prev_mm); in try_to_unuse()
2222 mmput(prev_mm); in try_to_unuse()
2223 prev_mm = mm; in try_to_unuse()
2227 mmput(prev_mm); in try_to_unuse()
2240 mmput(prev_mm); in try_to_unuse()
/kernel/linux/linux-6.6/mm/
H A Dswapfile.c2052 struct mm_struct *prev_mm; in try_to_unuse() local
2069 prev_mm = &init_mm; in try_to_unuse()
2070 mmget(prev_mm); in try_to_unuse()
2082 mmput(prev_mm); in try_to_unuse()
2083 prev_mm = mm; in try_to_unuse()
2086 mmput(prev_mm); in try_to_unuse()
2099 mmput(prev_mm); in try_to_unuse()
/kernel/linux/linux-5.10/kernel/sched/
H A Dsched.h1057 struct mm_struct *prev_mm; member
2857 struct mm_struct *prev_mm, in membarrier_switch_mm()
2862 if (prev_mm == next_mm) in membarrier_switch_mm()
2873 struct mm_struct *prev_mm, in membarrier_switch_mm()
2856 membarrier_switch_mm(struct rq *rq, struct mm_struct *prev_mm, struct mm_struct *next_mm) membarrier_switch_mm() argument
2872 membarrier_switch_mm(struct rq *rq, struct mm_struct *prev_mm, struct mm_struct *next_mm) membarrier_switch_mm() argument
H A Dcore.c3778 struct mm_struct *mm = rq->prev_mm;
3797 rq->prev_mm = NULL;
3965 rq->prev_mm = prev->active_mm; in context_switch()
/kernel/linux/linux-6.6/kernel/sched/
H A Dsched.h1124 struct mm_struct *prev_mm; member
3431 struct mm_struct *prev_mm, in membarrier_switch_mm()
3436 if (prev_mm == next_mm) in membarrier_switch_mm()
3447 struct mm_struct *prev_mm, in membarrier_switch_mm()
3430 membarrier_switch_mm(struct rq *rq, struct mm_struct *prev_mm, struct mm_struct *next_mm) membarrier_switch_mm() argument
3446 membarrier_switch_mm(struct rq *rq, struct mm_struct *prev_mm, struct mm_struct *next_mm) membarrier_switch_mm() argument
H A Dcore.c5388 struct mm_struct *mm = rq->prev_mm;
5407 rq->prev_mm = NULL;
5542 rq->prev_mm = prev->active_mm; in context_switch()

Completed in 50 milliseconds