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,
9626 * Do a wrap-around if cnum reaches the max # cnum supported by a MMU.
9655 ASSERT(!ret || scsfmmup->sfmmu_ctxs[CPU_MMU_IDX(CPU)].cnum
9666 * When all cnums are used up in a MMU, cnum will wrap around to the
9740 /* reset mmu cnum, skips cnum 0 and 1 */
9759 uint_t cnum;
9775 cnum = sfmmup->sfmmu_ctxs[CPU_MMU_IDX(CPU)].cnum;
9776 if (cnum != INVALID_CONTEXT) {
9787 if (curcnum == cnum)
9790 ASSERT(curcnum == cnum || curcnum == INVALID_CONTEXT);
9948 ASSERT(sfmmup->sfmmu_ctxs[i].cnum == INVALID_CONTEXT);
12402 * cnum wrap-around, and then flush the TLB one time. This
12413 int cnum, currcnum;
12430 currcnum = sfmmup->sfmmu_ctxs[mmu_ctxp->mmu_idx].cnum;
12435 /* set HAT cnum invalid across all context domains. */
12438 cnum = sfmmup->sfmmu_ctxs[i].cnum;
12439 if (cnum == INVALID_CONTEXT) {
12443 sfmmup->sfmmu_ctxs[i].cnum = INVALID_CONTEXT;
12482 ASSERT(sfmmup->sfmmu_ctxs[mmu_ctxp->mmu_idx].cnum == INVALID_CONTEXT);
13968 (sfmmup->sfmmu_ctxs[CPU_MMU_IDX(CPU)].cnum
14883 scsfmmup->sfmmu_ctxs[i].cnum = INVALID_CONTEXT;