| /freebsd-14.2/sys/dev/dpaa/ |
| H A D | if_dtsec_fdt.c | 126 if (OF_getprop(enet_node, "local-mac-address", in dtsec_fdt_attach() 142 if (OF_getprop(enet_node, "phy-handle", (void *)&phy_node, in dtsec_fdt_attach() 148 if (OF_getprop(phy_node, "reg", (void *)&sc->sc_phy_addr, in dtsec_fdt_attach() 168 if (OF_getprop(enet_node, "phy-connection-type", (void *)phy_type, in dtsec_fdt_attach() 188 if (OF_getprop(enet_node, "fsl,fman-ports", (void *)fman_rxtx_node, in dtsec_fdt_attach() 210 if (OF_getprop(fman_rxtx_node[0], "reg", (void *)&sc->sc_port_rx_hw_id, in dtsec_fdt_attach() 215 if (OF_getprop(fman_rxtx_node[1], "reg", (void *)&sc->sc_port_tx_hw_id, in dtsec_fdt_attach() 219 if (OF_getprop(fman_rxtx_node[1], "cell-index", &fman_tx_cell, in dtsec_fdt_attach()
|
| /freebsd-14.2/sys/powerpc/powermac/ |
| H A D | platform_powermac.c | 119 compatlen = OF_getprop(root, "compatible", compat, sizeof(compat)); in powermac_probe() 144 OF_getprop(OF_parent(memory), "#address-cells", &physacells, in powermac_mem_regions() 168 propsize = OF_getprop(memory, "available", memoryprop, in powermac_mem_regions() 216 if (OF_getprop(rootnode, "model", model, sizeof(model)) > 0) { in powermac_attach() 234 OF_getprop(phandle, "timebase-frequency", &ticks, sizeof(ticks)); in powermac_timebase_freq() 249 res = OF_getprop(cpu, "reg", &cpuid, sizeof(cpuid)); in powermac_smp_fill_cpuref() 274 res = OF_getprop(dev, "name", buf, sizeof(buf)); in powermac_smp_first_cpu() 292 res = OF_getprop(cpu, "device_type", buf, sizeof(buf)); in powermac_smp_first_cpu() 312 res = OF_getprop(cpu, "device_type", buf, sizeof(buf)); in powermac_smp_next_cpu() 334 res = OF_getprop(chosen, "cpu", &inst, sizeof(inst)); in powermac_smp_get_bsp() [all …]
|
| H A D | uninorth.c | 173 if (OF_getprop(devnode, "interrupt-parent", &iparent, sizeof(iparent)) in unin_chip_add_intr() 279 if (OF_getprop(root, "reg", reg, sizeof(reg)) < 8) in unin_chip_attach() 283 OF_getprop(OF_parent(root), "#address-cells", &acells, sizeof(acells)); in unin_chip_attach() 284 OF_getprop(OF_parent(root), "#size-cells", &scells, sizeof(scells)); in unin_chip_attach() 345 if (OF_getprop(child, "name", name, sizeof(name)) <= 0) in unin_chip_attach() 350 if (OF_getprop(child, "interrupt-parent", &iparent, in unin_chip_attach() 393 OF_getprop(child, "compatible", compat, sizeof(compat)); in unin_chip_attach() 405 OF_getprop(child, "compatible", compat, sizeof(compat)); in unin_chip_attach()
|
| H A D | smusat.c | 143 OF_getprop(child, "reg", &sens->reg, sizeof(sens->reg)); in smusat_attach() 148 OF_getprop(child, "zone", &sens->therm.zone, sizeof(int)); in smusat_attach() 149 OF_getprop(child, "location", sens->therm.name, in smusat_attach() 152 OF_getprop(child, "device_type", type, sizeof(type)); in smusat_attach()
|
| H A D | smu.c | 338 OF_getprop(child, "name", name, sizeof(name)); in smu_attach() 918 OF_getprop(child, "device_type", type, sizeof(type)); in smu_fill_fan_prop() 927 OF_getprop(child, "reg", &fan->reg, in smu_fill_fan_prop() 929 OF_getprop(child, "min-value", &fan->fan.min_rpm, in smu_fill_fan_prop() 931 OF_getprop(child, "max-value", &fan->fan.max_rpm, in smu_fill_fan_prop() 933 OF_getprop(child, "zone", &fan->fan.zone, in smu_fill_fan_prop() 936 if (OF_getprop(child, "unmanaged-value", in smu_fill_fan_prop() 941 OF_getprop(child, "location", fan->fan.name, in smu_fill_fan_prop() 967 OF_getprop(root, "name", name, sizeof(name)); in smu_count_fans() 1208 OF_getprop(child, "device_type", type, sizeof(type)); in smu_attach_sensors() [all …]
|
| H A D | macio.c | 219 if (OF_getprop(devnode, "interrupt-parent", &iparent, sizeof(iparent)) in macio_add_intr() 223 if (OF_getprop(OF_node_from_xref(iparent), "#interrupt-cells", &icells, in macio_add_intr() 262 res = OF_getprop(child, "name", buf, sizeof(buf)); in macio_add_reg() 268 res = OF_getprop(child, "layout-id", &layout_id, in macio_add_reg() 330 if (OF_getprop(root, "assigned-addresses", in macio_attach() 336 OF_getprop(root, "compatible", compat, sizeof(compat)); in macio_attach() 446 if (OF_getprop(child, "timebase-enable", &sc->sc_timebase, in macio_attach()
|
| /freebsd-14.2/sys/dev/uart/ |
| H A D | uart_cpu_powerpc.c | 60 if (OF_getprop(opts, inputdev, buf, sizeof(buf)) == -1) in ofw_get_uart_console() 67 if (OF_getprop(opts, outputdev, buf, sizeof(buf)) == -1) in ofw_get_uart_console() 91 OF_getprop(node, prop, &field, sizeof(field)); in ofw_get_console_phandle_path() 163 if (OF_getprop(input, "device_type", buf, sizeof(buf)) == -1) in uart_cpu_getdev() 189 if (OF_getprop(input, "clock-frequency", &di->bas.rclk, in uart_cpu_getdev() 192 if (OF_getprop(input, "current-speed", &di->baudrate, in uart_cpu_getdev() 195 OF_getprop(input, "reg-shift", &di->bas.regshft, in uart_cpu_getdev()
|
| /freebsd-14.2/sys/powerpc/cpufreq/ |
| H A D | pmufreq.c | 89 if (OF_getprop(node, "min-clock-frequency", &min_freq, sizeof(min_freq)) == -1) in pmufreq_identify() 118 if (OF_getprop(node, "min-clock-frequency", &min_freq, sizeof(min_freq)) == -1) in pmufreq_probe() 134 OF_getprop(node, "min-clock-frequency", &sc->minfreq, sizeof(sc->minfreq)); in pmufreq_attach() 135 OF_getprop(node, "max-clock-frequency", &sc->maxfreq, sizeof(sc->maxfreq)); in pmufreq_attach() 136 OF_getprop(node, "rounded-clock-frequency", &sc->curfreq, sizeof(sc->curfreq)); in pmufreq_attach()
|
| /freebsd-14.2/sys/dev/fdt/ |
| H A D | fdt_common.c | 107 if (OF_getprop(node, "ranges", ranges, sizeof(ranges)) <= 0) in fdt_get_range_by_busaddr() 176 if (OF_getprop(node, "ranges", ranges, sizeof(ranges)) <= 0) in fdt_get_range() 243 if (OF_getprop(node, "compatible", compat, FDT_COMPAT_LEN) < 0) in fdt_is_compatible_strict() 371 len = OF_getprop(node, "reg", ®, sizeof(reg)); in fdt_regsize() 413 if (OF_getprop(phy_node, "phy-handle", (void *)&phy_handle, in fdt_get_phyaddr() 479 if (OF_getprop(root, "memreserve", reserve, res_len) <= 0) { in fdt_get_reserved_regions() 528 rv = OF_getprop(child, "reg", reg, sizeof(reg)); in fdt_get_reserved_mem() 576 if (OF_getprop(memory, "reg", reg, reg_len) <= 0) { in fdt_get_mem_regions() 617 if (OF_getprop(chosen, "bootargs", bootargs, max_size) == -1) in fdt_get_chosen_bootargs()
|
| /freebsd-14.2/sys/powerpc/booke/ |
| H A D | platform_bare.c | 118 OF_getprop(child, "timebase-frequency", &tbase, sizeof(tbase)); in bare_timebase_freq() 125 OF_getprop(child, "timebase-frequency", &tbase, sizeof(tbase)); in bare_timebase_freq() 134 if (OF_getprop(child, "bus-frequency", (void *)&freq, in bare_timebase_freq()
|
| /freebsd-14.2/sys/powerpc/mikrotik/ |
| H A D | rb_led.c | 86 if (OF_getprop(node, "user_led", gp, sizeof(gp)) <= 0) in rbled_probe() 91 if (OF_getprop(node, "model", model, sizeof(model)) <= 0) in rbled_probe() 110 if (OF_getprop(node, "user_led", gp, sizeof(gp)) <= 0) in rbled_attach()
|
| /freebsd-14.2/stand/powerpc/ofw/ |
| H A D | ofwfdt.c | 64 OF_getprop(node, name, propbuf, proplen); in add_node_to_fdt() 160 OF_getprop(node, "phandle", &node, in ofwfdt_fixups() 163 OF_getprop(node, "linux,phandle", &node, in ofwfdt_fixups() 166 OF_getprop(node, "ibm,phandle", &node, in ofwfdt_fixups()
|
| /freebsd-14.2/sys/powerpc/pseries/ |
| H A D | phyp_dbg.c | 67 if (OF_getprop(vty, "name", buf, sizeof(buf)) <= 0) in uart_phyp_dbg_probe() 72 if (OF_getprop(vty, "device_type", buf, sizeof(buf)) == -1) in uart_phyp_dbg_probe() 77 if (OF_getprop(vty, "compatible", buf, sizeof(buf)) <= 0) in uart_phyp_dbg_probe()
|
| H A D | platform_chrp.c | 329 res = OF_getprop(cpunode, "device_type", buf, sizeof(buf)); in chrp_timebase_freq() 411 res = OF_getprop(dev, "name", buf, sizeof(buf)); in chrp_cpuref_init() 437 OF_getprop(chosen, "cpu", &ibsp, sizeof(ibsp)); in chrp_cpuref_init() 446 OF_getprop(chosen, "fdtbootcpu", &bsp_reg, sizeof(bsp_reg)); in chrp_cpuref_init() 455 res = OF_getprop(cpu, "device_type", buf, sizeof(buf)); in chrp_cpuref_init()
|
| H A D | phyp_console.c | 140 if (OF_getprop(node, "name", buf, sizeof(buf)) <= 0) in uart_phyp_probe_node() 145 if (OF_getprop(node, "device_type", buf, sizeof(buf)) <= 0) in uart_phyp_probe_node() 157 if (OF_getprop(node, "compatible", buf, sizeof(buf)) <= 0) in uart_phyp_probe_node() 210 if (OF_getprop(input, "device_type", buf, sizeof(buf)) == -1) in uart_phyp_cnprobe()
|
| /freebsd-14.2/sys/powerpc/powernv/ |
| H A D | platform_powernv.c | 191 res = OF_getprop(cpu, "name", buf, sizeof(buf)); in powernv_attach() 201 res = OF_getprop(cpu, "device_type", buf, sizeof(buf)); in powernv_attach() 293 res = OF_getprop(dev, "name", buf, sizeof(buf)); in powernv_timebase_freq() 300 res = OF_getprop(cpu, "device_type", buf, sizeof(buf)); in powernv_timebase_freq() 332 res = OF_getprop(dev, "name", buf, sizeof(buf)); in powernv_cpuref_init() 341 res = OF_getprop(cpu, "device_type", buf, sizeof(buf)); in powernv_cpuref_init() 455 res = OF_getprop(dev, "name", buf, sizeof(buf)); in powernv_smp_probe_threads() 463 res = OF_getprop(cpu, "device_type", buf, sizeof(buf)); in powernv_smp_probe_threads()
|
| H A D | opal_dbg.c | 66 if (OF_getprop(dev, "device_type", buf, sizeof(buf)) == -1) in uart_opal_dbg_probe() 71 if (OF_getprop(dev, "compatible", buf, sizeof(buf)) == -1) in uart_opal_dbg_probe()
|
| /freebsd-14.2/sys/dev/gpio/ |
| H A D | gpiopower.c | 93 if ((OF_getprop(node, "active-delay-ms", &prop, sizeof(prop))) > 0) in gpiopower_attach() 95 if ((OF_getprop(node, "inactive-delay-ms", &prop, sizeof(prop))) > 0) in gpiopower_attach() 97 if ((OF_getprop(node, "timeout-ms", &prop, sizeof(prop))) > 0) in gpiopower_attach()
|
| /freebsd-14.2/sys/dev/vt/hw/fb/ |
| H A D | vt_early_fb.c | 140 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)); in vt_efb_get_fbnode() 144 OF_getprop(node, "device_type", type, sizeof(type)); in vt_efb_get_fbnode() 210 len = OF_getprop(node, "assigned-addresses", pciaddrs, in vt_efb_init() 213 len = OF_getprop(OF_parent(node), "assigned-addresses", in vt_efb_init()
|
| /freebsd-14.2/sys/powerpc/mpc85xx/ |
| H A D | platform_mpc85xx.c | 176 if (OF_getprop(child, "device_type", type, sizeof(type)) in mpc85xx_attach() 190 OF_getprop(ccsr, "#size-cells", &scells, sizeof(scells)); in mpc85xx_attach() 191 OF_getprop(ccsr, "#address-cells", &acells, sizeof(acells)); in mpc85xx_attach() 194 OF_getprop(ccsr, "ranges", ranges, sizeof(ranges)); in mpc85xx_attach() 249 OF_getprop(child, "timebase-frequency", &tbase, sizeof(tbase)); in mpc85xx_timebase_freq() 256 OF_getprop(child, "timebase-frequency", &tbase, sizeof(tbase)); in mpc85xx_timebase_freq() 265 if (OF_getprop(child, "bus-frequency", (void *)&freq, in mpc85xx_timebase_freq()
|
| /freebsd-14.2/stand/libofw/ |
| H A D | ofw_console.c | 58 OF_getprop(chosen, "stdin", &stdin, sizeof(stdin)); in ofw_cons_probe() 59 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)); in ofw_cons_probe()
|
| /freebsd-14.2/sys/dev/iicbus/adc/ |
| H A D | ad7417.c | 320 prop_len = OF_getprop(child, "hwsensor-location", location, in ad7417_fill_sensor_prop() 336 prop_len = OF_getprop(child, "hwsensor-type", type, sizeof(type)); in ad7417_fill_sensor_prop() 348 prop_len = OF_getprop(child, "hwsensor-id", id, sizeof(id)); in ad7417_fill_sensor_prop() 353 prop_len = OF_getprop(child, "hwsensor-zone", id, sizeof(id)); in ad7417_fill_sensor_prop() 365 OF_getprop(node, "location", location, sizeof(location)); in ad7417_fill_sensor_prop() 533 OF_getprop(eeprom_node, "cpuid", eeprom[0], sizeof(eeprom[0])); in ad7417_diode_read() 535 OF_getprop(eeprom_node, "cpuid", eeprom[1], sizeof(eeprom[1])); in ad7417_diode_read()
|
| /freebsd-14.2/sys/dev/neta/ |
| H A D | if_mvneta_fdt.c | 158 if (OF_getprop(node, "phy-mode", phymode, sizeof(phymode)) <= 0) { in mvneta_fdt_phy_acquire() 175 if (OF_getprop(node, "managed", managed, sizeof(managed)) > 0) { in mvneta_fdt_phy_acquire() 246 len = OF_getprop(node, "local-mac-address", (void *)lmac, sizeof(lmac)); in mvneta_fdt_mac_address()
|
| /freebsd-14.2/sys/dev/altera/avgen/ |
| H A D | altera_avgen_fdt.c | 99 if (OF_getprop(node, "sri-cambridge,width", &cell, sizeof(cell)) > 0) in altera_avgen_fdt_attach() 109 if (OF_getprop(node, "sri-cambridge,devunit", &cell, sizeof(cell)) > 0) in altera_avgen_fdt_attach()
|
| /freebsd-14.2/sys/powerpc/ofw/ |
| H A D | ofw_syscons.c | 249 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)); in ofwfb_configure() 258 OF_getprop(node, "device_type", type, sizeof(type)); in ofwfb_configure() 263 OF_getprop(node, "depth", &depth, sizeof(depth)); in ofwfb_configure() 285 OF_getprop(node, "height", &sc->sc_height, sizeof(sc->sc_height)); in ofwfb_configure() 286 OF_getprop(node, "width", &sc->sc_width, sizeof(sc->sc_width)); in ofwfb_configure() 287 OF_getprop(node, "linebytes", &sc->sc_stride, sizeof(sc->sc_stride)); in ofwfb_configure() 294 len = OF_getprop(node, "assigned-addresses", sc->sc_pciaddrs, in ofwfb_configure() 297 len = OF_getprop(OF_parent(node), "assigned-addresses", in ofwfb_configure() 312 OF_getprop(node, "address", &fb_phys, sizeof(fb_phys)); in ofwfb_configure()
|