Lines Matching defs:offset
195 static int apple_gpio_get_direction(struct gpio_chip *chip, unsigned int offset)
198 unsigned int reg = apple_gpio_get_reg(pctl, offset);
205 static int apple_gpio_get(struct gpio_chip *chip, unsigned offset)
208 unsigned int reg = apple_gpio_get_reg(pctl, offset);
215 reg = readl_relaxed(pctl->base + REG_GPIO(offset));
220 static void apple_gpio_set(struct gpio_chip *chip, unsigned int offset, int value)
224 apple_gpio_set_reg(pctl, offset, REG_GPIOx_DATA, value ? REG_GPIOx_DATA : 0);
227 static int apple_gpio_direction_input(struct gpio_chip *chip, unsigned int offset)
231 apple_gpio_set_reg(pctl, offset,
240 unsigned int offset, int value)
244 apple_gpio_set_reg(pctl, offset,