| /freebsd-11-stable/usr.sbin/autofs/ |
| HD | automountd.c | 67 static int nchildren = 0; variable 530 nchildren -= wait_for_children(false); in main_automountd() 531 assert(nchildren >= 0); in main_automountd() 542 nchildren -= wait_for_children(false); in main_automountd() 543 assert(nchildren >= 0); in main_automountd() 545 while (maxproc > 0 && nchildren >= maxproc) { in main_automountd() 548 nchildren -= wait_for_children(true); in main_automountd() 549 assert(nchildren >= 0); in main_automountd() 552 nchildren); in main_automountd() 553 nchildren++; in main_automountd()
|
| /freebsd-11-stable/sys/dev/mii/ |
| HD | mii.c | 132 int i, nchildren; in miibus_attach() local 135 if (device_get_children(dev, &children, &nchildren) == 0) { in miibus_attach() 136 for (i = 0; i < nchildren; i++) { in miibus_attach() 142 if (nchildren == 0) { in miibus_attach() 235 int i, nchildren; in miibus_hinted_child() local 240 if (device_get_children(dev, &children, &nchildren) != 0) in miibus_hinted_child() 243 for (i = 0; i < nchildren; i++) { in miibus_hinted_child() 368 int bmsr, first, i, nchildren, phymax, phymin, rv; in mii_attach() local 430 if (device_get_children(*miibus, &children, &nchildren) != 0) { in mii_attach() 432 nchildren = 0; in mii_attach() [all …]
|
| /freebsd-11-stable/usr.sbin/pmcstat/ |
| HD | pmcpl_callgraph.c | 475 int v_attrs, vs_len, ns_len, width, len, n, nchildren; in pmcstat_cgnode_topprint() local 504 nchildren = cg->pcg_nchildren; in pmcstat_cgnode_topprint() 505 if (nchildren == 0) { in pmcstat_cgnode_topprint() 514 nchildren)) == NULL) in pmcstat_cgnode_topprint() 521 assert(cgn - sortbuffer == (int)nchildren); in pmcstat_cgnode_topprint() 523 qsort(sortbuffer, nchildren, sizeof(struct pmcstat_cgnode *), in pmcstat_cgnode_topprint() 527 for (cgn = sortbuffer, n = 0; n < nchildren; n++, cgn++) { in pmcstat_cgnode_topprint() 534 nchildren = n; in pmcstat_cgnode_topprint() 536 for (cgn = sortbuffer, n = 0; n < nchildren; n++, cgn++) { in pmcstat_cgnode_topprint() 540 if (nchildren > 1) { in pmcstat_cgnode_topprint() [all …]
|
| /freebsd-11-stable/usr.sbin/iscsid/ |
| HD | iscsid.c | 61 static int nchildren = 0; variable 571 nchildren -= wait_for_children(false); in main() 572 assert(nchildren >= 0); in main() 583 nchildren -= wait_for_children(false); in main() 584 assert(nchildren >= 0); in main() 586 while (maxproc > 0 && nchildren >= maxproc) { in main() 589 nchildren -= wait_for_children(true); in main() 590 assert(nchildren >= 0); in main() 593 nchildren); in main() 594 nchildren++; in main()
|
| /freebsd-11-stable/sys/isa/ |
| HD | isa_common.c | 500 int nchildren, i; in isa_probe_children() local 508 if (device_get_children(dev, &children, &nchildren)) in isa_probe_children() 524 for (i = 0; i < nchildren; i++) { in isa_probe_children() 538 for (i = 0; i < nchildren; i++) { in isa_probe_children() 558 if (device_get_children(dev, &children, &nchildren)) in isa_probe_children() 562 for (i = 0; i < nchildren; i++) { in isa_probe_children() 578 for (i = 0; i < nchildren; i++) { in isa_probe_children() 878 int nchildren, i; in isa_driver_added() local 890 if (device_get_children(dev, &children, &nchildren)) in isa_driver_added() 893 for (i = 0; i < nchildren; i++) { in isa_driver_added()
|
| /freebsd-11-stable/contrib/jemalloc/src/ |
| HD | rtree.c | 69 size_t nchildren, i; in rtree_delete_subtree() local 71 nchildren = ZU(1) << rtree->levels[level].bits; in rtree_delete_subtree() 72 for (i = 0; i < nchildren; i++) { in rtree_delete_subtree()
|
| HD | ctl.c | 837 assert(node->nchildren > 0); in ctl_lookup() 842 for (j = 0; j < node->nchildren; j++) { in ctl_lookup() 978 assert(node->nchildren > 0); in ctl_bymib() 981 if (node->nchildren <= (unsigned)mib[i]) { in ctl_bymib()
|
| /freebsd-11-stable/sys/sparc64/sparc64/ |
| HD | jbusppm.c | 116 int j, nchildren; in jbusppm_attach() local 149 &children, &nchildren) != 0) { in jbusppm_attach() 154 for (j = 0; j < nchildren; j++) { in jbusppm_attach()
|
| HD | upa.c | 198 int nchildren; in upa_attach() local 233 &children, &nchildren) != 0) { in upa_attach() 238 for (j = 0; j < nchildren; j++) { in upa_attach()
|
| /freebsd-11-stable/sys/dev/le/ |
| HD | lebuffer_sbus.c | 156 int i, nchildren; in lebuffer_detach() local 159 if (device_get_children(dev, &children, &nchildren) == 0) { in lebuffer_detach() 160 for (i = 0; i < nchildren; i++) { in lebuffer_detach()
|
| /freebsd-11-stable/sys/dev/ata/chipsets/ |
| HD | ata-acerlabs.c | 264 int nchildren, i; in ata_ali_reset() local 274 if (!device_get_children(GRANDPARENT(dev), &children, &nchildren)) { in ata_ali_reset() 275 for (i = 0; i < nchildren; i++) { in ata_ali_reset()
|
| HD | ata-serverworks.c | 149 int nchildren, i; in ata_serverworks_chipinit() local 152 if (!device_get_children(device_get_parent(dev), &children,&nchildren)){ in ata_serverworks_chipinit() 153 for (i = 0; i < nchildren; i++) { in ata_serverworks_chipinit()
|
| HD | ata-via.c | 378 int nchildren, i; in ata_via_southbridge_fixup() local 380 if (device_get_children(device_get_parent(dev), &children, &nchildren)) in ata_via_southbridge_fixup() 383 for (i = 0; i < nchildren; i++) { in ata_via_southbridge_fixup()
|
| /freebsd-11-stable/sys/dev/nand/ |
| HD | nandbus.c | 138 int nchildren, i; in nandbus_destroy() local 142 if (!device_get_children(nfc, &children, &nchildren)) { in nandbus_destroy() 143 for (i = 0; i < nchildren; i++) in nandbus_destroy()
|
| /freebsd-11-stable/sys/compat/linsysfs/ |
| HD | linsysfs.c | 262 int i, nchildren, error; in linsysfs_run_bus() local 401 error = device_get_children(dev, &children, &nchildren); in linsysfs_run_bus() 403 for (i = 0; i < nchildren; i++) in linsysfs_run_bus()
|
| /freebsd-11-stable/sys/x86/x86/ |
| HD | mp_x86.c | 714 int nchildren; in x86topo_add_sched_group() local 755 nchildren = 0; in x86topo_add_sched_group() 764 nchildren++; in x86topo_add_sched_group() 768 cg_root->cg_child = smp_topo_alloc(nchildren); in x86topo_add_sched_group() 769 cg_root->cg_children = nchildren; in x86topo_add_sched_group()
|
| /freebsd-11-stable/sys/dev/esp/ |
| HD | esp_sbus.c | 204 int error, i, nchildren; in esp_sbus_attach() local 288 &nchildren) != 0) { in esp_sbus_attach() 292 for (i = 0; i < nchildren; i++) { in esp_sbus_attach()
|
| /freebsd-11-stable/usr.sbin/ctld/ |
| HD | ctld.c | 64 static int nchildren = 0; variable 2309 nchildren -= wait_for_children(false); in handle_connection() 2310 assert(nchildren >= 0); in handle_connection() 2312 while (conf->conf_maxproc > 0 && nchildren >= conf->conf_maxproc) { in handle_connection() 2315 nchildren -= wait_for_children(true); in handle_connection() 2316 assert(nchildren >= 0); in handle_connection() 2319 nchildren); in handle_connection() 2320 nchildren++; in handle_connection() 2726 nchildren -= wait_for_children(false); in main() 2727 assert(nchildren >= 0); in main()
|
| /freebsd-11-stable/contrib/jemalloc/include/jemalloc/internal/ |
| HD | ctl.h | 22 unsigned nchildren; member
|
| /freebsd-11-stable/sys/sys/ |
| HD | smp.h | 60 int nchildren; member
|
| /freebsd-11-stable/sys/dev/ata/ |
| HD | ata-pci.c | 874 int nchildren, i; in ata_find_chip() local 877 if (device_get_children(device_get_parent(dev), &children, &nchildren)) in ata_find_chip() 880 for (i = 0; i < nchildren; i++) { in ata_find_chip()
|
| /freebsd-11-stable/sys/dev/sound/pci/ |
| HD | t4dwave.c | 832 int nchildren; in tr_pci_attach() local 908 &nchildren) == 0) { in tr_pci_attach() 909 for (i = 0; i < nchildren; i++) { in tr_pci_attach()
|
| /freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| HD | spa.c | 5199 uint64_t nchildren; local 5221 nchildren = 1; 5222 nvlist_lookup_uint64(best_cfg, ZPOOL_CONFIG_VDEV_CHILDREN, &nchildren); 5227 tops = kmem_zalloc(nchildren * sizeof(void *), KM_SLEEP); 5228 for (i = 0; i < nchildren; i++) { 5238 if (i >= nchildren) 5250 for (i = 0; i < nchildren; i++) { 5278 tops, nchildren) == 0); 5295 for (i = 0; i < nchildren; i++) 5297 kmem_free(tops, nchildren * sizeof(void *));
|
| /freebsd-11-stable/sys/kern/ |
| HD | subr_smp.c | 947 parent->nchildren++; in topo_add_node_by_hwid()
|