Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/gpio/
Dgpio-xra1403.c57 static unsigned int to_reg(unsigned int reg, unsigned int offset) in to_reg() function
66 return regmap_update_bits(xra->regmap, to_reg(XRA_GCR, offset), in xra1403_direction_input()
76 ret = regmap_update_bits(xra->regmap, to_reg(XRA_GCR, offset), in xra1403_direction_output()
81 ret = regmap_update_bits(xra->regmap, to_reg(XRA_OCR, offset), in xra1403_direction_output()
93 ret = regmap_read(xra->regmap, to_reg(XRA_GCR, offset), &val); in xra1403_get_direction()
106 ret = regmap_read(xra->regmap, to_reg(XRA_GSR, offset), &val); in xra1403_get()
118 ret = regmap_update_bits(xra->regmap, to_reg(XRA_OCR, offset), in xra1403_set()
Dgpio-crystalcove.c89 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 crystalcove_update_irq_ctrl()
143 int reg = to_reg(gpio, CTRL_OUT); in crystalcove_gpio_dir_in()
155 int reg = to_reg(gpio, CTRL_OUT); in crystalcove_gpio_dir_out()
167 int ret, reg = to_reg(gpio, CTRL_IN); in crystalcove_gpio_get()
183 int reg = to_reg(gpio, CTRL_OUT); in crystalcove_gpio_set()
314 regmap_read(cg->regmap, to_reg(gpio, CTRL_OUT), &ctlo); in crystalcove_gpio_dbg_show()
315 regmap_read(cg->regmap, to_reg(gpio, CTRL_IN), &ctli); in crystalcove_gpio_dbg_show()
Dgpio-wcove.c108 static inline unsigned int to_reg(int gpio, enum ctrl_register reg_type) in to_reg() function
143 int reg = to_reg(gpio, CTRL_IN); in wcove_update_irq_ctrl()
154 int reg = to_reg(gpio, CTRL_OUT); in wcove_gpio_dir_in()
166 int reg = to_reg(gpio, CTRL_OUT); in wcove_gpio_dir_out()
178 int ret, reg = to_reg(gpio, CTRL_OUT); in wcove_gpio_get_direction()
194 int ret, reg = to_reg(gpio, CTRL_IN); in wcove_gpio_get()
210 int reg = to_reg(gpio, CTRL_OUT); in wcove_gpio_set()
225 int reg = to_reg(gpio, CTRL_OUT); in wcove_gpio_set_config()
380 ret += regmap_read(wg->regmap, to_reg(gpio, CTRL_OUT), &ctlo); in wcove_gpio_dbg_show()
381 ret += regmap_read(wg->regmap, to_reg(gpio, CTRL_IN), &ctli); in wcove_gpio_dbg_show()