Home
last modified time | relevance | path

Searched refs:alt_shift (Results 1 – 2 of 2) sorted by relevance

/openbmc/u-boot/drivers/pinctrl/
H A Dpinctrl_stm32.c46 u32 alt_shift = (offset % 8) * 4; in stm32_pinctrl_get_af() local
50 GENMASK(alt_shift + 3, alt_shift)) >> alt_shift; in stm32_pinctrl_get_af()
/openbmc/linux/drivers/pinctrl/stm32/
H A Dpinctrl-stm32.c773 int alt_shift = (pin % 8) * 4; in stm32_pmx_set_mode() local
790 val &= ~GENMASK(alt_shift + 3, alt_shift); in stm32_pmx_set_mode()
791 val |= (alt << alt_shift); in stm32_pmx_set_mode()
814 int alt_shift = (pin % 8) * 4; in stm32_pmx_get_mode() local
821 val &= GENMASK(alt_shift + 3, alt_shift); in stm32_pmx_get_mode()
822 *alt = val >> alt_shift; in stm32_pmx_get_mode()