Home
last modified time | relevance | path

Searched refs:of_hasprop (Results 1 – 25 of 67) sorted by relevance

123

/netbsd/sys/dev/fdt/
H A Dfdt_pinctrl.c220 if (of_hasprop(phandle, "bias-disable")) { in fdtbus_pinctrl_parse_bias()
222 } else if (of_hasprop(phandle, "bias-pull-up")) { in fdtbus_pinctrl_parse_bias()
225 } else if (of_hasprop(phandle, "bias-pull-down")) { in fdtbus_pinctrl_parse_bias()
248 if (of_hasprop(phandle, "drive-push-pull")) in fdtbus_pinctrl_parse_drive()
250 else if (of_hasprop(phandle, "drive-open-drain")) in fdtbus_pinctrl_parse_drive()
252 else if (of_hasprop(phandle, "drive-open-source")) in fdtbus_pinctrl_parse_drive()
278 if (of_hasprop(phandle, "input-enable")) { in fdtbus_pinctrl_parse_input_output()
280 } else if (of_hasprop(phandle, "input-disable")) { in fdtbus_pinctrl_parse_input_output()
289 if (of_hasprop(phandle, "output-enable")) { in fdtbus_pinctrl_parse_input_output()
299 if (of_hasprop(phandle, "output-low")) { in fdtbus_pinctrl_parse_input_output()
[all …]
H A Ddwc3_fdt.c151 if (of_hasprop(phandle, "snps,dis-enblslpm-quirk") || in dwc3_fdt_enable_phy()
152 of_hasprop(phandle, "snps,dis_enblslpm_quirk")) in dwc3_fdt_enable_phy()
154 if (of_hasprop(phandle, "snps,dis-u2-freeclk-exists-quirk")) in dwc3_fdt_enable_phy()
156 if (of_hasprop(phandle, "snps,dis_u2_susphy_quirk")) in dwc3_fdt_enable_phy()
162 if (of_hasprop(phandle, "snps,dis_u3_susphy_quirk")) in dwc3_fdt_enable_phy()
164 if (of_hasprop(phandle, "snps,dis-del-phy-power-chg-quirk")) in dwc3_fdt_enable_phy()
170 if (of_hasprop(phandle, "snps,dis-tx-ipgap-linecheck-quirk")) in dwc3_fdt_enable_phy()
267 if (of_hasprop(dwc3_phandle, "usb-role-switch")) { in dwc3_fdt_attach()
H A Dcpufreq_dt.c396 if (of_hasprop(opp_node, "opp-suspend")) in cpufreq_dt_node_supported()
420 if (of_hasprop(opp_table, "opp-shared")) { in cpufreq_dt_parse_opp_v2()
465 if (of_hasprop(phandle, "cpu-supply")) { in cpufreq_dt_parse()
480 if (of_hasprop(phandle, "operating-points")) in cpufreq_dt_parse()
482 else if (of_hasprop(phandle, "operating-points-v2")) in cpufreq_dt_parse()
515 if (!of_hasprop(phandle, "clocks")) in cpufreq_dt_match()
518 if (!of_hasprop(phandle, "operating-points") && in cpufreq_dt_match()
519 !of_hasprop(phandle, "operating-points-v2")) in cpufreq_dt_match()
H A Dfdt_intr.c97 if (phandle != iparent && of_hasprop(iparent, "interrupt-controller")) in fdtbus_get_interrupt_parent()
103 if (of_hasprop(iparent, "interrupt-parent")) in fdtbus_get_interrupt_parent()
110 if (phandle != iparent && of_hasprop(iparent, "interrupt-map")) in fdtbus_get_interrupt_parent()
475 if (of_hasprop(phandle, "interrupts-extended")) in get_specifier_by_index()
497 if (of_hasprop(interrupt_parent, "interrupt-map")) in get_specifier_by_index()
H A Dmmc_pwrseq_simple.c126 if (of_hasprop(phandle, "clocks")) { in mmcpwrseq_simple_attach()
135 if (of_hasprop(phandle, "reset-gpios")) { in mmcpwrseq_simple_attach()
H A Dcpus.c92 return of_hasprop(child, "enable-method"); in cpus_cpu_enabled()
H A Dfdtbus.c112 if (!of_hasprop(phandle, "compatible")) { in fdt_match()
304 if (of_hasprop(phandle, "nonposted-mmio")) { in fdt_bus_flags()
543 if (of_hasprop(node->n_phandle, prop)) { in fdt_find_with_property()
/netbsd/sys/arch/arm/altera/
H A Dcycv_dwcmmc.c144 esc->sc_gpio_cd_inverted = of_hasprop(phandle, "cd-inverted") ? 0 : 1; in cycv_dwcmmc_attach()
146 esc->sc_non_removable = of_hasprop(phandle, "non-removable"); in cycv_dwcmmc_attach()
147 esc->sc_broken_cd = of_hasprop(phandle, "broken-cd"); in cycv_dwcmmc_attach()
/netbsd/sys/arch/evbarm/fdt/
H A Dfdt_machdep.c480 if (of_hasprop(chosen, "netbsd,mbr") && in fdt_detect_root_device()
481 of_hasprop(chosen, "netbsd,partition")) { in fdt_detect_root_device()
527 if (of_hasprop(chosen, "netbsd,gpt-guid")) { in fdt_detect_root_device()
544 if (of_hasprop(chosen, "netbsd,gpt-label")) { in fdt_detect_root_device()
556 if (of_hasprop(chosen, "netbsd,booted-mac-address")) { in fdt_detect_root_device()
H A Dfdt_dma_machdep.c47 const int flags = of_hasprop(phandle, "dma-coherent") ? in fdtbus_dma_tag_create()
/netbsd/sys/dev/ofw/
H A Dopenfirm.h136 bool of_hasprop(int, const char *);
137 #define of_getprop_bool of_hasprop
H A Dofw_spi_subr.c79 mode = ((int)of_hasprop(node, "cpol") << 1) | (int)of_hasprop(node, "cpha"); in of_enter_spi_devs()
/netbsd/sys/arch/arm/rockchip/
H A Drk_eqos.c244 if (!of_hasprop(phandle, "snps,reset-gpio")) in rk_eqos_reset_gpio()
256 reset_active_low = of_hasprop(phandle, "snps,reset-active-low"); in rk_eqos_reset_gpio()
277 if (of_hasprop(phandle, "snps,mixed-burst")) in rk_eqos_init_props()
279 if (of_hasprop(phandle, "snps,tso")) in rk_eqos_init_props()
H A Drk_gmac.c338 if (!of_hasprop(phandle, "snps,reset-gpio")) in rk_gmac_reset()
349 reset_active_low = of_hasprop(phandle, "snps,reset-active-low"); in rk_gmac_reset()
501 if (of_hasprop(phandle, "snps,force_thresh_dma_mode")) in rk_gmac_attach()
/netbsd/sys/arch/arm/fdt/
H A Dsmsh_fdt.c99 if (of_hasprop(phandle, "smsc,irq-active-high")) in smsh_fdt_attach()
101 if (of_hasprop(phandle, "smsc,irq-push-pull")) in smsh_fdt_attach()
/netbsd/sys/arch/arm/sunxi/
H A Dsunxi_mmc.c389 sc->sc_gpio_cd_inverted = of_hasprop(phandle, "cd-inverted") ? 0 : 1;
390 sc->sc_gpio_wp_inverted = of_hasprop(phandle, "wp-inverted") ? 0 : 1;
392 sc->sc_non_removable = of_hasprop(phandle, "non-removable");
393 sc->sc_broken_cd = of_hasprop(phandle, "broken-cd");
561 of_hasprop(sc->sc_phandle, "mmc-hs200-1_2v") |
562 of_hasprop(sc->sc_phandle, "mmc-hs200-1_8v");
565 of_hasprop(sc->sc_phandle, "mmc-ddr-1_2v") |
566 of_hasprop(sc->sc_phandle, "mmc-ddr-1_8v") |
567 of_hasprop(sc->sc_phandle, "mmc-ddr-3_3v");
572 if (of_hasprop(sc->sc_phandle, "cap-mmc-hw-reset"))
/netbsd/sys/arch/arm/amlogic/
H A Dmeson_pinctrl.c443 if (of_hasprop(child, "gpio-controller")) { in meson_pinctrl_initres()
500 if (!of_hasprop(child, "gpio-hog")) in meson_pinctrl_initgpio()
507 const bool input = of_hasprop(child, "input"); in meson_pinctrl_initgpio()
508 const bool output_low = of_hasprop(child, "output-low"); in meson_pinctrl_initgpio()
509 const bool output_high = of_hasprop(child, "output-high"); in meson_pinctrl_initgpio()
H A Dmeson_sdio.c221 sc->sc_gpio_cd_inverted = of_hasprop(sc->sc_slot_phandle, "cd-inverted"); in meson_sdio_attach()
222 sc->sc_gpio_wp_inverted = of_hasprop(sc->sc_slot_phandle, "wp-inverted"); in meson_sdio_attach()
224 sc->sc_non_removable = of_hasprop(sc->sc_slot_phandle, "non-removable"); in meson_sdio_attach()
225 sc->sc_broken_cd = of_hasprop(sc->sc_slot_phandle, "broken-cd"); in meson_sdio_attach()
H A Dmeson_dwmac.c85 reset_active_low = of_hasprop(phandle, "snps,reset-active-low"); in meson_dwmac_reset_eth()
282 if (of_hasprop(phandle, "snps,reset-gpio")) { in meson_dwmac_attach()
/netbsd/sys/arch/arm/samsung/
H A Dexynos_pinctrl.c125 if (of_hasprop(child, "gpio-controller")) { in exynos_pinctrl_attach()
129 if (of_hasprop(child, "samsung,pins")) { in exynos_pinctrl_attach()
/netbsd/sys/arch/arm/ti/
H A Dti_div_clock.c165 if (of_hasprop(sc->sc_phandle, "ti,index-power-of-two")) in ti_div_clock_get_rate()
168 const int start_index = of_hasprop(sc->sc_phandle, "ti,index-starts-at-one") ? 1 : 0; in ti_div_clock_get_rate()
H A Dti_cpufreq.c111 if (!of_hasprop(opp_node, "opp-supported-hw")) in ti_opp_supported()
/netbsd/sys/arch/arm/nxp/
H A Dimx6_iomux.c176 if (of_hasprop(child, "fsl,pins")) { in imxiomux_attach()
180 if (!of_hasprop(sub, "fsl,pins")) in imxiomux_attach()
H A Dimx6_pcie.c178 if (of_hasprop(phandle, "vpcie-supply")) { in imx6_pcie_attach()
188 if (of_hasprop(phandle, "ext_osc")) { in imx6_pcie_attach()
/netbsd/sys/arch/arm/apple/
H A Dapple_pinctrl.c278 if (!of_hasprop(phandle, "gpio-controller")) { in apple_pinctrl_attach()
289 if (!of_hasprop(child, "pinmux")) in apple_pinctrl_attach()

123