/openbsd/sys/arch/macppc/pci/ |
H A D | pci_machdep.c | 97 while ((OF_getprop(node, "bus-range", &busrange, in pci_make_tag() 103 if (OF_getprop(node, "reg", ®, sizeof(reg)) < sizeof(reg)) in pci_make_tag() 161 if (OF_getprop(node, "reg", ®, sizeof(reg)) < sizeof(reg)) in pci_intr_map() 169 len = OF_getprop(node, "interrupts", intr, sizeof(intr)); in pci_intr_map() 277 if ((OF_getprop(snode, "shasta-interrupt-sequencer", in ofw_enumerate_pcibus() 281 if (OF_getprop(snode, "reg", ®, sizeof(reg)) in ofw_enumerate_pcibus() 309 if ((OF_getprop(node, "shasta-interrupt-sequencer", &val, in ofw_enumerate_pcibus() 344 if ((OF_getprop(node, "#address-cells", &acells, 4) < 0) || in ofw_intr_map() 345 (OF_getprop(node, "#interrupt-cells", &icells, 4) < 0)) in ofw_intr_map() 379 if (OF_getprop(parent, "interrupt-controller", ic, 20)) in ofw_intr_map() [all …]
|
H A D | macobio.c | 131 if (OF_getprop(node, "assigned-addresses", reg, sizeof(reg)) in macobio_attach() 147 if (OF_getprop(node, "assigned-addresses", reg, sizeof(reg)) in macobio_attach() 157 if (OF_getprop(node, "assigned-addresses", reg, sizeof(reg)) < 12) in macobio_attach() 188 namelen = OF_getprop(child, "name", name, sizeof(name)); in macobio_attach() 198 ca.ca_nreg = OF_getprop(child, "reg", reg, sizeof(reg)); in macobio_attach() 199 ca.ca_nintr = OF_getprop(child, "AAPL,interrupts", intr, in macobio_attach() 202 ca.ca_nintr = OF_getprop(child, "interrupts", intr, in macobio_attach()
|
H A D | kauaiata.c | 121 ca.ca_nreg = OF_getprop(node, "reg", reg, sizeof(reg)); in kauaiataattach() 130 ca.ca_nintr = OF_getprop(node, "interrupts", in kauaiataattach() 137 namelen = OF_getprop(node, "name", name, sizeof(name)); in kauaiataattach()
|
/openbsd/sys/arch/macppc/macppc/ |
H A D | ofw_machdep.c | 144 nreg = OF_getprop(phandle, "reg", OFmem, in ofw_read_mem_regions() 148 nreg = OF_getprop(phandle, "reg", OFmem64, in ofw_read_mem_regions() 153 navail = OF_getprop(phandle, "available", OFavail, in ofw_read_mem_regions() 221 if (OF_getprop(root, "#address-cells", &acells, 4) <= 0) in save_ofw_mapping() 223 if (OF_getprop(root, "#size-cells", &scells, 4) <= 0) in save_ofw_mapping() 232 if (OF_getprop(chosen, "mmu", &mmui, sizeof(int)) != -1) in save_ofw_mapping() 333 len = OF_getprop(node, "name", name, 20); in ofw_recurse_keyboard() 372 len = OF_getprop(stdin_node, "name", iname, 20); in ofw_find_keyboard() 431 len = OF_getprop(stdout_node, "name", name, 20); in of_display_console() 462 len = OF_getprop(fbnode, "name", name, 20); in of_display_console() [all …]
|
H A D | mainbus.c | 71 len = OF_getprop(node, "model", name, sizeof(name)); in mbattach() 80 len = OF_getprop(node, "compatible", name, sizeof(name)); in mbattach() 112 len = OF_getprop(node, "reg", &cpunum, sizeof cpunum); in mbattach() 137 len = OF_getprop(node, "reg", reg, sizeof(reg)); in mbattach() 158 if (OF_getprop(node, "device_type", name, sizeof(name)) <= 0) { in mbattach() 159 if (OF_getprop(node, "name", name, sizeof(name)) <= 0) { in mbattach()
|
/openbsd/sys/arch/sparc64/sparc64/ |
H A D | rbus_machdep.c | 52 if (OF_getprop(node, "name", &buf, sizeof(buf)) > 0 && in rbus_pccbb_parent_mem() 54 len = OF_getprop(PCITAG_NODE(pa->pa_tag), "assigned-addresses", in rbus_pccbb_parent_mem() 71 len = OF_getprop(OF_parent(node), "available", &addr, sizeof(addr)); in rbus_pccbb_parent_mem() 98 if (OF_getprop(node, "name", &buf, sizeof(buf)) > 0 && in rbus_pccbb_parent_io() 100 len = OF_getprop(PCITAG_NODE(pa->pa_tag), "assigned-addresses", in rbus_pccbb_parent_io() 117 len = OF_getprop(OF_parent(node), "available", &addr, sizeof(addr)); in rbus_pccbb_parent_io() 147 if (OF_getprop(OF_parent(node), "bus-range", &busrange, in pccbb_attach_hook()
|
H A D | autoconf.c | 450 OF_getprop(chosen, "bootpath", buf, sizeof(buf)); in bootpath_nodes() 500 OF_getprop(chosen, "bootpath", buf, sizeof(buf)); in bootpath_build() 538 OF_getprop(chosen, "bootargs", buf, sizeof(buf)); in bootpath_build() 961 if (OF_getprop(node0, "name", buf, sizeof(buf)) <= 0) in mainbus_attach() 973 if (OF_getprop(node, "name", buf, sizeof(buf)) <= 0) in mainbus_attach() 990 OF_getprop(node, "name", buf, sizeof(buf)); in mainbus_attach() 992 OF_getprop(node, "compatible", buf, sizeof(buf)); in mainbus_attach() 1010 if (OF_getprop(node0, "name", buf, sizeof(buf)) <= 0) in mainbus_attach() 1046 if (OF_getprop(node, "portid", &portid, in mainbus_attach() 1146 OF_getprop(node, name, buf, len); in getprop() [all …]
|
H A D | ofw_machdep.c | 72 if (OF_getprop(chosen, "mmu", &mmuh, sizeof(mmuh)) == -1) { in get_mmu_handle() 88 if (OF_getprop(chosen, "memory", &memh, sizeof(memh)) == -1) { in get_memory_handle() 652 OF_getprop(chosen, "stdin", &stdin, sizeof(stdin)); in OF_stdin() 665 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)); in OF_stdout() 778 len = OF_getprop(node, prop, buf, buflen); in OF_searchprop() 818 len = OF_getprop(node, "device_type", in find_pci_host_node() 881 OF_getprop(node, "name", &name, sizeof(name)); in OF_mapintr() 887 if ((interrupt_map_len = OF_getprop(node, in OF_mapintr() 892 if (((len = OF_getprop(node, "device_type", &dev_type, in OF_mapintr() 905 OF_getprop(node, "reg", ®, sizeof(reg)); in OF_mapintr() [all …]
|
/openbsd/sys/arch/sparc64/dev/ |
H A D | com_ebus.c | 77 if (OF_getprop(findroot(), "model", model, sizeof(model)) != i) in com_match_ikkaku() 102 OF_getprop(ea->ea_node, "compatible", compat, in com_ebus_match() 180 if (OF_getprop(node, "name", buf, sizeof(buf)) > 0 && in com_ebus_attach() 189 if (OF_getprop(node, "name", buf, sizeof(buf)) > 0 && in com_ebus_attach() 229 if (OF_getprop(ea->ea_node, "compatible", buf, sizeof(buf)) > 0 && in com_ebus_attach() 253 if (OF_getprop(aliases, "ttya", buf, sizeof(buf)) != -1 && in com_ebus_speed() 256 if (OF_getprop(aliases, "ttyb", buf, sizeof(buf)) != -1 && in com_ebus_speed()
|
H A D | ofwi2c.c | 44 if (OF_getprop(node, "compatible", name, sizeof(name)) == -1) in ofwiic_pci_scan() 69 if (OF_getprop(node, "compatible", name, sizeof(name)) == -1) in ofwiic_scan() 74 if (OF_getprop(node, "reg", reg, sizeof(reg)) == -1) in ofwiic_scan() 89 if (OF_getprop(node, "name", name, sizeof(name)) == -1) in ofwiic_scan()
|
H A D | pci_machdep.c | 168 OF_getprop(node, "name", &name, sizeof(name)); in pci_make_tag() 177 while ((OF_getprop(node, "bus-range", (void *)&busrange, in pci_make_tag() 184 OF_getprop(node, "name", &name, sizeof(name)); in pci_make_tag() 201 if (OF_getprop(node, "reg", (void *)®, sizeof(reg)) != len) in pci_make_tag() 244 if (OF_getprop(node, "clock-frequency", &bus_frequency, in pci_bus_frequency() 284 OF_getprop(node, "name", name, sizeof(name)); in sparc64_pci_enumerate_bus() 286 if (OF_getprop(node, "class-code", &class, sizeof(class)) != in sparc64_pci_enumerate_bus() 289 if (OF_getprop(node, "reg", ®, sizeof(reg)) < sizeof(reg)) in sparc64_pci_enumerate_bus() 392 if (OF_getprop(node, "interrupts", interrupts, in pci_intr_map() 413 if (OF_getprop(node, "device_type", &devtype, sizeof(devtype)) > 0) { in pci_intr_map()
|
H A D | pcf8591_ofw.c | 79 if ((dlen = OF_getprop(node, "channels-description", desc, in pcfadc_attach() 88 if ((clen = OF_getprop(node, "channels-in-use", chanuse, in pcfadc_attach() 103 if ((tlen = OF_getprop(node, "tables", sc->sc_xlate, in pcfadc_attach() 114 if ((tlen = OF_getprop(node, "translation", transinfo, in pcfadc_attach()
|
H A D | consinit.c | 188 OF_getprop(chosen, "stdin", &stdin, sizeof(stdin)); in consinit() 196 if (OF_getprop(stdinnode, "compatible", buffer, in consinit() 203 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)); in consinit()
|
/openbsd/sys/arch/macppc/dev/ |
H A D | uni_n.c | 105 OF_getprop(ca->ca_node, "reg", ®, sizeof(reg)); in memcattach() 107 len = OF_getprop(ca->ca_node, "name", name, sizeof(name)); in memcattach() 119 len = OF_getprop(ca->ca_node, "device-rev", &rev, sizeof(rev)); in memcattach() 143 namelen = OF_getprop(node, "name", name, sizeof(name)); in memc_attach_children() 152 ca.ca_nreg = OF_getprop(node, "reg", reg, sizeof(reg)); in memc_attach_children() 154 ca.ca_nintr = OF_getprop(node, "AAPL,interrupts", intr, in memc_attach_children() 157 ca.ca_nintr = OF_getprop(node, "interrupts", intr, in memc_attach_children()
|
H A D | maci2c.c | 39 if (OF_getprop(node, "reg", ®, sizeof reg) != sizeof reg && in maciic_scan() 40 OF_getprop(node, "i2c-address", ®, sizeof reg) != sizeof reg) in maciic_scan() 47 if (OF_getprop(node, "compatible", &name, in maciic_scan() 51 OF_getprop(node, "name", &name, in maciic_scan()
|
H A D | smu.c | 214 if (OF_getprop(ca->ca_node, "platform-doorbell-ack", in smu_attach() 216 OF_getprop(node, "reg", ®, sizeof reg) <= 0 || in smu_attach() 279 if (OF_getprop(node, "reg", ®, sizeof reg) <= 0 || in smu_attach() 298 if (OF_getprop(node, "min-value", &val, sizeof val) <= 0) in smu_attach() 301 if (OF_getprop(node, "max-value", &val, sizeof val) <= 0) in smu_attach() 311 if (OF_getprop(node, "location", loc, sizeof loc) <= 0) in smu_attach() 335 if (OF_getprop(node, "reg", ®, sizeof reg) <= 0 || in smu_attach() 367 if (OF_getprop(node, "location", loc, sizeof loc) <= 0) in smu_attach() 406 if (OF_getprop(node, "reg", &val, sizeof val) <= 0 || in smu_attach() 431 if (OF_getprop(node, "location", loc, sizeof loc) <= 0) in smu_attach() [all …]
|
H A D | macgpio.c | 104 namelen = OF_getprop(child, "name", name, sizeof(name)); in macgpio_attach() 114 ca2.ca_nreg = OF_getprop(child, "reg", reg, sizeof(reg)); in macgpio_attach() 115 ca2.ca_nintr = OF_getprop(child, "AAPL,interrupts", intr, in macgpio_attach() 118 ca2.ca_nintr = OF_getprop(child, "interrupts", intr, in macgpio_attach()
|
H A D | zs.c | 207 if (OF_getprop(node, "AAPL,interrupts", in zs_attach() 209 OF_getprop(node, "interrupts", in zs_attach() 215 if (OF_getprop(node, "reg", regs, sizeof(regs)) < 24) { in zs_attach() 979 if (OF_getprop(chosen, "stdin", &stdin, sizeof(stdin)) == -1) in zscnprobe() 981 if (OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)) == -1) in zscnprobe() 988 if (OF_getprop(pkg, "device_type", name, sizeof(name)) == -1) in zscnprobe() 995 if (OF_getprop(pkg, "name", name, sizeof(name)) == -1) in zscnprobe() 1024 if (OF_getprop(escc_ch, "name", name, sizeof(name)) == -1) in zscninit() 1030 if (OF_getprop(escc_ch, "reg", reg, sizeof(reg)) < 8) in zscninit() 1038 if (OF_getprop(obio, "assigned-addresses", reg, sizeof(reg)) < 12) in zscninit()
|
H A D | mediabay.c | 161 if (OF_getprop(child, "name", name, sizeof(name)) == -1) in mediabay_attach_content() 169 ca.ca_nreg = OF_getprop(child, "reg", reg, sizeof(reg)); in mediabay_attach_content() 170 ca.ca_nintr = OF_getprop(child, "AAPL,interrupts", intr, in mediabay_attach_content() 173 ca.ca_nintr = OF_getprop(child, "interrupts", intr, in mediabay_attach_content()
|
H A D | kiic.c | 94 if (OF_getprop(node, "AAPL,i2c-rate", &rate, 4) != 4) { in kiic_attach() 98 if (OF_getprop(node, "AAPL,address", &sc->sc_paddr, 4) != 4) { in kiic_attach() 102 if (OF_getprop(node, "AAPL,address-step", &sc->sc_regstep, 4) != 4) { in kiic_attach() 123 if (OF_getprop(node, "name", name, sizeof(name)) > 0) { in kiic_attach() 125 if (OF_getprop(node, "reg", ®, sizeof(reg)) > 0) in kiic_attach()
|
/openbsd/sys/arch/sparc64/stand/ofwboot/ |
H A D | diskprobe.c | 72 if (parent && OF_getprop(parent, "device_type", buf, in new_diskinfo() 112 if (OF_getprop(node, "device_type", buf, sizeof(buf)) > 0) in dump_node() 114 if (OF_getprop(node, "name", buf, sizeof(buf)) > 0) in dump_node() 150 if ((OF_getprop(node, "device_type", buf, sizeof(buf)) > 0 && in diskprobe() 152 OF_getprop(node, "name", buf, sizeof(buf)) > 0 && in diskprobe()
|
/openbsd/sys/arch/riscv64/dev/ |
H A D | mainbus.c | 104 len = OF_getprop(sc->sc_node, "model", prop, sizeof(prop)); in mainbus_attach() 113 len = OF_getprop(sc->sc_node, "serial-number", prop, sizeof(prop)); in mainbus_attach() 154 if (OF_getprop(fa->fa_node, "status", buf, sizeof(buf)) > 0 && in mainbus_print() 158 if (OF_getprop(fa->fa_node, "name", buf, sizeof(buf)) > 0) { in mainbus_print() 285 if (OF_getprop(fa->fa_node, "status", buf, sizeof(buf)) > 0 && in mainbus_match_status() 313 if (OF_getprop(node, "status", buf, sizeof(buf)) > 0 && in mainbus_attach_cpus() 317 if (OF_getprop(node, "device_type", buf, sizeof(buf)) > 0 && in mainbus_attach_cpus()
|
/openbsd/sys/arch/powerpc64/dev/ |
H A D | mainbus.c | 125 len = OF_getprop(sc->sc_node, "model", prop, sizeof(prop)); in mainbus_attach() 134 len = OF_getprop(sc->sc_node, "serial-number", prop, sizeof(prop)); in mainbus_attach() 173 if (OF_getprop(fa->fa_node, "status", buf, sizeof(buf)) > 0 && in mainbus_print() 177 if (OF_getprop(fa->fa_node, "name", buf, sizeof(buf)) > 0) { in mainbus_print() 301 if (OF_getprop(fa->fa_node, "status", buf, sizeof(buf)) > 0 && in mainbus_match_status() 329 if (OF_getprop(node, "device_type", buf, sizeof(buf)) > 0 && in mainbus_attach_cpus()
|
H A D | opalsens.c | 68 OF_getprop(faa->fa_node, "name", name, sizeof(name)); in opalsens_attach() 74 OF_getprop(faa->fa_node, "sensor-type", type, sizeof(type)); in opalsens_attach() 93 OF_getprop(faa->fa_node, "label", label, sizeof(label)); in opalsens_attach()
|
/openbsd/sys/dev/fdt/ |
H A D | imxiic_fdt.c | 132 if (OF_getprop(node, "compatible", name, sizeof(name)) == -1) in imxiic_fdt_bus_scan() 137 if (OF_getprop(node, "status", status, sizeof(status)) > 0 && in imxiic_fdt_bus_scan() 141 if (OF_getprop(node, "reg", ®, sizeof(reg)) != sizeof(reg)) in imxiic_fdt_bus_scan()
|