Lines Matching defs:mm
2 * linux/arch/cris/mm/tlb.c
16 /* The TLB can host up to 64 different mm contexts at the same time.
19 * of which mm we have assigned to which page_id, so that we know when
36 alloc_context(struct mm_struct *mm)
40 D(printk("tlb: alloc context %d (%p)\n", map_replace_ptr, mm));
42 /* did we replace an mm ? */
47 /* throw out any TLB entries belonging to the mm we replace
57 mm->context.page_id = map_replace_ptr;
58 page_id_map[map_replace_ptr] = mm;
67 * if needed, get a new MMU context for the mm. otherwise nothing is done.
71 get_mmu_context(struct mm_struct *mm)
73 if(mm->context.page_id == NO_CONTEXT)
74 alloc_context(mm);
78 * destroying the mm itself. this is only called when the last user of the mm
86 destroy_context(struct mm_struct *mm)
88 if(mm->context.page_id != NO_CONTEXT) {
89 D(printk("destroy_context %d (%p)\n", mm->context.page_id, mm));
90 flush_tlb_mm(mm); /* TODO this might be redundant ? */
91 page_id_map[mm->context.page_id] = NULL;