Home
last modified time | relevance | path

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

/linux/drivers/gpio/
H A Dgpio-nomadik.c379 u32 afunc, bfunc; in nmk_gpio_get_mode() local
388 bfunc = readl(nmk_chip->addr + NMK_GPIO_AFSLB) & BIT(offset); in nmk_gpio_get_mode()
392 return (afunc ? NMK_GPIO_ALT_A : 0) | (bfunc ? NMK_GPIO_ALT_B : 0); in nmk_gpio_get_mode()
/linux/drivers/pinctrl/nomadik/
H A Dpinctrl-nomadik.c218 u32 afunc, bfunc; in __nmk_gpio_set_mode() local
221 bfunc = readl(nmk_chip->addr + NMK_GPIO_AFSLB) & ~BIT(offset); in __nmk_gpio_set_mode()
225 bfunc |= BIT(offset); in __nmk_gpio_set_mode()
227 writel(bfunc, nmk_chip->addr + NMK_GPIO_AFSLB); in __nmk_gpio_set_mode()