Lines Matching refs:pu
578 int err, pu, pd; in mtk_pinconf_bias_set_pu_pd() local
581 pu = 0; in mtk_pinconf_bias_set_pu_pd()
584 pu = 1; in mtk_pinconf_bias_set_pu_pd()
587 pu = 0; in mtk_pinconf_bias_set_pu_pd()
594 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PU, pu); in mtk_pinconf_bias_set_pu_pd()
807 int pu, pd, rsel, err; in mtk_pinconf_bias_get_rsel() local
813 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_PU, &pu); in mtk_pinconf_bias_get_rsel()
819 if (pu == 0 && pd == 0) { in mtk_pinconf_bias_get_rsel()
822 } else if (pu == 1 && pd == 0) { in mtk_pinconf_bias_get_rsel()
828 } else if (pu == 0 && pd == 1) { in mtk_pinconf_bias_get_rsel()
847 int err, pu, pd; in mtk_pinconf_bias_get_pu_pd() local
849 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_PU, &pu); in mtk_pinconf_bias_get_pu_pd()
857 if (pu == 0 && pd == 0) { in mtk_pinconf_bias_get_pu_pd()
860 } else if (pu == 1 && pd == 0) { in mtk_pinconf_bias_get_pu_pd()
863 } else if (pu == 0 && pd == 1) { in mtk_pinconf_bias_get_pu_pd()