Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/gpio/
Dgpio-bd70528.c19 static int bd70528_set_debounce(struct bd70528_gpio *bdgpio, in bd70528_set_debounce() argument
38 dev_err(bdgpio->chip.dev, in bd70528_set_debounce()
42 return regmap_update_bits(bdgpio->chip.regmap, GPIO_IN_REG(offset), in bd70528_set_debounce()
48 struct bd70528_gpio *bdgpio = gpiochip_get_data(chip); in bd70528_get_direction() local
52 ret = regmap_read(bdgpio->chip.regmap, GPIO_OUT_REG(offset), &val); in bd70528_get_direction()
54 dev_err(bdgpio->chip.dev, "Could not read gpio direction\n"); in bd70528_get_direction()
66 struct bd70528_gpio *bdgpio = gpiochip_get_data(chip); in bd70528_gpio_set_config() local
70 return regmap_update_bits(bdgpio->chip.regmap, in bd70528_gpio_set_config()
76 return regmap_update_bits(bdgpio->chip.regmap, in bd70528_gpio_set_config()
82 return bd70528_set_debounce(bdgpio, offset, in bd70528_gpio_set_config()
[all …]
Dgpio-bd71828.c22 struct bd71828_gpio *bdgpio = gpiochip_get_data(chip); in bd71828_gpio_set() local
32 ret = regmap_update_bits(bdgpio->chip.regmap, GPIO_OUT_REG(offset), in bd71828_gpio_set()
35 dev_err(bdgpio->chip.dev, "Could not set gpio to %d\n", value); in bd71828_gpio_set()
42 struct bd71828_gpio *bdgpio = gpiochip_get_data(chip); in bd71828_gpio_get() local
45 ret = regmap_read(bdgpio->chip.regmap, BD71828_REG_IO_STAT, in bd71828_gpio_get()
48 ret = regmap_read(bdgpio->chip.regmap, GPIO_OUT_REG(offset), in bd71828_gpio_get()
59 struct bd71828_gpio *bdgpio = gpiochip_get_data(chip); in bd71828_gpio_set_config() local
66 return regmap_update_bits(bdgpio->chip.regmap, in bd71828_gpio_set_config()
71 return regmap_update_bits(bdgpio->chip.regmap, in bd71828_gpio_set_config()
99 struct bd71828_gpio *bdgpio; in bd71828_probe() local
[all …]