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