/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/tools/testing/selftests/tc-testing/ |
H A D | TdcResults.py | 18 self.steps = [] 52 self.steps.extend(newstep) 54 self.steps.append(step) 59 return self.steps 101 if len(t.steps) > 0: 103 for step in t.steps: 119 if len(t.steps) > 0: 121 for step in t.steps:
|
/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/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/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/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/rtc/ |
H A D | rtc-rs5c372.c | 591 long steps = LONG_MIN; local 608 steps = DIV_ROUND_CLOSEST(offset, 1017); 609 if (steps >= -0x3E && steps <= 0x3E) { 619 steps = LONG_MIN; 626 if (steps == LONG_MIN) { 627 steps = DIV_ROUND_CLOSEST(offset, ppb_per_step); 628 if (steps > 0x3E || steps < -0x3E) 632 if (steps > [all...] |
H A D | rtc-rzn1.c | 273 int stepsh, stepsl, steps; local 289 steps = stepsh; 293 steps = stepsl; 298 if (!steps) 301 if (steps > 0) { 302 subu |= steps + 1; 305 subu |= (~(-steps - 1)) & 0x3F;
|
/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/mtd/nand/raw/ |
H A D | rockchip-nand-controller.c | 529 for (i = 0; i < ecc->steps; i++) { 571 rk_nfc_buf_to_oob_ptr(chip, ecc->steps - 1), 643 for (i = 0; i < ecc->steps; i++) { 645 oob = chip->oob_poi + (ecc->steps - 1) * NFC_SYS_DATA_SIZE; 660 ecc->steps * oob_step, 666 rk_nfc_xfer_start(nfc, NFC_WRITE, ecc->steps, dma_data, 681 dma_unmap_single(nfc->dev, dma_oob, ecc->steps * oob_step, 722 for (i = 0; i < ecc->steps; i++) { 731 memcpy(rk_nfc_buf_to_oob_ptr(chip, ecc->steps - 1), 776 ecc->steps * oob_ste [all...] |
H A D | lpc32xx_slc.c | 529 for (i = 0; i < chip->ecc.steps; i++) { 533 mtd->writesize / chip->ecc.steps, dir); 538 if (i == chip->ecc.steps - 1) 570 host->ecc_buf[chip->ecc.steps - 1] = 613 status = lpc32xx_xfer(mtd, buf, chip->ecc.steps, 1); 619 lpc32xx_slc_ecc_copy(tmpecc, (uint32_t *) host->ecc_buf, chip->ecc.steps); 628 for (i = 0; i < chip->ecc.steps; i++) { 657 chip->legacy.read_buf(chip, buf, chip->ecc.size * chip->ecc.steps); 680 error = lpc32xx_xfer(mtd, (uint8_t *)buf, chip->ecc.steps, 0); 693 lpc32xx_slc_ecc_copy(pb, (uint32_t *)host->ecc_buf, chip->ecc.steps); [all...] |
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...] |
H A D | qcom_nandc.c | 178 * the largest page size we support is 8K, this will have 16 steps/codewords 767 return cw == (ecc->steps - 1); 807 * @num_cw: number of steps for the read/write operation 1480 raw_cw = ecc->steps - 1; 1487 data_size1 = mtd->writesize - host->cw_size * (ecc->steps - 1); 1492 ((ecc->steps - 1) * 4); 1493 oob_size2 = (ecc->steps * 4) + host->ecc_bytes_hw + 1569 for_each_set_bit(cw, &uncorrectable_cws, ecc->steps) { 1571 data_size = ecc->size - ((ecc->steps - 1) * 4); 1572 oob_size = (ecc->steps * [all...] |
H A D | nand_toshiba.c | 40 NAND_OP_8BIT_DATA_IN(chip->ecc.steps, ecc_status, 0), 62 for (i = 0; i < chip->ecc.steps; i++) {
|
H A D | fsmc_nand.c | 172 if (section >= chip->ecc.steps) 186 if (section >= chip->ecc.steps) 191 if (section < chip->ecc.steps - 1) 215 if (section >= chip->ecc.steps) 233 if (section >= chip->ecc.steps) 238 if (section < chip->ecc.steps - 1) 711 int eccsteps = chip->ecc.steps;
|
H A D | meson_nand.c | 395 for (i = 0; i < nand->ecc.steps; i++) { 414 for (i = 0; i < nand->ecc.steps; i++) { 514 for (i = 0, count = 0; i < nand->ecc.steps; i++, count += (2 + nand->ecc.bytes)) { 527 for (i = 0, count = 0; i < nand->ecc.steps; i++, count += (2 + nand->ecc.bytes)) { 542 for (i = 0; i < nand->ecc.steps; i++) { 734 info_len = nand->ecc.steps * PER_INFO_BYTE; 782 memset(meson_chip->info_buf, 0, nand->ecc.steps * PER_INFO_BYTE); 796 neccpages = raw ? 1 : nand->ecc.steps; 820 info_len = nand->ecc.steps * PER_INFO_BYTE; 894 for (i = 0; i < nand->ecc.steps ; [all...] |
H A D | nand_base.c | 554 * This function performs the generic NAND bad block marking steps (i.e., bad 3012 int steps, size, ret; local 3018 for (steps = chip->ecc.steps; steps > 0; steps--) { 3073 int eccsteps = chip->ecc.steps; 3089 eccsteps = chip->ecc.steps; 3232 int eccsteps = chip->ecc.steps; 3262 eccsteps = chip->ecc.steps; 3839 int ret, i, len, pos, sndcmd = 0, steps = chip->ecc.steps; local 4123 int steps, size, ret; local [all...] |
/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/sound/soc/meson/ |
H A D | axg-pdm.c | 71 unsigned int steps; member in struct:axg_pdm_hcic 77 unsigned int steps; member in struct:axg_pdm_hpf 302 val = PDM_HCIC_CTRL1_STAGE_NUM(hcic->steps); 339 val |= PDM_HPF_SFT_STEPS(hpf->steps); 544 .steps = 7, 549 .steps = 13,
|
/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/media/dvb-frontends/ |
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);
|
/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/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/include/linux/crush/ |
H A D | crush.h | 40 * mapped to devices. A rule consists of sequence of steps to perform 90 struct crush_rule_step steps[]; member in struct:crush_rule
|