/kernel/linux/linux-5.10/drivers/media/usb/gspca/ |
H A D | autogain_functions.c | 23 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 in gspca_coarse_grained_expo_autogain() [all...] |
/kernel/linux/linux-6.6/drivers/media/usb/gspca/ |
H A D | autogain_functions.c | 23 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 in gspca_coarse_grained_expo_autogain() [all...] |
/kernel/linux/linux-5.10/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 100 if len(t.steps) > 0: 102 for step in t.steps: 118 if len(t.steps) > 0: 120 for step in t.steps:
|
/kernel/linux/linux-6.6/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 100 if len(t.steps) > 0: 102 for step in t.steps: 118 if len(t.steps) > 0: 120 for step in t.steps:
|
/kernel/linux/linux-5.10/drivers/staging/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; 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, in usbduxfast_ai_cmdtest() 471 long steps, steps_tmp; usbduxfast_ai_cmd() local [all...] |
/kernel/linux/linux-6.6/drivers/mtd/nand/ |
H A D | ecc-mxic.c | 104 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 < in mxic_ecc_init_ctx() [all...] |
/kernel/linux/linux-6.6/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; 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, in usbduxfast_ai_cmdtest() 471 long steps, steps_tmp; usbduxfast_ai_cmd() local [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-rs5c372.c | 591 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 > in rs5c372_set_offset() [all...] |
H A D | rtc-rzn1.c | 273 int stepsh, stepsl, steps; in rzn1_rtc_set_offset() local 289 steps = stepsh; in rzn1_rtc_set_offset() 293 steps = stepsl; in rzn1_rtc_set_offset() 298 if (!steps) in rzn1_rtc_set_offset() 301 if (steps > 0) { in rzn1_rtc_set_offset() 302 subu |= steps + 1; in rzn1_rtc_set_offset() 305 subu |= (~(-steps - 1)) & 0x3F; in rzn1_rtc_set_offset()
|
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec/ |
H A D | sec_algs.c | 549 int *steps, gfp_t gfp) in sec_alg_alloc_and_calc_split_sizes() 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() 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_size in sec_map_and_split_sg() 548 sec_alg_alloc_and_calc_split_sizes(int length, size_t **split_sizes, int *steps, gfp_t gfp) sec_alg_alloc_and_calc_split_sizes() 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) sec_map_and_split_sg() 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) sec_unmap_sg_on_err() argument 716 int i, ret, steps; sec_alg_skcipher_crypto() local [all...] |
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/sec/ |
H A D | sec_algs.c | 549 int *steps, gfp_t gfp) in sec_alg_alloc_and_calc_split_sizes() 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() 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_size in sec_map_and_split_sg() 548 sec_alg_alloc_and_calc_split_sizes(int length, size_t **split_sizes, int *steps, gfp_t gfp) sec_alg_alloc_and_calc_split_sizes() 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) sec_map_and_split_sg() 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) sec_unmap_sg_on_err() argument 716 int i, ret, steps; sec_alg_skcipher_crypto() local [all...] |
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
H A D | qcom_nandc.c | 168 * the largest page size we support is 8K, this will have 16 steps/codewords 677 * @num_cw: number of steps for the read/write operation 1395 num_cw = command == NAND_CMD_PAGEPROG ? ecc->steps : 1; in parse_erase_write_errors() 1476 update_rw_regs(host, ecc->steps, true); in qcom_nandc_command() 1603 data_size1 = mtd->writesize - host->cw_size * (ecc->steps - 1); in qcom_nandc_read_cw_raw() 1606 if (cw == (ecc->steps - 1)) { in qcom_nandc_read_cw_raw() 1608 ((ecc->steps - 1) * 4); in qcom_nandc_read_cw_raw() 1609 oob_size2 = (ecc->steps * 4) + host->ecc_bytes_hw + in qcom_nandc_read_cw_raw() 1686 for_each_set_bit(cw, &uncorrectable_cws, ecc->steps) { in check_for_erased_page() 1687 if (cw == (ecc->steps in check_for_erased_page() [all...] |
H A D | lpc32xx_slc.c | 531 for (i = 0; i < chip->ecc.steps; i++) { in lpc32xx_xfer() 535 mtd->writesize / chip->ecc.steps, dir); in lpc32xx_xfer() 540 if (i == chip->ecc.steps - 1) in lpc32xx_xfer() 572 host->ecc_buf[chip->ecc.steps - 1] = in lpc32xx_xfer() 615 status = lpc32xx_xfer(mtd, buf, chip->ecc.steps, 1); in lpc32xx_nand_read_page_syndrome() 621 lpc32xx_slc_ecc_copy(tmpecc, (uint32_t *) host->ecc_buf, chip->ecc.steps); in lpc32xx_nand_read_page_syndrome() 630 for (i = 0; i < chip->ecc.steps; i++) { in lpc32xx_nand_read_page_syndrome() 659 chip->legacy.read_buf(chip, buf, chip->ecc.size * chip->ecc.steps); in lpc32xx_nand_read_page_raw_syndrome() 682 error = lpc32xx_xfer(mtd, (uint8_t *)buf, chip->ecc.steps, 0); in lpc32xx_nand_write_page_syndrome() 695 lpc32xx_slc_ecc_copy(pb, (uint32_t *)host->ecc_buf, chip->ecc.steps); in lpc32xx_nand_write_page_syndrome() [all...] |
H A D | arasan-nand-controller.c | 117 * @steps: Number of "packets" to read/write 128 int steps; member 252 static int anfc_pkt_len_config(unsigned int len, unsigned int *steps, in anfc_pkt_len_config() argument 266 if (steps) in anfc_pkt_len_config() 267 *steps = nb; in anfc_pkt_len_config() 341 PKT_STEPS(chip->ecc.steps), in anfc_read_page_hw_ecc() 388 for (step = 0; step < chip->ecc.steps; step++) { in anfc_read_page_hw_ecc() 459 PKT_STEPS(chip->ecc.steps), in anfc_write_page_hw_ecc() 584 ret = anfc_pkt_len_config(nfc_op->len, &nfc_op->steps, in anfc_parse_instructions() 604 PKT_STEPS(nfc_op->steps); in anfc_parse_instructions() [all...] |
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/ |
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); in qcom_nandc_is_last_cw() 807 * @num_cw: number of steps for the read/write operation 1480 raw_cw = ecc->steps - 1; in qcom_nandc_read_cw_raw() 1487 data_size1 = mtd->writesize - host->cw_size * (ecc->steps - 1); in qcom_nandc_read_cw_raw() 1492 ((ecc->steps - 1) * 4); in qcom_nandc_read_cw_raw() 1493 oob_size2 = (ecc->steps * 4) + host->ecc_bytes_hw + in qcom_nandc_read_cw_raw() 1569 for_each_set_bit(cw, &uncorrectable_cws, ecc->steps) { in check_for_erased_page() 1571 data_size = ecc->size - ((ecc->steps - 1) * 4); in check_for_erased_page() 1572 oob_size = (ecc->steps * in check_for_erased_page() [all...] |
H A D | rockchip-nand-controller.c | 529 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_ste in rk_nfc_read_page_hwecc() [all...] |
H A D | lpc32xx_slc.c | 529 for (i = 0; i < chip->ecc.steps; i++) { in lpc32xx_xfer() 533 mtd->writesize / chip->ecc.steps, dir); in lpc32xx_xfer() 538 if (i == chip->ecc.steps - 1) in lpc32xx_xfer() 570 host->ecc_buf[chip->ecc.steps - 1] = in lpc32xx_xfer() 613 status = lpc32xx_xfer(mtd, buf, chip->ecc.steps, 1); in lpc32xx_nand_read_page_syndrome() 619 lpc32xx_slc_ecc_copy(tmpecc, (uint32_t *) host->ecc_buf, chip->ecc.steps); in lpc32xx_nand_read_page_syndrome() 628 for (i = 0; i < chip->ecc.steps; i++) { in lpc32xx_nand_read_page_syndrome() 657 chip->legacy.read_buf(chip, buf, chip->ecc.size * chip->ecc.steps); in lpc32xx_nand_read_page_raw_syndrome() 680 error = lpc32xx_xfer(mtd, (uint8_t *)buf, chip->ecc.steps, 0); in lpc32xx_nand_write_page_syndrome() 693 lpc32xx_slc_ecc_copy(pb, (uint32_t *)host->ecc_buf, chip->ecc.steps); in lpc32xx_nand_write_page_syndrome() [all...] |
H A D | arasan-nand-controller.c | 130 * @steps: Number of "packets" to read/write 142 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() [all...] |
/kernel/linux/linux-5.10/drivers/input/misc/ |
H A D | rotary_encoder.c | 38 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() 201 device_property_read_u32(dev, "rotary-encoder,steps", &encoder->steps); in rotary_encoder_probe() 203 err = device_property_read_u32(dev, "rotary-encoder,steps-per-period", in rotary_encoder_probe() 208 * use 'steps-per-period' and set an appropriate value, but in rotary_encoder_probe() 264 encoder->axis, 0, encoder->steps, 0, 1); in rotary_encoder_probe() 279 dev_err(dev, "'%d' is not a valid steps in rotary_encoder_probe() [all...] |
/kernel/linux/linux-6.6/drivers/input/misc/ |
H A D | rotary_encoder.c | 38 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() 201 device_property_read_u32(dev, "rotary-encoder,steps", &encoder->steps); in rotary_encoder_probe() 203 err = device_property_read_u32(dev, "rotary-encoder,steps-per-period", in rotary_encoder_probe() 208 * use 'steps-per-period' and set an appropriate value, but in rotary_encoder_probe() 259 encoder->axis, 0, encoder->steps, 0, 1); in rotary_encoder_probe() 274 dev_err(dev, "'%d' is not a valid steps in rotary_encoder_probe() [all...] |
/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | loongson1-cpufreq.c | 84 int steps, i; in ls1x_cpufreq_init() local 88 steps = 1 << DIV_CPU_WIDTH; in ls1x_cpufreq_init() 89 freq_tbl = kcalloc(steps, sizeof(*freq_tbl), GFP_KERNEL); in ls1x_cpufreq_init() 93 for (i = 0; i < (steps - 1); i++) { in ls1x_cpufreq_init()
|
/kernel/linux/linux-6.6/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; in lm8323_pwm_work() local 461 steps = abs(pwm->desired_brightness - pwm->brightness); in lm8323_pwm_work() 467 if ((pwm->fade_time / steps) > (32768 / 512)) { in lm8323_pwm_work() 475 perstep = (hz * pwm->fade_time) / (steps * 1000); in lm8323_pwm_work() 482 while (steps) { in lm8323_pwm_work() 485 s = min(126, steps); in lm8323_pwm_work() 487 steps -= s; in lm8323_pwm_work()
|
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
H A D | sp887x.c | 443 int steps = (sync0x200 >> 4) & 0x00f; in sp887x_read_status() local 444 if (steps & 0x008) in sp887x_read_status() 445 steps = -steps; in sp887x_read_status() 446 dprintk("sp887x: implement tuner adjustment (%+i steps)!!\n", in sp887x_read_status() 447 steps); in sp887x_read_status()
|
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
H A D | ti_am335x_tsc.c | 203 /* The steps end ... end - readouts * 2 + 2 and bit 0 for TS_Charge */ in titsc_step_config() 490 u32 steps; in titsc_remove() local 496 /* total steps followed by the enable mask */ in titsc_remove() 497 steps = 2 * ts_dev->coordinate_readouts + 2; in titsc_remove() 498 steps = (1 << steps) - 1; in titsc_remove() 499 am335x_tsc_se_clr(ts_dev->mfd_tscadc, steps); in titsc_remove()
|
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/ |
H A D | sp887x.c | 441 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() 444 dprintk("sp887x: implement tuner adjustment (%+i steps)!!\n", in sp887x_read_status() 445 steps); in sp887x_read_status()
|