Lines Matching defs:cnum
1461 uint64_t cnum;
1475 cnum = KCONTEXT;
1493 cnum = INVALID_CONTEXT;
1516 sfmmup->sfmmu_ctxs[i].cnum = cnum;
1723 * contexts, and forces cnum to its max. As a result of this call all user
1727 * hat_lock, but fail, because cnum == nctxs, and therefore also trap and block
1801 * Setting mmu_cnum may race with sfmmu_alloc_ctx which also sets cnum,
1809 /* make sure updated cnum visible */
1897 * sfmmu_setctx_sec takes <pgsz|cnum> as a parameter,
9632 * Do a wrap-around if cnum reaches the max # cnum supported by a MMU.
9661 ASSERT(!ret || scsfmmup->sfmmu_ctxs[CPU_MMU_IDX(CPU)].cnum
9672 * When all cnums are used up in a MMU, cnum will wrap around to the
9746 /* reset mmu cnum, skips cnum 0 and 1 */
9765 uint_t cnum;
9781 cnum = sfmmup->sfmmu_ctxs[CPU_MMU_IDX(CPU)].cnum;
9782 if (cnum != INVALID_CONTEXT) {
9793 if (curcnum == cnum)
9796 ASSERT(curcnum == cnum || curcnum == INVALID_CONTEXT);
9954 ASSERT(sfmmup->sfmmu_ctxs[i].cnum == INVALID_CONTEXT);
12410 * cnum wrap-around, and then flush the TLB one time. This
12421 int cnum, currcnum;
12438 currcnum = sfmmup->sfmmu_ctxs[mmu_ctxp->mmu_idx].cnum;
12443 /* set HAT cnum invalid across all context domains. */
12446 cnum = sfmmup->sfmmu_ctxs[i].cnum;
12447 if (cnum == INVALID_CONTEXT) {
12451 sfmmup->sfmmu_ctxs[i].cnum = INVALID_CONTEXT;
12490 ASSERT(sfmmup->sfmmu_ctxs[mmu_ctxp->mmu_idx].cnum == INVALID_CONTEXT);
13980 (sfmmup->sfmmu_ctxs[CPU_MMU_IDX(CPU)].cnum
14895 scsfmmup->sfmmu_ctxs[i].cnum = INVALID_CONTEXT;