Home
last modified time | relevance | path

Searched refs:OF_getprop (Results 1 – 25 of 123) sorted by relevance

12345

/freebsd/sys/dev/dpaa/
H A Dif_dtsec_fdt.c125 if (OF_getprop(enet_node, "local-mac-address", in dtsec_fdt_attach()
141 if (OF_getprop(enet_node, "phy-handle", (void *)&phy_node, in dtsec_fdt_attach()
147 if (OF_getprop(phy_node, "reg", (void *)&sc->sc_phy_addr, in dtsec_fdt_attach()
167 if (OF_getprop(enet_node, "phy-connection-type", (void *)phy_type, in dtsec_fdt_attach()
187 if (OF_getprop(enet_node, "fsl,fman-ports", (void *)fman_rxtx_node, in dtsec_fdt_attach()
209 if (OF_getprop(fman_rxtx_node[0], "reg", (void *)&sc->sc_port_rx_hw_id, in dtsec_fdt_attach()
214 if (OF_getprop(fman_rxtx_node[1], "reg", (void *)&sc->sc_port_tx_hw_id, in dtsec_fdt_attach()
218 if (OF_getprop(fman_rxtx_node[1], "cell-index", &fman_tx_cell, in dtsec_fdt_attach()
/freebsd/sys/powerpc/powermac/
H A Dplatform_powermac.c118 compatlen = OF_getprop(root, "compatible", compat, sizeof(compat)); in powermac_probe()
143 OF_getprop(OF_parent(memory), "#address-cells", &physacells, in powermac_mem_regions()
146 propsize = OF_getprop(memory, "reg", memoryprop, sizeof(memoryprop)); in powermac_mem_regions()
167 propsize = OF_getprop(memory, "available", memoryprop, in powermac_mem_regions()
215 if (OF_getprop(rootnode, "model", model, sizeof(model)) > 0) { in powermac_attach()
233 OF_getprop(phandle, "timebase-frequency", &ticks, sizeof(ticks)); in powermac_timebase_freq()
248 res = OF_getprop(cpu, "reg", &cpuid, sizeof(cpuid)); in powermac_smp_fill_cpuref()
273 res = OF_getprop(dev, "name", buf, sizeof(buf)); in powermac_smp_first_cpu()
291 res = OF_getprop(cpu, "device_type", buf, sizeof(buf)); in powermac_smp_first_cpu()
311 res = OF_getprop(cpu, "device_type", buf, sizeof(buf)); in powermac_smp_next_cpu()
[all …]
H A Dsmusat.c142 OF_getprop(child, "reg", &sens->reg, sizeof(sens->reg)); in smusat_attach()
147 OF_getprop(child, "zone", &sens->therm.zone, sizeof(int)); in smusat_attach()
148 OF_getprop(child, "location", sens->therm.name, in smusat_attach()
151 OF_getprop(child, "device_type", type, sizeof(type)); in smusat_attach()
H A Duninorth.c185 if (OF_getprop(devnode, "interrupt-parent", &iparent, sizeof(iparent)) in unin_chip_add_intr()
291 if (OF_getprop(root, "reg", reg, sizeof(reg)) < 8) in unin_chip_attach()
295 OF_getprop(OF_parent(root), "#address-cells", &acells, sizeof(acells)); in unin_chip_attach()
296 OF_getprop(OF_parent(root), "#size-cells", &scells, sizeof(scells)); in unin_chip_attach()
357 if (OF_getprop(child, "name", name, sizeof(name)) <= 0) in unin_chip_attach()
362 if (OF_getprop(child, "interrupt-parent", &iparent, in unin_chip_attach()
405 OF_getprop(child, "compatible", compat, sizeof(compat)); in unin_chip_attach()
417 OF_getprop(child, "compatible", compat, sizeof(compat)); in unin_chip_attach()
H A Dsmu.c337 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 Dmacio.c228 if (OF_getprop(devnode, "interrupt-parent", &iparent, sizeof(iparent)) in macio_add_intr()
232 if (OF_getprop(OF_node_from_xref(iparent), "#interrupt-cells", &icells, in macio_add_intr()
271 res = OF_getprop(child, "name", buf, sizeof(buf)); in macio_add_reg()
277 res = OF_getprop(child, "layout-id", &layout_id, in macio_add_reg()
339 if (OF_getprop(root, "assigned-addresses", in macio_attach()
345 OF_getprop(root, "compatible", compat, sizeof(compat)); in macio_attach()
455 if (OF_getprop(child, "timebase-enable", &sc->sc_timebase, in macio_attach()
/freebsd/sys/dev/uart/
H A Duart_cpu_powerpc.c59 if (OF_getprop(opts, inputdev, buf, sizeof(buf)) == -1) in ofw_get_uart_console()
66 if (OF_getprop(opts, outputdev, buf, sizeof(buf)) == -1) in ofw_get_uart_console()
90 OF_getprop(node, prop, &field, sizeof(field)); in ofw_get_console_phandle_path()
162 if (OF_getprop(input, "device_type", buf, sizeof(buf)) == -1) in uart_cpu_getdev()
188 if (OF_getprop(input, "clock-frequency", &di->bas.rclk, in uart_cpu_getdev()
191 if (OF_getprop(input, "current-speed", &di->baudrate, in uart_cpu_getdev()
194 OF_getprop(input, "reg-shift", &di->bas.regshft, in uart_cpu_getdev()
/freebsd/sys/powerpc/cpufreq/
H A Dpmufreq.c88 if (OF_getprop(node, "min-clock-frequency", &min_freq, sizeof(min_freq)) == -1) in pmufreq_identify()
117 if (OF_getprop(node, "min-clock-frequency", &min_freq, sizeof(min_freq)) == -1) in pmufreq_probe()
133 OF_getprop(node, "min-clock-frequency", &sc->minfreq, sizeof(sc->minfreq)); in pmufreq_attach()
134 OF_getprop(node, "max-clock-frequency", &sc->maxfreq, sizeof(sc->maxfreq)); in pmufreq_attach()
135 OF_getprop(node, "rounded-clock-frequency", &sc->curfreq, sizeof(sc->curfreq)); in pmufreq_attach()
/freebsd/sys/dev/fdt/
H A Dfdt_common.c106 if (OF_getprop(node, "ranges", ranges, sizeof(ranges)) <= 0) in fdt_get_range_by_busaddr()
175 if (OF_getprop(node, "ranges", ranges, sizeof(ranges)) <= 0) in fdt_get_range()
242 if (OF_getprop(node, "compatible", compat, FDT_COMPAT_LEN) < 0) in fdt_is_compatible_strict()
370 len = OF_getprop(node, "reg", &reg, sizeof(reg)); in fdt_regsize()
412 if (OF_getprop(phy_node, "phy-handle", (void *)&phy_handle, in fdt_get_phyaddr()
478 if (OF_getprop(root, "memreserve", reserve, res_len) <= 0) { in fdt_get_reserved_regions()
527 rv = OF_getprop(child, "reg", reg, sizeof(reg)); in fdt_get_reserved_mem()
575 if (OF_getprop(memory, "reg", reg, reg_len) <= 0) { in fdt_get_mem_regions()
616 if (OF_getprop(chosen, "bootargs", bootargs, max_size) == -1) in fdt_get_chosen_bootargs()
/freebsd/sys/powerpc/booke/
H A Dplatform_bare.c117 OF_getprop(child, "timebase-frequency", &tbase, sizeof(tbase)); in bare_timebase_freq()
124 OF_getprop(child, "timebase-frequency", &tbase, sizeof(tbase)); in bare_timebase_freq()
133 if (OF_getprop(child, "bus-frequency", (void *)&freq, in bare_timebase_freq()
/freebsd/stand/powerpc/ofw/
H A Dofwfdt.c64 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/sys/powerpc/powernv/
H A Dplatform_powernv.c190 res = OF_getprop(cpu, "name", buf, sizeof(buf)); in powernv_attach()
200 res = OF_getprop(cpu, "device_type", buf, sizeof(buf)); in powernv_attach()
292 res = OF_getprop(dev, "name", buf, sizeof(buf)); in powernv_timebase_freq()
299 res = OF_getprop(cpu, "device_type", buf, sizeof(buf)); in powernv_timebase_freq()
331 res = OF_getprop(dev, "name", buf, sizeof(buf)); in powernv_cpuref_init()
340 res = OF_getprop(cpu, "device_type", buf, sizeof(buf)); in powernv_cpuref_init()
454 res = OF_getprop(dev, "name", buf, sizeof(buf)); in powernv_smp_probe_threads()
462 res = OF_getprop(cpu, "device_type", buf, sizeof(buf)); in powernv_smp_probe_threads()
H A Dopal_dbg.c66 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/sys/powerpc/mikrotik/
H A Drb_led.c85 if (OF_getprop(node, "user_led", gp, sizeof(gp)) <= 0) in rbled_probe()
90 if (OF_getprop(node, "model", model, sizeof(model)) <= 0) in rbled_probe()
109 if (OF_getprop(node, "user_led", gp, sizeof(gp)) <= 0) in rbled_attach()
/freebsd/sys/powerpc/pseries/
H A Dphyp_dbg.c67 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 Dplatform_chrp.c329 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 Dphyp_console.c140 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/sys/dev/gpio/
H A Dgpiopower.c93 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/sys/dev/vt/hw/fb/
H A Dvt_early_fb.c139 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)); in vt_efb_get_fbnode()
143 OF_getprop(node, "device_type", type, sizeof(type)); in vt_efb_get_fbnode()
209 len = OF_getprop(node, "assigned-addresses", pciaddrs, in vt_efb_init()
212 len = OF_getprop(OF_parent(node), "assigned-addresses", in vt_efb_init()
/freebsd/sys/powerpc/mpc85xx/
H A Dplatform_mpc85xx.c176 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/sys/dev/iicbus/adc/
H A Dad7417.c319 prop_len = OF_getprop(child, "hwsensor-location", location, in ad7417_fill_sensor_prop()
335 prop_len = OF_getprop(child, "hwsensor-type", type, sizeof(type)); in ad7417_fill_sensor_prop()
347 prop_len = OF_getprop(child, "hwsensor-id", id, sizeof(id)); in ad7417_fill_sensor_prop()
352 prop_len = OF_getprop(child, "hwsensor-zone", id, sizeof(id)); in ad7417_fill_sensor_prop()
364 OF_getprop(node, "location", location, sizeof(location)); in ad7417_fill_sensor_prop()
532 OF_getprop(eeprom_node, "cpuid", eeprom[0], sizeof(eeprom[0])); in ad7417_diode_read()
534 OF_getprop(eeprom_node, "cpuid", eeprom[1], sizeof(eeprom[1])); in ad7417_diode_read()
/freebsd/stand/libofw/
H A Dofw_console.c57 OF_getprop(chosen, "stdin", &stdin, sizeof(stdin)); in ofw_cons_probe()
58 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)); in ofw_cons_probe()
/freebsd/sys/dev/neta/
H A Dif_mvneta_fdt.c158 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/sys/powerpc/ofw/
H A Dofw_syscons.c248 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)); in ofwfb_configure()
257 OF_getprop(node, "device_type", type, sizeof(type)); in ofwfb_configure()
262 OF_getprop(node, "depth", &depth, sizeof(depth)); in ofwfb_configure()
284 OF_getprop(node, "height", &sc->sc_height, sizeof(sc->sc_height)); in ofwfb_configure()
285 OF_getprop(node, "width", &sc->sc_width, sizeof(sc->sc_width)); in ofwfb_configure()
286 OF_getprop(node, "linebytes", &sc->sc_stride, sizeof(sc->sc_stride)); in ofwfb_configure()
293 len = OF_getprop(node, "assigned-addresses", sc->sc_pciaddrs, in ofwfb_configure()
296 len = OF_getprop(OF_parent(node), "assigned-addresses", in ofwfb_configure()
311 OF_getprop(node, "address", &fb_phys, sizeof(fb_phys)); in ofwfb_configure()
/freebsd/sys/dev/iicbus/pwm/
H A Dadt746x.c410 if (OF_getprop(node, "sensor-id", &sensid, sizeof(sensid)) == -1) in adt746x_fill_sensor_prop()
412 OF_getprop(node, "location", sc->sc_sensors[i].therm.name, 32); in adt746x_fill_sensor_prop()
413 OF_getprop(node, "device_type", sens_type, sizeof(sens_type)); in adt746x_fill_sensor_prop()
420 OF_getprop(node, "reg", &reg, sizeof(reg)); in adt746x_fill_sensor_prop()
421 OF_getprop(node, "sensor-id", &sensid, in adt746x_fill_sensor_prop()
426 OF_getprop(node, "zone", &sc->sc_sensors[i].therm.zone, in adt746x_fill_sensor_prop()

12345