Home
last modified time | relevance | path

Searched refs:nchildren (Results 1 – 20 of 20) sorted by relevance

/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dspa_os.c83 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 Dautomountd.c63 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 Dmii.c128 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()
241 int i, nchildren; in miibus_hinted_child() local
246 if (device_get_children(dev, &children, &nchildren) != 0) in miibus_hinted_child()
249 for (i = 0; i < nchildren; i++) { in miibus_hinted_child()
374 int bmsr, first, i, nchildren, phymax, phymin, rv; in mii_attach() local
440 nchildren = 0; in mii_attach()
449 for (i = 0; i < nchildren; i++) { in mii_attach()
[all …]
H A Dmii_fdt.c258 int i, error, nchildren; in miibus_fdt_attach() local
264 error = device_get_children(dev, &children, &nchildren); in miibus_fdt_attach()
265 if (error != 0 || nchildren == 0) in miibus_fdt_attach()
268 for (i = 0; i < nchildren; i++) { in miibus_fdt_attach()
/freebsd/usr.sbin/pmcstat/
H A Dpmcpl_callgraph.c478 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 > 1) { in pmcstat_cgnode_topprint()
[all …]
/freebsd/usr.sbin/iscsid/
H A Discsid.c67 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 Disa_common.c498 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()
879 int nchildren, i; in isa_driver_added() local
891 if (device_get_children(dev, &children, &nchildren)) in isa_driver_added()
894 for (i = 0; i < nchildren; i++) { in isa_driver_added()
/freebsd/contrib/jemalloc/src/
H A Drtree.c65 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 Dctl.c1212 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 Data-acerlabs.c263 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 Data-serverworks.c147 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 Data-via.c377 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 Dmp_x86.c837 int nchildren; in x86topo_add_sched_group() local
883 nchildren = 0; in x86topo_add_sched_group()
920 nchildren++; in x86topo_add_sched_group()
927 if (nchildren == root->cpu_count) in x86topo_add_sched_group()
933 cg_root->cg_children = nchildren; in x86topo_add_sched_group()
934 if (nchildren == 0) in x86topo_add_sched_group()
937 cg_root->cg_child = smp_topo_alloc(nchildren); in x86topo_add_sched_group()
/freebsd/sys/compat/linsysfs/
H A Dlinsysfs.c263 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/contrib/jemalloc/include/jemalloc/internal/
H A Dctl.h22 size_t nchildren; member
/freebsd/usr.sbin/ctld/
H A Dctld.c67 static int nchildren = 0; variable
2457 nchildren -= wait_for_children(false); in handle_connection()
2458 assert(nchildren >= 0); in handle_connection()
2460 while (conf->conf_maxproc > 0 && nchildren >= conf->conf_maxproc) { in handle_connection()
2463 nchildren -= wait_for_children(true); in handle_connection()
2464 assert(nchildren >= 0); in handle_connection()
2467 nchildren); in handle_connection()
2468 nchildren++; in handle_connection()
2882 nchildren -= wait_for_children(false); in main()
2883 assert(nchildren >= 0); in main()
/freebsd/sys/sys/
H A Dsmp.h60 int nchildren; member
/freebsd/sys/dev/ata/
H A Data-pci.c863 int nchildren, i; in ata_find_chip() local
866 if (device_get_children(device_get_parent(dev), &children, &nchildren)) in ata_find_chip()
869 for (i = 0; i < nchildren; i++) { in ata_find_chip()
/freebsd/tests/sys/cddl/zfs/include/
H A Dlibtest.kshlib3281 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 Dsubr_smp.c1140 parent->nchildren++; in topo_add_node_by_hwid()