| /openbsd-src/sys/dev/ofw/ |
| H A D | ofw_regulator.c | 44 rd->rd_volt_min = OF_getpropint(rd->rd_node, in regulator_register() 46 rd->rd_volt_max = OF_getpropint(rd->rd_node, in regulator_register() 50 rd->rd_amp_min = OF_getpropint(rd->rd_node, in regulator_register() 52 rd->rd_amp_max = OF_getpropint(rd->rd_node, in regulator_register() 57 OF_getpropint(rd->rd_node, "regulator-ramp-delay", 0); in regulator_register() 60 OF_getpropint(rd->rd_node, "regulator-coupled-with", 0); in regulator_register() 62 OF_getpropint(rd->rd_node, "regulator-coupled-max-spread", 0); in regulator_register() 80 rd->rd_phandle = OF_getpropint(rd->rd_node, "phandle", 0); in regulator_register() 122 regulator_enable(OF_getpropint(node, "vin-supply", 0)); in regulator_fixed_set() 157 startup_delay = OF_getpropint(node, "startup-delay-us", 0); in regulator_fixed_set() [all …]
|
| H A D | ofw_misc.c | 59 rm->rm_phandle = OF_getpropint(node, "phandle", 0); in regmap_register() 132 ifd->if_phandle = OF_getpropint(ifd->if_node, "phandle", 0); in if_register() 176 pd->pd_cells = OF_getpropint(pd->pd_node, "#phy-cells", 0); in phy_register() 177 pd->pd_phandle = OF_getpropint(pd->pd_node, "phandle", 0); in phy_register() 191 vcc_supply = OF_getpropint(node, "vcc-supply", 0); in phy_usb_nop_enable() 248 ncells = OF_getpropint(node, "#phy-cells", 0); in phy_next_phy() 309 ib->ib_phandle = OF_getpropint(ib->ib_node, "phandle", 0); in i2c_register() 355 sd->sd_phandle = OF_getpropint(sd->sd_node, "phandle", 0); in sfp_register() 491 pd->pd_cells = OF_getpropint(pd->pd_node, "#pwm-cells", 0); in pwm_register() 492 pd->pd_phandle = OF_getpropint(pd->pd_node, "phandle", 0); in pwm_register() [all …]
|
| H A D | ofw_clock.c | 35 cd->cd_cells = OF_getpropint(cd->cd_node, "#clock-cells", 0); in clock_register() 36 cd->cd_phandle = OF_getpropint(cd->cd_node, "phandle", 0); in clock_register() 63 return OF_getpropint(node, "clock-frequency", 0); in clock_get_frequency_cells() 68 mult = OF_getpropint(node, "clock-mult", 1); in clock_get_frequency_cells() 69 div = OF_getpropint(node, "clock-div", 1); in clock_get_frequency_cells() 136 ncells = OF_getpropint(node, "#clock-cells", 0); in clock_next_clock() 344 rd->rd_cells = OF_getpropint(rd->rd_node, "#reset-cells", 0); in reset_register() 345 rd->rd_phandle = OF_getpropint(rd->rd_node, "phandle", 0); in reset_register() 377 ncells = OF_getpropint(node, "#reset-cells", 0); in reset_next_reset()
|
| H A D | ofw_thermal.c | 114 ts->ts_cells = OF_getpropint(ts->ts_node, "#thermal-sensor-cells", 0); in thermal_sensor_register() 115 ts->ts_phandle = OF_getpropint(ts->ts_node, "phandle", 0); in thermal_sensor_register() 138 cd->cd_cells = OF_getpropint(cd->cd_node, "#cooling-cells", 0); in cooling_device_register() 139 cd->cd_phandle = OF_getpropint(cd->cd_node, "phandle", 0); in cooling_device_register() 198 ncells = OF_getpropint(node, "#cooling-cells", 2); in cdev_next_cdev() 422 tz->tz_polling_delay = OF_getpropint(node, "polling-delay", 0); in thermal_zone_init() 424 OF_getpropint(node, "polling-delay-passive", tz->tz_polling_delay); in thermal_zone_init() 444 temp = OF_getpropint(node, "temperature", THERMAL_SENSOR_MAX); in thermal_zone_init() 462 tp->tp_hysteresis = OF_getpropint(node, "hysteresis", 0); in thermal_zone_init() 465 tp->tp_phandle = OF_getpropint(node, "phandle", 0); in thermal_zone_init() [all …]
|
| H A D | ofw_power.c | 32 pd->pd_cells = OF_getpropint(pd->pd_node, "#power-domain-cells", 0); in power_domain_register() 33 pd->pd_phandle = OF_getpropint(pd->pd_node, "phandle", 0); in power_domain_register() 65 ncells = OF_getpropint(node, "#power-domain-cells", 0); in power_domain_next_domain()
|
| /openbsd-src/sys/dev/fdt/ |
| H A D | if_dwqe_fdt.c | 149 phy = OF_getpropint(faa->fa_node, "phy", 0); in dwqe_fdt_attach() 151 phy = OF_getpropint(faa->fa_node, "phy-handle", 0); in dwqe_fdt_attach() 154 sc->sc_phyloc = OF_getpropint(node, "reg", MII_PHY_ANY); in dwqe_fdt_attach() 193 phy_supply = OF_getpropint(faa->fa_node, "phy-supply", 0); in dwqe_fdt_attach() 204 ifp->if_baudrate = IF_Mbps(OF_getpropint(node, "speed", 0)); in dwqe_fdt_attach() 241 sc->sc_pbl = OF_getpropint(faa->fa_node, "snps,pbl", 8); in dwqe_fdt_attach() 242 sc->sc_txpbl = OF_getpropint(faa->fa_node, "snps,txpbl", sc->sc_pbl); in dwqe_fdt_attach() 243 sc->sc_rxpbl = OF_getpropint(faa->fa_node, "snps,rxpbl", sc->sc_pbl); in dwqe_fdt_attach() 246 axi_config = OF_getpropint(faa->fa_node, "snps,axi-config", 0); in dwqe_fdt_attach() 253 sc->sc_wr_osr_lmt = OF_getpropint(node, "snps,wr_osr_lmt", 1); in dwqe_fdt_attach() [all …]
|
| H A D | imxanatop.c | 191 ir->ir_reg_offset = OF_getpropint(node, "anatop-reg-offset", -1); in imxanatop_attach_regulator() 192 ir->ir_vol_bit_shift = OF_getpropint(node, "anatop-vol-bit-shift", -1); in imxanatop_attach_regulator() 193 ir->ir_vol_bit_width = OF_getpropint(node, "anatop-vol-bit-width", -1); in imxanatop_attach_regulator() 194 ir->ir_min_bit_val = OF_getpropint(node, "anatop-min-bit-val", -1); in imxanatop_attach_regulator() 195 ir->ir_min_voltage = OF_getpropint(node, "anatop-min-voltage", -1); in imxanatop_attach_regulator() 196 ir->ir_max_voltage = OF_getpropint(node, "anatop-max-voltage", -1); in imxanatop_attach_regulator() 205 OF_getpropint(node, "anatop-delay-reg-offset", 0); in imxanatop_attach_regulator() 207 OF_getpropint(node, "anatop-delay-bit-shift", 0); in imxanatop_attach_regulator() 209 OF_getpropint(node, "anatop-delay-bit-width", 0); in imxanatop_attach_regulator()
|
| H A D | if_fec.c | 322 phy_reset_duration = OF_getpropint(faa->fa_node, in fec_attach() 517 phy = OF_getpropint(sc->sc_node, "phy-handle", 0); in fec_phy_init() 520 rxc = OF_getpropint(node, "rxc-skew-ps", 1400) / 200; in fec_phy_init() 521 rxdv = OF_getpropint(node, "rxdv-skew-ps", 1400) / 200; in fec_phy_init() 522 txc = OF_getpropint(node, "txc-skew-ps", 1400) / 200; in fec_phy_init() 523 txen = OF_getpropint(node, "txen-skew-ps", 1400) / 200; in fec_phy_init() 524 rxd0 = OF_getpropint(node, "rxd0-skew-ps", 1400) / 200; in fec_phy_init() 525 rxd1 = OF_getpropint(node, "rxd1-skew-ps", 1400) / 200; in fec_phy_init() 526 rxd2 = OF_getpropint(node, "rxd2-skew-ps", 1400) / 200; in fec_phy_init() 527 rxd3 = OF_getpropint(node, "rxd3-skew-ps", 1400) / 200; in fec_phy_init() [all …]
|
| H A D | com_fdt.c | 83 comcons_reg_width = OF_getpropint(stdout_node, "reg-io-width", width); in com_fdt_init_cons() 84 comcons_reg_shift = OF_getpropint(stdout_node, "reg-shift", shift); in com_fdt_init_cons() 126 freq = OF_getpropint(faa->fa_node, "clock-frequency", 0); in com_fdt_attach() 143 sc->sc_reg_width = OF_getpropint(faa->fa_node, "reg-io-width", width); in com_fdt_attach() 144 sc->sc_reg_shift = OF_getpropint(faa->fa_node, "reg-shift", shift); in com_fdt_attach()
|
| H A D | gpiorestart.c | 78 OF_getpropint(faa->fa_node, "active-delay", 100) * 1000; in gpiorestart_attach() 80 OF_getpropint(faa->fa_node, "inactive-delay", 100) * 1000; in gpiorestart_attach() 82 OF_getpropint(faa->fa_node, "wait-delay", 3000) * 1000; in gpiorestart_attach()
|
| H A D | syscon.c | 106 sc->sc_regmap = OF_getpropint(faa->fa_node, "regmap", 0); in syscon_attach() 118 sc->sc_offset = OF_getpropint(faa->fa_node, "offset", 0); in syscon_attach() 119 sc->sc_mask = OF_getpropint(faa->fa_node, "mask", 0xffffffff); in syscon_attach() 120 sc->sc_value = OF_getpropint(faa->fa_node, "value", 0); in syscon_attach()
|
| H A D | psci.c | 122 sc->sc_system_off = OF_getpropint(faa->fa_node, in psci_attach() 124 sc->sc_system_reset = OF_getpropint(faa->fa_node, in psci_attach() 126 sc->sc_cpu_on = OF_getpropint(faa->fa_node, "cpu_on", 0); in psci_attach() 127 sc->sc_cpu_off = OF_getpropint(faa->fa_node, "cpu_off", 0); in psci_attach() 128 sc->sc_cpu_suspend = OF_getpropint(faa->fa_node, in psci_attach()
|
| H A D | ipmi_fdt.c | 64 ia.iaa_if_iosize = OF_getpropint(faa->fa_node, "reg-size", 1); in ipmi_fdt_attach() 65 ia.iaa_if_iospacing = OF_getpropint(faa->fa_node, "reg-spacing", 1); in ipmi_fdt_attach()
|
| H A D | fanpwr.c | 136 if (OF_getpropint(node, "fcs,suspend-voltage-selector", 0)) in fanpwr_attach() 142 if (OF_getpropint(node, "fcs,suspend-voltage-selector", 0)) in fanpwr_attach() 148 if (OF_getpropint(node, "fcs,suspend-voltage-selector", 0)) in fanpwr_attach() 212 ramp_delay = OF_getpropint(node, "regulator-ramp-delay", 0); in fanpwr_attach()
|
| H A D | sdhc_fdt.c | 184 sc->sc_vqmmc = OF_getpropint(sc->sc_node, "vqmmc-supply", 0); in sdhc_fdt_attach() 209 phandle = OF_getpropint(faa->fa_node, in sdhc_fdt_attach() 284 if (OF_getpropint(faa->fa_node, "bus-width", 1) != 8) in sdhc_fdt_attach() 294 sc->sc_znr = OF_getpropint(faa->fa_node, in sdhc_fdt_attach() 297 sc->sc_zpr = OF_getpropint(faa->fa_node, in sdhc_fdt_attach() 300 sc->sc_sdhc_id = OF_getpropint(faa->fa_node, in sdhc_fdt_attach()
|
| H A D | dwiic_fdt.c | 130 sda_hold = OF_getpropint(fsc->sc_node, "i2c-sda-hold-time-ns", 300); in dwiic_fdt_calc_timings() 131 sda_fall = OF_getpropint(fsc->sc_node, "i2c-sda-falling-time-ns", 300); in dwiic_fdt_calc_timings() 132 scl_fall = OF_getpropint(fsc->sc_node, "i2c-scl-falling-time-ns", 300); in dwiic_fdt_calc_timings()
|
| H A D | pinctrl.c | 84 sc->sc_reg_width = OF_getpropint(faa->fa_node, in pinctrl_attach() 92 sc->sc_ncells = OF_getpropint(faa->fa_node, "#pinctrl-cells", 1); in pinctrl_attach() 93 sc->sc_func_mask = OF_getpropint(faa->fa_node, in pinctrl_attach()
|
| H A D | rkpciephy.c | 119 grf = OF_getpropint(node, "rockchip,phy-grf", 0); in rk3568_pciephy_enable() 170 grf = OF_getpropint(node, "rockchip,phy-grf", 0); in rk3588_pciephy_enable() 205 grf = OF_getpropint(node, "rockchip,pipe-grf", 0); in rk3588_pciephy_enable()
|
| H A D | mvsw.c | 152 phy = OF_getpropint(port, "phy-handle", 0); in mvsw_attach() 316 port = OF_getpropint(node, "reg", -1); in mvsw_port_enable() 333 phy = OF_getpropint(node, "reg", -1); in mvsw_phy_enable() 349 port = OF_getpropint(node, "reg", -1); in mvsw_serdes_enable()
|
| H A D | if_bse_fdt.c | 97 phy = OF_getpropint(faa->fa_node, "phy-handle", 0); in bse_fdt_attach() 100 sc->sc_phy_id = OF_getpropint(node, "reg", MII_PHY_ANY); in bse_fdt_attach()
|
| /openbsd-src/sys/arch/powerpc64/powerpc64/ |
| H A D | cpu.c | 136 clock_freq = OF_getpropint(node, "clock-frequency", 0); in cpu_attach() 142 iline = OF_getpropint(node, "i-cache-block-size", 128); in cpu_attach() 143 dline = OF_getpropint(node, "d-cache-block-size", 128); in cpu_attach() 152 isize = OF_getpropint(node, "i-cache-size", 0) / 1024; in cpu_attach() 153 iways = OF_getpropint(node, "i-cache-sets", 0); in cpu_attach() 154 dsize = OF_getpropint(node, "d-cache-size", 0) / 1024; in cpu_attach() 155 dways = OF_getpropint(node, "d-cache-sets", 0); in cpu_attach() 176 cache = OF_getpropint(node, "l2-cache", 0); in cpu_attach() 219 tb_freq = OF_getpropint(faa->fa_node, "timebase-frequency", tb_freq); in cpu_attach()
|
| /openbsd-src/sys/arch/riscv64/riscv64/ |
| H A D | cpu.c | 157 OF_getpropint(ci->ci_node, "d-cache-block-size", 64); in cpu_identify() 262 opp = OF_getpropint(ci->ci_node, "operating-points-v2", 0); in cpu_attach() 277 line = OF_getpropint(node, "cache-block-size", 0); in cpu_attach() 278 size = OF_getpropint(node, "cache-size", 0); in cpu_attach() 279 ways = OF_getpropint(node, "cache-sets", 0); in cpu_attach() 280 iline = OF_getpropint(node, "i-cache-block-size", line); in cpu_attach() 281 isize = OF_getpropint(node, "i-cache-size", size) / 1024; in cpu_attach() 282 iways = OF_getpropint(node, "i-cache-sets", ways); in cpu_attach() 283 dline = OF_getpropint(node, "d-cache-block-size", line); in cpu_attach() 284 dsize = OF_getpropint(nod in cpu_attach() [all...] |
| H A D | intr.c | 83 phandle = OF_getpropint(node, "interrupt-parent", 0); in riscv_intr_get_parent() 107 phandle = OF_getpropint(node, "msi-parent", 0); in riscv_intr_map_msi() 117 mask = OF_getpropint(node, "msi-map-mask", 0xffff); in riscv_intr_map_msi() 133 mcells = OF_getpropint(node, "#msi-cells", 1); in riscv_intr_map_msi() 276 ic->ic_cells = OF_getpropint(ic->ic_node, "#interrupt-cells", 0); in riscv_intr_register_fdt() 277 ic->ic_phandle = OF_getpropint(ic->ic_node, "phandle", 0); in riscv_intr_register_fdt() 442 acells = OF_getpropint(ic->ic_node, "#address-cells", 0); in riscv_intr_establish_fdt_imap_cpu()
|
| /openbsd-src/sys/dev/mii/ |
| H A D | ytphy.c | 297 rx_delay = OF_getpropint(sc->mii_pdata->mii_node, in ytphy_yt8521_init() 299 tx_delay = OF_getpropint(sc->mii_pdata->mii_node, in ytphy_yt8521_init() 445 rx_clk_drv = OF_getpropint(sc->mii_pdata->mii_node, in ytphy_yt8531_init() 447 rx_data_drv = OF_getpropint(sc->mii_pdata->mii_node, in ytphy_yt8531_init() 449 clk_out_freq = OF_getpropint(sc->mii_pdata->mii_node, in ytphy_yt8531_init()
|
| /openbsd-src/sys/arch/armv7/exynos/ |
| H A D | exgpio.c | 228 func = OF_getpropint(node, "samsung,pin-function", 0); in exgpio_pinctrl() 229 val = OF_getpropint(node, "samsung,pin-val", 0); in exgpio_pinctrl() 230 pud = OF_getpropint(node, "samsung,pin-pud", 1); in exgpio_pinctrl() 231 drv = OF_getpropint(node, "samsung,pin-drv", 0); in exgpio_pinctrl()
|