| /freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | spa_os.c | 84 uint64_t nchildren; in spa_generate_rootconf() local 107 nchildren = 1; in spa_generate_rootconf() 108 nvlist_lookup_uint64(best_cfg, ZPOOL_CONFIG_VDEV_CHILDREN, &nchildren); in spa_generate_rootconf() 113 tops = kmem_zalloc(nchildren * sizeof (void *), KM_SLEEP); in spa_generate_rootconf() 114 for (i = 0; i < nchildren; i++) { in spa_generate_rootconf() 124 if (i >= nchildren) in spa_generate_rootconf() 134 for (i = 0; i < nchildren; i++) { in spa_generate_rootconf() 158 (const nvlist_t * const *)tops, nchildren); in spa_generate_rootconf() 175 for (i = 0; i < nchildren; i++) in spa_generate_rootconf() 177 kmem_free(tops, nchildren * sizeof (void *)); in spa_generate_rootconf()
|
| /freebsd/crypto/krb5/src/lib/krb5/rcache/ |
| H A D | t_rcfile2.c | 122 concurrency_test(const char *filename, int nchildren, int reps) in concurrency_test() argument 127 pids = calloc(nchildren, sizeof(*pids)); in concurrency_test() 129 for (i = 0; i < nchildren; i++) { in concurrency_test() 137 for (nprocs = nchildren; nprocs > 0; nprocs--) { in concurrency_test() 140 for (i = 0; i < nchildren; i++) { in concurrency_test() 151 race_test(const char *filename, int nchildren, int reps) in race_test() argument 159 for (j = 0; j < nchildren; j++) { in race_test() 167 for (j = 0; j < nchildren; j++) { in race_test()
|
| /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 > 1) { 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/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/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/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/contrib/jemalloc/src/ |
| H A D | rtree.c | 65 size_t nchildren = ZU(1) << rtree_levels[level].bits; rtree_delete_subtree() local
|
| H A D | ctl.c | 1482 assert(node->nchildren > 0); 1487 for (j = 0; j < node->nchildren; j++) { 1607 assert(node->nchildren > 0); 1610 if (node->nchildren <= mib[i]) {
|
| /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 407 error = device_get_children(dev, &children, &nchildren); in linsysfs_run_bus() 409 for (i = 0; i < nchildren; i++) { in linsysfs_run_bus()
|
| /freebsd/contrib/jemalloc/include/jemalloc/internal/ |
| H A D | ctl.h | 21 /* If (nchildren == 0), this is a terminal node. */ 22 size_t nchildren; member
|
| /freebsd/sys/sys/ |
| H A D | smp.h | 61 int nchildren; member
|
| /freebsd/sys/dev/ata/ |
| H A D | ata-pci.c | 865 int nchildren, i; in ata_find_chip() local 868 if (device_get_children(device_get_parent(dev), &children, &nchildren)) in ata_find_chip() 871 for (i = 0; i < nchildren; i++) { in ata_find_chip()
|
| /freebsd/usr.sbin/ctld/ |
| H A D | ctld.cc | 71 static int nchildren = 0; variable 2335 while (nchildren > 0) { in wait_for_children() 2351 nchildren--; in wait_for_children() 2375 while (conf->maxproc() > 0 && nchildren >= conf->maxproc()) { in handle_connection() 2382 nchildren); in handle_connection() 2383 nchildren++; in handle_connection()
|
| /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 | 1171 parent->nchildren++; in topo_add_node_by_hwid()
|
| /freebsd/sys/dev/cxgbe/ |
| H A D | t4_main.c | 2676 int rc, i, lcap, lsta, nchildren; in reset_adapter_with_pcie_sbr() local 2688 nchildren = 0; in reset_adapter_with_pcie_sbr() 2689 device_get_children(pdev, &children, &nchildren); in reset_adapter_with_pcie_sbr() 2690 for (i = 0; i < nchildren; i++) in reset_adapter_with_pcie_sbr() 2708 for (i = 0; i < nchildren; i++) in reset_adapter_with_pcie_sbr() 2722 int rc, i, lcap, lctl, lsta, nchildren; in reset_adapter_with_pcie_link_bounce() local 2735 nchildren = 0; in reset_adapter_with_pcie_link_bounce() 2736 device_get_children(pdev, &children, &nchildren); in reset_adapter_with_pcie_link_bounce() 2737 for (i = 0; i < nchildren; i++) in reset_adapter_with_pcie_link_bounce() 2755 for (i = 0; i < nchildren; in reset_adapter_with_pcie_link_bounce() [all...] |