Lines Matching refs:pullup

457 			 const struct mtk_pin_desc *desc, bool pullup)  in mtk_pinconf_bias_set()  argument
461 arg = pullup ? 1 : 2; in mtk_pinconf_bias_set()
477 const struct mtk_pin_desc *desc, bool pullup, int *res) in mtk_pinconf_bias_get() argument
481 reg = pullup ? PINCTRL_PIN_REG_PU : PINCTRL_PIN_REG_PD; in mtk_pinconf_bias_get()
524 const struct mtk_pin_desc *desc, bool pullup) in mtk_pinconf_bias_set_rev1() argument
528 arg = pullup ? MTK_PULLUP : MTK_PULLDOWN; in mtk_pinconf_bias_set_rev1()
544 const struct mtk_pin_desc *desc, bool pullup, in mtk_pinconf_bias_get_rev1() argument
560 if (pullup ^ (v == MTK_PULLUP)) in mtk_pinconf_bias_get_rev1()
576 u32 pullup, u32 arg) in mtk_pinconf_bias_set_pu_pd() argument
583 } else if ((arg == MTK_ENABLE) && pullup) { in mtk_pinconf_bias_set_pu_pd()
586 } else if ((arg == MTK_ENABLE) && !pullup) { in mtk_pinconf_bias_set_pu_pd()
606 u32 pullup, u32 arg) in mtk_pinconf_bias_set_pullsel_pullen() argument
623 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PULLSEL, pullup); in mtk_pinconf_bias_set_pullsel_pullen()
631 u32 pullup, u32 arg) in mtk_pinconf_bias_set_pupd_r1_r0() argument
636 pullup = 0; in mtk_pinconf_bias_set_pupd_r1_r0()
654 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PUPD, !pullup); in mtk_pinconf_bias_set_pupd_r1_r0()
670 u32 pullup, u32 arg, u32 *rsel_val) in mtk_hw_pin_rsel_lookup() argument
681 if (pullup) { in mtk_hw_pin_rsel_lookup()
708 u32 pullup, u32 arg) in mtk_pinconf_bias_set_rsel() argument
712 if (!pullup && arg == MTK_DISABLE) in mtk_pinconf_bias_set_rsel()
717 err = mtk_hw_pin_rsel_lookup(hw, desc, pullup, arg, &rsel_val); in mtk_pinconf_bias_set_rsel()
734 err = mtk_pinconf_bias_set_pu_pd(hw, desc, pullup, MTK_ENABLE); in mtk_pinconf_bias_set_rsel()
742 u32 pullup, u32 arg) in mtk_pinconf_bias_set_combo() argument
753 err = mtk_pinconf_bias_set_rsel(hw, desc, pullup, arg); in mtk_pinconf_bias_set_combo()
759 err = mtk_pinconf_bias_set_pu_pd(hw, desc, pullup, arg); in mtk_pinconf_bias_set_combo()
766 pullup, arg); in mtk_pinconf_bias_set_combo()
772 err = mtk_pinconf_bias_set_pupd_r1_r0(hw, desc, pullup, arg); in mtk_pinconf_bias_set_combo()
783 u32 pullup, u32 rsel_val, u32 *si_unit) in mtk_rsel_get_si_unit() argument
794 if (pullup) in mtk_rsel_get_si_unit()
808 u32 *pullup, u32 *enable) in mtk_pinconf_bias_get_rsel() argument
825 *pullup = 0; in mtk_pinconf_bias_get_rsel()
828 *pullup = 1; in mtk_pinconf_bias_get_rsel()
830 mtk_rsel_get_si_unit(hw, desc, *pullup, rsel, enable); in mtk_pinconf_bias_get_rsel()
834 *pullup = 0; in mtk_pinconf_bias_get_rsel()
836 mtk_rsel_get_si_unit(hw, desc, *pullup, rsel, enable); in mtk_pinconf_bias_get_rsel()
850 u32 *pullup, u32 *enable) in mtk_pinconf_bias_get_pu_pd() argument
863 *pullup = 0; in mtk_pinconf_bias_get_pu_pd()
866 *pullup = 1; in mtk_pinconf_bias_get_pu_pd()
869 *pullup = 0; in mtk_pinconf_bias_get_pu_pd()
880 u32 *pullup, u32 *enable) in mtk_pinconf_bias_get_pullsel_pullen() argument
884 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_PULLSEL, pullup); in mtk_pinconf_bias_get_pullsel_pullen()
896 u32 *pullup, u32 *enable) in mtk_pinconf_bias_get_pupd_r1_r0() argument
900 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_PUPD, pullup); in mtk_pinconf_bias_get_pupd_r1_r0()
904 *pullup = !(*pullup); in mtk_pinconf_bias_get_pupd_r1_r0()
931 u32 *pullup, u32 *enable) in mtk_pinconf_bias_get_combo() argument
942 err = mtk_pinconf_bias_get_rsel(hw, desc, pullup, enable); in mtk_pinconf_bias_get_combo()
948 err = mtk_pinconf_bias_get_pu_pd(hw, desc, pullup, enable); in mtk_pinconf_bias_get_combo()
955 pullup, enable); in mtk_pinconf_bias_get_combo()
961 err = mtk_pinconf_bias_get_pupd_r1_r0(hw, desc, pullup, enable); in mtk_pinconf_bias_get_combo()
1077 const struct mtk_pin_desc *desc, bool pullup, in mtk_pinconf_adv_pull_set() argument
1096 arg = pullup ? 0 : 1; in mtk_pinconf_adv_pull_set()
1105 err = hw->soc->bias_set(hw, desc, pullup); in mtk_pinconf_adv_pull_set()
1109 err = mtk_pinconf_bias_set_rev1(hw, desc, pullup); in mtk_pinconf_adv_pull_set()
1111 err = mtk_pinconf_bias_set(hw, desc, pullup); in mtk_pinconf_adv_pull_set()
1120 const struct mtk_pin_desc *desc, bool pullup, in mtk_pinconf_adv_pull_get() argument
1133 err = hw->soc->bias_get(hw, desc, pullup, val); in mtk_pinconf_adv_pull_get()
1144 if (pullup ^ !t) in mtk_pinconf_adv_pull_get()