Searched refs:GPIO_REG_SHIFT (Results 1 – 1 of 1) sorted by relevance
65 #define GPIO_REG_SHIFT(p) ((p) % 32) macro262 return (bcm2835_gpio_rd(pc, reg) >> GPIO_REG_SHIFT(bit)) & 1; in bcm2835_gpio_get_bit()270 bcm2835_gpio_wr(pc, reg, BIT(GPIO_REG_SHIFT(bit))); in bcm2835_gpio_set_bit()482 value |= BIT(GPIO_REG_SHIFT(offset)); in __bcm2835_gpio_irq_config()484 value &= ~(BIT(GPIO_REG_SHIFT(offset))); in __bcm2835_gpio_irq_config()521 unsigned offset = GPIO_REG_SHIFT(gpio); in bcm2835_gpio_irq_unmask()538 unsigned offset = GPIO_REG_SHIFT(gpio); in bcm2835_gpio_irq_mask()647 unsigned offset = GPIO_REG_SHIFT(gpio); in bcm2835_gpio_irq_set_type()1016 bit = GPIO_REG_SHIFT(pin); in bcm2835_pull_config_set()