Searched refs:nr_free_contexts (Results 1 – 5 of 5) sorted by relevance
58 static unsigned int next_context, nr_free_contexts; variable166 nr_free_contexts = last_context - first_context; in steal_all_contexts()214 if (nrf != nr_free_contexts) { in context_check_map()216 nr_free_contexts, nrf); in context_check_map()217 nr_free_contexts = nrf; in context_check_map()271 if (nr_free_contexts == 0) { in switch_mmu_context()286 nr_free_contexts--; in switch_mmu_context()298 pr_hardcont(" | new id=%d,nrf=%d", id, nr_free_contexts); in switch_mmu_context()375 nr_free_contexts++; in destroy_context()489 nr_free_contexts = last_context - first_context + 1; in mmu_context_init()
35 atomic_t nr_free_contexts; variable49 atomic_set(&nr_free_contexts, LAST_CONTEXT - FIRST_CONTEXT + 1); in mmu_context_init()
76 extern atomic_t nr_free_contexts;89 while (atomic_dec_if_positive(&nr_free_contexts) < 0) in get_mmu_context()115 atomic_inc(&nr_free_contexts); in destroy_context()
28 extern atomic_t nr_free_contexts;38 while (atomic_dec_and_test_lt(&nr_free_contexts)) { in get_mmu_context()39 atomic_inc(&nr_free_contexts); in get_mmu_context()66 atomic_inc(&nr_free_contexts); in destroy_context()
29 atomic_t nr_free_contexts; variable197 atomic_set(&nr_free_contexts, LAST_CONTEXT - FIRST_CONTEXT + 1); in mmu_context_init()