Home
last modified time | relevance | path

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

/linux/drivers/gpio/
H A Dgpio-mpfs.c60 struct mpfs_gpio_chip *mpfs_gpio = gpiochip_get_data(gc); in mpfs_gpio_direction_input() local
62 regmap_update_bits(mpfs_gpio->regs, MPFS_GPIO_CTRL(gpio_index), in mpfs_gpio_direction_input()
70 struct mpfs_gpio_chip *mpfs_gpio = gpiochip_get_data(gc); in mpfs_gpio_direction_output() local
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()
83 struct mpfs_gpio_chip *mpfs_gpio = gpiochip_get_data(gc); in mpfs_gpio_get_direction() local
86 regmap_read(mpfs_gpio->regs, MPFS_GPIO_CTRL(gpio_index), &gpio_cfg); in mpfs_gpio_get_direction()
95 struct mpfs_gpio_chip *mpfs_gpio = gpiochip_get_data(gc); in mpfs_gpio_get() local
98 return regmap_test_bits(mpfs_gpio->regs, mpfs_gpio->offsets->outp, BIT(gpio_index)); in mpfs_gpio_get()
100 return regmap_test_bits(mpfs_gpio->regs, mpfs_gpio->offsets->inp, BIT(gpio_index)); in mpfs_gpio_get()
[all …]