Lines Matching refs:sampled_if
2485 u32 sampled_if = 0; in stv0367cab_set_derot_freq() local
2497 sampled_if = (u32)derot_hz / 1000; in stv0367cab_set_derot_freq()
2498 sampled_if *= 32768; in stv0367cab_set_derot_freq()
2499 sampled_if /= adc_khz; in stv0367cab_set_derot_freq()
2500 sampled_if *= 256; in stv0367cab_set_derot_freq()
2503 if (sampled_if > 8388607) in stv0367cab_set_derot_freq()
2504 sampled_if = 8388607; in stv0367cab_set_derot_freq()
2506 dprintk("%s: sampled_if=0x%x\n", __func__, sampled_if); in stv0367cab_set_derot_freq()
2508 stv0367_writereg(state, R367CAB_MIX_NCO_LL, sampled_if); in stv0367cab_set_derot_freq()
2509 stv0367_writereg(state, R367CAB_MIX_NCO_HL, (sampled_if >> 8)); in stv0367cab_set_derot_freq()
2510 stv0367_writebits(state, F367CAB_MIX_NCO_INC_HH, (sampled_if >> 16)); in stv0367cab_set_derot_freq()
2517 u32 sampled_if; in stv0367cab_get_derot_freq() local
2519 sampled_if = stv0367_readbits(state, F367CAB_MIX_NCO_INC_LL) + in stv0367cab_get_derot_freq()
2523 sampled_if /= 256; in stv0367cab_get_derot_freq()
2524 sampled_if *= (adc_hz / 1000); in stv0367cab_get_derot_freq()
2525 sampled_if += 1; in stv0367cab_get_derot_freq()
2526 sampled_if /= 32768; in stv0367cab_get_derot_freq()
2528 return sampled_if; in stv0367cab_get_derot_freq()