Lines Matching defs:offset
19 static int txx9_gpio_get(struct gpio_chip *chip, unsigned int offset)
21 return !!(__raw_readl(&txx9_pioptr->din) & (1 << offset));
24 static void txx9_gpio_set_raw(unsigned int offset, int value)
29 val |= 1 << offset;
31 val &= ~(1 << offset);
35 static void txx9_gpio_set(struct gpio_chip *chip, unsigned int offset,
40 txx9_gpio_set_raw(offset, value);
45 static int txx9_gpio_dir_in(struct gpio_chip *chip, unsigned int offset)
49 __raw_writel(__raw_readl(&txx9_pioptr->dir) & ~(1 << offset),
56 static int txx9_gpio_dir_out(struct gpio_chip *chip, unsigned int offset,
61 txx9_gpio_set_raw(offset, value);
62 __raw_writel(__raw_readl(&txx9_pioptr->dir) | (1 << offset),