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()
810 int pu, pd, rsel, err; in mtk_pinconf_bias_get_rsel() local
816 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_PU, &pu); in mtk_pinconf_bias_get_rsel()
824 if (pu == 0 && pd == 0) { in mtk_pinconf_bias_get_rsel()
827 } else if (pu == 1 && pd == 0) { in mtk_pinconf_bias_get_rsel()
833 } else if (pu == 0 && pd == 1) { in mtk_pinconf_bias_get_rsel()
852 int err, pu, pd; in mtk_pinconf_bias_get_pu_pd() local
854 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_PU, &pu); in mtk_pinconf_bias_get_pu_pd()
862 if (pu == 0 && pd == 0) { in mtk_pinconf_bias_get_pu_pd()
865 } else if (pu == 1 && pd == 0) { in mtk_pinconf_bias_get_pu_pd()
868 } else if (pu == 0 && pd == 1) { in mtk_pinconf_bias_get_pu_pd()