Lines Matching refs:shift
73 uint32_t shift; in gpio_bcm2711_pin_configure() local
83 shift = GPIO_REG_SHIFT(RPI_PIN_NUM(port, pin), FSEL_GROUPS, FSEL_BITS); in gpio_bcm2711_pin_configure()
86 regval &= ~(BIT_MASK(FSEL_BITS) << shift); in gpio_bcm2711_pin_configure()
88 regval |= (FSEL_OUTPUT << shift); in gpio_bcm2711_pin_configure()
96 shift = GPIO_REG_SHIFT(RPI_PIN_NUM(port, pin), IO_GROUPS, IO_BITS); in gpio_bcm2711_pin_configure()
100 regval |= BIT(shift); in gpio_bcm2711_pin_configure()
104 regval |= BIT(shift); in gpio_bcm2711_pin_configure()
112 shift = GPIO_REG_SHIFT(RPI_PIN_NUM(port, pin), PULL_GROUPS, PULL_BITS); in gpio_bcm2711_pin_configure()
115 regval &= ~(BIT_MASK(PULL_BITS) << shift); in gpio_bcm2711_pin_configure()
117 regval |= (PULL_UP << shift); in gpio_bcm2711_pin_configure()
119 regval |= (PULL_DOWN << shift); in gpio_bcm2711_pin_configure()
222 uint32_t shift; in gpio_bcm2711_pin_interrupt_configure() local
226 shift = GPIO_REG_SHIFT(RPI_PIN_NUM(port, pin), IO_GROUPS, IO_BITS); in gpio_bcm2711_pin_interrupt_configure()
231 regval &= ~BIT(shift); in gpio_bcm2711_pin_interrupt_configure()
235 regval &= ~BIT(shift); in gpio_bcm2711_pin_interrupt_configure()
239 regval &= ~BIT(shift); in gpio_bcm2711_pin_interrupt_configure()
243 regval &= ~BIT(shift); in gpio_bcm2711_pin_interrupt_configure()
247 regval &= ~BIT(shift); in gpio_bcm2711_pin_interrupt_configure()
251 regval &= ~BIT(shift); in gpio_bcm2711_pin_interrupt_configure()
257 regval |= BIT(shift); in gpio_bcm2711_pin_interrupt_configure()
262 regval |= BIT(shift); in gpio_bcm2711_pin_interrupt_configure()
268 regval |= BIT(shift); in gpio_bcm2711_pin_interrupt_configure()
273 regval |= BIT(shift); in gpio_bcm2711_pin_interrupt_configure()