Lines Matching full:pu
598 * 1. PU + PD
606 int err, pu, pd; in mtk_pinconf_bias_set_pu_pd() local
609 pu = 0; in mtk_pinconf_bias_set_pu_pd()
612 pu = 1; in mtk_pinconf_bias_set_pu_pd()
615 pu = 0; in mtk_pinconf_bias_set_pu_pd()
622 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PU, pu); in mtk_pinconf_bias_set_pu_pd()
845 int pu, pd, rsel, err; in mtk_pinconf_bias_get_pu_pd_rsel() local
851 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_PU, &pu); in mtk_pinconf_bias_get_pu_pd_rsel()
859 if (pu == 0 && pd == 0) { in mtk_pinconf_bias_get_pu_pd_rsel()
862 } else if (pu == 1 && pd == 0) { in mtk_pinconf_bias_get_pu_pd_rsel()
868 } else if (pu == 0 && pd == 1) { in mtk_pinconf_bias_get_pu_pd_rsel()
887 int err, pu, pd; in mtk_pinconf_bias_get_pu_pd() local
889 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_PU, &pu); in mtk_pinconf_bias_get_pu_pd()
897 if (pu == 0 && pd == 0) { in mtk_pinconf_bias_get_pu_pd()
900 } else if (pu == 1 && pd == 0) { in mtk_pinconf_bias_get_pu_pd()
903 } else if (pu == 0 && pd == 1) { in mtk_pinconf_bias_get_pu_pd()