Lines Matching refs:ctx
53 unsigned long ctx = next_mmu_context;
55 while (test_and_set_bit(ctx, context_map)) {
56 ctx = find_next_zero_bit(context_map, LAST_CONTEXT+1, ctx);
57 if (ctx > LAST_CONTEXT)
58 ctx = 0;
60 next_mmu_context = (ctx + 1) & LAST_CONTEXT;
62 return ctx;
85 void __destroy_context(unsigned long ctx)
87 clear_bit(ctx, context_map);