Lines Matching refs:sampled_if
1903 u32 sampled_if = 0; in stv0367cab_set_derot_freq() local
1915 sampled_if = (u32)derot_hz / 1000; in stv0367cab_set_derot_freq()
1916 sampled_if *= 32768; in stv0367cab_set_derot_freq()
1917 sampled_if /= adc_khz; in stv0367cab_set_derot_freq()
1918 sampled_if *= 256; in stv0367cab_set_derot_freq()
1921 if (sampled_if > 8388607) in stv0367cab_set_derot_freq()
1922 sampled_if = 8388607; in stv0367cab_set_derot_freq()
1924 dprintk("%s: sampled_if=0x%x\n", __func__, sampled_if); in stv0367cab_set_derot_freq()
1926 stv0367_writereg(state, R367CAB_MIX_NCO_LL, sampled_if); in stv0367cab_set_derot_freq()
1927 stv0367_writereg(state, R367CAB_MIX_NCO_HL, (sampled_if >> 8)); in stv0367cab_set_derot_freq()
1928 stv0367_writebits(state, F367CAB_MIX_NCO_INC_HH, (sampled_if >> 16)); in stv0367cab_set_derot_freq()
1935 u32 sampled_if; in stv0367cab_get_derot_freq() local
1937 sampled_if = stv0367_readbits(state, F367CAB_MIX_NCO_INC_LL) + in stv0367cab_get_derot_freq()
1941 sampled_if /= 256; in stv0367cab_get_derot_freq()
1942 sampled_if *= (adc_hz / 1000); in stv0367cab_get_derot_freq()
1943 sampled_if += 1; in stv0367cab_get_derot_freq()
1944 sampled_if /= 32768; in stv0367cab_get_derot_freq()
1946 return sampled_if; in stv0367cab_get_derot_freq()