Searched refs:nr_free_contexts (Results 1 – 5 of 5) sorted by relevance
81 static unsigned int next_context, nr_free_contexts; variable194 nr_free_contexts = LAST_CONTEXT - FIRST_CONTEXT; in steal_all_contexts()246 if (nrf != nr_free_contexts) { in context_check_map()248 nr_free_contexts, nrf); in context_check_map()249 nr_free_contexts = nrf; in context_check_map()306 if (nr_free_contexts == 0) { in switch_mmu_context()321 nr_free_contexts--; in switch_mmu_context()333 pr_hardcont(" | new id=%d,nrf=%d", id, nr_free_contexts); in switch_mmu_context()408 nr_free_contexts++; in destroy_context()492 nr_free_contexts = LAST_CONTEXT - FIRST_CONTEXT + 1; in mmu_context_init()
74 extern atomic_t nr_free_contexts;87 while (atomic_dec_if_positive(&nr_free_contexts) < 0) in get_mmu_context()113 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()
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; variable212 atomic_set(&nr_free_contexts, LAST_CONTEXT - FIRST_CONTEXT + 1); in cf_mmu_context_init()