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()
785 const struct mtk_pin_rsel *rsel; in mtk_rsel_get_si_unit() local
788 rsel = hw->soc->pin_rsel; in mtk_rsel_get_si_unit()
791 if (desc->number >= rsel[check].s_pin && in mtk_rsel_get_si_unit()
792 desc->number <= rsel[check].e_pin) { in mtk_rsel_get_si_unit()
793 if (rsel_val == rsel[check].rsel_index) { in mtk_rsel_get_si_unit()
795 *si_unit = rsel[check].up_rsel; in mtk_rsel_get_si_unit()
797 *si_unit = rsel[check].down_rsel; in mtk_rsel_get_si_unit()
810 int pu, pd, rsel, err; in mtk_pinconf_bias_get_rsel() local
812 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_RSEL, &rsel); in mtk_pinconf_bias_get_rsel()
830 mtk_rsel_get_si_unit(hw, desc, *pullup, rsel, enable); in mtk_pinconf_bias_get_rsel()
832 *enable = rsel + MTK_PULL_SET_RSEL_000; in mtk_pinconf_bias_get_rsel()
836 mtk_rsel_get_si_unit(hw, desc, *pullup, rsel, enable); in mtk_pinconf_bias_get_rsel()
838 *enable = rsel + MTK_PULL_SET_RSEL_000; in mtk_pinconf_bias_get_rsel()