Lines Matching refs:offset
42 static int tc3589x_gpio_get(struct gpio_chip *chip, unsigned offset) in tc3589x_gpio_get() argument
46 u8 reg = TC3589x_GPIODATA0 + (offset / 8) * 2; in tc3589x_gpio_get()
47 u8 mask = 1 << (offset % 8); in tc3589x_gpio_get()
57 static void tc3589x_gpio_set(struct gpio_chip *chip, unsigned offset, int val) in tc3589x_gpio_set() argument
61 u8 reg = TC3589x_GPIODATA0 + (offset / 8) * 2; in tc3589x_gpio_set()
62 unsigned pos = offset % 8; in tc3589x_gpio_set()
69 unsigned offset, int val) in tc3589x_gpio_direction_output() argument
73 u8 reg = TC3589x_GPIODIR0 + offset / 8; in tc3589x_gpio_direction_output()
74 unsigned pos = offset % 8; in tc3589x_gpio_direction_output()
76 tc3589x_gpio_set(chip, offset, val); in tc3589x_gpio_direction_output()
82 unsigned offset) in tc3589x_gpio_direction_input() argument
86 u8 reg = TC3589x_GPIODIR0 + offset / 8; in tc3589x_gpio_direction_input()
87 unsigned pos = offset % 8; in tc3589x_gpio_direction_input()
106 int offset = d->hwirq; in tc3589x_gpio_irq_set_type() local
107 int regoffset = offset / 8; in tc3589x_gpio_irq_set_type()
108 int mask = 1 << (offset % 8); in tc3589x_gpio_irq_set_type()
171 int offset = d->hwirq; in tc3589x_gpio_irq_mask() local
172 int regoffset = offset / 8; in tc3589x_gpio_irq_mask()
173 int mask = 1 << (offset % 8); in tc3589x_gpio_irq_mask()
182 int offset = d->hwirq; in tc3589x_gpio_irq_unmask() local
183 int regoffset = offset / 8; in tc3589x_gpio_irq_unmask()
184 int mask = 1 << (offset % 8); in tc3589x_gpio_irq_unmask()