Lines Matching defs:mm_ctx
77 mm_context_t *mm_ctx = ¤t->mm->context;
81 spin_lock(&mm_ctx->bd_emupage_lock);
84 if (!mm_ctx->bd_emupage_allocmap) {
85 mm_ctx->bd_emupage_allocmap = bitmap_zalloc(emupage_frame_count,
87 if (!mm_ctx->bd_emupage_allocmap) {
94 idx = bitmap_find_free_region(mm_ctx->bd_emupage_allocmap,
105 spin_unlock(&mm_ctx->bd_emupage_lock);
106 if (!wait_event_killable(mm_ctx->bd_emupage_queue,
107 !bitmap_full(mm_ctx->bd_emupage_allocmap,
118 spin_unlock(&mm_ctx->bd_emupage_lock);
124 mm_context_t *mm_ctx = &mm->context;
126 spin_lock(&mm_ctx->bd_emupage_lock);
129 bitmap_clear(mm_ctx->bd_emupage_allocmap, idx, 1);
132 wake_up(&mm_ctx->bd_emupage_queue);
134 spin_unlock(&mm_ctx->bd_emupage_lock);
204 mm_context_t *mm_ctx = &mm->context;
206 bitmap_free(mm_ctx->bd_emupage_allocmap);