Lines Matching full:steps
23 int i, steps, retval = 0; in gspca_expo_autogain() local
31 /* If we are of a multiple of deadzone, do multiple steps to reach the in gspca_expo_autogain()
33 steps = abs(desired_avg_lum - avg_lum) / deadzone; in gspca_expo_autogain()
35 gspca_dbg(gspca_dev, D_FRAM, "autogain: lum: %d, desired: %d, steps: %d\n", in gspca_expo_autogain()
36 avg_lum, desired_avg_lum, steps); in gspca_expo_autogain()
38 for (i = 0; i < steps; i++) { in gspca_expo_autogain()
103 int steps, retval = 0; in gspca_coarse_grained_expo_autogain() local
116 /* If we are of a multiple of deadzone, do multiple steps to reach the in gspca_coarse_grained_expo_autogain()
118 steps = (desired_avg_lum - avg_lum) / deadzone; in gspca_coarse_grained_expo_autogain()
120 gspca_dbg(gspca_dev, D_FRAM, "autogain: lum: %d, desired: %d, steps: %d\n", in gspca_coarse_grained_expo_autogain()
121 avg_lum, desired_avg_lum, steps); in gspca_coarse_grained_expo_autogain()
123 if ((gain + steps) > gain_high && in gspca_coarse_grained_expo_autogain()
128 } else if ((gain + steps) < gain_low && in gspca_coarse_grained_expo_autogain()
134 gain += steps; in gspca_coarse_grained_expo_autogain()