Home
last modified time | relevance | path

Searched refs:steps (Results 1 – 25 of 248) sorted by relevance

12345678910

/Linux-v4.19/drivers/media/usb/gspca/
Dautogain_functions.c32 int i, steps, retval = 0; in gspca_expo_autogain() local
42 steps = abs(desired_avg_lum - avg_lum) / deadzone; in gspca_expo_autogain()
45 avg_lum, desired_avg_lum, steps); in gspca_expo_autogain()
47 for (i = 0; i < steps; i++) { in gspca_expo_autogain()
112 int steps, retval = 0; in gspca_coarse_grained_expo_autogain() local
127 steps = (desired_avg_lum - avg_lum) / deadzone; in gspca_coarse_grained_expo_autogain()
130 avg_lum, desired_avg_lum, steps); in gspca_coarse_grained_expo_autogain()
132 if ((gain + steps) > gain_high && in gspca_coarse_grained_expo_autogain()
137 } else if ((gain + steps) < gain_low && in gspca_coarse_grained_expo_autogain()
143 gain += steps; in gspca_coarse_grained_expo_autogain()
/Linux-v4.19/Documentation/devicetree/bindings/input/
Drotary-encoder.txt9 - rotary-encoder,steps: Number of steps in a full turnaround of the
14 device, hence no steps need to be passed.
16 greater than the specified steps or smaller than 0. For absolute axis only.
17 - rotary-encoder,steps-per-period: Number of steps (stable states) per period.
23 - rotary-encoder,encoding: String, the method used to encode steps.
28 This property is deprecated. Instead, a 'steps-per-period ' value should
29 be used, such as "rotary-encoder,steps-per-period = <2>".
47 rotary-encoder,steps = <24>;
/Linux-v4.19/drivers/staging/comedi/drivers/
Dusbduxfast.c353 unsigned int steps; in usbduxfast_ai_cmdtest() local
400 steps = (cmd->convert_arg * 30) / 1000; in usbduxfast_ai_cmdtest()
402 err |= comedi_check_trigger_arg_min(&steps, in usbduxfast_ai_cmdtest()
404 err |= comedi_check_trigger_arg_max(&steps, MAX_SAMPLING_PERIOD); in usbduxfast_ai_cmdtest()
405 arg = (steps * 1000) / 30; in usbduxfast_ai_cmdtest()
464 long steps, steps_tmp; in usbduxfast_ai_cmd() local
478 steps = (cmd->convert_arg * 30) / 1000; in usbduxfast_ai_cmd()
506 if (steps < MIN_SAMPLING_PERIOD) { in usbduxfast_ai_cmd()
508 if (steps <= 1) { in usbduxfast_ai_cmd()
527 usbduxfast_cmd_data(dev, 1, steps - 1, in usbduxfast_ai_cmd()
[all …]
/Linux-v4.19/drivers/crypto/hisilicon/sec/
Dsec_algs.c561 int *steps) in sec_alg_alloc_and_calc_split_sizes() argument
567 *steps = roundup(length, SEC_REQ_LIMIT) / SEC_REQ_LIMIT; in sec_alg_alloc_and_calc_split_sizes()
568 sizes = kcalloc(*steps, sizeof(*sizes), GFP_KERNEL); in sec_alg_alloc_and_calc_split_sizes()
572 for (i = 0; i < *steps - 1; i++) in sec_alg_alloc_and_calc_split_sizes()
574 sizes[*steps - 1] = length - SEC_REQ_LIMIT * (*steps - 1); in sec_alg_alloc_and_calc_split_sizes()
581 int steps, struct scatterlist ***splits, in sec_map_and_split_sg() argument
592 *splits = kcalloc(steps, sizeof(struct scatterlist *), GFP_KERNEL); in sec_map_and_split_sg()
597 *splits_nents = kcalloc(steps, sizeof(int), GFP_KERNEL); in sec_map_and_split_sg()
604 ret = sg_split(sgl, count, 0, steps, split_sizes, in sec_map_and_split_sg()
627 static void sec_unmap_sg_on_err(struct scatterlist *sgl, int steps, in sec_unmap_sg_on_err() argument
[all …]
/Linux-v4.19/drivers/mtd/nand/raw/
Dqcom_nandc.c1402 num_cw = command == NAND_CMD_PAGEPROG ? ecc->steps : 1; in parse_erase_write_errors()
1484 update_rw_regs(host, ecc->steps, true); in qcom_nandc_command()
1609 data_size1 = mtd->writesize - host->cw_size * (ecc->steps - 1); in qcom_nandc_read_cw_raw()
1612 if (cw == (ecc->steps - 1)) { in qcom_nandc_read_cw_raw()
1614 ((ecc->steps - 1) * 4); in qcom_nandc_read_cw_raw()
1615 oob_size2 = (ecc->steps * 4) + host->ecc_bytes_hw + in qcom_nandc_read_cw_raw()
1694 for_each_set_bit(cw, &uncorrectable_cws, ecc->steps) { in check_for_erased_page()
1695 if (cw == (ecc->steps - 1)) { in check_for_erased_page()
1696 data_size = ecc->size - ((ecc->steps - 1) * 4); in check_for_erased_page()
1697 oob_size = (ecc->steps * 4) + host->ecc_bytes_hw; in check_for_erased_page()
[all …]
Dlpc32xx_slc.c542 for (i = 0; i < chip->ecc.steps; i++) { in lpc32xx_xfer()
546 mtd->writesize / chip->ecc.steps, dir); in lpc32xx_xfer()
551 if (i == chip->ecc.steps - 1) in lpc32xx_xfer()
583 host->ecc_buf[chip->ecc.steps - 1] = in lpc32xx_xfer()
626 status = lpc32xx_xfer(mtd, buf, chip->ecc.steps, 1); in lpc32xx_nand_read_page_syndrome()
632 lpc32xx_slc_ecc_copy(tmpecc, (uint32_t *) host->ecc_buf, chip->ecc.steps); in lpc32xx_nand_read_page_syndrome()
641 for (i = 0; i < chip->ecc.steps; i++) { in lpc32xx_nand_read_page_syndrome()
669 chip->read_buf(mtd, buf, chip->ecc.size * chip->ecc.steps); in lpc32xx_nand_read_page_raw_syndrome()
692 error = lpc32xx_xfer(mtd, (uint8_t *)buf, chip->ecc.steps, 0); in lpc32xx_nand_write_page_syndrome()
705 lpc32xx_slc_ecc_copy(pb, (uint32_t *)host->ecc_buf, chip->ecc.steps); in lpc32xx_nand_write_page_syndrome()
[all …]
Dnand_base.c3033 int steps, size, ret; in nand_read_page_raw_syndrome() local
3039 for (steps = chip->ecc.steps; steps > 0; steps--) { in nand_read_page_raw_syndrome()
3094 int eccsteps = chip->ecc.steps; in nand_read_page_swecc()
3110 eccsteps = chip->ecc.steps; in nand_read_page_swecc()
3254 int eccsteps = chip->ecc.steps; in nand_read_page_hwecc()
3283 eccsteps = chip->ecc.steps; in nand_read_page_hwecc()
3328 int eccsteps = chip->ecc.steps; in nand_read_page_hwecc_oob_first()
3395 int eccsteps = chip->ecc.steps; in nand_read_page_syndrome()
3741 for (i = 0; i < chip->ecc.steps; i++) { in nand_read_oob_syndrome()
3802 int ret, i, len, pos, sndcmd = 0, steps = chip->ecc.steps; in nand_write_oob_syndrome() local
[all …]
Dfsmc_nand.c172 if (section >= chip->ecc.steps) in fsmc_ecc1_ooblayout_ecc()
186 if (section >= chip->ecc.steps) in fsmc_ecc1_ooblayout_free()
191 if (section < chip->ecc.steps - 1) in fsmc_ecc1_ooblayout_free()
215 if (section >= chip->ecc.steps) in fsmc_ecc4_ooblayout_ecc()
233 if (section >= chip->ecc.steps) in fsmc_ecc4_ooblayout_free()
238 if (section < chip->ecc.steps - 1) in fsmc_ecc4_ooblayout_free()
727 int eccsteps = chip->ecc.steps; in fsmc_read_page_hwecc()
Dtango_nand.c110 #define XFER_CFG(cs, page_count, steps, metadata_size) \ argument
111 ((cs) << 24 | (page_count) << 16 | (steps) << 8 | (metadata_size))
189 for (i = 0; i < chip->ecc.steps; ++i) { in check_erased_page()
464 if (idx >= ecc->steps) in oob_ecc()
595 tchip->xfer_cfg = XFER_CFG(cs, 1, ecc->steps, METADATA_SIZE); in chip_init()
/Linux-v4.19/drivers/input/misc/
Drotary_encoder.c41 u32 steps; member
88 pos += encoder->steps; in rotary_encoder_report_event()
93 if (encoder->rollover || pos < encoder->steps) in rotary_encoder_report_event()
98 pos %= encoder->steps; in rotary_encoder_report_event()
204 device_property_read_u32(dev, "rotary-encoder,steps", &encoder->steps); in rotary_encoder_probe()
265 encoder->axis, 0, encoder->steps, 0, 1); in rotary_encoder_probe()
/Linux-v4.19/Documentation/devicetree/bindings/leds/backlight/
Dpwm-backlight.txt25 - num-interpolated-steps: Number of interpolated steps between each value
49 Example using num-interpolation-steps:
56 num-interpolated-steps = <2048>;
/Linux-v4.19/drivers/cpufreq/
Dloongson1-cpufreq.c83 int steps, i, ret; in ls1x_cpufreq_init() local
87 steps = 1 << DIV_CPU_WIDTH; in ls1x_cpufreq_init()
88 freq_tbl = kcalloc(steps, sizeof(*freq_tbl), GFP_KERNEL); in ls1x_cpufreq_init()
92 for (i = 0; i < (steps - 1); i++) { in ls1x_cpufreq_init()
/Linux-v4.19/Documentation/media/uapi/v4l/
Dcommon.rst8 Programming a V4L2 device consists of these steps:
23 In practice most steps are optional and can be executed out of order. It
Dv4l2-selection-flags.rst41 steps. If this flag is not given, the configuration is propagated
42 inside the subdevice to all further processing steps.
/Linux-v4.19/arch/arm/boot/dts/
Dexynos5422-odroidhc1.dts54 * by 2 steps. On Exynos5422/5800 that would
67 * further, down to 600 MHz (12 steps for big,
68 * 7 steps for LITTLE).
/Linux-v4.19/Documentation/ABI/testing/
Dsysfs-class-fpga-manager19 states. The fpga manager driver is walking through these steps
21 though some steps may get skipped. Valid FPGA states will vary
35 * write complete = Doing post programming steps
/Linux-v4.19/drivers/input/keyboard/
Dlm8323.c456 int div512, perstep, steps, hz, up, kill; in lm8323_pwm_work() local
473 steps = abs(pwm->desired_brightness - pwm->brightness); in lm8323_pwm_work()
479 if ((pwm->fade_time / steps) > (32768 / 512)) { in lm8323_pwm_work()
487 perstep = (hz * pwm->fade_time) / (steps * 1000); in lm8323_pwm_work()
494 while (steps) { in lm8323_pwm_work()
497 s = min(126, steps); in lm8323_pwm_work()
499 steps -= s; in lm8323_pwm_work()
/Linux-v4.19/drivers/media/dvb-frontends/
Dsp887x.c442 int steps = (sync0x200 >> 4) & 0x00f; in sp887x_read_status() local
443 if (steps & 0x008) in sp887x_read_status()
444 steps = -steps; in sp887x_read_status()
446 steps); in sp887x_read_status()
Dstv090x.c1600 s32 i, j, steps, dir; in stv090x_get_agc2_min_level() local
1623 steps = state->search_range / 1000000; in stv090x_get_agc2_min_level()
1624 if (steps <= 0) in stv090x_get_agc2_min_level()
1625 steps = 1; in stv090x_get_agc2_min_level()
1631 for (i = 0; i < steps; i++) { in stv090x_get_agc2_min_level()
1695 s32 tmg_cpt = 0, dir = 1, steps, cur_step = 0, freq; in stv090x_srate_srch_coarse() local
1757 steps = -1 + ((state->search_range / 1000) / car_step); in stv090x_srate_srch_coarse()
1758 steps /= 2; in stv090x_srate_srch_coarse()
1759 steps = (2 * steps) + 1; in stv090x_srate_srch_coarse()
1760 if (steps < 0) in stv090x_srate_srch_coarse()
[all …]
/Linux-v4.19/drivers/input/touchscreen/
Dti_am335x_tsc.c480 u32 steps; in titsc_remove() local
485 steps = 2 * ts_dev->coordinate_readouts + 2; in titsc_remove()
486 steps = (1 << steps) - 1; in titsc_remove()
487 am335x_tsc_se_clr(ts_dev->mfd_tscadc, steps); in titsc_remove()
/Linux-v4.19/drivers/staging/pi433/Documentation/
Dpi433.txt187 step_0_5db - increase in 0,5dB steps
188 step_1_0db - increase in 1 db steps
189 step_1_5db - increase in 1,5dB steps
190 step_2_0db - increase in 2 db steps
191 step_3_0db - increase in 3 db steps
192 step_4_0db - increase in 4 db steps
193 step_5_0db - increase in 5 db steps
194 step_6_0db - increase in 6 db steps
/Linux-v4.19/drivers/iio/dummy/
Diio_simple_dummy.c322 *val = st->steps; in iio_dummy_read_raw()
454 st->steps = val; in iio_dummy_write_raw()
550 st->steps = 47; in iio_dummy_init_device()
/Linux-v4.19/Documentation/devicetree/bindings/regulator/
Dltc3589.txt21 0.3625 V to 0.75 V in 12.5 mV steps. The output voltage thus ranges between
26 and 3.2 V on LTC3589-1,2 in four steps. The ldo1 standby regulator can not
/Linux-v4.19/drivers/iio/adc/
Dti_am335x_adc.c110 int i, steps = 0; in tiadc_step_config() local
144 tiadc_writel(adc_dev, REG_STEPCONFIG(steps), in tiadc_step_config()
159 tiadc_writel(adc_dev, REG_STEPDELAY(steps), in tiadc_step_config()
163 adc_dev->channel_step[i] = steps; in tiadc_step_config()
164 steps++; in tiadc_step_config()
/Linux-v4.19/tools/bpf/
Dbpf_dbg.c1096 int steps, ret; in cmd_step() local
1101 steps = strtol(num, NULL, 10); in cmd_step()
1102 if (steps == 0 || strlen(num) == 0) in cmd_step()
1103 steps = 1; in cmd_step()
1104 if (steps < 0) { in cmd_step()
1105 if (!bpf_restore_regs(steps)) in cmd_step()
1107 steps = 1; in cmd_step()
1113 hdr->caplen, hdr->len, steps); in cmd_step()

12345678910