Searched refs:to_reg (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/drivers/gpio/ |
D | gpio-xra1403.c | 57 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()
|
D | gpio-crystalcove.c | 89 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()
|
D | gpio-wcove.c | 108 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()
|