Home
last modified time | relevance | path

Searched refs:OF_peer (Results 1 – 25 of 122) sorted by relevance

12345

/netbsd-src/sys/arch/macppc/macppc/
H A Dmainbus.c94 node = OF_peer(node); in mainbus_attach()
107 node = OF_peer(0); in mainbus_attach()
115 for (node = OF_child(OF_finddevice("/")); node; node = OF_peer(node)) { in mainbus_attach()
H A Dcpu.c112 for (node = OF_child(node); node != 0; node = OF_peer(node)) { in cpumatch()
142 for (node = OF_child(node); node; node = OF_peer(node)) { in cpu_OFgetspeed()
/netbsd-src/sys/arch/ofppc/ofppc/
H A Dcpu.c98 for (node = OF_child(node); node != 0; node = OF_peer(node)) { in cpu_match()
118 for (node = OF_child(node); node; node = OF_peer(node)) { in cpu_OFgetspeed()
180 for (node = OF_child(node); node; node = OF_peer(node)) { in cpu_OFgetcache()
195 for (node = OF_child(cpu); node; node = OF_peer(node)) { in cpu_OFgetcache()
H A Dmachdep.c96 for (child = OF_child(node); child; child = OF_peer(child)) { in ranges_bitmap()
233 for (qhandle = OF_peer(0); qhandle; qhandle = phandle) { in model_init()
242 if ((phandle = OF_peer(qhandle))) in model_init()
398 for (child = OF_child(isa_node); child; child = OF_peer(child)) { in ofppc_init_comcons()
/netbsd-src/sys/dev/ofw/
H A Dofw_subr.c133 for (child = OF_child(phandle); child != 0; child = OF_peer(child)) { in of_device_enumerate_children()
401 for (nn = OF_child(node); nn; nn = OF_peer(nn)) { in of_find_firstchild_byname()
420 for (child = OF_child(node); child; child = OF_peer(child)) { in of_find_bycompat()
442 start = OF_peer(0); in of_getnode_byname()
454 if ((next = OF_peer(node)) != 0) in of_getnode_byname()
H A Dopenfirmio.c98 for (; sid != 0; sid = OF_peer(sid)) in openfirmcheckid()
148 ok = openfirmcheckid(OF_peer(0), node); in openfirmioctl()
251 node = OF_peer(node); in openfirmioctl()
H A Dofbus.c166 child = OF_peer(child)) { in ofbus_attach()
193 child = OF_peer(child)) { in ofbus_attach()
/netbsd-src/sys/arch/sparc/sparc/
H A Dpci_fixup.c146 if (OF_peer(node)) in mspcic_pci_scan()
147 node = OF_peer(node); in mspcic_pci_scan()
150 node = OF_peer(node); in mspcic_pci_scan()
241 if (OF_peer(node)) in mspcic_pci_scan()
242 next = OF_peer(node); in mspcic_pci_scan()
245 next = OF_peer(node); in mspcic_pci_scan()
/netbsd-src/sys/arch/ofppc/pci/
H A Dgt_mainbus.c135 for (node = OF_child(OF_finddevice("/")); node; node = OF_peer(node)) { in gt_match()
141 node = OF_peer(node)) { in gt_match()
229 node = of_getnode_byname(OF_peer(node), "pci"); in gt_attach()
/netbsd-src/sys/arch/sparc/stand/ofwboot/
H A Dpromlib.c135 return OF_peer(0); in prom_findroot()
170 promops.po_nextsibling = OF_peer; in prom_init()
/netbsd-src/sys/dev/fdt/
H A Dfdt_port.c272 for (child = OF_child(port_phandle); child; child = OF_peer(child)) { in fdt_ports_register()
291 child = OF_peer(child)) { in fdt_ports_register()
329 for (child = OF_child(phandle); child; child = OF_peer(child)) { in fdt_endpoints_register()
345 for (child = OF_child(phandle), i = 0; child; child = OF_peer(child)) { in fdt_endpoints_register()
/netbsd-src/sys/arch/powerpc/pci/
H A Dpci_machdep_ofw.c87 for (node = startnode; node; node = OF_peer(node)) { in genofw_find_ofpics()
264 node = OF_peer(node)) in genofw_setup_pciintr_map()
270 for (node = OF_child(pcinode); node; node = OF_peer(node)) { in genofw_setup_pciintr_map()
313 for (node = OF_child(pcinode); node; node = OF_peer(node)) { in genofw_setup_pciintr_map()
362 if ((p = OF_peer(node))) in genofw_find_node_by_devfunc()
/netbsd-src/sys/arch/macppc/dev/
H A Dsmuiic.c122 devc = OF_peer(devc); in smuiic_attach()
127 devs = OF_peer(devs); in smuiic_attach()
H A Dki2c.c157 child = OF_peer(child); in ki2c_attach()
195 devc = OF_peer(devc); in ki2c_attach()
200 devs = OF_peer(devs); in ki2c_attach()
/netbsd-src/sys/arch/riscv/fdt/
H A Dcpu_fdt.c78 for (int child = OF_child(cpus); child; child = OF_peer(child)) { in riscv_fdt_cpu_bootstrap()
133 for (int child = OF_child(cpus); child; child = OF_peer(child)) { in riscv_fdt_cpu_mpstart()
/netbsd-src/sys/arch/arm/rockchip/
H A Drk3328_iomux.c303 for (child = OF_child(phandle); child; child = OF_peer(child)) { in rk3328_iomux_attach()
304 for (sub = OF_child(child); sub; sub = OF_peer(sub)) { in rk3328_iomux_attach()
311 for (child = OF_child(phandle); child; child = OF_peer(child)) { in rk3328_iomux_attach()
H A Drk3288_iomux.c351 for (int child = OF_child(phandle); child; child = OF_peer(child)) { in rk3288_iomux_attach()
352 for (int sub = OF_child(child); sub; sub = OF_peer(sub)) { in rk3288_iomux_attach()
359 for (int child = OF_child(phandle); child; child = OF_peer(child)) { in rk3288_iomux_attach()
H A Drk3399_iomux.c507 for (child = OF_child(phandle); child; child = OF_peer(child)) { in rk3399_iomux_attach()
508 for (sub = OF_child(child); sub; sub = OF_peer(sub)) { in rk3399_iomux_attach()
515 for (child = OF_child(phandle); child; child = OF_peer(child)) { in rk3399_iomux_attach()
/netbsd-src/sys/arch/arm/nxp/
H A Dimx6_iomux.c176 for (int child = OF_child(phandle); child; child = OF_peer(child)) { in imxiomux_attach()
180 for (int sub = OF_child(child); sub; sub = OF_peer(sub)) { in imxiomux_attach()
/netbsd-src/sys/arch/arm/ti/
H A Dam3_prcm.c286 for (child = OF_child(phandle); child; child = OF_peer(child)) { in am3_prcm_attach()
291 cm_child = OF_peer(cm_child)) { in am3_prcm_attach()
/netbsd-src/sys/arch/arm/fdt/
H A Dcpu_fdt.c164 for (child = OF_child(cpus); child; child = OF_peer(child)) { in arm_fdt_cpu_bootstrap()
239 for (child = OF_child(cpus); child; child = OF_peer(child)) { in arm_fdt_cpu_mpstart()
/netbsd-src/sys/arch/arm/sunxi/
H A Dsunxi_sramc.c128 for (child = OF_child(phandle); child; child = OF_peer(child)) { in sunxi_sramc_init_mmio()
150 for (child = OF_child(sc->sc_phandle); child; child = OF_peer(child)) { in sunxi_sramc_init()
/netbsd-src/sys/dev/i2c/
H A Di2cmux.c131 child = OF_peer(child)) { in iicmux_count_children()
234 child = OF_peer(child), idx++) { in iicmux_attach_fdt()
/netbsd-src/usr.sbin/ofctl/
H A Dofctl.c93 int OF_peer(int);
376 OF_peer(int peerid) in OF_peer() function
534 phandle = OF_peer(0); in main()
686 if (node == OF_peer(0)) { in offullname()
732 node = OF_peer(node); in oflist()
/netbsd-src/sys/arch/sparc64/sparc64/
H A Dautoconf.c216 for (node = OF_child(node); node; node = OF_peer(node)) { in get_ncpus()
726 for (node = OF_child(node); node; node = OF_peer(node)) { in mainbus_attach()
750 for (node = node0; node; node = OF_peer(node)) { in mainbus_attach()
1351 node != 0; node = OF_peer(node)) { in device_register()
1410 sub = OF_peer(sub); in device_register()
1486 ofnode = OF_peer(ofnode)) { in device_register_post_config()

12345