Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/gpio/
Dgpio-tb10x.c55 struct tb10x_gpio { struct
63 static inline u32 tb10x_reg_read(struct tb10x_gpio *gpio, unsigned int offs) in tb10x_reg_read() argument
68 static inline void tb10x_reg_write(struct tb10x_gpio *gpio, unsigned int offs, in tb10x_reg_write()
74 static inline void tb10x_set_bits(struct tb10x_gpio *gpio, unsigned int offs, in tb10x_set_bits()
90 static inline struct tb10x_gpio *to_tb10x_gpio(struct gpio_chip *chip) in to_tb10x_gpio()
92 return container_of(chip, struct tb10x_gpio, gc); in to_tb10x_gpio()
97 struct tb10x_gpio *tb10x_gpio = to_tb10x_gpio(chip); in tb10x_gpio_direction_in() local
101 tb10x_set_bits(tb10x_gpio, OFFSET_TO_REG_DDR, mask, val); in tb10x_gpio_direction_in()
108 struct tb10x_gpio *tb10x_gpio = to_tb10x_gpio(chip); in tb10x_gpio_get() local
111 val = tb10x_reg_read(tb10x_gpio, OFFSET_TO_REG_DATA); in tb10x_gpio_get()
[all …]