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 =
90 if (!mm_ctx->bd_emupage_allocmap) {
97 idx = bitmap_find_free_region(mm_ctx->bd_emupage_allocmap,
108 spin_unlock(&mm_ctx->bd_emupage_lock);
109 if (!wait_event_killable(mm_ctx->bd_emupage_queue,
110 !bitmap_full(mm_ctx->bd_emupage_allocmap,
121 spin_unlock(&mm_ctx->bd_emupage_lock);
127 mm_context_t *mm_ctx = &mm->context;
129 spin_lock(&mm_ctx->bd_emupage_lock);
132 bitmap_clear(mm_ctx->bd_emupage_allocmap, idx, 1);
135 wake_up(&mm_ctx->bd_emupage_queue);
137 spin_unlock(&mm_ctx->bd_emupage_lock);
207 mm_context_t *mm_ctx = &mm->context;
209 kfree(mm_ctx->bd_emupage_allocmap);