Lines Matching refs:reg_addr

80 	unsigned int reg_addr;  in mtk_pmx_gpio_set_direction()  local
84 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset; in mtk_pmx_gpio_set_direction()
88 pctl->devdata->spec_dir_set(&reg_addr, offset); in mtk_pmx_gpio_set_direction()
92 reg_addr = CLR_ADDR(reg_addr, pctl); in mtk_pmx_gpio_set_direction()
94 reg_addr = SET_ADDR(reg_addr, pctl); in mtk_pmx_gpio_set_direction()
96 regmap_write(mtk_get_regmap(pctl, offset), reg_addr, bit); in mtk_pmx_gpio_set_direction()
102 unsigned int reg_addr; in mtk_gpio_set() local
106 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dout_offset; in mtk_gpio_set()
110 reg_addr = SET_ADDR(reg_addr, pctl); in mtk_gpio_set()
112 reg_addr = CLR_ADDR(reg_addr, pctl); in mtk_gpio_set()
114 regmap_write(mtk_get_regmap(pctl, offset), reg_addr, bit); in mtk_gpio_set()
120 unsigned int reg_addr, offset; in mtk_pconf_set_ies_smt() local
154 reg_addr = SET_ADDR(mtk_get_port(pctl, pin) + offset, pctl); in mtk_pconf_set_ies_smt()
156 reg_addr = CLR_ADDR(mtk_get_port(pctl, pin) + offset, pctl); in mtk_pconf_set_ies_smt()
158 regmap_write(mtk_get_regmap(pctl, pin), reg_addr, bit); in mtk_pconf_set_ies_smt()
166 unsigned int i, reg_addr, bit; in mtk_pconf_spec_set_ies_smt_range() local
179 reg_addr = ies_smt_infos[i].offset + align; in mtk_pconf_spec_set_ies_smt_range()
181 reg_addr = ies_smt_infos[i].offset + (align << 1); in mtk_pconf_spec_set_ies_smt_range()
184 regmap_write(regmap, reg_addr, bit); in mtk_pconf_spec_set_ies_smt_range()
684 unsigned int reg_addr; in mtk_pmx_set_mode() local
694 reg_addr = ((pin / MAX_GPIO_MODE_PER_REG) << pctl->devdata->port_shf) in mtk_pmx_set_mode()
702 reg_addr, mask, val); in mtk_pmx_set_mode()
802 unsigned int reg_addr; in mtk_gpio_get_direction() local
808 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset; in mtk_gpio_get_direction()
812 pctl->devdata->spec_dir_set(&reg_addr, offset); in mtk_gpio_get_direction()
814 regmap_read(pctl->regmap1, reg_addr, &read_val); in mtk_gpio_get_direction()
820 unsigned int reg_addr; in mtk_gpio_get() local
825 reg_addr = mtk_get_port(pctl, offset) + in mtk_gpio_get()
829 regmap_read(pctl->regmap1, reg_addr, &read_val); in mtk_gpio_get()