Lines Matching defs:offset
46 /* Stores the pins supporting LDO function. Bit offset is pin number. */
48 /* Stores the pins supporting ADC function. Bit offset is pin number. */
99 static int axp20x_gpio_get_reg(unsigned int offset)
101 switch (offset) {
113 static int axp20x_gpio_input(struct gpio_chip *chip, unsigned int offset)
115 return pinctrl_gpio_direction_input(chip->base + offset);
118 static int axp20x_gpio_get(struct gpio_chip *chip, unsigned int offset)
128 return !!(val & BIT(offset + pctl->desc->gpio_status_offset));
132 unsigned int offset)
138 reg = axp20x_gpio_get_reg(offset);
164 static int axp20x_gpio_output(struct gpio_chip *chip, unsigned int offset,
167 chip->set(chip, offset, value);
172 static void axp20x_gpio_set(struct gpio_chip *chip, unsigned int offset,
178 reg = axp20x_gpio_get_reg(offset);
188 static int axp20x_pmx_set(struct pinctrl_dev *pctldev, unsigned int offset,
194 reg = axp20x_gpio_get_reg(offset);
263 unsigned int offset, bool input)
268 return axp20x_pmx_set(pctldev, offset,
271 return axp20x_pmx_set(pctldev, offset,