Lines Matching refs:etdm_reg
197 static int get_etdm_reg(unsigned int dai_id, struct etdm_con_reg *etdm_reg) in get_etdm_reg() argument
201 etdm_reg->con0 = ETDM_IN1_CON0; in get_etdm_reg()
202 etdm_reg->con1 = ETDM_IN1_CON1; in get_etdm_reg()
203 etdm_reg->con2 = ETDM_IN1_CON2; in get_etdm_reg()
204 etdm_reg->con3 = ETDM_IN1_CON3; in get_etdm_reg()
205 etdm_reg->con4 = ETDM_IN1_CON4; in get_etdm_reg()
206 etdm_reg->con5 = ETDM_IN1_CON5; in get_etdm_reg()
209 etdm_reg->con0 = ETDM_IN2_CON0; in get_etdm_reg()
210 etdm_reg->con1 = ETDM_IN2_CON1; in get_etdm_reg()
211 etdm_reg->con2 = ETDM_IN2_CON2; in get_etdm_reg()
212 etdm_reg->con3 = ETDM_IN2_CON3; in get_etdm_reg()
213 etdm_reg->con4 = ETDM_IN2_CON4; in get_etdm_reg()
214 etdm_reg->con5 = ETDM_IN2_CON5; in get_etdm_reg()
217 etdm_reg->con0 = ETDM_OUT1_CON0; in get_etdm_reg()
218 etdm_reg->con1 = ETDM_OUT1_CON1; in get_etdm_reg()
219 etdm_reg->con2 = ETDM_OUT1_CON2; in get_etdm_reg()
220 etdm_reg->con3 = ETDM_OUT1_CON3; in get_etdm_reg()
221 etdm_reg->con4 = ETDM_OUT1_CON4; in get_etdm_reg()
222 etdm_reg->con5 = ETDM_OUT1_CON5; in get_etdm_reg()
225 etdm_reg->con0 = ETDM_OUT2_CON0; in get_etdm_reg()
226 etdm_reg->con1 = ETDM_OUT2_CON1; in get_etdm_reg()
227 etdm_reg->con2 = ETDM_OUT2_CON2; in get_etdm_reg()
228 etdm_reg->con3 = ETDM_OUT2_CON3; in get_etdm_reg()
229 etdm_reg->con4 = ETDM_OUT2_CON4; in get_etdm_reg()
230 etdm_reg->con5 = ETDM_OUT2_CON5; in get_etdm_reg()
234 etdm_reg->con0 = ETDM_OUT3_CON0; in get_etdm_reg()
235 etdm_reg->con1 = ETDM_OUT3_CON1; in get_etdm_reg()
236 etdm_reg->con2 = ETDM_OUT3_CON2; in get_etdm_reg()
237 etdm_reg->con3 = ETDM_OUT3_CON3; in get_etdm_reg()
238 etdm_reg->con4 = ETDM_OUT3_CON4; in get_etdm_reg()
239 etdm_reg->con5 = ETDM_OUT3_CON5; in get_etdm_reg()
1319 struct etdm_con_reg etdm_reg; in mt8195_afe_enable_etdm() local
1331 ret = get_etdm_reg(dai_id, &etdm_reg); in mt8195_afe_enable_etdm()
1335 regmap_update_bits(afe->regmap, etdm_reg.con0, in mt8195_afe_enable_etdm()
1346 struct etdm_con_reg etdm_reg; in mt8195_afe_disable_etdm() local
1359 ret = get_etdm_reg(dai_id, &etdm_reg); in mt8195_afe_disable_etdm()
1363 regmap_update_bits(afe->regmap, etdm_reg.con0, in mt8195_afe_disable_etdm()
1694 struct etdm_con_reg etdm_reg; in mtk_dai_etdm_in_configure() local
1714 ret = get_etdm_reg(dai_id, &etdm_reg); in mtk_dai_etdm_in_configure()
1733 regmap_update_bits(afe->regmap, etdm_reg.con1, mask, val); in mtk_dai_etdm_in_configure()
1752 regmap_update_bits(afe->regmap, etdm_reg.con2, mask, val); in mtk_dai_etdm_in_configure()
1768 regmap_update_bits(afe->regmap, etdm_reg.con3, mask, val); in mtk_dai_etdm_in_configure()
1787 regmap_update_bits(afe->regmap, etdm_reg.con4, mask, val); in mtk_dai_etdm_in_configure()
1808 regmap_update_bits(afe->regmap, etdm_reg.con5, mask, val); in mtk_dai_etdm_in_configure()
1819 struct etdm_con_reg etdm_reg; in mtk_dai_etdm_out_configure() local
1837 ret = get_etdm_reg(dai_id, &etdm_reg); in mtk_dai_etdm_out_configure()
1847 regmap_update_bits(afe->regmap, etdm_reg.con0, mask, val); in mtk_dai_etdm_out_configure()
1858 regmap_update_bits(afe->regmap, etdm_reg.con1, mask, val); in mtk_dai_etdm_out_configure()
1869 regmap_update_bits(afe->regmap, etdm_reg.con2, in mtk_dai_etdm_out_configure()
1887 regmap_update_bits(afe->regmap, etdm_reg.con4, mask, val); in mtk_dai_etdm_out_configure()
1906 regmap_update_bits(afe->regmap, etdm_reg.con5, mask, val); in mtk_dai_etdm_out_configure()
1919 struct etdm_con_reg etdm_reg; in mtk_dai_etdm_mclk_configure() local
1931 ret = get_etdm_reg(dai_id, &etdm_reg); in mtk_dai_etdm_mclk_configure()
1938 regmap_update_bits(afe->regmap, etdm_reg.con1, mask, val); in mtk_dai_etdm_mclk_configure()
1970 struct etdm_con_reg etdm_reg; in mtk_dai_etdm_configure() local
1984 ret = get_etdm_reg(dai_id, &etdm_reg); in mtk_dai_etdm_configure()
2028 regmap_update_bits(afe->regmap, etdm_reg.con0, mask, val); in mtk_dai_etdm_configure()