Lines Matching refs:idn

49 #include <sys/idn.h>
80 * local domain (i.e. domid == idn.localid), or it's being
104 ASSERT(idn.localid == IDN_GET_MASTERID());
211 ASSERT(idn.localid != IDN_GET_MASTERID());
212 ASSERT(domid == idn.localid);
240 if ((idn.state != IDNGS_ONLINE) ||
255 * idn.masterid where we grab the READER global
303 proc, domid, serrno, idngs_str[idn.state],
407 proc, (idn.localid == IDN_GET_MASTERID()) ?
447 ASSERT(domid == idn.localid);
448 ASSERT(idn.localid != IDN_GET_MASTERID());
544 ASSERT(idn_domain[idn.localid].dvote.v.master == 0);
595 ASSERT((domid != idn.localid) && (domid != IDN_NIL_DOMID));
611 ldp = &idn_domain[idn.localid];
618 DSLAB_LOCK_SHARED(idn.localid);
624 if ((serrno = smr_slab_alloc(idn.localid, &sp)) != 0) {
628 DSLAB_UNLOCK(idn.localid);
642 DSLAB_UNLOCK(idn.localid);
703 DSLAB_UNLOCK(idn.localid);
727 ASSERT(domid != idn.localid);
731 ldp = &idn_domain[idn.localid];
733 DSLAB_LOCK_SHARED(idn.localid);
788 DSLAB_UNLOCK(idn.localid);
823 ASSERT(domid != idn.localid);
830 ldp = &idn_domain[idn.localid];
838 DSLAB_LOCK_EXCL(idn.localid);
861 DSLAB_UNLOCK(idn.localid);
875 ldp = &idn_domain[idn.localid];
878 ASSERT(domid != idn.localid);
895 DSLAB_LOCK_SHARED(idn.localid);
936 DSLAB_UNLOCK(idn.localid);
967 if (idn.slabwaiter != NULL)
973 idn.slabwaiter = GETSTRUCT(struct slabwaiter, MAX_DOMAINS);
974 wp = idn.slabwaiter;
990 if ((wp = idn.slabwaiter) == NULL)
1000 FREESTRUCT(idn.slabwaiter, struct slabwaiter, MAX_DOMAINS);
1001 idn.slabwaiter = NULL;
1010 if ((domset == 0) || !idn.slabwaiter)
1013 wp = idn.slabwaiter;
1030 if ((domset == 0) || !idn.slabwaiter)
1033 wp = idn.slabwaiter;
1093 wp = &idn.slabwaiter[domid];
1151 wp = &idn.slabwaiter[domid];
1255 wp = &idn.slabwaiter[domid];
1347 wp = &idn.slabwaiter[domid];
1371 ASSERT(domid == idn.localid);
1411 proc, domid, idn.localid);
1416 if (domid == idn.localid) {
1511 if (domid == idn.localid)
1655 if ((idn.localid != IDN_GET_MASTERID()) ||
1657 (idn.slabpool != NULL) ||
1662 idn.slabpool = GETSTRUCT(struct slabpool, 1);
1663 idn.slabpool->ntotslabs = ntotslabs = nwr_available / IDN_SLAB_SIZE;
1667 idn.slabpool->npools = (ntotslabs + (minperpool - 1)) / minperpool;
1669 if ((idn.slabpool->npools & 1) == 0) {
1673 idn.slabpool->npools++;
1675 ASSERT(idn.slabpool->npools > 0);
1676 minperpool = (ntotslabs < idn.slabpool->npools) ?
1677 1 : (ntotslabs / idn.slabpool->npools);
1685 if (ntotslabs > (idn.slabpool->npools * minperpool))
1686 nxslabs = ntotslabs - (idn.slabpool->npools * minperpool);
1689 ASSERT((nxslabs >= 0) && (nxslabs < idn.slabpool->npools));
1691 idn.slabpool->pool = GETSTRUCT(struct smr_slabtbl,
1692 idn.slabpool->npools);
1693 sp = GETSTRUCT(smr_slab_t, idn.slabpool->ntotslabs);
1695 idn.slabpool->savep = sp;
1696 bufp = idn.smr.vaddr + reserved_size;
1699 (p < idn.slabpool->npools) && (ntotslabs > 0);
1707 idn.slabpool->pool[p].sarray = sp;
1718 idn.slabpool->pool[p].nfree = nslabs;
1719 idn.slabpool->pool[p].nslabs = nslabs;
1725 ASSERT(bufp == (idn.smr.vaddr + reserved_size
1726 + (idn.slabpool->ntotslabs * IDN_SLAB_SIZE)));
1729 *reserved_area = idn.smr.vaddr;
1737 if (idn.slabpool == NULL)
1740 FREESTRUCT(idn.slabpool->savep, smr_slab_t, idn.slabpool->ntotslabs);
1741 FREESTRUCT(idn.slabpool->pool, struct smr_slabtbl,
1742 idn.slabpool->npools);
1743 FREESTRUCT(idn.slabpool, struct slabpool, 1);
1745 idn.slabpool = NULL;
1817 spa = &(idn.slabpool->pool[p].sarray[0]);
1835 ASSERT((&spa[s] >= idn.slabpool->savep) &&
1836 (&spa[s] < (idn.slabpool->savep +
1837 idn.slabpool->ntotslabs)));
1841 ATOMIC_DEC(idn.slabpool->pool[p].nfree);
1843 if (domid == idn.localid) {
1856 ASSERT(idn.localid == IDN_GET_MASTERID());
1901 spa = &(idn.slabpool->pool[p].sarray[0]);
1917 ASSERT((&spa[s] >= idn.slabpool->savep) &&
1918 (&spa[s] < (idn.slabpool->savep +
1919 idn.slabpool->ntotslabs)));
1927 ATOMIC_INC(idn.slabpool->pool[p].nfree);
1932 if (domid == idn.localid) {
1941 ASSERT(idn.localid == IDN_GET_MASTERID());
2000 DSLAB_LOCK_SHARED(idn.localid);
2001 if (idn_domain[idn.localid].dslab_state != DSLAB_STATE_LOCAL) {
2004 DSLAB_UNLOCK(idn.localid);
2007 DSLAB_UNLOCK(idn.localid);
2016 ASSERT(idn.slabpool);
2018 npools = idn.slabpool->npools;
2019 tblp = idn.slabpool->pool;
2032 reap_per_domain = (diff < idn.ndomains) ?
2033 1 : (diff / idn.ndomains);
2052 if (domid != idn.localid) {
2054 proc, domid, idn.localid);
2062 reapset = idn.domset.ds_connected;
2077 if ((d == idn.localid) || (dp->dcpu < 0)) {
2094 ldp = &idn_domain[idn.localid];
2095 IDN_DLOCK_EXCL(idn.localid);
2096 DSLAB_LOCK_EXCL(idn.localid);
2101 DSLAB_UNLOCK(idn.localid);
2105 IDN_DUNLOCK(idn.localid);