Home
last modified time | relevance | path

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

1234567891011

/linux/drivers/media/usb/gspca/
H A Dautogain_functions.c23 int i, steps, retval = 0; in gspca_expo_autogain() local
33 steps = abs(desired_avg_lum - avg_lum) / deadzone; in gspca_expo_autogain()
36 avg_lum, desired_avg_lum, steps); in gspca_expo_autogain()
38 for (i = 0; i < steps; i++) { in gspca_expo_autogain()
103 int steps, retval = 0; in gspca_coarse_grained_expo_autogain() local
118 steps = (desired_avg_lum - avg_lum) / deadzone; in gspca_coarse_grained_expo_autogain()
121 avg_lum, desired_avg_lum, steps); in gspca_coarse_grained_expo_autogain()
123 if ((gain + steps) > gain_high && in gspca_coarse_grained_expo_autogain()
128 } else if ((gain + steps) < gain_low && in gspca_coarse_grained_expo_autogain()
134 gain += steps; in gspca_coarse_grained_expo_autogain()
/linux/drivers/comedi/drivers/
H A Dusbduxfast.c355 unsigned int steps; in usbduxfast_ai_cmdtest() local
402 steps = (cmd->convert_arg * 30) / 1000; in usbduxfast_ai_cmdtest()
404 err2 |= comedi_check_trigger_arg_min(&steps, in usbduxfast_ai_cmdtest()
407 err2 |= comedi_check_trigger_arg_min(&steps, 1); in usbduxfast_ai_cmdtest()
408 err2 |= comedi_check_trigger_arg_max(&steps, MAX_SAMPLING_PERIOD); in usbduxfast_ai_cmdtest()
411 arg = (steps * 1000) / 30; in usbduxfast_ai_cmdtest()
471 long steps, steps_tmp; in usbduxfast_ai_cmd() local
485 steps = (cmd->convert_arg * 30) / 1000; in usbduxfast_ai_cmd()
513 if (steps < MIN_SAMPLING_PERIOD) { in usbduxfast_ai_cmd()
515 if (steps <= 1) { in usbduxfast_ai_cmd()
[all …]
/linux/tools/testing/selftests/tc-testing/
H A DTdcResults.py18 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/Documentation/ABI/testing/
H A Dsysfs-bus-iio-frequency-admv10145 Read/write value for the digital attenuator gain (IF_I) with coarse steps.
11 Read/write value for the digital attenuator gain (IF_Q) with coarse steps.
17 Read/write value for the digital attenuator gain (IF_I) with fine steps.
23 Read/write value for the digital attenuator gain (IF_Q) with fine steps.
H A 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
34 * write complete = Doing post programming steps
/linux/drivers/rtc/
H A Drtc-rs5c372.c591 long steps = LONG_MIN; in rs5c372_set_offset() local
608 steps = DIV_ROUND_CLOSEST(offset, 1017); in rs5c372_set_offset()
609 if (steps >= -0x3E && steps <= 0x3E) { in rs5c372_set_offset()
619 steps = LONG_MIN; in rs5c372_set_offset()
626 if (steps == LONG_MIN) { in rs5c372_set_offset()
627 steps = DIV_ROUND_CLOSEST(offset, ppb_per_step); in rs5c372_set_offset()
628 if (steps > 0x3E || steps < -0x3E) in rs5c372_set_offset()
632 if (steps > 0) { in rs5c372_set_offset()
633 val |= steps + 1; in rs5c372_set_offset()
636 val |= (~(-steps - 1)) & 0x3F; in rs5c372_set_offset()
[all …]
H A Drtc-rzn1.c336 int stepsh, stepsl, steps; in rzn1_rtc_set_offset() local
352 steps = stepsh; in rzn1_rtc_set_offset()
356 steps = stepsl; in rzn1_rtc_set_offset()
361 if (!steps) in rzn1_rtc_set_offset()
364 if (steps > 0) { in rzn1_rtc_set_offset()
365 subu |= steps + 1; in rzn1_rtc_set_offset()
368 subu |= (~(-steps - 1)) & RZN1_RTC_SUBU_RTCA0FX; in rzn1_rtc_set_offset()
/linux/drivers/input/misc/
H A Drotary_encoder.c38 u32 steps; member
85 pos += encoder->steps; in rotary_encoder_report_event()
90 if (encoder->rollover || pos < encoder->steps) in rotary_encoder_report_event()
95 pos %= encoder->steps; in rotary_encoder_report_event()
194 device_property_read_u32(dev, "rotary-encoder,steps", &encoder->steps); in rotary_encoder_probe()
252 encoder->axis, 0, encoder->steps, 0, 1); in rotary_encoder_probe()
/linux/drivers/mtd/nand/raw/
H A Dlpc32xx_slc.c537 for (i = 0; i < chip->ecc.steps; i++) { in lpc32xx_xfer()
541 mtd->writesize / chip->ecc.steps, dir); in lpc32xx_xfer()
546 if (i == chip->ecc.steps - 1) in lpc32xx_xfer()
578 host->ecc_buf[chip->ecc.steps - 1] = in lpc32xx_xfer()
621 status = lpc32xx_xfer(mtd, buf, chip->ecc.steps, 1); in lpc32xx_nand_read_page_syndrome()
627 lpc32xx_slc_ecc_copy(tmpecc, (uint32_t *) host->ecc_buf, chip->ecc.steps); in lpc32xx_nand_read_page_syndrome()
636 for (i = 0; i < chip->ecc.steps; i++) { in lpc32xx_nand_read_page_syndrome()
665 chip->legacy.read_buf(chip, buf, chip->ecc.size * chip->ecc.steps); in lpc32xx_nand_read_page_raw_syndrome()
688 error = lpc32xx_xfer(mtd, (uint8_t *)buf, chip->ecc.steps, 0); in lpc32xx_nand_write_page_syndrome()
701 lpc32xx_slc_ecc_copy(pb, (uint32_t *)host->ecc_buf, chip->ecc.steps); in lpc32xx_nand_write_page_syndrome()
[all …]
H A Darasan-nand-controller.c142 int steps; member
281 static int anfc_pkt_len_config(unsigned int len, unsigned int *steps, in anfc_pkt_len_config() argument
295 if (steps) in anfc_pkt_len_config()
296 *steps = nb; in anfc_pkt_len_config()
405 PKT_STEPS(chip->ecc.steps), in anfc_read_page_hw_ecc()
452 for (step = 0; step < chip->ecc.steps; step++) { in anfc_read_page_hw_ecc()
523 PKT_STEPS(chip->ecc.steps), in anfc_write_page_hw_ecc()
649 ret = anfc_pkt_len_config(nfc_op->len, &nfc_op->steps, in anfc_parse_instructions()
669 PKT_STEPS(nfc_op->steps); in anfc_parse_instructions()
682 unsigned int dwords = (nfc_op->len / 4) / nfc_op->steps; in anfc_rw_pio_op()
[all …]
H A Dmeson_nand.c421 for (i = 0; i < nand->ecc.steps; i++) { in meson_nfc_get_data_oob()
440 for (i = 0; i < nand->ecc.steps; i++) { in meson_nfc_set_data_oob()
540 for (i = 0, count = 0; i < nand->ecc.steps; i++, count += (2 + nand->ecc.bytes)) { in meson_nfc_set_user_byte()
553 for (i = 0, count = 0; i < nand->ecc.steps; i++, count += (2 + nand->ecc.bytes)) { in meson_nfc_get_user_byte()
568 for (i = 0; i < nand->ecc.steps; i++) { in meson_nfc_ecc_correct()
760 info_len = nand->ecc.steps * PER_INFO_BYTE; in meson_nfc_write_page_sub()
801 memset(meson_chip->info_buf, 0, nand->ecc.steps * PER_INFO_BYTE); in meson_nfc_write_page_hwecc()
815 neccpages = raw ? 1 : nand->ecc.steps; in meson_nfc_check_ecc_pages_valid()
839 info_len = nand->ecc.steps * PER_INFO_BYTE; in meson_nfc_read_page_sub()
906 for (i = 0; i < nand->ecc.steps ; i++) { in meson_nfc_read_page_hwecc()
[all …]
H A Dnuvoton-ma35d1-nand-controller.c254 chip->ecc.steps = mtd->writesize / chip->ecc.size; in ma35_nand_hwecc_init()
255 nvtnand->eccstatus = (chip->ecc.steps < 4) ? 1 : chip->ecc.steps / 4; in ma35_nand_hwecc_init()
260 chip->ecc.total = chip->ecc.steps * MA35_PARITY_BCH8; in ma35_nand_hwecc_init()
264 chip->ecc.total = chip->ecc.steps * MA35_PARITY_BCH12; in ma35_nand_hwecc_init()
268 chip->ecc.total = chip->ecc.steps * MA35_PARITY_BCH24; in ma35_nand_hwecc_init()
276 chip->ecc.bytes = chip->ecc.total / chip->ecc.steps; in ma35_nand_hwecc_init()
376 (parity_len * chip->ecc.steps) + in ma35_nfi_correct()
576 for (i = 0; i < chip->ecc.steps; i++) { in ma35_nand_write_subpage_hwecc()
/linux/sound/soc/meson/
H A Daxg-pdm.c71 unsigned int steps; member
77 unsigned int steps; member
302 val = PDM_HCIC_CTRL1_STAGE_NUM(hcic->steps); in axg_pdm_set_hcic_ctrl()
339 val |= PDM_HPF_SFT_STEPS(hpf->steps); in axg_pdm_set_hpf_ctrl()
544 .steps = 7,
549 .steps = 13,
/linux/Documentation/networking/device_drivers/ethernet/amd/
H A Dpds_vfio_pci.rst20 The pds-vfio-pci device is enabled via multiple configuration steps and
24 Shown below are the steps to bind the driver to a VF and also to the
50 After performing the steps above, a file in /dev/vfio/<iommu_group>
H A Dpds_vdpa.rst24 The ``pds_vdpa`` device is enabled via multiple configuration steps and
29 Example steps:
/linux/drivers/input/keyboard/
H A Dlm8323.c443 int div512, perstep, steps, hz, up, kill; in lm8323_pwm_work() local
460 steps = abs(pwm->desired_brightness - pwm->brightness); in lm8323_pwm_work()
466 if ((pwm->fade_time / steps) > (32768 / 512)) { in lm8323_pwm_work()
474 perstep = (hz * pwm->fade_time) / (steps * 1000); in lm8323_pwm_work()
481 while (steps) { in lm8323_pwm_work()
484 s = min(126, steps); in lm8323_pwm_work()
486 steps -= s; in lm8323_pwm_work()
/linux/drivers/media/dvb-frontends/
H A Dsp887x.c441 int steps = (sync0x200 >> 4) & 0x00f; in sp887x_read_status() local
442 if (steps & 0x008) in sp887x_read_status()
443 steps = -steps; in sp887x_read_status()
445 steps); in sp887x_read_status()
/linux/arch/arm/boot/dts/samsung/
H A Dexynos5422-odroidhc1.dts56 * by 2 steps. On Exynos5422/5800 that would
72 * further, down to 600 MHz (12 steps for big,
73 * 7 steps for LITTLE).
/linux/Documentation/userspace-api/media/v4l/
H A Dv4l2-selection-flags.rst48 steps. If this flag is not given, the configuration is propagated
49 inside the subdevice to all further processing steps.
H A Dcommon.rst9 Programming a V4L2 device consists of these steps:
24 In practice most steps are optional and can be executed out of order. It
/linux/drivers/input/touchscreen/
H A Dti_am335x_tsc.c500 u32 steps; in titsc_remove() local
507 steps = 2 * ts_dev->coordinate_readouts + 2; in titsc_remove()
508 steps = (1 << steps) - 1; in titsc_remove()
509 am335x_tsc_se_clr(ts_dev->mfd_tscadc, steps); in titsc_remove()
/linux/Documentation/process/
H A Dconclave.rst38 the next steps will be.
40 The Linux Foundation, as guided by the TAB, will take the steps
/linux/drivers/staging/media/atomisp/
H A Dnotes.txt27 Since getting a picture requires multiple processing steps,
29 on the ISP can do multiple processing steps in a single pipeline
/linux/drivers/iio/adc/
H A Dti_am335x_adc.c110 int i, steps = 0; in tiadc_step_config() local
135 tiadc_writel(adc_dev, REG_STEPCONFIG(steps), in tiadc_step_config()
140 tiadc_writel(adc_dev, REG_STEPDELAY(steps), in tiadc_step_config()
144 adc_dev->channel_step[i] = steps; in tiadc_step_config()
145 steps++; in tiadc_step_config()
/linux/tools/bpf/
H A 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()

1234567891011