Lines Matching refs:offset
43 unsigned offset) in vt8500_muxed_gpio_request() argument
48 val |= (1 << vt8500_chip->shift << offset); in vt8500_muxed_gpio_request()
55 unsigned offset) in vt8500_muxed_gpio_free() argument
60 val &= ~(1 << vt8500_chip->shift << offset); in vt8500_muxed_gpio_free()
65 unsigned offset) in vt8500_muxed_gpio_direction_input() argument
70 val &= ~(1 << vt8500_chip->shift << offset); in vt8500_muxed_gpio_direction_input()
77 unsigned offset, int value) in vt8500_muxed_gpio_direction_output() argument
82 val |= (1 << vt8500_chip->shift << offset); in vt8500_muxed_gpio_direction_output()
87 val |= (1 << vt8500_chip->shift << offset); in vt8500_muxed_gpio_direction_output()
94 unsigned offset) in vt8500_muxed_gpio_get_value() argument
99 >> vt8500_chip->shift >> offset) & 1; in vt8500_muxed_gpio_get_value()
103 unsigned offset, int value) in vt8500_muxed_gpio_set_value() argument
109 val |= (1 << vt8500_chip->shift << offset); in vt8500_muxed_gpio_set_value()
111 val &= ~(1 << vt8500_chip->shift << offset); in vt8500_muxed_gpio_set_value()
159 unsigned offset) in vt8500_gpio_direction_input() argument
163 val &= ~(1 << offset); in vt8500_gpio_direction_input()
169 unsigned offset, int value) in vt8500_gpio_direction_output() argument
173 val |= (1 << offset); in vt8500_gpio_direction_output()
178 val |= (1 << offset); in vt8500_gpio_direction_output()
185 unsigned offset) in vt8500_gpio_get_value() argument
187 return (readl(regbase + INVALUE_REGS + EXT_REGOFF) >> offset) & 1; in vt8500_gpio_get_value()
191 unsigned offset, int value) in vt8500_gpio_set_value() argument
196 val |= (1 << offset); in vt8500_gpio_set_value()
198 val &= ~(1 << offset); in vt8500_gpio_set_value()
203 static int vt8500_gpio_to_irq(struct gpio_chip *chip, unsigned offset) in vt8500_gpio_to_irq() argument
205 if (offset > 7) in vt8500_gpio_to_irq()
208 return gpio_to_irq_map[offset]; in vt8500_gpio_to_irq()