Lines Matching refs:offset
47 static int ath79_gpio_get_value(struct gpio_chip *chip, unsigned offset) in ath79_gpio_get_value() argument
49 return __ath79_gpio_get_value(offset); in ath79_gpio_get_value()
53 unsigned offset, int value) in ath79_gpio_set_value() argument
55 __ath79_gpio_set_value(offset, value); in ath79_gpio_set_value()
59 unsigned offset) in ath79_gpio_direction_input() argument
66 __raw_writel(__raw_readl(base + AR71XX_GPIO_REG_OE) & ~(1 << offset), in ath79_gpio_direction_input()
75 unsigned offset, int value) in ath79_gpio_direction_output() argument
83 __raw_writel(1 << offset, base + AR71XX_GPIO_REG_SET); in ath79_gpio_direction_output()
85 __raw_writel(1 << offset, base + AR71XX_GPIO_REG_CLEAR); in ath79_gpio_direction_output()
87 __raw_writel(__raw_readl(base + AR71XX_GPIO_REG_OE) | (1 << offset), in ath79_gpio_direction_output()
95 static int ar934x_gpio_direction_input(struct gpio_chip *chip, unsigned offset) in ar934x_gpio_direction_input() argument
102 __raw_writel(__raw_readl(base + AR71XX_GPIO_REG_OE) | (1 << offset), in ar934x_gpio_direction_input()
110 static int ar934x_gpio_direction_output(struct gpio_chip *chip, unsigned offset, in ar934x_gpio_direction_output() argument
119 __raw_writel(1 << offset, base + AR71XX_GPIO_REG_SET); in ar934x_gpio_direction_output()
121 __raw_writel(1 << offset, base + AR71XX_GPIO_REG_CLEAR); in ar934x_gpio_direction_output()
123 __raw_writel(__raw_readl(base + AR71XX_GPIO_REG_OE) & ~(1 << offset), in ar934x_gpio_direction_output()