/linux-master/drivers/iio/dummy/ |
H A D | iio_simple_dummy.h | 40 int steps; member in struct:iio_dummy_state
|
H A D | iio_simple_dummy.c | 321 *val = st->steps; 445 st->steps = val; 540 st->steps = 47;
|
/linux-master/drivers/media/dvb-frontends/ |
H A D | stb0899_algo.c | 970 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 D | stv0900_sw.c | 56 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 D | dib0090.c | 1224 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 D | sp887x.c | 441 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 D | stv090x.c | 1588 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 D | autogain_functions.c | 23 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 D | head.S | 414 ARM_BE8(eor r5, r4, r5) @ it can be done in 3 steps
|
/linux-master/arch/powerpc/platforms/powermac/ |
H A D | low_i2c.c | 489 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 D | sed-opal.c | 534 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 D | drbd_worker.c | 504 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 D | usbduxfast.c | 115 * 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 D | sec_algs.c | 549 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 D | intel_pch_refclk.c | 334 #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 D | rv770_dpm.c | 1237 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 D | mma8452.c | 893 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 D | ti_am335x_adc.c | 110 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 D | lm8323.c | 99 * 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 D | rotary_encoder.c | 38 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 D | ti_am335x_tsc.c | 209 /* 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 D | ov08x40.c | 1731 u64 steps; local 1764 steps = mode->exposure_shift == 1 ? 4 : 1; 1769 steps,
|
/linux-master/drivers/media/i2c/s5c73m3/ |
H A D | s5c73m3-core.c | 462 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 D | ecc-mxic.c | 104 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 D | arasan-nand-controller.c | 130 * @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...] |