Lines Matching full:pu
570 * 1. PU + PD
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()
817 int pu, pd, rsel, err; in mtk_pinconf_bias_get_pu_pd_rsel() local
823 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_PU, &pu); in mtk_pinconf_bias_get_pu_pd_rsel()
831 if (pu == 0 && pd == 0) { in mtk_pinconf_bias_get_pu_pd_rsel()
834 } else if (pu == 1 && pd == 0) { in mtk_pinconf_bias_get_pu_pd_rsel()
840 } else if (pu == 0 && pd == 1) { in mtk_pinconf_bias_get_pu_pd_rsel()
859 int err, pu, pd; in mtk_pinconf_bias_get_pu_pd() local
861 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_PU, &pu); in mtk_pinconf_bias_get_pu_pd()
869 if (pu == 0 && pd == 0) { in mtk_pinconf_bias_get_pu_pd()
872 } else if (pu == 1 && pd == 0) { in mtk_pinconf_bias_get_pu_pd()
875 } else if (pu == 0 && pd == 1) { in mtk_pinconf_bias_get_pu_pd()