Lines Matching full:off
24 static int adp5585_gpio_get_direction(struct gpio_chip *chip, unsigned int off) in adp5585_gpio_get_direction() argument
27 unsigned int bank = ADP5585_BANK(off); in adp5585_gpio_get_direction()
28 unsigned int bit = ADP5585_BIT(off); in adp5585_gpio_get_direction()
36 static int adp5585_gpio_direction_input(struct gpio_chip *chip, unsigned int off) in adp5585_gpio_direction_input() argument
39 unsigned int bank = ADP5585_BANK(off); in adp5585_gpio_direction_input()
40 unsigned int bit = ADP5585_BIT(off); in adp5585_gpio_direction_input()
46 static int adp5585_gpio_direction_output(struct gpio_chip *chip, unsigned int off, int val) in adp5585_gpio_direction_output() argument
49 unsigned int bank = ADP5585_BANK(off); in adp5585_gpio_direction_output()
50 unsigned int bit = ADP5585_BIT(off); in adp5585_gpio_direction_output()
63 static int adp5585_gpio_get_value(struct gpio_chip *chip, unsigned int off) in adp5585_gpio_get_value() argument
66 unsigned int bank = ADP5585_BANK(off); in adp5585_gpio_get_value()
67 unsigned int bit = ADP5585_BIT(off); in adp5585_gpio_get_value()
89 static void adp5585_gpio_set_value(struct gpio_chip *chip, unsigned int off, int val) in adp5585_gpio_set_value() argument
92 unsigned int bank = ADP5585_BANK(off); in adp5585_gpio_set_value()
93 unsigned int bit = ADP5585_BIT(off); in adp5585_gpio_set_value()
100 unsigned int off, unsigned int bias) in adp5585_gpio_set_bias() argument
109 bit = off * 2 + (off > 5 ? 4 : 0); in adp5585_gpio_set_bias()
118 unsigned int off, enum pin_config_param drive) in adp5585_gpio_set_drive() argument
120 unsigned int bank = ADP5585_BANK(off); in adp5585_gpio_set_drive()
121 unsigned int bit = ADP5585_BIT(off); in adp5585_gpio_set_drive()
129 unsigned int off, unsigned int debounce) in adp5585_gpio_set_debounce() argument
131 unsigned int bank = ADP5585_BANK(off); in adp5585_gpio_set_debounce()
132 unsigned int bit = ADP5585_BIT(off); in adp5585_gpio_set_debounce()
139 static int adp5585_gpio_set_config(struct gpio_chip *chip, unsigned int off, in adp5585_gpio_set_config() argument
148 return adp5585_gpio_set_bias(adp5585_gpio, off, in adp5585_gpio_set_config()
152 return adp5585_gpio_set_bias(adp5585_gpio, off, arg ? in adp5585_gpio_set_config()
157 return adp5585_gpio_set_bias(adp5585_gpio, off, arg ? in adp5585_gpio_set_config()
163 return adp5585_gpio_set_drive(adp5585_gpio, off, param); in adp5585_gpio_set_config()
166 return adp5585_gpio_set_debounce(adp5585_gpio, off, arg); in adp5585_gpio_set_config()