Lines Matching defs:offset
223 unsigned int offset, bool input)
226 unsigned int shift = offset + CS42L43_GPIO1_DIR_SHIFT;
230 offset + 1, input ? "input" : "output");
242 offset + 1, ret);
251 unsigned int offset)
253 return cs42l43_pin_set_mux(pctldev, 0, offset);
258 unsigned int offset)
260 cs42l43_gpio_set_direction(pctldev, range, offset, true);
463 static int cs42l43_gpio_get(struct gpio_chip *chip, unsigned int offset)
477 dev_err(priv->dev, "Failed to get gpio%d: %d\n", offset + 1, ret);
479 ret = !!(val & BIT(offset + CS42L43_GPIO1_STS_SHIFT));
486 static void cs42l43_gpio_set(struct gpio_chip *chip, unsigned int offset, int value)
489 unsigned int shift = offset + CS42L43_GPIO1_LVL_SHIFT;
493 offset + 1, value ? "high" : "low");
504 dev_err(priv->dev, "Failed to set gpio%d: %d\n", offset + 1, ret);
509 static int cs42l43_gpio_direction_in(struct gpio_chip *chip, unsigned int offset)
511 return pinctrl_gpio_direction_input(chip->base + offset);
515 unsigned int offset, int value)
517 cs42l43_gpio_set(chip, offset, value);
519 return pinctrl_gpio_direction_output(chip->base + offset);