Searched refs:steps (Results 1 - 25 of 72) sorted by path

123

/linux-master/drivers/iio/dummy/
H A Diio_simple_dummy.h40 int steps; member in struct:iio_dummy_state
H A Diio_simple_dummy.c321 *val = st->steps;
445 st->steps = val;
540 st->steps = 47;
/linux-master/drivers/media/dvb-frontends/
H A Dstb0899_algo.c970 s32 steps, step_size; local
991 steps = (10 * range * (1 << 17)) / (step_size * (internal->srate / 1000000));
992 steps = (steps + 6) / 10;
993 steps = (steps == 0) ? 1 : steps;
994 if (steps % 2 == 0)
1001 /*Set Carrier Search params (zigzag, num steps and freq step size*/
1004 STB0899_SETFIELD_VAL(NUM_STEPS, reg, steps);
[all...]
H A Dstv0900_sw.c56 s32 *steps,
117 *steps = max_steps;
54 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 Ddib0090.c1224 state->rf_lt_def &= ltg2 << 10; /* reduce in 3 steps from 7 to 0 */
1592 #define steps(u) (((u) > 15) ? ((u)-16) : (u)) macro
1738 if ((state->adc_diff & 0x8000) == (state->min_adc_diff & 0x8000) && steps(state->step) < 15) {
H A Dsp887x.c441 int steps = (sync0x200 >> 4) & 0x00f; local
442 if (steps & 0x008)
443 steps = -steps;
444 dprintk("sp887x: implement tuner adjustment (%+i steps)!!\n",
445 steps);
H A Dstv090x.c1588 s32 i, j, steps, dir; local
1611 steps = state->search_range / 1000000;
1612 if (steps <= 0)
1613 steps = 1;
1619 for (i = 0; i < steps; i++) {
1683 s32 tmg_cpt = 0, dir = 1, steps, cur_step = 0, freq; local
1745 steps = -1 + ((state->search_range / 1000) / car_step);
1746 steps /= 2;
1747 steps = (2 * steps)
2132 s32 car_step, steps, cur_step, dir, freq, timeout_lock; local
2241 stv090x_get_loop_params(struct stv090x_state *state, s32 *freq_inc, s32 *timeout_sw, s32 *steps) argument
[all...]
/linux-master/drivers/media/usb/gspca/
H A Dautogain_functions.c23 int i, steps, retval = 0; local
31 /* If we are of a multiple of deadzone, do multiple steps to reach the
33 steps = abs(desired_avg_lum - avg_lum) / deadzone;
35 gspca_dbg(gspca_dev, D_FRAM, "autogain: lum: %d, desired: %d, steps: %d\n",
36 avg_lum, desired_avg_lum, steps);
38 for (i = 0; i < steps; i++) {
103 int steps, retval = 0; local
116 /* If we are of a multiple of deadzone, do multiple steps to reach the
118 steps = (desired_avg_lum - avg_lum) / deadzone;
120 gspca_dbg(gspca_dev, D_FRAM, "autogain: lum: %d, desired: %d, steps
[all...]
/linux-master/arch/arm/kernel/
H A Dhead.S414 ARM_BE8(eor r5, r4, r5) @ it can be done in 3 steps
/linux-master/arch/powerpc/platforms/powermac/
H A Dlow_i2c.c489 u32 steps; local
515 steps = psteps ? (*psteps) : 0x10;
516 for (host->bsteps = 0; (steps & 0x01) == 0; host->bsteps++)
517 steps >>= 1;
/linux-master/block/
H A Dsed-opal.c534 const struct opal_step *steps, size_t n_steps)
545 error = execute_step(dev, &steps[state], state);
554 * For each OPAL command the first step in steps starts some sort of
2597 const struct opal_step steps[] = { local
2608 ret = execute_steps(dev, steps, ARRAY_SIZE(steps));
2740 const struct opal_step steps[] = { local
2772 ret = execute_steps(dev, steps, ARRAY_SIZE(steps));
533 execute_steps(struct opal_dev *dev, const struct opal_step *steps, size_t n_steps) argument
/linux-master/drivers/block/drbd/
H A Ddrbd_worker.c504 int steps; /* Number of time steps to plan ahead */ local
512 steps = plan->size; /* (dc->c_plan_ahead * 10 * SLEEP_TIME) / HZ; */
515 want = ((dc->resync_rate * 2 * SLEEP_TIME) / HZ) * steps;
524 cps = correction / steps;
526 plan->total += cps * steps;
543 steps, cps, device->rs_planed, curr_corr, req_sect);
/linux-master/drivers/comedi/drivers/
H A Dusbduxfast.c115 * min delay steps for more than one channel
118 * steps at 30MHz in the FX2
123 * max number of 1/30MHz delay steps
355 unsigned int steps; local
397 * for 1 channel the timing in 30MHz "steps" is:
398 * steps <= MAX_SAMPLING_PERIOD
400 * MIN_SAMPLING_PERIOD <= steps <= MAX_SAMPLING_PERIOD
402 steps = (cmd->convert_arg * 30) / 1000;
404 err2 |= comedi_check_trigger_arg_min(&steps,
407 err2 |= comedi_check_trigger_arg_min(&steps,
471 long steps, steps_tmp; local
[all...]
/linux-master/drivers/crypto/hisilicon/sec/
H A Dsec_algs.c549 int *steps, gfp_t gfp)
555 *steps = roundup(length, SEC_REQ_LIMIT) / SEC_REQ_LIMIT;
556 sizes = kcalloc(*steps, sizeof(*sizes), gfp);
560 for (i = 0; i < *steps - 1; i++)
562 sizes[*steps - 1] = length - SEC_REQ_LIMIT * (*steps - 1);
569 int steps, struct scatterlist ***splits,
580 *splits = kcalloc(steps, sizeof(struct scatterlist *), gfp);
585 *splits_nents = kcalloc(steps, sizeof(int), gfp);
592 ret = sg_split(sgl, count, 0, steps, split_size
548 sec_alg_alloc_and_calc_split_sizes(int length, size_t **split_sizes, int *steps, gfp_t gfp) argument
568 sec_map_and_split_sg(struct scatterlist *sgl, size_t *split_sizes, int steps, struct scatterlist ***splits, int **splits_nents, int sgl_len_in, struct device *dev, gfp_t gfp) argument
615 sec_unmap_sg_on_err(struct scatterlist *sgl, int steps, struct scatterlist **splits, int *splits_nents, int sgl_len_in, struct device *dev) argument
716 int i, ret, steps; local
[all...]
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_pch_refclk.c334 #define BEND_IDX(steps) ((50 + (steps)) / 5)
362 * steps -50 to 50 inclusive, in steps of 5
364 * change in clock period = -(steps / 10) * 5.787 ps
366 static void lpt_bend_clkout_dp(struct drm_i915_private *dev_priv, int steps) argument
369 int idx = BEND_IDX(steps);
371 if (drm_WARN_ON(&dev_priv->drm, steps % 5 != 0))
379 if (steps % 10 != 0)
/linux-master/drivers/gpu/drm/radeon/
H A Drv770_dpm.c1237 u32 steps = 0; local
1245 steps = (max - min) / step + 1;
1247 if (steps > MAX_NO_VREG_STEPS)
1250 for (i = 0; i < steps; i++) {
1271 pi->valid_vddc_entries = (u8)steps;
/linux-master/drivers/iio/accel/
H A Dmma8452.c893 int ret, reg, steps; local
912 steps = (val * USEC_PER_SEC + val2) /
916 if (steps < 0 || steps > 0xff)
919 return mma8452_change_config(data, ev_regs->ev_count, steps);
1181 * Threshold is configured in fixed 8G/127 steps regardless of
/linux-master/drivers/iio/adc/
H A Dti_am335x_adc.c110 int i, steps = 0; local
113 * There are 16 configurable steps and 8 analog input
135 tiadc_writel(adc_dev, REG_STEPCONFIG(steps),
140 tiadc_writel(adc_dev, REG_STEPDELAY(steps),
144 adc_dev->channel_step[i] = steps;
145 steps++;
/linux-master/drivers/input/keyboard/
H A Dlm8323.c99 * Take t clock scales (up to 63) per step, for n steps (up to 126).
444 int div512, perstep, steps, hz, up, kill; local
461 steps = abs(pwm->desired_brightness - pwm->brightness);
467 if ((pwm->fade_time / steps) > (32768 / 512)) {
475 perstep = (hz * pwm->fade_time) / (steps * 1000);
482 while (steps) {
485 s = min(126, steps);
487 steps -= s;
/linux-master/drivers/input/misc/
H A Drotary_encoder.c38 u32 steps; member in struct:rotary_encoder
85 pos += encoder->steps;
90 if (encoder->rollover || pos < encoder->steps)
95 pos %= encoder->steps;
201 device_property_read_u32(dev, "rotary-encoder,steps", &encoder->steps);
203 err = device_property_read_u32(dev, "rotary-encoder,steps-per-period",
208 * use 'steps-per-period' and set an appropriate value, but
259 encoder->axis, 0, encoder->steps, 0, 1);
274 dev_err(dev, "'%d' is not a valid steps
[all...]
/linux-master/drivers/input/touchscreen/
H A Dti_am335x_tsc.c209 /* The steps end ... end - readouts * 2 + 2 and bit 0 for TS_Charge */
496 u32 steps; local
502 /* total steps followed by the enable mask */
503 steps = 2 * ts_dev->coordinate_readouts + 2;
504 steps = (1 << steps) - 1;
505 am335x_tsc_se_clr(ts_dev->mfd_tscadc, steps);
/linux-master/drivers/media/i2c/
H A Dov08x40.c1731 u64 steps; local
1764 steps = mode->exposure_shift == 1 ? 4 : 1;
1769 steps,
/linux-master/drivers/media/i2c/s5c73m3/
H A Ds5c73m3-core.c462 unsigned int delay, unsigned int steps)
466 while (steps-- > 0) {
461 s5c73m3_system_status_wait(struct s5c73m3 *state, u32 value, unsigned int delay, unsigned int steps) argument
/linux-master/drivers/mtd/nand/
H A Decc-mxic.c104 int steps; member in struct:mxic_ecc_ctx
140 if (section < 0 || section >= ctx->steps)
155 if (section < 0 || section >= ctx->steps)
226 int step_size = 0, strength = 0, desired_correction = 0, steps, idx; local
261 steps = mtd->writesize / step_size;
262 desired_correction = steps * strength;
267 steps = mtd->writesize / conf->step_size;
269 ctx->status = devm_kzalloc(dev, steps * sizeof(u8), GFP_KERNEL);
274 strength = desired_correction / steps;
289 if (spare_size[idx] * steps <
[all...]
/linux-master/drivers/mtd/nand/raw/
H A Darasan-nand-controller.c130 * @steps: Number of "packets" to read/write
142 int steps; member in struct:anfc_op
281 static int anfc_pkt_len_config(unsigned int len, unsigned int *steps, argument
295 if (steps)
296 *steps = nb;
405 PKT_STEPS(chip->ecc.steps),
452 for (step = 0; step < chip->ecc.steps; step++) {
523 PKT_STEPS(chip->ecc.steps),
649 ret = anfc_pkt_len_config(nfc_op->len, &nfc_op->steps,
669 PKT_STEPS(nfc_op->steps);
[all...]

Completed in 318 milliseconds

123