Lines Matching refs:mm
84 flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm() argument
87 int page_id = mm->context; in flush_tlb_mm()
90 D(printk("tlb: flush mm context %d (%p)\n", page_id, mm)); in flush_tlb_mm()
123 struct mm_struct *mm = vma->vm_mm; in flush_tlb_page() local
124 int page_id = mm->context; in flush_tlb_page()
128 D(printk("tlb: flush page %p in context %d (%p)\n", addr, page_id, mm)); in flush_tlb_page()
162 flush_tlb_range(struct mm_struct *mm, in flush_tlb_range() argument
166 int page_id = mm->context; in flush_tlb_range()
171 start, end, page_id, mm)); in flush_tlb_range()
231 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context() argument
233 mm->context = NO_CONTEXT; in init_new_context()
240 alloc_context(struct mm_struct *mm) in alloc_context() argument
244 D(printk("tlb: alloc context %d (%p)\n", map_replace_ptr, mm)); in alloc_context()
261 mm->context = map_replace_ptr; in alloc_context()
262 page_id_map[map_replace_ptr] = mm; in alloc_context()
275 get_mmu_context(struct mm_struct *mm) in get_mmu_context() argument
277 if(mm->context == NO_CONTEXT) in get_mmu_context()
278 alloc_context(mm); in get_mmu_context()
317 destroy_context(struct mm_struct *mm) in destroy_context() argument
319 if(mm->context != NO_CONTEXT) { in destroy_context()
320 D(printk("destroy_context %d (%p)\n", mm->context, mm)); in destroy_context()
321 flush_tlb_mm(mm); /* TODO this might be redundant ? */ in destroy_context()
322 page_id_map[mm->context] = NULL; in destroy_context()