/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | spa_os.c | 83 uint64_t nchildren; in spa_generate_rootconf() local 106 nchildren = 1; in spa_generate_rootconf() 107 nvlist_lookup_uint64(best_cfg, ZPOOL_CONFIG_VDEV_CHILDREN, &nchildren); in spa_generate_rootconf() 112 tops = kmem_zalloc(nchildren * sizeof (void *), KM_SLEEP); in spa_generate_rootconf() 113 for (i = 0; i < nchildren; i++) { in spa_generate_rootconf() 123 if (i >= nchildren) in spa_generate_rootconf() 133 for (i = 0; i < nchildren; i++) { in spa_generate_rootconf() 157 (const nvlist_t * const *)tops, nchildren); in spa_generate_rootconf() 174 for (i = 0; i < nchildren; i++) in spa_generate_rootconf() 176 kmem_free(tops, nchildren * sizeof (void *)); in spa_generate_rootconf()
|
/freebsd/usr.sbin/autofs/ |
H A D | automountd.c | 63 static int nchildren = 0; variable 526 nchildren -= wait_for_children(false); in main_automountd() 527 assert(nchildren >= 0); in main_automountd() 538 nchildren -= wait_for_children(false); in main_automountd() 539 assert(nchildren >= 0); in main_automountd() 541 while (maxproc > 0 && nchildren >= maxproc) { in main_automountd() 544 nchildren -= wait_for_children(true); in main_automountd() 545 assert(nchildren >= 0); in main_automountd() 548 nchildren); in main_automountd() 549 nchildren++; in main_automountd()
|
/freebsd/sys/dev/mii/ |
H A D | mii.c | 128 int i, nchildren; in miibus_attach() local 131 if (device_get_children(dev, &children, &nchildren) == 0) { in miibus_attach() 132 for (i = 0; i < nchildren; i++) { in miibus_attach() 138 if (nchildren == 0) { in miibus_attach() 242 int i, nchildren; in miibus_hinted_child() local 247 if (device_get_children(dev, &children, &nchildren) != 0) in miibus_hinted_child() 250 for (i = 0; i < nchildren; i++) { in miibus_hinted_child() 375 int bmsr, first, i, nchildren, phymax, phymin, rv; in mii_attach() local 439 if (device_get_children(*miibus, &children, &nchildren) != 0) { in mii_attach() 441 nchildren = 0; in mii_attach() [all …]
|
H A D | mii_fdt.c | 260 int i, error, nchildren; in miibus_fdt_attach() local 266 error = device_get_children(dev, &children, &nchildren); in miibus_fdt_attach() 267 if (error != 0 || nchildren == 0) in miibus_fdt_attach() 270 for (i = 0; i < nchildren; i++) { in miibus_fdt_attach()
|
/freebsd/usr.sbin/pmcstat/ |
H A D | pmcpl_callgraph.c | 478 int v_attrs, vs_len, ns_len, width, len, n, nchildren; in pmcstat_cgnode_topprint() local 520 nchildren = cg->pcg_nchildren; in pmcstat_cgnode_topprint() 521 if (nchildren == 0) { in pmcstat_cgnode_topprint() 530 nchildren)) == NULL) in pmcstat_cgnode_topprint() 537 assert(cgn - sortbuffer == (int)nchildren); in pmcstat_cgnode_topprint() 539 qsort(sortbuffer, nchildren, sizeof(struct pmcstat_cgnode *), in pmcstat_cgnode_topprint() 543 for (cgn = sortbuffer, n = 0; n < nchildren; n++, cgn++) { in pmcstat_cgnode_topprint() 550 nchildren = n; in pmcstat_cgnode_topprint() 552 for (cgn = sortbuffer, n = 0; n < nchildren; n++, cgn++) { in pmcstat_cgnode_topprint() 556 if (nchildren > in pmcstat_cgnode_topprint() [all...] |
/freebsd/usr.sbin/iscsid/ |
H A D | iscsid.c | 67 static int nchildren = 0; variable 769 nchildren -= wait_for_children(false); in main() 770 assert(nchildren >= 0); in main() 781 nchildren -= wait_for_children(false); in main() 782 assert(nchildren >= 0); in main() 784 while (maxproc > 0 && nchildren >= maxproc) { in main() 787 nchildren -= wait_for_children(true); in main() 788 assert(nchildren >= 0); in main() 791 nchildren); in main() 792 nchildren++; in main()
|
/freebsd/sys/isa/ |
H A D | isa_common.c | 498 int nchildren, i, err; in isa_probe_children() local 506 if (device_get_children(dev, &children, &nchildren)) in isa_probe_children() 522 for (i = 0; i < nchildren; i++) { in isa_probe_children() 536 for (i = 0; i < nchildren; i++) { in isa_probe_children() 556 if (device_get_children(dev, &children, &nchildren)) in isa_probe_children() 560 for (i = 0; i < nchildren; i++) { in isa_probe_children() 581 for (i = 0; i < nchildren; i++) { in isa_probe_children() 885 int nchildren, i; in isa_driver_added() local 897 if (device_get_children(dev, &children, &nchildren)) in isa_driver_added() 900 for (i = 0; i < nchildren; i++) { in isa_driver_added()
|
/freebsd/contrib/libder/libder/ |
H A D | libder_obj.c | 159 obj->nchildren = 0; in libder_obj_alloc_internal() 271 assert(parent->nchildren > 0); in libder_obj_unlink() 278 parent->nchildren--; in libder_obj_unlink() 302 if (parent->nchildren == 0) { in libder_obj_append() 304 parent->nchildren++; in libder_obj_append() 315 parent->nchildren++; in libder_obj_append() 710 if (obj->nchildren == 0 || !libder_obj_may_coalesce_children(obj)) in libder_obj_coalesce_children() 1066 if (obj->nchildren < 2) in libder_obj_normalize_set() 1074 sorting = calloc(obj->nchildren, sizeof(*sorting)); in libder_obj_normalize_set() 1084 assert(offset == obj->nchildren); in libder_obj_normalize_set()
|
H A D | libder_private.h | 67 size_t nchildren; member
|
H A D | libder_read.c | 707 obj->nchildren++; in libder_read_object()
|
/freebsd/contrib/jemalloc/src/ |
H A D | rtree.c | 65 size_t nchildren = ZU(1) << rtree_levels[level].bits; in rtree_delete_subtree() local 67 for (size_t i = 0; i < nchildren; i++) { in rtree_delete_subtree() 77 for (size_t i = 0; i < nchildren; i++) { in rtree_delete_subtree()
|
H A D | ctl.c | 1212 assert(node->nchildren > 0); in ctl_lookup() 1217 for (j = 0; j < node->nchildren; j++) { in ctl_lookup() 1353 assert(node->nchildren > 0); in ctl_bymib() 1356 if (node->nchildren <= mib[i]) { in ctl_bymib()
|
/freebsd/sys/dev/ata/chipsets/ |
H A D | ata-acerlabs.c | 263 int nchildren, i; in ata_ali_reset() local 273 if (!device_get_children(GRANDPARENT(dev), &children, &nchildren)) { in ata_ali_reset() 274 for (i = 0; i < nchildren; i++) { in ata_ali_reset()
|
H A D | ata-serverworks.c | 147 int nchildren, i; in ata_serverworks_chipinit() local 150 if (!device_get_children(device_get_parent(dev), &children,&nchildren)){ in ata_serverworks_chipinit() 151 for (i = 0; i < nchildren; i++) { in ata_serverworks_chipinit()
|
H A D | ata-via.c | 377 int nchildren, i; in ata_via_southbridge_fixup() local 379 if (device_get_children(device_get_parent(dev), &children, &nchildren)) in ata_via_southbridge_fixup() 382 for (i = 0; i < nchildren; i++) { in ata_via_southbridge_fixup()
|
/freebsd/sys/x86/x86/ |
H A D | mp_x86.c | 835 int nchildren; in x86topo_add_sched_group() local 881 nchildren = 0; in x86topo_add_sched_group() 918 nchildren++; in x86topo_add_sched_group() 925 if (nchildren == root->cpu_count) in x86topo_add_sched_group() 931 cg_root->cg_children = nchildren; in x86topo_add_sched_group() 932 if (nchildren == 0) in x86topo_add_sched_group() 935 cg_root->cg_child = smp_topo_alloc(nchildren); in x86topo_add_sched_group()
|
/freebsd/sys/compat/linsysfs/ |
H A D | linsysfs.c | 263 int i, nchildren, error; in linsysfs_run_bus() local 402 error = device_get_children(dev, &children, &nchildren); in linsysfs_run_bus() 404 for (i = 0; i < nchildren; i++) in linsysfs_run_bus()
|
/freebsd/usr.sbin/ctld/ |
H A D | ctld.c | 72 static int nchildren = 0; variable 2157 nchildren -= wait_for_children(false); in handle_connection() 2158 assert(nchildren >= 0); in handle_connection() 2160 while (conf->conf_maxproc > 0 && nchildren >= conf->conf_maxproc) { in handle_connection() 2163 nchildren -= wait_for_children(true); in handle_connection() 2164 assert(nchildren >= 0); in handle_connection() 2167 nchildren); in handle_connection() 2168 nchildren++; in handle_connection() 2643 nchildren -= wait_for_children(false); in main() 2644 assert(nchildren >= 0); in main()
|
/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | ctl.h | 22 size_t nchildren; member
|
/freebsd/sys/sys/ |
H A D | smp.h | 60 int nchildren; member
|
/freebsd/sys/dev/ata/ |
H A D | ata-pci.c | 862 int nchildren, i; in ata_find_chip() local 865 if (device_get_children(device_get_parent(dev), &children, &nchildren)) in ata_find_chip() 868 for (i = 0; i < nchildren; i++) { in ata_find_chip()
|
/freebsd/tests/sys/cddl/zfs/include/ |
H A D | libtest.kshlib | 3281 nchildren=$1; shift 3284 log_debug "type='$tvd_type' children='$nchildren' lvd='$lvd' dva='$dva'" 3289 off=$(raidz_dva_to_block_addr $dva $nchildren $ashift)
|
/freebsd/sys/kern/ |
H A D | subr_smp.c | 1140 parent->nchildren++; in topo_add_node_by_hwid()
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_main.c | 2559 int rc, i, lcap, lsta, nchildren; in reset_adapter_with_pcie_sbr() local 2571 nchildren = 0; in reset_adapter_with_pcie_sbr() 2572 device_get_children(pdev, &children, &nchildren); in reset_adapter_with_pcie_sbr() 2573 for (i = 0; i < nchildren; i++) in reset_adapter_with_pcie_sbr() 2591 for (i = 0; i < nchildren; i++) in reset_adapter_with_pcie_sbr() 2605 int rc, i, lcap, lctl, lsta, nchildren; in reset_adapter_with_pcie_link_bounce() local 2618 nchildren = 0; in reset_adapter_with_pcie_link_bounce() 2619 device_get_children(pdev, &children, &nchildren); in reset_adapter_with_pcie_link_bounce() 2620 for (i = 0; i < nchildren; i++) in reset_adapter_with_pcie_link_bounce() 2638 for (i = 0; i < nchildren; i++) in reset_adapter_with_pcie_link_bounce()
|