Lines Matching refs:cts
1760 static void hdmi_set_cts_n(struct dw_hdmi *hdmi, unsigned int cts, in hdmi_set_cts_n() argument
1769 hdmi_writeb(hdmi, ((cts >> 16) & HDMI_AUD_CTS3_AUDCTS19_16_MASK) | in hdmi_set_cts_n()
1771 hdmi_writeb(hdmi, (cts >> 8) & 0xff, HDMI_AUD_CTS2); in hdmi_set_cts_n()
1772 hdmi_writeb(hdmi, cts & 0xff, HDMI_AUD_CTS1); in hdmi_set_cts_n()
1828 u64 cts; in hdmi_audio_math_diff() local
1832 cts = final; in hdmi_audio_math_diff()
1833 do_div(cts, 128 * freq); in hdmi_audio_math_diff()
1835 diff = final - (u64)cts * (128 * freq); in hdmi_audio_math_diff()
1897 unsigned int n, cts; in hdmi_set_clk_regenerator() local
1911 cts = tmp; in hdmi_set_clk_regenerator()
1914 sample_rate, ftdms / 1000000, (ftdms / 1000) % 1000, n, cts); in hdmi_set_clk_regenerator()
1917 hdmi->audio_cts = cts; in hdmi_set_clk_regenerator()
1918 hdmi_set_cts_n(hdmi, cts, hdmi->audio_enable ? n : 0); in hdmi_set_clk_regenerator()