Home
last modified time | relevance | path

Searched refs:gpio_index (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/gpio/
H A Dgpio-mpfs.c58 static int mpfs_gpio_direction_input(struct gpio_chip *gc, unsigned int gpio_index) in mpfs_gpio_direction_input() argument
62 regmap_update_bits(mpfs_gpio->regs, MPFS_GPIO_CTRL(gpio_index), in mpfs_gpio_direction_input()
68 static int mpfs_gpio_direction_output(struct gpio_chip *gc, unsigned int gpio_index, int value) in mpfs_gpio_direction_output() argument
72 regmap_update_bits(mpfs_gpio->regs, MPFS_GPIO_CTRL(gpio_index), in mpfs_gpio_direction_output()
74 regmap_update_bits(mpfs_gpio->regs, mpfs_gpio->offsets->outp, BIT(gpio_index), in mpfs_gpio_direction_output()
75 value << gpio_index); in mpfs_gpio_direction_output()
81 unsigned int gpio_index) in mpfs_gpio_get_direction() argument
86 regmap_read(mpfs_gpio->regs, MPFS_GPIO_CTRL(gpio_index), &gpio_cfg); in mpfs_gpio_get_direction()
93 static int mpfs_gpio_get(struct gpio_chip *gc, unsigned int gpio_index) in mpfs_gpio_get() argument
97 if (mpfs_gpio_get_direction(gc, gpio_index) == GPIO_LINE_DIRECTION_OUT) in mpfs_gpio_get()
[all …]