Lines Matching refs:sampled_if
1885 u32 sampled_if = 0; in stv0367cab_set_derot_freq() local
1897 sampled_if = (u32)derot_hz / 1000; in stv0367cab_set_derot_freq()
1898 sampled_if *= 32768; in stv0367cab_set_derot_freq()
1899 sampled_if /= adc_khz; in stv0367cab_set_derot_freq()
1900 sampled_if *= 256; in stv0367cab_set_derot_freq()
1903 if (sampled_if > 8388607) in stv0367cab_set_derot_freq()
1904 sampled_if = 8388607; in stv0367cab_set_derot_freq()
1906 dprintk("%s: sampled_if=0x%x\n", __func__, sampled_if); in stv0367cab_set_derot_freq()
1908 stv0367_writereg(state, R367CAB_MIX_NCO_LL, sampled_if); in stv0367cab_set_derot_freq()
1909 stv0367_writereg(state, R367CAB_MIX_NCO_HL, (sampled_if >> 8)); in stv0367cab_set_derot_freq()
1910 stv0367_writebits(state, F367CAB_MIX_NCO_INC_HH, (sampled_if >> 16)); in stv0367cab_set_derot_freq()
1917 u32 sampled_if; in stv0367cab_get_derot_freq() local
1919 sampled_if = stv0367_readbits(state, F367CAB_MIX_NCO_INC_LL) + in stv0367cab_get_derot_freq()
1923 sampled_if /= 256; in stv0367cab_get_derot_freq()
1924 sampled_if *= (adc_hz / 1000); in stv0367cab_get_derot_freq()
1925 sampled_if += 1; in stv0367cab_get_derot_freq()
1926 sampled_if /= 32768; in stv0367cab_get_derot_freq()
1928 return sampled_if; in stv0367cab_get_derot_freq()