Home
last modified time | relevance | path

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

/linux/drivers/pinctrl/bcm/
H A Dpinctrl-bcm2835.c66 #define GPIO_REG_SHIFT(p) ((p) % 32) macro
267 return (bcm2835_gpio_rd(pc, reg) >> GPIO_REG_SHIFT(bit)) & 1; in bcm2835_gpio_get_bit()
275 bcm2835_gpio_wr(pc, reg, BIT(GPIO_REG_SHIFT(bit))); in bcm2835_gpio_set_bit()
487 value |= BIT(GPIO_REG_SHIFT(offset)); in __bcm2835_gpio_irq_config()
489 value &= ~(BIT(GPIO_REG_SHIFT(offset))); in __bcm2835_gpio_irq_config()
526 unsigned offset = GPIO_REG_SHIFT(gpio); in bcm2835_gpio_irq_unmask()
543 unsigned offset = GPIO_REG_SHIFT(gpio); in bcm2835_gpio_irq_mask()
652 unsigned offset = GPIO_REG_SHIFT(gpio); in bcm2835_gpio_irq_set_type()
1044 bit = GPIO_REG_SHIFT(pin); in bcm2835_pull_config_set()