Lines Matching defs:offset
106 static int altera_gpio_get(struct gpio_chip *gc, unsigned offset)
112 return !!(readl(mm_gc->regs + ALTERA_GPIO_DATA) & BIT(offset));
115 static void altera_gpio_set(struct gpio_chip *gc, unsigned offset, int value)
128 data_reg |= BIT(offset);
130 data_reg &= ~BIT(offset);
135 static int altera_gpio_direction_input(struct gpio_chip *gc, unsigned offset)
148 gpio_ddr &= ~BIT(offset);
156 unsigned offset, int value)
170 data_reg |= BIT(offset);
172 data_reg &= ~BIT(offset);
177 gpio_ddr |= BIT(offset);