Lines Matching refs:reg_addr
72 unsigned int reg_addr; in mtk_pmx_gpio_set_direction() local
76 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset; in mtk_pmx_gpio_set_direction()
80 pctl->devdata->spec_dir_set(®_addr, offset); in mtk_pmx_gpio_set_direction()
84 reg_addr = CLR_ADDR(reg_addr, pctl); in mtk_pmx_gpio_set_direction()
86 reg_addr = SET_ADDR(reg_addr, pctl); in mtk_pmx_gpio_set_direction()
88 regmap_write(mtk_get_regmap(pctl, offset), reg_addr, bit); in mtk_pmx_gpio_set_direction()
94 unsigned int reg_addr; in mtk_gpio_set() local
98 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dout_offset; in mtk_gpio_set()
102 reg_addr = SET_ADDR(reg_addr, pctl); in mtk_gpio_set()
104 reg_addr = CLR_ADDR(reg_addr, pctl); in mtk_gpio_set()
106 regmap_write(mtk_get_regmap(pctl, offset), reg_addr, bit); in mtk_gpio_set()
112 unsigned int reg_addr, offset; in mtk_pconf_set_ies_smt() local
146 reg_addr = SET_ADDR(mtk_get_port(pctl, pin) + offset, pctl); in mtk_pconf_set_ies_smt()
148 reg_addr = CLR_ADDR(mtk_get_port(pctl, pin) + offset, pctl); in mtk_pconf_set_ies_smt()
150 regmap_write(mtk_get_regmap(pctl, pin), reg_addr, bit); in mtk_pconf_set_ies_smt()
158 unsigned int i, reg_addr, bit; in mtk_pconf_spec_set_ies_smt_range() local
171 reg_addr = ies_smt_infos[i].offset + align; in mtk_pconf_spec_set_ies_smt_range()
173 reg_addr = ies_smt_infos[i].offset + (align << 1); in mtk_pconf_spec_set_ies_smt_range()
176 regmap_write(regmap, reg_addr, bit); in mtk_pconf_spec_set_ies_smt_range()
676 unsigned int reg_addr; in mtk_pmx_set_mode() local
686 reg_addr = ((pin / MAX_GPIO_MODE_PER_REG) << pctl->devdata->port_shf) in mtk_pmx_set_mode()
694 reg_addr, mask, val); in mtk_pmx_set_mode()
794 unsigned int reg_addr; in mtk_gpio_get_direction() local
800 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset; in mtk_gpio_get_direction()
804 pctl->devdata->spec_dir_set(®_addr, offset); in mtk_gpio_get_direction()
806 regmap_read(pctl->regmap1, reg_addr, &read_val); in mtk_gpio_get_direction()
815 unsigned int reg_addr; in mtk_gpio_get() local
820 reg_addr = mtk_get_port(pctl, offset) + in mtk_gpio_get()
824 regmap_read(pctl->regmap1, reg_addr, &read_val); in mtk_gpio_get()