Lines Matching refs:pullup
448 const struct mtk_pin_desc *desc, bool pullup) in mtk_pinconf_bias_set() argument
452 arg = pullup ? 1 : 2; in mtk_pinconf_bias_set()
468 const struct mtk_pin_desc *desc, bool pullup, int *res) in mtk_pinconf_bias_get() argument
472 reg = pullup ? PINCTRL_PIN_REG_PU : PINCTRL_PIN_REG_PD; in mtk_pinconf_bias_get()
521 const struct mtk_pin_desc *desc, bool pullup) in mtk_pinconf_bias_set_rev1() argument
525 arg = pullup ? MTK_PULLUP : MTK_PULLDOWN; in mtk_pinconf_bias_set_rev1()
541 const struct mtk_pin_desc *desc, bool pullup, in mtk_pinconf_bias_get_rev1() argument
557 if (pullup ^ (v == MTK_PULLUP)) in mtk_pinconf_bias_get_rev1()
573 u32 pullup, u32 arg) in mtk_pinconf_bias_set_pu_pd() argument
580 } else if ((arg == MTK_ENABLE) && pullup) { in mtk_pinconf_bias_set_pu_pd()
583 } else if ((arg == MTK_ENABLE) && !pullup) { in mtk_pinconf_bias_set_pu_pd()
603 u32 pullup, u32 arg) in mtk_pinconf_bias_set_pullsel_pullen() argument
620 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PULLSEL, pullup); in mtk_pinconf_bias_set_pullsel_pullen()
628 u32 pullup, u32 arg) in mtk_pinconf_bias_set_pupd_r1_r0() argument
633 pullup = 0; in mtk_pinconf_bias_set_pupd_r1_r0()
651 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PUPD, !pullup); in mtk_pinconf_bias_set_pupd_r1_r0()
667 u32 *pullup, u32 *enable) in mtk_pinconf_bias_get_pu_pd() argument
680 *pullup = 0; in mtk_pinconf_bias_get_pu_pd()
683 *pullup = 1; in mtk_pinconf_bias_get_pu_pd()
686 *pullup = 0; in mtk_pinconf_bias_get_pu_pd()
697 u32 *pullup, u32 *enable) in mtk_pinconf_bias_get_pullsel_pullen() argument
701 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_PULLSEL, pullup); in mtk_pinconf_bias_get_pullsel_pullen()
713 u32 *pullup, u32 *enable) in mtk_pinconf_bias_get_pupd_r1_r0() argument
717 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_PUPD, pullup); in mtk_pinconf_bias_get_pupd_r1_r0()
721 *pullup = !(*pullup); in mtk_pinconf_bias_get_pupd_r1_r0()
748 u32 pullup, u32 arg) in mtk_pinconf_bias_set_combo() argument
752 err = mtk_pinconf_bias_set_pu_pd(hw, desc, pullup, arg); in mtk_pinconf_bias_set_combo()
756 err = mtk_pinconf_bias_set_pullsel_pullen(hw, desc, pullup, arg); in mtk_pinconf_bias_set_combo()
760 err = mtk_pinconf_bias_set_pupd_r1_r0(hw, desc, pullup, arg); in mtk_pinconf_bias_set_combo()
769 u32 *pullup, u32 *enable) in mtk_pinconf_bias_get_combo() argument
773 err = mtk_pinconf_bias_get_pu_pd(hw, desc, pullup, enable); in mtk_pinconf_bias_get_combo()
777 err = mtk_pinconf_bias_get_pullsel_pullen(hw, desc, pullup, enable); in mtk_pinconf_bias_get_combo()
781 err = mtk_pinconf_bias_get_pupd_r1_r0(hw, desc, pullup, enable); in mtk_pinconf_bias_get_combo()
898 const struct mtk_pin_desc *desc, bool pullup, in mtk_pinconf_adv_pull_set() argument
917 arg = pullup ? 0 : 1; in mtk_pinconf_adv_pull_set()
926 err = hw->soc->bias_set(hw, desc, pullup); in mtk_pinconf_adv_pull_set()
939 const struct mtk_pin_desc *desc, bool pullup, in mtk_pinconf_adv_pull_get() argument
952 err = hw->soc->bias_get(hw, desc, pullup, val); in mtk_pinconf_adv_pull_get()
963 if (pullup ^ !t) in mtk_pinconf_adv_pull_get()