/drivers/media/video/gspca/ |
H A D | autogain_functions.h | 35 int i, steps, gain, orig_gain, exposure, orig_exposure; local 41 /* If we are of a multiple of deadzone, do multiple steps to reach the 43 steps = abs(desired_avg_lum - avg_lum) / deadzone; 45 PDEBUG(D_FRAM, "autogain: lum: %d, desired: %d, steps: %d", 46 avg_lum, desired_avg_lum, steps); 48 for (i = 0; i < steps; i++) { 117 int steps, gain, orig_gain, exposure, orig_exposure; local 129 /* If we are of a multiple of deadzone, do multiple steps to reach the 131 steps = (desired_avg_lum - avg_lum) / deadzone; 133 PDEBUG(D_FRAM, "autogain: lum: %d, desired: %d, steps [all...] |
H A D | gspca.c | 2514 int i, steps, gain, orig_gain, exposure, orig_exposure, autogain; local 2544 /* If we are of a multiple of deadzone, do multiple steps to reach the 2546 steps = abs(desired_avg_lum - avg_lum) / deadzone; 2548 PDEBUG(D_FRAM, "autogain: lum: %d, desired: %d, steps: %d", 2549 avg_lum, desired_avg_lum, steps); 2551 for (i = 0; i < steps; i++) {
|
/drivers/misc/iwmc3200top/ |
H A D | fw-download.c | 81 int i, pad, steps; local 87 steps = (parser->file_size - CHECKSUM_BYTES_NUM) / 4; 89 LOG_INFO(priv, FW_DOWNLOAD, "pad=%d steps=%d\n", pad, steps); 91 for (i = 0; i < steps; i++) 96 accum += le32_to_cpu(file[steps]) & mask;
|
/drivers/media/dvb/frontends/ |
H A D | sp887x.c | 443 int steps = (sync0x200 >> 4) & 0x00f; local 444 if (steps & 0x008) 445 steps = -steps; 446 dprintk("sp887x: implement tuner adjustment (%+i steps)!!\n", 447 steps);
|
H A D | stb0899_algo.c | 974 s32 steps, step_size; local 995 steps = (10 * range * (1 << 17)) / (step_size * (internal->srate / 1000000)); 996 steps = (steps + 6) / 10; 997 steps = (steps == 0) ? 1 : steps; 998 if (steps % 2 == 0) 1005 /*Set Carrier Search params (zigzag, num steps and freq step size*/ 1008 STB0899_SETFIELD_VAL(NUM_STEPS, reg, steps); [all...] |
H A D | stv0900_sw.c | 70 s32 *steps, 131 *steps = max_steps; 68 stv0900_get_sw_loop_params(struct stv0900_internal *intp, s32 *frequency_inc, s32 *sw_timeout, s32 *steps, enum fe_stv0900_demod_num demod) argument
|
H A D | stv090x.c | 1594 s32 i, j, steps, dir; local 1617 steps = state->search_range / 1000000; 1618 if (steps <= 0) 1619 steps = 1; 1625 for (i = 0; i < steps; i++) { 1689 s32 tmg_cpt = 0, dir = 1, steps, cur_step = 0, freq; local 1751 steps = -1 + ((state->search_range / 1000) / car_step); 1752 steps /= 2; 1753 steps = (2 * steps) 2138 s32 car_step, steps, cur_step, dir, freq, timeout_lock; local 2250 stv090x_get_loop_params(struct stv090x_state *state, s32 *freq_inc, s32 *timeout_sw, s32 *steps) argument [all...] |
H A D | dib0090.c | 1248 state->rf_lt_def &= ltg2 << 10; /* reduce in 3 steps from 7 to 0 */ 1614 #define steps(u) (((u) > 15) ? ((u)-16) : (u)) macro 1761 if ((state->adc_diff & 0x8000) == (state->min_adc_diff & 0x8000) && steps(state->step) < 15) {
|
/drivers/block/drbd/ |
H A D | drbd_worker.c | 447 int steps; /* Number of time steps to plan ahead */ local 456 steps = mdev->rs_plan_s.size; /* (mdev->sync_conf.c_plan_ahead * 10 * SLEEP_TIME) / HZ; */ 459 want = ((mdev->sync_conf.rate * 2 * SLEEP_TIME) / HZ) * steps; 468 cps = correction / steps; 470 mdev->rs_planed += cps * steps; 488 steps, cps, mdev->rs_planed, curr_corr, req_sect);
|
/drivers/input/keyboard/ |
H A D | lm8323.c | 111 * Take t clock scales (up to 63) per step, for n steps (up to 126). 456 int div512, perstep, steps, hz, up, kill; local 473 steps = abs(pwm->desired_brightness - pwm->brightness); 479 if ((pwm->fade_time / steps) > (32768 / 512)) { 487 perstep = (hz * pwm->fade_time) / (steps * 1000); 494 while (steps) { 497 s = min(126, steps); 499 steps -= s;
|
/drivers/staging/comedi/drivers/ |
H A D | usbduxfast.c | 140 * min delay steps for more than one channel 143 * steps at 30MHz in the FX2 148 * max number of 1/30MHz delay steps 559 long int steps, tmp; local 648 steps = cmd->convert_arg * 30; 649 if (steps < (minSamplPer * 1000)) 650 steps = minSamplPer * 1000; 652 if (steps > (MAX_SAMPLING_PERIOD * 1000)) 653 steps = MAX_SAMPLING_PERIOD * 1000; 656 tmp = steps / 3 758 long steps, steps_tmp; local [all...] |
/drivers/mtd/nand/ |
H A D | nand_base.c | 1097 int steps, size; local 1099 for (steps = chip->ecc.steps; steps > 0; steps--) { 1136 int eccsteps = chip->ecc.steps; 1150 eccsteps = chip->ecc.steps; 1269 int eccsteps = chip->ecc.steps; 1285 eccsteps = chip->ecc.steps; 1310 * multiple ECC steps, follow 1720 int i, len, pos, status = 0, sndcmd = 0, steps = chip->ecc.steps; local 1947 int steps, size; local [all...] |
/drivers/scsi/aic7xxx/ |
H A D | aic7xxx_core.c | 1991 int steps; local 1999 steps = 0; 2027 if (steps > AHC_MAX_STEPS) { 2034 steps++;
|
H A D | aic79xx_core.c | 3446 int steps; local 3460 steps = 0; 3488 if (steps > AHD_MAX_STEPS) { 3497 steps++;
|