Lines Matching refs:rsel
672 const struct mtk_pin_rsel *rsel; in mtk_hw_pin_rsel_lookup() local
676 rsel = hw->soc->pin_rsel; in mtk_hw_pin_rsel_lookup()
679 if (desc->number >= rsel[check].s_pin && in mtk_hw_pin_rsel_lookup()
680 desc->number <= rsel[check].e_pin) { in mtk_hw_pin_rsel_lookup()
682 if (rsel[check].up_rsel == arg) { in mtk_hw_pin_rsel_lookup()
684 *rsel_val = rsel[check].rsel_index; in mtk_hw_pin_rsel_lookup()
688 if (rsel[check].down_rsel == arg) { in mtk_hw_pin_rsel_lookup()
690 *rsel_val = rsel[check].rsel_index; in mtk_hw_pin_rsel_lookup()
782 const struct mtk_pin_rsel *rsel; in mtk_rsel_get_si_unit() local
785 rsel = hw->soc->pin_rsel; in mtk_rsel_get_si_unit()
788 if (desc->number >= rsel[check].s_pin && in mtk_rsel_get_si_unit()
789 desc->number <= rsel[check].e_pin) { in mtk_rsel_get_si_unit()
790 if (rsel_val == rsel[check].rsel_index) { in mtk_rsel_get_si_unit()
792 *si_unit = rsel[check].up_rsel; in mtk_rsel_get_si_unit()
794 *si_unit = rsel[check].down_rsel; in mtk_rsel_get_si_unit()
807 int pu, pd, rsel, err; in mtk_pinconf_bias_get_rsel() local
809 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_RSEL, &rsel); in mtk_pinconf_bias_get_rsel()
825 mtk_rsel_get_si_unit(hw, desc, *pullup, rsel, enable); in mtk_pinconf_bias_get_rsel()
827 *enable = rsel + MTK_PULL_SET_RSEL_000; in mtk_pinconf_bias_get_rsel()
831 mtk_rsel_get_si_unit(hw, desc, *pullup, rsel, enable); in mtk_pinconf_bias_get_rsel()
833 *enable = rsel + MTK_PULL_SET_RSEL_000; in mtk_pinconf_bias_get_rsel()