Lines Matching refs:offset
54 unsigned offset, bool enabled) in timbgpio_update_bit() argument
60 reg = ioread32(tgpio->membase + offset); in timbgpio_update_bit()
67 iowrite32(reg, tgpio->membase + offset); in timbgpio_update_bit()
99 static int timbgpio_to_irq(struct gpio_chip *gpio, unsigned offset) in timbgpio_to_irq() argument
106 return tgpio->irq_base + offset; in timbgpio_to_irq()
115 int offset = d->irq - tgpio->irq_base; in timbgpio_irq_disable() local
119 tgpio->last_ier &= ~(1UL << offset); in timbgpio_irq_disable()
127 int offset = d->irq - tgpio->irq_base; in timbgpio_irq_enable() local
131 tgpio->last_ier |= 1UL << offset; in timbgpio_irq_enable()
139 int offset = d->irq - tgpio->irq_base; in timbgpio_irq_type() local
145 if (offset < 0 || offset > tgpio->gpio.ngpio) in timbgpio_irq_type()
158 bflr &= ~(1 << offset); in timbgpio_irq_type()
159 flr &= ~(1 << offset); in timbgpio_irq_type()
161 lvr |= 1 << offset; in timbgpio_irq_type()
163 lvr &= ~(1 << offset); in timbgpio_irq_type()
171 flr |= 1 << offset; in timbgpio_irq_type()
172 bflr |= 1 << offset; in timbgpio_irq_type()
175 bflr &= ~(1 << offset); in timbgpio_irq_type()
176 flr |= 1 << offset; in timbgpio_irq_type()
178 lvr &= ~(1 << offset); in timbgpio_irq_type()
180 lvr |= 1 << offset; in timbgpio_irq_type()
188 iowrite32(1 << offset, tgpio->membase + TGPIO_ICR); in timbgpio_irq_type()
200 int offset; in timbgpio_irq() local
212 for_each_set_bit(offset, &ipr, tgpio->gpio.ngpio) in timbgpio_irq()
213 generic_handle_irq(timbgpio_to_irq(&tgpio->gpio, offset)); in timbgpio_irq()