Lines Matching refs:offset
22 static int txx9_gpio_get(struct gpio_chip *chip, unsigned int offset) in txx9_gpio_get() argument
24 return __raw_readl(&txx9_pioptr->din) & (1 << offset); in txx9_gpio_get()
27 static void txx9_gpio_set_raw(unsigned int offset, int value) in txx9_gpio_set_raw() argument
32 val |= 1 << offset; in txx9_gpio_set_raw()
34 val &= ~(1 << offset); in txx9_gpio_set_raw()
38 static void txx9_gpio_set(struct gpio_chip *chip, unsigned int offset, in txx9_gpio_set() argument
43 txx9_gpio_set_raw(offset, value); in txx9_gpio_set()
48 static int txx9_gpio_dir_in(struct gpio_chip *chip, unsigned int offset) in txx9_gpio_dir_in() argument
52 __raw_writel(__raw_readl(&txx9_pioptr->dir) & ~(1 << offset), in txx9_gpio_dir_in()
59 static int txx9_gpio_dir_out(struct gpio_chip *chip, unsigned int offset, in txx9_gpio_dir_out() argument
64 txx9_gpio_set_raw(offset, value); in txx9_gpio_dir_out()
65 __raw_writel(__raw_readl(&txx9_pioptr->dir) | (1 << offset), in txx9_gpio_dir_out()