Lines Matching refs:offset
19 static int txx9_gpio_get(struct gpio_chip *chip, unsigned int offset) in txx9_gpio_get() argument
21 return !!(__raw_readl(&txx9_pioptr->din) & (1 << offset)); in txx9_gpio_get()
24 static void txx9_gpio_set_raw(unsigned int offset, int value) in txx9_gpio_set_raw() argument
29 val |= 1 << offset; in txx9_gpio_set_raw()
31 val &= ~(1 << offset); in txx9_gpio_set_raw()
35 static int txx9_gpio_set(struct gpio_chip *chip, unsigned int offset, in txx9_gpio_set() argument
40 txx9_gpio_set_raw(offset, value); in txx9_gpio_set()
47 static int txx9_gpio_dir_in(struct gpio_chip *chip, unsigned int offset) in txx9_gpio_dir_in() argument
51 __raw_writel(__raw_readl(&txx9_pioptr->dir) & ~(1 << offset), in txx9_gpio_dir_in()
58 static int txx9_gpio_dir_out(struct gpio_chip *chip, unsigned int offset, in txx9_gpio_dir_out() argument
63 txx9_gpio_set_raw(offset, value); in txx9_gpio_dir_out()
64 __raw_writel(__raw_readl(&txx9_pioptr->dir) | (1 << offset), in txx9_gpio_dir_out()