Searched refs:to_reg (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.1/drivers/gpio/ |
D | gpio-xra1403.c | 46 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()
|
D | gpio-wcove.c | 102 static inline int to_reg(int gpio, enum ctrl_register type) in to_reg() function 139 int reg = to_reg(gpio, CTRL_IN); in wcove_update_irq_ctrl() 147 int reg = to_reg(gpio, CTRL_OUT); in wcove_gpio_dir_in() 159 int reg = to_reg(gpio, CTRL_OUT); in wcove_gpio_dir_out() 171 int ret, reg = to_reg(gpio, CTRL_OUT); in wcove_gpio_get_direction() 190 int ret, reg = to_reg(gpio, CTRL_IN); in wcove_gpio_get() 205 int reg = to_reg(gpio, CTRL_OUT); in wcove_gpio_set() 220 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()
|
D | gpio-crystalcove.c | 82 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() 146 int reg = to_reg(gpio, CTRL_OUT); in crystalcove_gpio_dir_out() 158 int ret, reg = to_reg(gpio, CTRL_IN); in crystalcove_gpio_get() 173 int reg = to_reg(gpio, CTRL_OUT); in crystalcove_gpio_set() 308 regmap_read(cg->regmap, to_reg(gpio, CTRL_OUT), &ctlo); in crystalcove_gpio_dbg_show() 309 regmap_read(cg->regmap, to_reg(gpio, CTRL_IN), &ctli); in crystalcove_gpio_dbg_show()
|