Home
last modified time | relevance | path

Searched full:steps (Results 1 – 25 of 932) sorted by relevance

12345678910>>...38

/linux/drivers/media/usb/gspca/
H A Dautogain_functions.c23 int i, steps, retval = 0; in gspca_expo_autogain() local
31 /* If we are of a multiple of deadzone, do multiple steps to reach the in gspca_expo_autogain()
33 steps = abs(desired_avg_lum - avg_lum) / deadzone; in gspca_expo_autogain()
35 gspca_dbg(gspca_dev, D_FRAM, "autogain: lum: %d, desired: %d, steps: %d\n", 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
116 /* If we are of a multiple of deadzone, do multiple steps to reach the in gspca_coarse_grained_expo_autogain()
118 steps = (desired_avg_lum - avg_lum) / deadzone; in gspca_coarse_grained_expo_autogain()
120 gspca_dbg(gspca_dev, D_FRAM, "autogain: lum: %d, desired: %d, steps: %d\n", in gspca_coarse_grained_expo_autogain()
[all …]
/linux/Documentation/devicetree/bindings/input/
H A Drotary-encoder.yaml28 rotary-encoder,steps:
32 Number of steps in a full turnaround of the
41 device, hence no steps need to be passed.
47 greater than the specified steps or smaller than 0. For absolute axis only.
49 rotary-encoder,steps-per-period:
54 Number of steps (stable states) per period.
64 description: the method used to encode steps.
72 This property is deprecated. Instead, a 'steps-per-period ' value should
73 be used, such as "rotary-encoder,steps-per-period = <2>".
/linux/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; in usbduxfast_ai_cmdtest() local
397 * for 1 channel the timing in 30MHz "steps" is: in usbduxfast_ai_cmdtest()
398 * steps <= MAX_SAMPLING_PERIOD in usbduxfast_ai_cmdtest()
400 * MIN_SAMPLING_PERIOD <= steps <= MAX_SAMPLING_PERIOD in usbduxfast_ai_cmdtest()
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()
[all …]
/linux/drivers/mtd/nand/
H A Decc-mxic.c104 int steps; member
140 if (section < 0 || section >= ctx->steps) in mxic_ecc_ooblayout_ecc()
155 if (section < 0 || section >= ctx->steps) in mxic_ecc_ooblayout_free()
226 int step_size = 0, strength = 0, desired_correction = 0, steps, idx; in mxic_ecc_init_ctx() local
261 steps = mtd->writesize / step_size; in mxic_ecc_init_ctx()
262 desired_correction = steps * strength; in mxic_ecc_init_ctx()
267 steps = mtd->writesize / conf->step_size; in mxic_ecc_init_ctx()
269 ctx->status = devm_kzalloc(dev, steps * sizeof(u8), GFP_KERNEL); in mxic_ecc_init_ctx()
274 strength = desired_correction / steps; in mxic_ecc_init_ctx()
289 if (spare_size[idx] * steps <= mtd->oobsize) in mxic_ecc_init_ctx()
[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/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()
196 err = device_property_read_u32(dev, "rotary-encoder,steps-per-period", in rotary_encoder_probe()
201 * use 'steps-per-period' and set an appropriate value, but in rotary_encoder_probe()
252 encoder->axis, 0, encoder->steps, 0, 1); in rotary_encoder_probe()
267 dev_err(dev, "'%d' is not a valid steps-per-period value\n", in rotary_encoder_probe()
/linux/Documentation/devicetree/bindings/leds/backlight/
H A Dpwm-backlight.yaml45 num-interpolated-steps:
47 Number of interpolated steps between each value of brightness-levels
54 num-interpolated-steps: [brightness-levels]
78 // Example using num-interpolation-steps:
84 num-interpolated-steps = <2048>;
H A Dmediatek,mt6370-backlight.yaml16 capability with 2048 current steps (11 bits, only for MT6370/MT6371) or
17 16384 current steps (14 bits, only for MT6372) in exponential or linear
49 mediatek,bled-pwm-hys-input-th-steps:
55 resolution needs more than 64 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/sound/soc/codecs/
H A Duda1380.c267 * from -48 dB in 1.5 dB steps (mute instead of -49.5 dB)
272 * from -78 dB in 1 dB steps (3 dB steps, really. LSB are ignored),
273 * from -66 dB in 0.5 dB steps (2 dB steps, really) and
274 * from -52 dB in 0.25 dB steps
283 * from -72 dB in 1.5 dB steps (6 dB steps really),
284 * from -66 dB in 0.75 dB steps (3 dB steps really),
285 * from -60 dB in 0.5 dB steps (2 dB steps really) and
286 * from -46 dB in 0.25 dB steps
295 /* from 0 to 6 dB in 2 dB steps if SPF mode != flat */
298 /* from 0 to 24 dB in 2 dB steps, if SPF mode == maximum, otherwise cuts
[all …]
/linux/drivers/memory/tegra/
H A Dtegra210-emc-cc-r21021.c21 #define STEPS (1 << 1) macro
445 emc_dbg(emc, STEPS, "Step 1\n"); in tegra210_emc_r21021_set_clock()
446 emc_dbg(emc, STEPS, "Step 1.1: Disable DLL temporarily.\n"); in tegra210_emc_r21021_set_clock()
458 emc_dbg(emc, STEPS, "Step 1.2: Disable AUTOCAL temporarily.\n"); in tegra210_emc_r21021_set_clock()
469 emc_dbg(emc, STEPS, "Step 1.3: Disable other power features.\n"); in tegra210_emc_r21021_set_clock()
568 emc_dbg(emc, STEPS, "Step 2\n"); in tegra210_emc_r21021_set_clock()
584 emc_dbg(emc, STEPS, "Step 3\n"); in tegra210_emc_r21021_set_clock()
604 emc_dbg(emc, STEPS, "Step 4\n"); in tegra210_emc_r21021_set_clock()
615 emc_dbg(emc, STEPS, "Step 5\n"); in tegra210_emc_r21021_set_clock()
632 emc_dbg(emc, STEPS, "Step 6\n"); in tegra210_emc_r21021_set_clock()
[all …]
/linux/drivers/crypto/hisilicon/sec/
H A Dsec_algs.c549 int *steps, gfp_t gfp) in sec_alg_alloc_and_calc_split_sizes() argument
555 *steps = roundup(length, SEC_REQ_LIMIT) / SEC_REQ_LIMIT; in sec_alg_alloc_and_calc_split_sizes()
556 sizes = kcalloc(*steps, sizeof(*sizes), gfp); in sec_alg_alloc_and_calc_split_sizes()
560 for (i = 0; i < *steps - 1; i++) in sec_alg_alloc_and_calc_split_sizes()
562 sizes[*steps - 1] = length - SEC_REQ_LIMIT * (*steps - 1); in sec_alg_alloc_and_calc_split_sizes()
569 int steps, struct scatterlist ***splits, in sec_map_and_split_sg() argument
580 *splits = kcalloc(steps, sizeof(struct scatterlist *), gfp); in sec_map_and_split_sg()
585 *splits_nents = kcalloc(steps, sizeof(int), gfp); in sec_map_and_split_sg()
592 ret = sg_split(sgl, count, 0, steps, split_sizes, in sec_map_and_split_sg()
615 static void sec_unmap_sg_on_err(struct scatterlist *sgl, int steps, in sec_unmap_sg_on_err() argument
[all …]
/linux/tools/testing/selftests/bpf/map_tests/
H A Dhtab_map_batch_ops.c139 /* test 4: lookup/delete in a loop with various steps. */ in __test_map_lookup_and_delete_batch()
160 * go with large steps. Not that a buffer size with in __test_map_lookup_and_delete_batch()
168 CHECK((err && errno != ENOENT), "lookup with steps", in __test_map_lookup_and_delete_batch()
179 CHECK(total != max_entries, "lookup with steps", in __test_map_lookup_and_delete_batch()
197 CHECK(total != max_entries, "delete with steps", in __test_map_lookup_and_delete_batch()
223 * go with large steps. Not that a buffer size with in __test_map_lookup_and_delete_batch()
231 CHECK((err && errno != ENOENT), "lookup with steps", in __test_map_lookup_and_delete_batch()
242 CHECK(total != max_entries, "lookup/delete with steps", in __test_map_lookup_and_delete_batch()
/linux/drivers/mtd/nand/raw/
H A Dqcom_nandc.c149 return cw == (ecc->steps - 1); in qcom_nandc_is_last_cw()
254 * @num_cw: number of steps for the read/write operation
489 raw_cw = ecc->steps - 1; in qcom_nandc_read_cw_raw()
496 data_size1 = mtd->writesize - host->cw_size * (ecc->steps - 1); in qcom_nandc_read_cw_raw()
501 ((ecc->steps - 1) * 4); in qcom_nandc_read_cw_raw()
502 oob_size2 = (ecc->steps * 4) + host->ecc_bytes_hw + in qcom_nandc_read_cw_raw()
578 for_each_set_bit(cw, &uncorrectable_cws, ecc->steps) { in check_for_erased_page()
580 data_size = ecc->size - ((ecc->steps - 1) * 4); in check_for_erased_page()
581 oob_size = (ecc->steps * 4) + host->ecc_bytes_hw; in check_for_erased_page()
635 for (i = 0; i < ecc->steps; i++, buf++) { in parse_read_errors()
[all …]
H A Drockchip-nand-controller.c529 for (i = 0; i < ecc->steps; i++) { in rk_nfc_write_page_raw()
571 rk_nfc_buf_to_oob_ptr(chip, ecc->steps - 1), in rk_nfc_write_page_raw()
643 for (i = 0; i < ecc->steps; i++) { in rk_nfc_write_page_hwecc()
645 oob = chip->oob_poi + (ecc->steps - 1) * NFC_SYS_DATA_SIZE; in rk_nfc_write_page_hwecc()
660 ecc->steps * oob_step, in rk_nfc_write_page_hwecc()
666 rk_nfc_xfer_start(nfc, NFC_WRITE, ecc->steps, dma_data, in rk_nfc_write_page_hwecc()
681 dma_unmap_single(nfc->dev, dma_oob, ecc->steps * oob_step, in rk_nfc_write_page_hwecc()
722 for (i = 0; i < ecc->steps; i++) { in rk_nfc_read_page_raw()
731 memcpy(rk_nfc_buf_to_oob_ptr(chip, ecc->steps - 1), in rk_nfc_read_page_raw()
776 ecc->steps * oob_step, in rk_nfc_read_page_hwecc()
[all …]
/linux/drivers/rtc/
H A Drtc-rzn1.c249 int stepsh, stepsl, steps; in rzn1_rtc_set_offset() local
265 steps = stepsh; in rzn1_rtc_set_offset()
269 steps = stepsl; in rzn1_rtc_set_offset()
274 if (!steps) in rzn1_rtc_set_offset()
277 if (steps > 0) { in rzn1_rtc_set_offset()
278 subu |= steps + 1; in rzn1_rtc_set_offset()
281 subu |= (~(-steps - 1)) & 0x3F; in rzn1_rtc_set_offset()
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 …]
/linux/tools/perf/pmu-events/arch/arm64/ampere/ampereonex/
H A Dmmu.json81 "PublicDescription": "Data-side table walk steps or descriptor fetches",
84 "BriefDescription": "Data-side table walk steps or descriptor fetches"
165 "PublicDescription": "Instruction-side table walk steps or descriptor fetches",
168 "BriefDescription": "Instruction-side table walk steps or descriptor fetches"
/linux/drivers/net/wireless/ath/ath5k/
H A Deeprom.h277 /* PCDAC table steps
292 /* PCDAC table steps
372 * @ee_ant_gain: Antenna gain in 0.5dB steps signed [5211 only?]
376 * (11Mbps) rate in G mode. 0.1dB steps
383 * @ee_atn_tx_rx: Difference in attenuation between TX and RX in 1dB steps
405 * @ee_noise_floor_thr: Noise floor threshold in 1dB steps
406 * @ee_adc_desired_size: Desired amplitude for ADC, used by AGC; in 0.5 dB steps
407 * @ee_pga_desired_size: Desired output of PGA (for BB gain) in 0.5 dB steps
408 * @ee_pd_gain_overlap: PD ADC curves need to overlap in 0.5dB steps (ee_map>=2)
/linux/drivers/gpu/drm/i915/display/
H A Dintel_pch_refclk.c335 #define BEND_IDX(steps) ((50 + (steps)) / 5) argument
363 * steps -50 to 50 inclusive, in steps of 5
365 * change in clock period = -(steps / 10) * 5.787 ps
367 static void lpt_bend_clkout_dp(struct drm_i915_private *dev_priv, int steps) in lpt_bend_clkout_dp() argument
370 int idx = BEND_IDX(steps); in lpt_bend_clkout_dp()
372 if (drm_WARN_ON(&dev_priv->drm, steps % 5 != 0)) in lpt_bend_clkout_dp()
380 if (steps % 10 != 0) in lpt_bend_clkout_dp()
/linux/drivers/input/touchscreen/
H A Dti_am335x_tsc.c151 /* Steps 16 to 16-coordinate_readouts is for X */ in titsc_step_config()
209 /* The steps end ... end - readouts * 2 + 2 and bit 0 for TS_Charge */ in titsc_step_config()
496 u32 steps; in titsc_remove() local
502 /* total steps followed by the enable mask */ in titsc_remove()
503 steps = 2 * ts_dev->coordinate_readouts + 2; in titsc_remove()
504 steps = (1 << steps) - 1; in titsc_remove()
505 am335x_tsc_se_clr(ts_dev->mfd_tscadc, steps); in titsc_remove()
/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>
/linux/drivers/gpu/drm/panel/
H A Dpanel-novatek-nt35510.c203 * in 0.1V steps the default is 0x05 which means 6.0V
232 * in 0.1V steps the default is 0x05 which means -6.0V
252 * in 1V steps, the default is 0x00 which means -2.5V
271 * in 1V steps, the default is 0x08 which means 15V
290 * 1V steps, the default is 0x08 which means -10V
313 * VGMP 0x00 = 3.0V .. 0x108 = 6.3V in steps of 12.5mV
314 * VGSP 0x00 = 0V .. 0x111 = 3.7V in steps of 12.5mV
331 * VCM 0x00 = 0V/0 .. 0x118 = 3.5V/280 in steps of 12.5mV/1step
415 * 0x00..0x3F = 0..31.5us in steps of 0.5us
421 * GFEQ_XX[3:0]: time setting of EQ step for falling edge in steps
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A 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

12345678910>>...38