Lines Matching defs:offset
52 /* Stores the pins supporting LDO function. Bit offset is pin number. */
54 /* Stores the pins supporting ADC function. Bit offset is pin number. */
113 static int axp20x_gpio_get_reg(unsigned int offset)
115 switch (offset) {
127 static int axp20x_gpio_input(struct gpio_chip *chip, unsigned int offset)
129 return pinctrl_gpio_direction_input(chip->base + offset);
132 static int axp20x_gpio_get(struct gpio_chip *chip, unsigned int offset)
139 if (offset == 3) {
150 return !!(val & BIT(offset + pctl->desc->gpio_status_offset));
154 unsigned int offset)
161 if (offset == 3) {
171 reg = axp20x_gpio_get_reg(offset);
197 static int axp20x_gpio_output(struct gpio_chip *chip, unsigned int offset,
200 chip->set(chip, offset, value);
205 static void axp20x_gpio_set(struct gpio_chip *chip, unsigned int offset,
212 if (offset == 3) {
220 reg = axp20x_gpio_get_reg(offset);
230 static int axp20x_pmx_set(struct pinctrl_dev *pctldev, unsigned int offset,
237 if (offset == 3) {
244 reg = axp20x_gpio_get_reg(offset);
313 unsigned int offset, bool input)
318 return axp20x_pmx_set(pctldev, offset,
321 return axp20x_pmx_set(pctldev, offset,