Home
last modified time | relevance | path

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

/linux/drivers/gpio/
H A Dgpio-bd71828.c22 struct bd71828_gpio *bdgpio = gpiochip_get_data(chip); in bd71828_gpio_set() local
32 return regmap_update_bits(bdgpio->regmap, GPIO_OUT_REG(offset), in bd71828_gpio_set()
40 struct bd71828_gpio *bdgpio = gpiochip_get_data(chip); in bd71828_gpio_get() local
43 ret = regmap_read(bdgpio->regmap, BD71828_REG_IO_STAT, in bd71828_gpio_get()
46 ret = regmap_read(bdgpio->regmap, GPIO_OUT_REG(offset), in bd71828_gpio_get()
57 struct bd71828_gpio *bdgpio = gpiochip_get_data(chip); in bd71828_gpio_set_config() local
64 return regmap_update_bits(bdgpio->regmap, in bd71828_gpio_set_config()
69 return regmap_update_bits(bdgpio->regmap, in bd71828_gpio_set_config()
98 struct bd71828_gpio *bdgpio; in bd71828_probe() local
100 bdgpio = devm_kzalloc(dev, sizeof(*bdgpio), GFP_KERNEL); in bd71828_probe()
[all …]
H A Dgpio-bd72720.c72 static int bd72720gpi_get(struct bd72720_gpio *bdgpio, unsigned int reg_offset) in bd72720gpi_get() argument
76 ret = regmap_read(bdgpio->regmap, BD72720_REG_INT_ETC1_SRC, &val); in bd72720gpi_get()
85 static int bd72720gpo_get(struct bd72720_gpio *bdgpio, in bd72720gpo_get() argument
93 ret = regmap_read(bdgpio->regmap, regs[offset], &val); in bd72720gpo_get()
102 struct bd72720_gpio *bdgpio = gpiochip_get_data(chip); in bd72720gpio_get() local
104 if (BIT(offset) & bdgpio->gpio_is_input) in bd72720gpio_get()
105 return bd72720gpi_get(bdgpio, offset); in bd72720gpio_get()
107 return bd72720gpo_get(bdgpio, offset); in bd72720gpio_get()
113 struct bd72720_gpio *bdgpio = gpiochip_get_data(chip); in bd72720gpo_set() local
118 if (BIT(offset) & bdgpio in bd72720gpo_set()
134 struct bd72720_gpio *bdgpio = gpiochip_get_data(chip); bd72720_gpio_set_config() local
167 struct bd72720_gpio *bdgpio = gpiochip_get_data(chip); bd72720gpo_direction_get() local
[all...]
H A Dgpio-bd71815.c57 struct bd71815_gpio *bdgpio = gpiochip_get_data(chip); in bd71815_gpio_set_config() local
61 return regmap_update_bits(bdgpio->regmap, in bd71815_gpio_set_config()
66 return regmap_update_bits(bdgpio->regmap, in bd71815_gpio_set_config()