/netbsd/sys/dev/fdt/ |
H A D | fdt_pinctrl.c | 220 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 D | dwc3_fdt.c | 151 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 D | cpufreq_dt.c | 396 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 D | fdt_intr.c | 97 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 D | mmc_pwrseq_simple.c | 126 if (of_hasprop(phandle, "clocks")) { in mmcpwrseq_simple_attach() 135 if (of_hasprop(phandle, "reset-gpios")) { in mmcpwrseq_simple_attach()
|
H A D | cpus.c | 92 return of_hasprop(child, "enable-method"); in cpus_cpu_enabled()
|
H A D | fdtbus.c | 112 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 D | cycv_dwcmmc.c | 144 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 D | fdt_machdep.c | 480 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 D | fdt_dma_machdep.c | 47 const int flags = of_hasprop(phandle, "dma-coherent") ? in fdtbus_dma_tag_create()
|
/netbsd/sys/dev/ofw/ |
H A D | openfirm.h | 136 bool of_hasprop(int, const char *); 137 #define of_getprop_bool of_hasprop
|
H A D | ofw_spi_subr.c | 79 mode = ((int)of_hasprop(node, "cpol") << 1) | (int)of_hasprop(node, "cpha"); in of_enter_spi_devs()
|
/netbsd/sys/arch/arm/rockchip/ |
H A D | rk_eqos.c | 244 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 D | rk_gmac.c | 338 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 D | smsh_fdt.c | 99 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 D | sunxi_mmc.c | 389 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 D | meson_pinctrl.c | 443 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 D | meson_sdio.c | 221 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 D | meson_dwmac.c | 85 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 D | exynos_pinctrl.c | 125 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 D | ti_div_clock.c | 165 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 D | ti_cpufreq.c | 111 if (!of_hasprop(opp_node, "opp-supported-hw")) in ti_opp_supported()
|
/netbsd/sys/arch/arm/nxp/ |
H A D | imx6_iomux.c | 176 if (of_hasprop(child, "fsl,pins")) { in imxiomux_attach() 180 if (!of_hasprop(sub, "fsl,pins")) in imxiomux_attach()
|
H A D | imx6_pcie.c | 178 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 D | apple_pinctrl.c | 278 if (!of_hasprop(phandle, "gpio-controller")) { in apple_pinctrl_attach() 289 if (!of_hasprop(child, "pinmux")) in apple_pinctrl_attach()
|