Lines Matching refs:car_max
2243 s32 timeout, inc, steps_max, srate, car_max;
2246 car_max = state->search_range / 1000;
2247 car_max += car_max / 10;
2248 car_max = 65536 * (car_max / 2);
2249 car_max /= (state->internal->mclk / 1000);
2251 if (car_max > 0x4000)
2252 car_max = 0x4000 ; /* maxcarrier should be<= +-1/4 Mclk */
2279 if ((inc > car_max) || (inc < 0))
2280 inc = car_max / 2; /* increment <= 1/8 Mclk */
2289 steps_max = (car_max / inc) + 1; /* min steps = 3 */
2292 inc = car_max / steps_max;
2303 s32 offst_car, agc2, car_max;
2312 car_max = state->search_range / 1000;
2314 car_max += (car_max / 10); /* 10% margin */
2315 car_max = (65536 * car_max / 2);
2316 car_max /= state->internal->mclk / 1000;
2318 if (car_max > 0x4000)
2319 car_max = 0x4000;
2321 if ((agc2 > 0x2000) || (offst_car > 2 * car_max) || (offst_car < -2 * car_max)) {
2335 s32 cpt_step = 0, offst_freq, car_max;
2338 car_max = state->search_range / 1000;
2339 car_max += (car_max / 10);
2340 car_max = (65536 * car_max / 2);
2341 car_max /= (state->internal->mclk / 1000);
2342 if (car_max > 0x4000)
2343 car_max = 0x4000;
2348 offst_freq = -car_max + inc;
2381 ((offst_freq - inc) < car_max) &&
2382 ((offst_freq + inc) > -car_max) &&