Searched refs:nr_free_contexts (Results 1 – 5 of 5) sorted by relevance
72 static unsigned int next_context, nr_free_contexts; variable172 nr_free_contexts = LAST_CONTEXT - FIRST_CONTEXT; in steal_all_contexts()263 if (nr_free_contexts == 0) { in switch_mmu_context()276 nr_free_contexts--; in switch_mmu_context()345 nr_free_contexts++; in destroy_context()424 nr_free_contexts = LAST_CONTEXT - FIRST_CONTEXT + 1; in mmu_context_init()
70 extern atomic_t nr_free_contexts;83 while (atomic_dec_if_positive(&nr_free_contexts) < 0) in get_mmu_context()110 atomic_inc(&nr_free_contexts); in destroy_context()
30 atomic_t nr_free_contexts; variable44 atomic_set(&nr_free_contexts, LAST_CONTEXT - FIRST_CONTEXT + 1); in mmu_context_init()
24 extern atomic_t nr_free_contexts;34 while (arch_atomic_dec_and_test_lt(&nr_free_contexts)) { in get_mmu_context()35 atomic_inc(&nr_free_contexts); in get_mmu_context()63 atomic_inc(&nr_free_contexts); in destroy_context()
29 atomic_t nr_free_contexts; variable213 atomic_set(&nr_free_contexts, LAST_CONTEXT - FIRST_CONTEXT + 1); in cf_mmu_context_init()