/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | mdeg.c | 322 int nnodes; in mdeg_notify_client_reg() local 364 nnodes = md_scan_dag(mdp, startnode, nname, aname, NULL); in mdeg_notify_client_reg() 366 if (nnodes == 0) { in mdeg_notify_client_reg() 370 } else if (nnodes == -1) { in mdeg_notify_client_reg() 377 nnodes, (nnodes == 1) ? "" : "s"); in mdeg_notify_client_reg() 380 listp = kmem_alloc(sizeof (mde_cookie_t) * nnodes, KM_SLEEP); in mdeg_notify_client_reg() 383 ASSERT(nodechk == nnodes); in mdeg_notify_client_reg() 387 mdeg_res->added.nelem = nnodes; in mdeg_notify_client_reg() 399 kmem_free(listp, sizeof (mde_cookie_t) * nnodes); in mdeg_notify_client_reg() 652 int nnodes; in mdeg_find_start_node() local [all …]
|
H A D | dr_io.c | 176 int nnodes; in dr_io_find_node_md() local 190 nnodes = md_scan_dag(mdp, rootnode, md_find_name(mdp, "virtual-device"), in dr_io_find_node_md() 193 if (nnodes < 0) { in dr_io_find_node_md() 199 DR_DBG_IO("%s: found %d nodes in the MD\n", __func__, nnodes); in dr_io_find_node_md() 204 for (i = 0; i < nnodes; i++) { in dr_io_find_node_md() 431 int nnodes; in dr_io_configure() local 475 nnodes = md_node_count(mdp); in dr_io_configure() 476 ASSERT(nnodes > 0); in dr_io_configure() 478 listsz = nnodes * sizeof (mde_cookie_t); in dr_io_configure()
|
H A D | dr_mem.c | 1049 int nnodes; in dr_mem_find_node_md() local 1061 nnodes = md_scan_dag(mdp, rootnode, md_find_name(mdp, "mblock"), in dr_mem_find_node_md() 1064 if (nnodes < 0) { in dr_mem_find_node_md() 1069 DR_DBG_MEM("dr_mem_find_node_md: found %d mblks in the MD\n", nnodes); in dr_mem_find_node_md() 1074 for (idx = 0; idx < nnodes; idx++) { in dr_mem_find_node_md()
|
H A D | dr_cpu.c | 1611 int nnodes; in dr_cpu_find_node_md() local 1622 nnodes = md_scan_dag(mdp, rootnode, md_find_name(mdp, "cpu"), in dr_cpu_find_node_md() 1625 if (nnodes < 0) { in dr_cpu_find_node_md() 1630 DR_DBG_CPU("dr_cpu_find_node_md: found %d CPUs in the MD\n", nnodes); in dr_cpu_find_node_md() 1635 for (idx = 0; idx < nnodes; idx++) { in dr_cpu_find_node_md()
|
/illumos-gate/usr/src/lib/libv12n/sparc/ |
H A D | libv12n.c | 204 int nnodes; in v12n_domaining_enabled() local 212 nnodes = md_node_count(mdp); in v12n_domaining_enabled() 213 nodes = malloc(nnodes * sizeof (mde_cookie_t)); in v12n_domaining_enabled() 221 nnodes = md_scan_dag(mdp, rootnode, md_find_name(mdp, "platform"), in v12n_domaining_enabled() 224 if (nnodes >= 1) { in v12n_domaining_enabled() 278 int nnodes, i, j; in v12n_scan_md_nodes() local 281 nnodes = md_node_count(mdp); in v12n_scan_md_nodes() 282 nodes = malloc(nnodes * sizeof (mde_cookie_t)); in v12n_scan_md_nodes() 289 nnodes = md_scan_dag(mdp, rootnode, md_find_name(mdp, node_name), in v12n_scan_md_nodes() 293 return (nnodes > 0); in v12n_scan_md_nodes() [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | tag.c | 41 size_t nnodes; member 143 entry->maxnodes = entry->nnodes = 0; in tag_put() 162 while (entry->nnodes > 0) { in tag_put() 163 nold = entry->nodes[--entry->nnodes]; in tag_put() 176 if (entry->maxnodes == entry->nnodes) { in tag_put() 181 entry->nodes[entry->nnodes++] = n; in tag_put()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | nvtype.c | 855 int size=sizeof(NV_DATA), dsize=0, nnodes; in nv_mktype() local 869 for(nnodes=1,i=1; i <numnodes; i++) in nv_mktype() 900 nnodes++; in nv_mktype() 906 nnodes += dp->numnodes; in nv_mktype() 914 nnodes = dp->numnodes; in nv_mktype() 933 …pp = newof(NiL, Namtype_t, 1, nnodes*NV_MINSZ + offset + size + (nnodes+nd)*sizeof(char*) + iref*s… in nv_mktype() 934 pp->fun.dsize = sizeof(Namtype_t)+nnodes*NV_MINSZ +offset+k; in nv_mktype() 945 pp->numnodes = nnodes; in nv_mktype() 946 pp->data = pp->nodes + nnodes*NV_MINSZ +k; in nv_mktype() 952 cp = (char*)&pp->names[nd+nnodes]; in nv_mktype() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | mp_startup.c | 717 static uint_t nnodes = 0; in opteron_get_nnodes() local 719 if (nnodes == 0) { in opteron_get_nnodes() 748 nnodes = ((pci_getl_func(0, 24, 0, 0x60) & 0x70) >> 4) + 1; in opteron_get_nnodes() 750 return (nnodes); in opteron_get_nnodes() 1142 uint_t node, nnodes; in workaround_errata() local 1145 nnodes = opteron_get_nnodes(); in workaround_errata() 1146 for (node = 0; node < nnodes; node++) { in workaround_errata()
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiohd/ |
H A D | audiohd.h | 780 int nnodes; /* # of subnodes of AFG */ member
|
H A D | audiohd.c | 3078 codec->nnodes = nums; in audiohd_create_codec()
|