Lines Matching refs:speedp
314 static int ess_calc_div (int clock, int revert, int *speedp, int *diffp) in ess_calc_div() argument
320 speed = *speedp; in ess_calc_div()
331 *speedp = clock / divider; in ess_calc_div()
332 diff = speed - *speedp; in ess_calc_div()
340 (int clock1, int rev1, int clock2, int rev2, int *divp, int *speedp) in ess_calc_best_speed() argument
342 int speed1 = *speedp, speed2 = *speedp; in ess_calc_best_speed()
352 *speedp = speed1; in ess_calc_best_speed()
357 *speedp = speed2; in ess_calc_best_speed()
372 static void ess_common_speed (sb_devc *devc, int *speedp, int *divp) in ess_common_speed() argument
381 div = 0x80 | ess_calc_div (795500, 256, speedp, &diff); in ess_common_speed()
383 div = 0x80 | ess_calc_div (795500, 128, speedp, &diff); in ess_common_speed()
388 &div, speedp); in ess_common_speed()
391 &div, speedp); in ess_common_speed()
394 if (*speedp > 22000) { in ess_common_speed()
395 div = 0x80 | ess_calc_div (ES1688_CLOCK1, 256, speedp, &diff); in ess_common_speed()
397 div = 0x00 | ess_calc_div (ES1688_CLOCK2, 128, speedp, &diff); in ess_common_speed()