/freebsd-current/contrib/ofed/libibverbs/ |
H A D | memory.c | 369 struct ibv_mem_node *child, *parent, *sib, *tmp; local 378 child = tmp->left; 406 child = node->left ? node->left : node->right; 409 if (child) 410 child->parent = parent; 413 parent->left = child; 415 parent->right = child; 417 mm_root = child; 425 while ((!child || child [all...] |
/freebsd-current/sys/contrib/openzfs/module/zfs/ |
H A D | zio_compress.c | 74 zio_complevel_select(spa_t *spa, enum zio_compress compress, uint8_t child, argument 83 result = child; 91 zio_compress_select(spa_t *spa, enum zio_compress child, argument 96 ASSERT(child < ZIO_COMPRESS_FUNCTIONS); 100 result = child;
|
/freebsd-current/sys/dev/ofw/ |
H A D | openfirm.c | 120 phandle_t child, xref; local 127 for (child = OF_child(node); child != 0; child = OF_peer(child)) { 128 xrefinfo_create(child); 129 if (OF_getencprop(child, "phandle", &xref, sizeof(xref)) == 130 -1 && OF_getencprop(child, "ibm,phandle", &xref, 131 sizeof(xref)) == -1 && OF_getencprop(child, 135 xi->node = child; 598 phandle_t child, rxref; local [all...] |
H A D | ofw_bus_subr.c | 88 ofw_bus_gen_child_pnpinfo(device_t cbdev, device_t child, struct sbuf *sb) argument 91 if (!ofw_bus_status_okay(child)) 94 if (ofw_bus_get_name(child) != NULL) { 95 sbuf_printf(sb, "name=%s ", ofw_bus_get_name(child)); 98 if (ofw_bus_get_compat(child) != NULL) { 99 sbuf_printf(sb, "compat=%s ", ofw_bus_get_compat(child)); 106 ofw_bus_gen_get_device_path(device_t cbdev, device_t child, const char *locator, argument 112 rv = bus_generic_get_device_path(cbdev, child, locator, sb); 114 sbuf_printf(sb, "/%s", ofw_bus_get_name(child)); 118 return (bus_generic_get_device_path(cbdev, child, locato 779 phandle_t child; local 799 phandle_t child, ret; local 828 device_t *children, retval, child; local [all...] |
/freebsd-current/tools/regression/sockets/accept_fd_leak/ |
H A D | accept_fd_leak.c | 67 pid_t child; local 144 child = fork(); 145 if (child < 0) 151 if (child == 0) { 197 if (waitpid(child, &status, 0) < 0) 200 warnx("child process died");
|
/freebsd-current/sys/dev/cardbus/ |
H A D | cardbus_device.c | 66 cardbus_build_cis(device_t cbdev, device_t child, int id, argument 97 cardbus_device_buffer_cis(device_t parent, device_t child, argument 104 return (cardbus_parse_cis(parent, child, cb, cbp)); 109 device_t parent, device_t child) 114 cardbus_device_buffer_cis(parent, child, &devi->sc_cis); 108 cardbus_device_create(struct cardbus_softc *sc, struct cardbus_devinfo *devi, device_t parent, device_t child) argument
|
/freebsd-current/sys/dev/xen/bus/ |
H A D | xenpv.c | 100 * Let our child drivers identify any child devices that they 114 xenpv_alloc_physmem(device_t dev, device_t child, int *res_id, size_t size) argument 121 res = bus_alloc_resource(child, SYS_RES_MEMORY, res_id, LOW_MEM_LIMIT, 130 bus_release_resource(child, SYS_RES_MEMORY, *res_id, res); 141 xenpv_free_physmem(device_t dev, device_t child, int res_id, struct resource *res) argument 153 return (bus_release_resource(child, SYS_RES_MEMORY, res_id, res));
|
/freebsd-current/stand/kshim/ |
H A D | bsd_kernel.c | 211 device_t child; local 213 TAILQ_FOREACH(child, &dev->dev_children, dev_link) { 214 device_probe_and_attach(child); 600 bus_generic_print_child(device_t dev, device_t child) argument 629 device_t child; local 634 TAILQ_FOREACH(child, &parent->dev_children, dev_link) { 636 if (child->dev_irq_filter != NULL) 637 status = child->dev_irq_filter(child->dev_irq_arg); 642 if (child 669 device_t child; local 809 device_t child; local 829 device_delete_child(device_t dev, device_t child) argument 863 device_t child; local [all...] |
/freebsd-current/usr.sbin/ppp/ |
H A D | chap.c | 263 if (chap->child.fd != -1) { 281 switch ((chap->child.pid = fork())) { 288 chap->child.pid = 0; 328 chap->child.fd = out[0]; 329 chap->child.buf.len = 0; 344 if (chap->child.pid) { 347 close(chap->child.fd); 348 chap->child.fd = -1; 350 kill(chap->child.pid, SIGTERM); 351 chap->child [all...] |
/freebsd-current/sys/dev/ata/ |
H A D | ata-pci.c | 83 device_t child; local 121 child = device_add_child(dev, "ata", 124 if (child == NULL) 125 device_printf(dev, "failed to add ata child device\n"); 127 device_set_ivars(child, (void *)(intptr_t)unit); 184 ata_pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) argument 191 ata_pci_write_ivar(device_t dev, device_t child, int which, uintptr_t value) argument 198 ata_pci_read_config(device_t dev, device_t child, int reg, int width) argument 205 ata_pci_write_config(device_t dev, device_t child, int reg, argument 213 ata_pci_alloc_resource(device_t dev, device_t child, in argument 274 ata_pci_release_resource(device_t dev, device_t child, struct resource *r) argument 315 ata_pci_setup_intr(device_t dev, device_t child, struct resource *irq, int flags, driver_filter_t *filter, driver_intr_t *function, void *argument, void **cookiep) argument 344 ata_pci_teardown_intr(device_t dev, device_t child, struct resource *irq, void *cookie) argument 540 ata_pci_print_child(device_t dev, device_t child) argument 553 ata_pci_child_location(device_t dev, device_t child, struct sbuf *sb) argument 562 ata_pci_get_dma_tag(device_t bus, device_t child) argument [all...] |
/freebsd-current/sys/dev/acpica/ |
H A D | acpi.c | 249 /* Local pools for managing system resources for ACPI child devices. */ 533 * all our child devices, but on many systems it works here. 727 device_t child; local 739 child = devlist[i]; 741 if (device_is_attached(child) && 742 acpi_device_pwr_for_sleep(dev, child, &dstate) == 0) 743 acpi_set_powerstate(child, dstate); 798 device_t child; local 805 child = device_add_child_ordered(bus, order, name, unit); 806 if (child ! 814 acpi_print_child(device_t bus, device_t child) argument 842 acpi_probe_nomatch(device_t bus, device_t child) argument 857 device_t child, *devlist; local 880 acpi_child_location_method(device_t cbdev, device_t child, struct sbuf *sb) argument 919 acpi_child_pnpinfo_method(device_t cbdev, device_t child, struct sbuf *sb) argument 932 acpi_get_acpi_device_path(device_t bus, device_t child, const char *locator, struct sbuf *sb) argument 946 acpi_get_device_path(device_t bus, device_t child, const char *locator, struct sbuf *sb) argument 1007 acpi_child_deleted(device_t dev, device_t child) argument 1019 acpi_read_ivar(device_t dev, device_t child, int index, uintptr_t *result) argument 1064 acpi_write_ivar(device_t dev, device_t child, int index, uintptr_t value) argument 1095 acpi_get_rlist(device_t dev, device_t child) argument 1123 acpi_hint_device_matches_resources(device_t child, const char *name, int unit) argument 1192 acpi_hint_device_unit(device_t acdev, device_t child, const char *name, int *unitp) argument 1253 acpi_get_cpus(device_t dev, device_t child, enum cpu_sets op, size_t setsize, cpuset_t *cpuset) argument 1290 acpi_get_domain(device_t dev, device_t child, int *domain) argument 1437 acpi_set_resource(device_t dev, device_t child, int type, int rid, rman_res_t start, rman_res_t count) argument 1466 acpi_alloc_resource(device_t bus, device_t child, int type, int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) argument 1573 acpi_adjust_resource(device_t bus, device_t child, struct resource *r, rman_res_t start, rman_res_t end) argument 1583 acpi_release_resource(device_t bus, device_t child, struct resource *r) argument 1596 acpi_delete_resource(device_t bus, device_t child, int type, int rid) argument 1612 acpi_activate_resource(device_t bus, device_t child, struct resource *r) argument 1620 acpi_deactivate_resource(device_t bus, device_t child, struct resource *r) argument 1628 acpi_map_resource(device_t bus, device_t child, struct resource *r, struct resource_map_request *argsp, struct resource_map *map) argument 1658 acpi_unmap_resource(device_t bus, device_t child, struct resource *r, struct resource_map *map) argument 1925 acpi_bus_get_prop(device_t bus, device_t child, const char *propname, void *propvalue, size_t size, device_property_type_t type) argument 2113 acpi_set_powerstate(device_t child, int state) argument 2139 acpi_isa_pnp_probe(device_t bus, device_t child, struct isa_pnp_id *ids) argument 2330 device_t bus, child; local 3687 device_t child; local [all...] |
/freebsd-current/tools/test/stress2/misc/ |
H A D | sendfile5.sh | 97 int child, error, from, status; 115 child = fork(); 116 if (child == -1) 118 else if (child != 0) { 133 waitpid(child, &status, 0);
|
/freebsd-current/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_vdev.c | 493 nvlist_t **child; local 532 &child, &children) != 0) { 573 nvlist_t *cnv = child[c]; 587 * get the real first child of the vdev: do this 813 nvlist_t **child; local 836 &child, &children) != 0) || (children == 0)) { 965 nvlist_t **child; local 979 &child, &children) != 0) { 1118 if ((ret = make_disks(zhp, child[c], replacing)) != 0) 1122 &child, 1144 nvlist_t **child; local 1520 nvlist_t **child = NULL; local 1778 nvlist_t *newroot = NULL, **child; local [all...] |
/freebsd-current/sys/arm64/broadcom/brcmmdio/ |
H A D | mdio_mux_iproc.c | 149 brcm_iproc_switch(struct brcm_iproc_mdio_softc *sc, int child) argument 155 bus_dir = (child < EXT_BUS_START_ADDR); 156 bus_id = bus_dir ? child : (child - EXT_BUS_START_ADDR); 306 device_t child; local 345 child = device_add_child(dev, NULL, -1); 346 if (child == NULL) { 347 printf("Failed to add child\n"); 354 device_set_ivars(child, di); 373 brcm_iproc_mdio_get_devinfo(device_t bus __unused, device_t child) argument [all...] |
/freebsd-current/sys/arm/mv/ |
H A D | mv_pci_ctrl.c | 160 device_t child; local 188 child = device_add_child(dev, NULL, -1); 189 if (child == NULL) { 192 "Could not add child: %s\n", 204 get_rl(child, node, sc->addr_cells, 207 device_set_ivars(child, di); 238 mv_pcib_ctrl_alloc_resource(device_t bus, device_t child, int type, int *rid, argument 247 if ((di = device_get_ivars(child)) == NULL) 284 return (bus_generic_alloc_resource(bus, child, type, rid, start, end, 338 mv_pcib_ctrl_get_devinfo(device_t bus __unused, device_t child) argument [all...] |
/freebsd-current/sys/dev/vnic/ |
H A D | thunder_bgx_fdt.c | 375 phandle_t node, child; local 389 for (child = OF_child(node); child > 0; child = OF_peer(child)) { 390 len = OF_getprop(child, "qlm-mode", qlm_mode, sizeof(qlm_mode)); 399 len = OF_getprop_alloc(child, "name", 413 if (OF_getencprop(child, "reg", &bgx->lmac[lmac].phyaddr, 422 if (OF_getencprop(child, "phy-handle", &phy, 447 bgx_fdt_get_macaddr(child, bg [all...] |
/freebsd-current/sys/arm64/arm64/ |
H A D | gic_v3_acpi.c | 209 device_printf(parent, "add gic child failed\n"); 392 device_t child, dev; local 397 /* We have an ITS, add it as a child */ 409 child = device_add_child(dev, "its", -1); 410 if (child == NULL) { 422 device_set_ivars(child, di); 432 device_t child; local 449 /* Add the vgic child if needed */ 451 child = device_add_child(dev, "vgic", -1); 452 if (child 470 gic_v3_acpi_get_resource_list(device_t bus, device_t child) argument [all...] |
/freebsd-current/contrib/mandoc/ |
H A D | mdoc_html.c | 290 n = mdoc->first->child; 347 int child; local 358 child = 1; 420 (n->end == ENDBODY_NOT || n->child != NULL)) 421 child = (*mdoc_html_acts[n->tok - MDOC_Dd].pre)(meta, 431 if (child && n->child != NULL) 432 print_mdoc_nodelist(meta, n->child, h); 548 print_mdoc_nodelist(meta, sn->head->child, h); 551 for (subn = sn->body->child; sub [all...] |
H A D | man_term.c | 171 n = man->first->child; 176 nc = n->child->child; 187 if (n != NULL && (n = n->child->next->child) != NULL) 273 n = n->child; 319 for (i = 0, nn = n->child; nn != NULL; nn = nn->next, i = 1 - i) { 344 if ((n = n->child) != NULL) { 369 if (n->child == NULL) { 374 cp = n->child [all...] |
H A D | mdoc_term.c | 261 n = mdoc->first->child; 274 if (n != NULL && (n = n->child->next->child) != NULL) 402 (n->end == ENDBODY_NOT || n->child != NULL)) 407 if (chld && n->child) 408 print_mdoc_nodelist(p, &npair, meta, n->child); 617 n->prev->body->child != NULL))) 759 if (n->type == ROFFT_BODY && n->parent->head->child != NULL) 808 if (NULL == n->next || NULL == n->next->child) 970 if (n->child [all...] |
/freebsd-current/sys/dev/cadence/ |
H A D | if_cgem.c | 1517 struct sysctl_oid_list *child; local 1521 child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev)); 1523 SYSCTL_ADD_INT(ctx, child, OID_AUTO, "rxbufs", CTLFLAG_RW, 1526 SYSCTL_ADD_INT(ctx, child, OID_AUTO, "rxhangwar", CTLFLAG_RW, 1529 SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "_rxoverruns", CTLFLAG_RD, 1532 SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "_rxnobufs", CTLFLAG_RD, 1535 SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "_rxdmamapfails", CTLFLAG_RD, 1538 SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "_txfull", CTLFLAG_RD, 1541 SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "_txdmamapfails", CTLFLAG_RD, 1544 SYSCTL_ADD_UINT(ctx, child, OID_AUT [all...] |
/freebsd-current/sys/powerpc/powermac/ |
H A D | cpcht.c | 80 static int cpcht_alloc_msi(device_t dev, device_t child, 82 static int cpcht_release_msi(device_t dev, device_t child, 84 static int cpcht_alloc_msix(device_t dev, device_t child, 86 static int cpcht_release_msix(device_t dev, device_t child, 88 static int cpcht_map_msi(device_t dev, device_t child, 174 phandle_t node, child; local 191 * the ranges are properties of the child bridges, and this is also 204 for (child = OF_child(node); child != 0; child 214 cpcht_configure_htbridge(device_t dev, phandle_t child) argument 382 cpcht_alloc_msi(device_t dev, device_t child, int count, int maxcount, int *irqs) argument 422 cpcht_release_msi(device_t dev, device_t child, int count, int *irqs) argument 438 cpcht_alloc_msix(device_t dev, device_t child, int *irq) argument 465 cpcht_release_msix(device_t dev, device_t child, int irq) argument 479 cpcht_map_msi(device_t dev, device_t child, int irq, uint64_t *addr, uint32_t *data) argument [all...] |
/freebsd-current/sys/dev/scc/ |
H A D | scc_core.c | 228 * as a child sets up a MPSAFE interrupt handler. 260 * Attach all child devices that were probed successfully. 409 scc_bus_alloc_resource(device_t dev, device_t child, int type, int *rid, argument 416 if (device_get_parent(child) != dev) 423 m = device_get_ivars(child); 433 scc_bus_get_resource(device_t dev, device_t child, int type, int rid, argument 440 if (device_get_parent(child) != dev) 443 m = device_get_ivars(child); 457 scc_bus_read_ivar(device_t dev, device_t child, int index, uintptr_t *result) argument 464 if (device_get_parent(child) ! 498 scc_bus_release_resource(device_t dev, device_t child, struct resource *res) argument 515 scc_bus_setup_intr(device_t dev, device_t child, struct resource *r, int flags, driver_filter_t *filt, void (*ihand)(void *), void *arg, void **cookiep) argument 564 scc_bus_teardown_intr(device_t dev, device_t child, struct resource *r, void *cookie) argument [all...] |
/freebsd-current/sys/dev/bhnd/cores/pci/ |
H A D | bhnd_pci.c | 175 bhnd_pci_get_resource_list(device_t dev, device_t child) argument 179 if (device_get_parent(child) != dev) 182 dinfo = device_get_ivars(child); 190 device_t child; local 192 child = device_add_child_ordered(dev, order, name, unit); 193 if (child == NULL) 198 device_delete_child(dev, child); 204 device_set_ivars(child, dinfo); 205 return (child); 209 bhnd_pci_child_deleted(device_t dev, device_t child) argument [all...] |
/freebsd-current/sys/powerpc/mpc85xx/ |
H A D | platform_mpc85xx.c | 147 phandle_t cpus, child, ccsr; local 155 for (maxcpu = 0, child = OF_child(cpus); child != 0; 156 child = OF_peer(child), maxcpu++) 174 child = OF_child(OF_peer(0)); 175 for (OF_child(child); child != 0; child = OF_peer(child)) { 225 phandle_t cpus, child; local [all...] |