Lines Matching refs:car_max

2252 	s32 timeout, inc, steps_max, srate, car_max;  in stv090x_get_loop_params()  local
2255 car_max = state->search_range / 1000; in stv090x_get_loop_params()
2256 car_max += car_max / 10; in stv090x_get_loop_params()
2257 car_max = 65536 * (car_max / 2); in stv090x_get_loop_params()
2258 car_max /= (state->internal->mclk / 1000); in stv090x_get_loop_params()
2260 if (car_max > 0x4000) in stv090x_get_loop_params()
2261 car_max = 0x4000 ; /* maxcarrier should be<= +-1/4 Mclk */ in stv090x_get_loop_params()
2288 if ((inc > car_max) || (inc < 0)) in stv090x_get_loop_params()
2289 inc = car_max / 2; /* increment <= 1/8 Mclk */ in stv090x_get_loop_params()
2298 steps_max = (car_max / inc) + 1; /* min steps = 3 */ in stv090x_get_loop_params()
2301 inc = car_max / steps_max; in stv090x_get_loop_params()
2312 s32 offst_car, agc2, car_max; in stv090x_chk_signal() local
2321 car_max = state->search_range / 1000; in stv090x_chk_signal()
2323 car_max += (car_max / 10); /* 10% margin */ in stv090x_chk_signal()
2324 car_max = (65536 * car_max / 2); in stv090x_chk_signal()
2325 car_max /= state->internal->mclk / 1000; in stv090x_chk_signal()
2327 if (car_max > 0x4000) in stv090x_chk_signal()
2328 car_max = 0x4000; in stv090x_chk_signal()
2330 if ((agc2 > 0x2000) || (offst_car > 2 * car_max) || (offst_car < -2 * car_max)) { in stv090x_chk_signal()
2344 s32 cpt_step = 0, offst_freq, car_max; in stv090x_search_car_loop() local
2347 car_max = state->search_range / 1000; in stv090x_search_car_loop()
2348 car_max += (car_max / 10); in stv090x_search_car_loop()
2349 car_max = (65536 * car_max / 2); in stv090x_search_car_loop()
2350 car_max /= (state->internal->mclk / 1000); in stv090x_search_car_loop()
2351 if (car_max > 0x4000) in stv090x_search_car_loop()
2352 car_max = 0x4000; in stv090x_search_car_loop()
2357 offst_freq = -car_max + inc; in stv090x_search_car_loop()
2390 ((offst_freq - inc) < car_max) && in stv090x_search_car_loop()
2391 ((offst_freq + inc) > -car_max) && in stv090x_search_car_loop()