Home
last modified time | relevance | path

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

/drivers/gpio/
Dgpio-xra1403.c46 static unsigned int to_reg(unsigned int reg, unsigned int offset) in to_reg() function
55 return regmap_update_bits(xra->regmap, to_reg(XRA_GCR, offset), in xra1403_direction_input()
65 ret = regmap_update_bits(xra->regmap, to_reg(XRA_GCR, offset), in xra1403_direction_output()
70 ret = regmap_update_bits(xra->regmap, to_reg(XRA_OCR, offset), in xra1403_direction_output()
82 ret = regmap_read(xra->regmap, to_reg(XRA_GCR, offset), &val); in xra1403_get_direction()
98 ret = regmap_read(xra->regmap, to_reg(XRA_GSR, offset), &val); in xra1403_get()
110 ret = regmap_update_bits(xra->regmap, to_reg(XRA_OCR, offset), in xra1403_set()
Dgpio-wcove.c100 static inline int to_reg(int gpio, enum ctrl_register reg_type) in to_reg() function
135 int reg = to_reg(gpio, CTRL_IN); in wcove_update_irq_ctrl()
146 int reg = to_reg(gpio, CTRL_OUT); in wcove_gpio_dir_in()
158 int reg = to_reg(gpio, CTRL_OUT); in wcove_gpio_dir_out()
170 int ret, reg = to_reg(gpio, CTRL_OUT); in wcove_gpio_get_direction()
189 int ret, reg = to_reg(gpio, CTRL_IN); in wcove_gpio_get()
204 int reg = to_reg(gpio, CTRL_OUT); in wcove_gpio_set()
219 int reg = to_reg(gpio, CTRL_OUT); in wcove_gpio_set_config()
374 ret += regmap_read(wg->regmap, to_reg(gpio, CTRL_OUT), &ctlo); in wcove_gpio_dbg_show()
375 ret += regmap_read(wg->regmap, to_reg(gpio, CTRL_IN), &ctli); in wcove_gpio_dbg_show()
Dgpio-crystalcove.c81 static inline int to_reg(int gpio, enum ctrl_register reg_type) in to_reg() function
127 int reg = to_reg(gpio, CTRL_IN); in crystalcove_update_irq_ctrl()
135 int reg = to_reg(gpio, CTRL_OUT); in crystalcove_gpio_dir_in()
147 int reg = to_reg(gpio, CTRL_OUT); in crystalcove_gpio_dir_out()
159 int ret, reg = to_reg(gpio, CTRL_IN); in crystalcove_gpio_get()
175 int reg = to_reg(gpio, CTRL_OUT); in crystalcove_gpio_set()
304 regmap_read(cg->regmap, to_reg(gpio, CTRL_OUT), &ctlo); in crystalcove_gpio_dbg_show()
305 regmap_read(cg->regmap, to_reg(gpio, CTRL_IN), &ctli); in crystalcove_gpio_dbg_show()