Lines Matching refs:off
66 static int adp5588_gpio_get_value(struct gpio_chip *chip, unsigned off) in adp5588_gpio_get_value() argument
70 unsigned bank = ADP5588_BANK(off); in adp5588_gpio_get_value()
71 unsigned bit = ADP5588_BIT(off); in adp5588_gpio_get_value()
87 unsigned off, int val) in adp5588_gpio_set_value() argument
93 bank = ADP5588_BANK(off); in adp5588_gpio_set_value()
94 bit = ADP5588_BIT(off); in adp5588_gpio_set_value()
107 static int adp5588_gpio_direction_input(struct gpio_chip *chip, unsigned off) in adp5588_gpio_direction_input() argument
114 bank = ADP5588_BANK(off); in adp5588_gpio_direction_input()
117 dev->dir[bank] &= ~ADP5588_BIT(off); in adp5588_gpio_direction_input()
125 unsigned off, int val) in adp5588_gpio_direction_output() argument
132 bank = ADP5588_BANK(off); in adp5588_gpio_direction_output()
133 bit = ADP5588_BIT(off); in adp5588_gpio_direction_output()
153 static int adp5588_gpio_to_irq(struct gpio_chip *chip, unsigned off) in adp5588_gpio_to_irq() argument
157 return dev->irq_base + off; in adp5588_gpio_to_irq()