Lines Matching refs:ctxp
110 static inline void srmmu_ctxd_set(ctxd_t *ctxp, pgd_t *pgdp) in srmmu_ctxd_set() argument
115 set_pte((pte_t *)ctxp, pte); in srmmu_ctxd_set()
416 struct ctx_list *ctxp; in alloc_context() local
418 ctxp = ctx_free.next; in alloc_context()
419 if (ctxp != &ctx_free) { in alloc_context()
420 remove_from_ctx_list(ctxp); in alloc_context()
421 add_to_used_ctxlist(ctxp); in alloc_context()
422 mm->context = ctxp->ctx_number; in alloc_context()
423 ctxp->ctx_mm = mm; in alloc_context()
426 ctxp = ctx_used.next; in alloc_context()
427 if (ctxp->ctx_mm == old_mm) in alloc_context()
428 ctxp = ctxp->next; in alloc_context()
429 if (ctxp == &ctx_used) in alloc_context()
431 flush_cache_mm(ctxp->ctx_mm); in alloc_context()
432 flush_tlb_mm(ctxp->ctx_mm); in alloc_context()
433 remove_from_ctx_list(ctxp); in alloc_context()
434 add_to_used_ctxlist(ctxp); in alloc_context()
435 ctxp->ctx_mm->context = NO_CONTEXT; in alloc_context()
436 ctxp->ctx_mm = mm; in alloc_context()
437 mm->context = ctxp->ctx_number; in alloc_context()