Lines Matching refs:gpio_idx
166 u32 gpio_idx = d->hwirq;
170 port->both_edges &= ~(1 << gpio_idx);
182 val = port->gc.get(&port->gc, gpio_idx);
185 pr_debug("mxc: set GPIO %d to low trigger\n", gpio_idx);
188 pr_debug("mxc: set GPIO %d to high trigger\n", gpio_idx);
190 port->both_edges |= 1 << gpio_idx;
208 writel(val | (1 << gpio_idx),
211 writel(val & ~(1 << gpio_idx),
216 reg += GPIO_ICR1 + ((gpio_idx & 0x10) >> 2); /* lower or upper register */
217 bit = gpio_idx & 0xf;
222 writel(1 << gpio_idx, port->base + GPIO_ISR);
223 port->pad_type[gpio_idx] = type;
227 return port->gc.direction_input(&port->gc, gpio_idx);
330 u32 gpio_idx = d->hwirq;
334 if (port->irq_high && (gpio_idx >= 16))
338 port->wakeup_pads |= (1 << gpio_idx);
340 if (port->irq_high && (gpio_idx >= 16))
344 port->wakeup_pads &= ~(1 << gpio_idx);