Lines Matching refs:pullup
452 const struct mtk_pin_desc *desc, bool pullup) in mtk_pinconf_bias_set() argument
456 arg = pullup ? 1 : 2; in mtk_pinconf_bias_set()
472 const struct mtk_pin_desc *desc, bool pullup, int *res) in mtk_pinconf_bias_get() argument
476 reg = pullup ? PINCTRL_PIN_REG_PU : PINCTRL_PIN_REG_PD; in mtk_pinconf_bias_get()
525 const struct mtk_pin_desc *desc, bool pullup) in mtk_pinconf_bias_set_rev1() argument
529 arg = pullup ? MTK_PULLUP : MTK_PULLDOWN; in mtk_pinconf_bias_set_rev1()
545 const struct mtk_pin_desc *desc, bool pullup, in mtk_pinconf_bias_get_rev1() argument
561 if (pullup ^ (v == MTK_PULLUP)) in mtk_pinconf_bias_get_rev1()
577 u32 pullup, u32 arg) in mtk_pinconf_bias_set_pu_pd() argument
584 } else if ((arg == MTK_ENABLE) && pullup) { in mtk_pinconf_bias_set_pu_pd()
587 } else if ((arg == MTK_ENABLE) && !pullup) { in mtk_pinconf_bias_set_pu_pd()
607 u32 pullup, u32 arg) in mtk_pinconf_bias_set_pullsel_pullen() argument
624 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PULLSEL, pullup); in mtk_pinconf_bias_set_pullsel_pullen()
632 u32 pullup, u32 arg) in mtk_pinconf_bias_set_pupd_r1_r0() argument
637 pullup = 0; in mtk_pinconf_bias_set_pupd_r1_r0()
655 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PUPD, !pullup); in mtk_pinconf_bias_set_pupd_r1_r0()
671 u32 *pullup, u32 *enable) in mtk_pinconf_bias_get_pu_pd() argument
684 *pullup = 0; in mtk_pinconf_bias_get_pu_pd()
687 *pullup = 1; in mtk_pinconf_bias_get_pu_pd()
690 *pullup = 0; in mtk_pinconf_bias_get_pu_pd()
701 u32 *pullup, u32 *enable) in mtk_pinconf_bias_get_pullsel_pullen() argument
705 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_PULLSEL, pullup); in mtk_pinconf_bias_get_pullsel_pullen()
717 u32 *pullup, u32 *enable) in mtk_pinconf_bias_get_pupd_r1_r0() argument
721 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_PUPD, pullup); in mtk_pinconf_bias_get_pupd_r1_r0()
725 *pullup = !(*pullup); in mtk_pinconf_bias_get_pupd_r1_r0()
752 u32 pullup, u32 arg) in mtk_pinconf_bias_set_combo() argument
756 err = mtk_pinconf_bias_set_pu_pd(hw, desc, pullup, arg); in mtk_pinconf_bias_set_combo()
760 err = mtk_pinconf_bias_set_pullsel_pullen(hw, desc, pullup, arg); in mtk_pinconf_bias_set_combo()
764 err = mtk_pinconf_bias_set_pupd_r1_r0(hw, desc, pullup, arg); in mtk_pinconf_bias_set_combo()
773 u32 *pullup, u32 *enable) in mtk_pinconf_bias_get_combo() argument
777 err = mtk_pinconf_bias_get_pu_pd(hw, desc, pullup, enable); in mtk_pinconf_bias_get_combo()
781 err = mtk_pinconf_bias_get_pullsel_pullen(hw, desc, pullup, enable); in mtk_pinconf_bias_get_combo()
785 err = mtk_pinconf_bias_get_pupd_r1_r0(hw, desc, pullup, enable); in mtk_pinconf_bias_get_combo()
902 const struct mtk_pin_desc *desc, bool pullup, in mtk_pinconf_adv_pull_set() argument
921 arg = pullup ? 0 : 1; in mtk_pinconf_adv_pull_set()
930 err = hw->soc->bias_set(hw, desc, pullup); in mtk_pinconf_adv_pull_set()
934 err = mtk_pinconf_bias_set_rev1(hw, desc, pullup); in mtk_pinconf_adv_pull_set()
936 err = mtk_pinconf_bias_set(hw, desc, pullup); in mtk_pinconf_adv_pull_set()
945 const struct mtk_pin_desc *desc, bool pullup, in mtk_pinconf_adv_pull_get() argument
958 err = hw->soc->bias_get(hw, desc, pullup, val); in mtk_pinconf_adv_pull_get()
969 if (pullup ^ !t) in mtk_pinconf_adv_pull_get()