Lines Matching refs:etdm_reg

165 static int get_etdm_reg(unsigned int dai_id, struct etdm_con_reg *etdm_reg)  in get_etdm_reg()  argument
169 etdm_reg->con0 = ETDM_IN1_CON0; in get_etdm_reg()
170 etdm_reg->con1 = ETDM_IN1_CON1; in get_etdm_reg()
171 etdm_reg->con2 = ETDM_IN1_CON2; in get_etdm_reg()
172 etdm_reg->con3 = ETDM_IN1_CON3; in get_etdm_reg()
173 etdm_reg->con4 = ETDM_IN1_CON4; in get_etdm_reg()
174 etdm_reg->con5 = ETDM_IN1_CON5; in get_etdm_reg()
177 etdm_reg->con0 = ETDM_IN2_CON0; in get_etdm_reg()
178 etdm_reg->con1 = ETDM_IN2_CON1; in get_etdm_reg()
179 etdm_reg->con2 = ETDM_IN2_CON2; in get_etdm_reg()
180 etdm_reg->con3 = ETDM_IN2_CON3; in get_etdm_reg()
181 etdm_reg->con4 = ETDM_IN2_CON4; in get_etdm_reg()
182 etdm_reg->con5 = ETDM_IN2_CON5; in get_etdm_reg()
185 etdm_reg->con0 = ETDM_OUT1_CON0; in get_etdm_reg()
186 etdm_reg->con1 = ETDM_OUT1_CON1; in get_etdm_reg()
187 etdm_reg->con2 = ETDM_OUT1_CON2; in get_etdm_reg()
188 etdm_reg->con3 = ETDM_OUT1_CON3; in get_etdm_reg()
189 etdm_reg->con4 = ETDM_OUT1_CON4; in get_etdm_reg()
190 etdm_reg->con5 = ETDM_OUT1_CON5; in get_etdm_reg()
193 etdm_reg->con0 = ETDM_OUT2_CON0; in get_etdm_reg()
194 etdm_reg->con1 = ETDM_OUT2_CON1; in get_etdm_reg()
195 etdm_reg->con2 = ETDM_OUT2_CON2; in get_etdm_reg()
196 etdm_reg->con3 = ETDM_OUT2_CON3; in get_etdm_reg()
197 etdm_reg->con4 = ETDM_OUT2_CON4; in get_etdm_reg()
198 etdm_reg->con5 = ETDM_OUT2_CON5; in get_etdm_reg()
202 etdm_reg->con0 = ETDM_OUT3_CON0; in get_etdm_reg()
203 etdm_reg->con1 = ETDM_OUT3_CON1; in get_etdm_reg()
204 etdm_reg->con2 = ETDM_OUT3_CON2; in get_etdm_reg()
205 etdm_reg->con3 = ETDM_OUT3_CON3; in get_etdm_reg()
206 etdm_reg->con4 = ETDM_OUT3_CON4; in get_etdm_reg()
207 etdm_reg->con5 = ETDM_OUT3_CON5; in get_etdm_reg()
1277 struct etdm_con_reg etdm_reg; in mt8195_afe_enable_etdm() local
1285 ret = get_etdm_reg(dai_id, &etdm_reg); in mt8195_afe_enable_etdm()
1289 regmap_update_bits(afe->regmap, etdm_reg.con0, in mt8195_afe_enable_etdm()
1300 struct etdm_con_reg etdm_reg; in mt8195_afe_disable_etdm() local
1309 ret = get_etdm_reg(dai_id, &etdm_reg); in mt8195_afe_disable_etdm()
1313 regmap_update_bits(afe->regmap, etdm_reg.con0, in mt8195_afe_disable_etdm()
1635 struct etdm_con_reg etdm_reg; in mtk_dai_etdm_in_configure() local
1647 ret = get_etdm_reg(dai_id, &etdm_reg); in mtk_dai_etdm_in_configure()
1666 regmap_update_bits(afe->regmap, etdm_reg.con1, mask, val); in mtk_dai_etdm_in_configure()
1685 regmap_update_bits(afe->regmap, etdm_reg.con2, mask, val); in mtk_dai_etdm_in_configure()
1701 regmap_update_bits(afe->regmap, etdm_reg.con3, mask, val); in mtk_dai_etdm_in_configure()
1720 regmap_update_bits(afe->regmap, etdm_reg.con4, mask, val); in mtk_dai_etdm_in_configure()
1741 regmap_update_bits(afe->regmap, etdm_reg.con5, mask, val); in mtk_dai_etdm_in_configure()
1752 struct etdm_con_reg etdm_reg; in mtk_dai_etdm_out_configure() local
1763 ret = get_etdm_reg(dai_id, &etdm_reg); in mtk_dai_etdm_out_configure()
1773 regmap_update_bits(afe->regmap, etdm_reg.con0, mask, val); in mtk_dai_etdm_out_configure()
1784 regmap_update_bits(afe->regmap, etdm_reg.con1, mask, val); in mtk_dai_etdm_out_configure()
1795 regmap_update_bits(afe->regmap, etdm_reg.con2, in mtk_dai_etdm_out_configure()
1813 regmap_update_bits(afe->regmap, etdm_reg.con4, mask, val); in mtk_dai_etdm_out_configure()
1832 regmap_update_bits(afe->regmap, etdm_reg.con5, mask, val); in mtk_dai_etdm_out_configure()
1845 struct etdm_con_reg etdm_reg; in mtk_dai_etdm_mclk_configure() local
1853 ret = get_etdm_reg(dai_id, &etdm_reg); in mtk_dai_etdm_mclk_configure()
1860 regmap_update_bits(afe->regmap, etdm_reg.con1, mask, val); in mtk_dai_etdm_mclk_configure()
1892 struct etdm_con_reg etdm_reg; in mtk_dai_etdm_configure() local
1901 ret = get_etdm_reg(dai_id, &etdm_reg); in mtk_dai_etdm_configure()
1945 regmap_update_bits(afe->regmap, etdm_reg.con0, mask, val); in mtk_dai_etdm_configure()