Lines Matching refs:gpio_idx
178 u32 gpio_idx = d->hwirq;
182 port->both_edges &= ~(1 << gpio_idx);
194 val = port->gc.get(&port->gc, gpio_idx);
197 pr_debug("mxc: set GPIO %d to low trigger\n", gpio_idx);
200 pr_debug("mxc: set GPIO %d to high trigger\n", gpio_idx);
202 port->both_edges |= 1 << gpio_idx;
218 writel(val | (1 << gpio_idx),
221 writel(val & ~(1 << gpio_idx),
226 reg += GPIO_ICR1 + ((gpio_idx & 0x10) >> 2); /* lower or upper register */
227 bit = gpio_idx & 0xf;
232 writel(1 << gpio_idx, port->base + GPIO_ISR);
234 return port->gc.direction_input(&port->gc, gpio_idx);
328 u32 gpio_idx = d->hwirq;
332 if (port->irq_high && (gpio_idx >= 16))
337 if (port->irq_high && (gpio_idx >= 16))