Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/pinctrl/bcm/
Dpinctrl-bcm2835.c65 #define GPIO_REG_SHIFT(p) ((p) % 32) macro
260 return (bcm2835_gpio_rd(pc, reg) >> GPIO_REG_SHIFT(bit)) & 1; in bcm2835_gpio_get_bit()
268 bcm2835_gpio_wr(pc, reg, BIT(GPIO_REG_SHIFT(bit))); in bcm2835_gpio_set_bit()
476 value |= BIT(GPIO_REG_SHIFT(offset)); in __bcm2835_gpio_irq_config()
478 value &= ~(BIT(GPIO_REG_SHIFT(offset))); in __bcm2835_gpio_irq_config()
515 unsigned offset = GPIO_REG_SHIFT(gpio); in bcm2835_gpio_irq_enable()
530 unsigned offset = GPIO_REG_SHIFT(gpio); in bcm2835_gpio_irq_disable()
637 unsigned offset = GPIO_REG_SHIFT(gpio); in bcm2835_gpio_irq_set_type()
1007 bit = GPIO_REG_SHIFT(pin); in bcm2835_pull_config_set()