of_hasprop
esc->sc_gpio_cd_inverted = of_hasprop(phandle, "cd-inverted") ? 0 : 1;
esc->sc_non_removable = of_hasprop(phandle, "non-removable");
esc->sc_broken_cd = of_hasprop(phandle, "broken-cd");
if (of_hasprop(phandle, "snps,reset-gpio")) {
reset_active_low = of_hasprop(phandle, "snps,reset-active-low");
if (of_hasprop(child, "gpio-controller")) {
if (!of_hasprop(child, "gpio-hog"))
const bool input = of_hasprop(child, "input");
const bool output_low = of_hasprop(child, "output-low");
const bool output_high = of_hasprop(child, "output-high");
sc->sc_gpio_cd_inverted = of_hasprop(sc->sc_slot_phandle, "cd-inverted");
sc->sc_gpio_wp_inverted = of_hasprop(sc->sc_slot_phandle, "wp-inverted");
sc->sc_non_removable = of_hasprop(sc->sc_slot_phandle, "non-removable");
sc->sc_broken_cd = of_hasprop(sc->sc_slot_phandle, "broken-cd");
sc->sc_gpio_cd_inverted = of_hasprop(sc->sc_slot_phandle, "cd-inverted");
sc->sc_gpio_wp_inverted = of_hasprop(sc->sc_slot_phandle, "wp-inverted");
sc->sc_non_removable = of_hasprop(sc->sc_slot_phandle, "non-removable");
sc->sc_broken_cd = of_hasprop(sc->sc_slot_phandle, "broken-cd");
if (of_hasprop(sc->sc_phandle, "phy-supply")) {
sc->sc_gpio_cd_inverted = of_hasprop(phandle, "cd-inverted") ? 1 : 0;
sc->sc_gpio_wp_inverted = of_hasprop(phandle, "wp-inverted") ? 1 : 0;
sc->sc_non_removable = of_hasprop(phandle, "non-removable");
sc->sc_broken_cd = of_hasprop(phandle, "broken-cd");
if (!of_hasprop(phandle, "gpio-controller")) {
if (!of_hasprop(child, "pinmux"))
if (!of_hasprop(child, "brcm,pins"))
return of_hasprop(child, "enable-method");
if (of_hasprop(phandle, "msi-controller")) {
if (of_hasprop(phandle, "arm,cpu-registers-not-fw-configured")) {
if (of_hasprop(phandle, "interrupt-affinity")) {
if (of_hasprop(phandle, "smsc,irq-active-high"))
if (of_hasprop(phandle, "smsc,irq-push-pull"))
if (of_hasprop(phandle, "clocks")) {
if (of_hasprop(phandle, "resets")) {
if (!of_hasprop(phandle, "vbus-supply"))
internal = of_hasprop(phandle, "nvidia,internal");
internal = of_hasprop(phandle, "nvidia,internal");
if (!of_hasprop(phandle, psc->sc_txd->txd_supplies[n]))
if (of_hasprop(phandle, "ddc-i2c-bus") && sc->sc_base.sc_ic == NULL) {
if (of_hasprop(child, "fsl,pins")) {
if (!of_hasprop(sub, "fsl,pins"))
if (of_hasprop(phandle, "vpcie-supply")) {
if (of_hasprop(phandle, "ext_osc")) {
if (of_hasprop(phandle, "vbus-supply")) {
if (of_hasprop(sc->sc_phandle, "vbus-supply")) {
if (of_hasprop(phandle, "no-1-8-v"))
if (!of_hasprop(sub, "rockchip,pins"))
if (!of_hasprop(sub, "rockchip,pins"))
if (!of_hasprop(sub, "rockchip,pins"))
if (of_hasprop(phandle, "aspm-no-l0s")) {
if (!of_hasprop(sub, "rockchip,pins"))
if (of_hasprop(sc->sc_phandle, "rockchip,grf")) {
if (of_hasprop(phandle, "ddc-i2c-bus") && sc->sc_base.sc_ic == NULL) {
if (!of_hasprop(phandle, "snps,reset-gpio"))
reset_active_low = of_hasprop(phandle, "snps,reset-active-low");
if (of_hasprop(phandle, "snps,mixed-burst"))
if (of_hasprop(phandle, "snps,tso"))
if (!of_hasprop(phandle, "snps,reset-gpio"))
reset_active_low = of_hasprop(phandle, "snps,reset-active-low");
if (of_hasprop(phandle, "phy-supply")) {
if (of_hasprop(phandle, "has-transaction-translator"))
if (of_hasprop(child, "gpio-controller")) {
if (of_hasprop(child, "samsung,pins")) {
if (of_hasprop(sc->phandle,
pin_value = of_hasprop(sc->phandle, "allwinner,reset-active-low");
if (of_hasprop(sc->phandle, "allwinner,use-internal-phy"))
reset_active_low = of_hasprop(phandle, "snps,reset-active-low");
(of_hasprop(child, "function") && of_hasprop(child, "pins")) ||
(of_hasprop(child, "allwinner,function") && of_hasprop(child, "allwinner,pins"));
if (of_hasprop(phandle, "vref-supply")) {
sc->sc_gpio_cd_inverted = of_hasprop(phandle, "cd-inverted") ? 0 : 1;
sc->sc_gpio_wp_inverted = of_hasprop(phandle, "wp-inverted") ? 0 : 1;
sc->sc_non_removable = of_hasprop(phandle, "non-removable");
sc->sc_broken_cd = of_hasprop(phandle, "broken-cd");
of_hasprop(sc->sc_phandle, "mmc-hs200-1_2v") |
of_hasprop(sc->sc_phandle, "mmc-hs200-1_8v");
of_hasprop(sc->sc_phandle, "mmc-ddr-1_2v") |
of_hasprop(sc->sc_phandle, "mmc-ddr-1_8v") |
of_hasprop(sc->sc_phandle, "mmc-ddr-3_3v");
if (of_hasprop(sc->sc_phandle, "cap-mmc-hw-reset"))
if (!of_hasprop(opp_node, "opp-supported-hw"))
if (of_hasprop(sc->sc_phandle, "ti,index-power-of-two"))
const int start_index = of_hasprop(sc->sc_phandle, "ti,index-starts-at-one") ? 1 : 0;
if (of_hasprop(phandle, "has-transaction-translator"))
sc->sc_start_index = of_hasprop(phandle, "ti,index-starts-at-one") ? 1 : 0;
hwmod_phandle = of_hasprop(phandle, "ti,hwmods") ? phandle : OF_parent(phandle);
if (of_hasprop(phandle, "ti,needs-special-reset"))
if (!of_hasprop(phandle, "ti,needs-special-hs-handling"))
if (of_hasprop(phandle, "ti,dual-volt"))
const int flags = of_hasprop(phandle, "dma-coherent") ?
const int flags = of_hasprop(phandle, "dma-coherent") ?
if (!of_hasprop(phandle, "cache-unified")) {
if (of_hasprop(phandle, "input-enable")) {
if (of_hasprop(phandle, "input-disable")) {
if (of_hasprop(phandle, "input-schmitt-enable")) {
if (of_hasprop(phandle, "input-schmitt-disable")) {
if (of_hasprop(phandle, "starfive,strong-pull-up")) {
if (!of_hasprop(phandle, "gpio-controller")) {
if (of_hasprop(phandle, "motorcomm,tx-clk-adj-enabled")) {
if (of_hasprop(phandle, "motorcomm,tx-clk-100-inverted")) {
if (of_hasprop(phandle, "motorcomm,tx-clk-1000-inverted")) {
if (of_hasprop(phandle, "input-enable")) {
if (of_hasprop(phandle, "input-disable")) {
if (of_hasprop(phandle, "input-schmitt-enable")) {
if (of_hasprop(phandle, "input-schmitt-disable")) {
if (!of_hasprop(phandle, "starfive,tx-use-rgmii-clk")) {
const bool bitclock_inversion = of_hasprop(phandle, bitclock_inversion_prop);
const bool frame_inversion = of_hasprop(phandle, frame_inversion_prop);
if (of_hasprop(phandle, "usb-role-switch")) {
if (of_hasprop(opp_node, "opp-suspend"))
if (of_hasprop(opp_table, "opp-shared")) {
if (of_hasprop(phandle, "cpu-supply")) {
if (of_hasprop(phandle, "operating-points"))
else if (of_hasprop(phandle, "operating-points-v2"))
if (!of_hasprop(phandle, "clocks"))
if (!of_hasprop(phandle, "operating-points") &&
!of_hasprop(phandle, "operating-points-v2"))
return of_hasprop(child, "enable-method");
if (of_hasprop(phandle, "snps,dis-enblslpm-quirk") ||
of_hasprop(phandle, "snps,dis_enblslpm_quirk"))
if (of_hasprop(phandle, "snps,dis-u2-freeclk-exists-quirk"))
if (of_hasprop(phandle, "snps,dis_u2_susphy_quirk"))
if (of_hasprop(phandle, "snps,dis_u3_susphy_quirk"))
if (of_hasprop(phandle, "snps,dis-del-phy-power-chg-quirk"))
if (of_hasprop(phandle, "snps,dis-tx-ipgap-linecheck-quirk"))
if (of_hasprop(dwc3_phandle, "usb-role-switch")) {
if (of_hasprop(phandle, "snps,fixed-burst"))
if (of_hasprop(phandle, "snps,force_thresh_dma_mode"))
if (of_hasprop(phandle, "has-transaction-translator"))
if (of_hasprop(chosen, "netbsd,mbr") &&
of_hasprop(chosen, "netbsd,partition")) {
if (of_hasprop(chosen, "netbsd,gpt-guid")) {
if (of_hasprop(chosen, "netbsd,gpt-label")) {
if (of_hasprop(chosen, "netbsd,booted-mac-address")) {
if (of_hasprop(iparent, "interrupt-parent"))
if (phandle != iparent && of_hasprop(iparent, "interrupt-map"))
if (of_hasprop(phandle, "interrupts-extended"))
if (of_hasprop(interrupt_parent, "interrupt-map"))
if (phandle != iparent && of_hasprop(iparent, "interrupt-controller"))
if (of_hasprop(phandle, "bias-disable")) {
} else if (of_hasprop(phandle, "bias-pull-up")) {
} else if (of_hasprop(phandle, "bias-pull-down")) {
if (of_hasprop(phandle, "drive-push-pull"))
else if (of_hasprop(phandle, "drive-open-drain"))
else if (of_hasprop(phandle, "drive-open-source"))
if (of_hasprop(phandle, "input-enable")) {
} else if (of_hasprop(phandle, "input-disable")) {
if (of_hasprop(phandle, "output-enable")) {
} else if (of_hasprop(phandle, "output-disable")) {
if (of_hasprop(phandle, "output-low")) {
} else if (of_hasprop(phandle, "output-high")) {
if (of_hasprop(rc->rc_phandle, "regulator-always-on"))
if (of_hasprop(node, "spi-cpha")) {
if (of_hasprop(node, "spi-cpol")) {
if (of_hasprop(node, "spi-3wire")) {
if (of_hasprop(node, "spi-cs-high")) {
if (of_hasprop(node, "spi-lsb-first")) {
if (!of_hasprop(phandle, "compatible")) {
if (of_hasprop(phandle, "nonposted-mmio")) {
if (of_hasprop(node->n_phandle, prop)) {
if (of_hasprop(phandle, "clocks")) {
if (of_hasprop(phandle, "reset-gpios")) {
if (of_hasprop(child, "pinctrl-single,pins"))
if (of_hasprop(phandle, "enable-gpios")) {
of_hasprop(sc->sc_phandle, "x-powers,self-working-mode") ||
of_hasprop(sc->sc_phandle, "x-powers,master-mode");
if (of_hasprop(phandle, "regulator-always-on") ||
of_hasprop(phandle, "regulator-boot-on")) {
if (of_hasprop(child, "power-role")) {
if (of_hasprop(phandle, "invert")) {
if (of_hasprop(phandle, "open-drain")) {
if (of_hasprop(phandle, "i2c-mux-idle-disconnect")) {
if (of_hasprop(sc->sc_phandle, "rockchip,system-power-controller") &&
if (!of_hasprop(sc->sc_phandle, "gpio-controller")) {
bool of_hasprop(int, const char *);
#define of_getprop_bool of_hasprop