Lines Matching defs:offset
39 static int amd_gpio_get_direction(struct gpio_chip *gc, unsigned offset)
46 pin_reg = readl(gpio_dev->base + offset * 4);
55 static int amd_gpio_direction_input(struct gpio_chip *gc, unsigned offset)
62 pin_reg = readl(gpio_dev->base + offset * 4);
64 writel(pin_reg, gpio_dev->base + offset * 4);
70 static int amd_gpio_direction_output(struct gpio_chip *gc, unsigned offset,
78 pin_reg = readl(gpio_dev->base + offset * 4);
84 writel(pin_reg, gpio_dev->base + offset * 4);
90 static int amd_gpio_get_value(struct gpio_chip *gc, unsigned offset)
97 pin_reg = readl(gpio_dev->base + offset * 4);
103 static void amd_gpio_set_value(struct gpio_chip *gc, unsigned offset, int value)
110 pin_reg = readl(gpio_dev->base + offset * 4);
115 writel(pin_reg, gpio_dev->base + offset * 4);
119 static int amd_gpio_set_debounce(struct amd_gpio *gpio_dev, unsigned int offset,
127 if (offset == 0) {
133 pin_reg = readl(gpio_dev->base + offset * 4);
182 writel(pin_reg, gpio_dev->base + offset * 4);