Lines Matching refs:etdm_reg
156 static int get_etdm_reg(unsigned int dai_id, struct etdm_con_reg *etdm_reg) in get_etdm_reg() argument
160 etdm_reg->con0 = ETDM_IN1_CON0; in get_etdm_reg()
161 etdm_reg->con1 = ETDM_IN1_CON1; in get_etdm_reg()
162 etdm_reg->con2 = ETDM_IN1_CON2; in get_etdm_reg()
163 etdm_reg->con3 = ETDM_IN1_CON3; in get_etdm_reg()
164 etdm_reg->con4 = ETDM_IN1_CON4; in get_etdm_reg()
165 etdm_reg->con5 = ETDM_IN1_CON5; in get_etdm_reg()
168 etdm_reg->con0 = ETDM_IN2_CON0; in get_etdm_reg()
169 etdm_reg->con1 = ETDM_IN2_CON1; in get_etdm_reg()
170 etdm_reg->con2 = ETDM_IN2_CON2; in get_etdm_reg()
171 etdm_reg->con3 = ETDM_IN2_CON3; in get_etdm_reg()
172 etdm_reg->con4 = ETDM_IN2_CON4; in get_etdm_reg()
173 etdm_reg->con5 = ETDM_IN2_CON5; in get_etdm_reg()
176 etdm_reg->con0 = ETDM_OUT1_CON0; in get_etdm_reg()
177 etdm_reg->con1 = ETDM_OUT1_CON1; in get_etdm_reg()
178 etdm_reg->con2 = ETDM_OUT1_CON2; in get_etdm_reg()
179 etdm_reg->con3 = ETDM_OUT1_CON3; in get_etdm_reg()
180 etdm_reg->con4 = ETDM_OUT1_CON4; in get_etdm_reg()
181 etdm_reg->con5 = ETDM_OUT1_CON5; in get_etdm_reg()
184 etdm_reg->con0 = ETDM_OUT2_CON0; in get_etdm_reg()
185 etdm_reg->con1 = ETDM_OUT2_CON1; in get_etdm_reg()
186 etdm_reg->con2 = ETDM_OUT2_CON2; in get_etdm_reg()
187 etdm_reg->con3 = ETDM_OUT2_CON3; in get_etdm_reg()
188 etdm_reg->con4 = ETDM_OUT2_CON4; in get_etdm_reg()
189 etdm_reg->con5 = ETDM_OUT2_CON5; in get_etdm_reg()
193 etdm_reg->con0 = ETDM_OUT3_CON0; in get_etdm_reg()
194 etdm_reg->con1 = ETDM_OUT3_CON1; in get_etdm_reg()
195 etdm_reg->con2 = ETDM_OUT3_CON2; in get_etdm_reg()
196 etdm_reg->con3 = ETDM_OUT3_CON3; in get_etdm_reg()
197 etdm_reg->con4 = ETDM_OUT3_CON4; in get_etdm_reg()
198 etdm_reg->con5 = ETDM_OUT3_CON5; in get_etdm_reg()
390 struct etdm_con_reg etdm_reg; in mtk_dai_etdm_enable_mclk() local
412 ret = get_etdm_reg(dai_id, &etdm_reg); in mtk_dai_etdm_enable_mclk()
419 regmap_update_bits(afe->regmap, etdm_reg.con1, mask, val); in mtk_dai_etdm_enable_mclk()
1787 struct etdm_con_reg etdm_reg; in mt8188_etdm_sync_mode_mst() local
1832 ret = get_etdm_reg(dai_id, &etdm_reg); in mt8188_etdm_sync_mode_mst()
1838 regmap_set_bits(afe->regmap, etdm_reg.con0, ETDM_CON0_SYNC_MODE); in mt8188_etdm_sync_mode_mst()
1903 struct etdm_con_reg etdm_reg; in mtk_dai_etdm_in_configure() local
1922 ret = get_etdm_reg(dai_id, &etdm_reg); in mtk_dai_etdm_in_configure()
1938 regmap_update_bits(afe->regmap, etdm_reg.con1, mask, val); in mtk_dai_etdm_in_configure()
1957 regmap_update_bits(afe->regmap, etdm_reg.con2, mask, val); in mtk_dai_etdm_in_configure()
1973 regmap_update_bits(afe->regmap, etdm_reg.con3, mask, val); in mtk_dai_etdm_in_configure()
1992 regmap_update_bits(afe->regmap, etdm_reg.con4, mask, val); in mtk_dai_etdm_in_configure()
2010 regmap_update_bits(afe->regmap, etdm_reg.con5, mask, val); in mtk_dai_etdm_in_configure()
2021 struct etdm_con_reg etdm_reg; in mtk_dai_etdm_out_configure() local
2038 ret = get_etdm_reg(dai_id, &etdm_reg); in mtk_dai_etdm_out_configure()
2046 regmap_update_bits(afe->regmap, etdm_reg.con0, mask, val); in mtk_dai_etdm_out_configure()
2057 regmap_update_bits(afe->regmap, etdm_reg.con1, mask, val); in mtk_dai_etdm_out_configure()
2076 regmap_update_bits(afe->regmap, etdm_reg.con4, mask, val); in mtk_dai_etdm_out_configure()
2095 regmap_update_bits(afe->regmap, etdm_reg.con5, mask, val); in mtk_dai_etdm_out_configure()
2108 struct etdm_con_reg etdm_reg; in mtk_dai_etdm_configure() local
2123 ret = get_etdm_reg(dai_id, &etdm_reg); in mtk_dai_etdm_configure()
2163 regmap_update_bits(afe->regmap, etdm_reg.con0, mask, val); in mtk_dai_etdm_configure()