Lines Matching refs:car_max
2248 s32 timeout, inc, steps_max, srate, car_max; in stv090x_get_loop_params() local
2251 car_max = state->search_range / 1000; in stv090x_get_loop_params()
2252 car_max += car_max / 10; in stv090x_get_loop_params()
2253 car_max = 65536 * (car_max / 2); in stv090x_get_loop_params()
2254 car_max /= (state->internal->mclk / 1000); in stv090x_get_loop_params()
2256 if (car_max > 0x4000) in stv090x_get_loop_params()
2257 car_max = 0x4000 ; /* maxcarrier should be<= +-1/4 Mclk */ in stv090x_get_loop_params()
2284 if ((inc > car_max) || (inc < 0)) in stv090x_get_loop_params()
2285 inc = car_max / 2; /* increment <= 1/8 Mclk */ in stv090x_get_loop_params()
2294 steps_max = (car_max / inc) + 1; /* min steps = 3 */ in stv090x_get_loop_params()
2297 inc = car_max / steps_max; in stv090x_get_loop_params()
2308 s32 offst_car, agc2, car_max; in stv090x_chk_signal() local
2317 car_max = state->search_range / 1000; in stv090x_chk_signal()
2319 car_max += (car_max / 10); /* 10% margin */ in stv090x_chk_signal()
2320 car_max = (65536 * car_max / 2); in stv090x_chk_signal()
2321 car_max /= state->internal->mclk / 1000; in stv090x_chk_signal()
2323 if (car_max > 0x4000) in stv090x_chk_signal()
2324 car_max = 0x4000; in stv090x_chk_signal()
2326 if ((agc2 > 0x2000) || (offst_car > 2 * car_max) || (offst_car < -2 * car_max)) { in stv090x_chk_signal()
2340 s32 cpt_step = 0, offst_freq, car_max; in stv090x_search_car_loop() local
2343 car_max = state->search_range / 1000; in stv090x_search_car_loop()
2344 car_max += (car_max / 10); in stv090x_search_car_loop()
2345 car_max = (65536 * car_max / 2); in stv090x_search_car_loop()
2346 car_max /= (state->internal->mclk / 1000); in stv090x_search_car_loop()
2347 if (car_max > 0x4000) in stv090x_search_car_loop()
2348 car_max = 0x4000; in stv090x_search_car_loop()
2353 offst_freq = -car_max + inc; in stv090x_search_car_loop()
2386 ((offst_freq - inc) < car_max) && in stv090x_search_car_loop()
2387 ((offst_freq + inc) > -car_max) && in stv090x_search_car_loop()