Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/gpio/
Dgpio-tb10x.c54 struct tb10x_gpio { struct
62 static inline u32 tb10x_reg_read(struct tb10x_gpio *gpio, unsigned int offs) in tb10x_reg_read() argument
67 static inline void tb10x_reg_write(struct tb10x_gpio *gpio, unsigned int offs, in tb10x_reg_write()
73 static inline void tb10x_set_bits(struct tb10x_gpio *gpio, unsigned int offs, in tb10x_set_bits()
91 struct tb10x_gpio *tb10x_gpio = gpiochip_get_data(chip); in tb10x_gpio_direction_in() local
95 tb10x_set_bits(tb10x_gpio, OFFSET_TO_REG_DDR, mask, val); in tb10x_gpio_direction_in()
102 struct tb10x_gpio *tb10x_gpio = gpiochip_get_data(chip); in tb10x_gpio_get() local
105 val = tb10x_reg_read(tb10x_gpio, OFFSET_TO_REG_DATA); in tb10x_gpio_get()
115 struct tb10x_gpio *tb10x_gpio = gpiochip_get_data(chip); in tb10x_gpio_set() local
119 tb10x_set_bits(tb10x_gpio, OFFSET_TO_REG_DATA, mask, val); in tb10x_gpio_set()
[all …]