Home
last modified time | relevance | path

Searched refs:step_size (Results 1 – 25 of 103) sorted by relevance

12345

/linux-5.19.10/drivers/mtd/nand/
Decc-sw-bch.c30 bch_encode(engine_conf->bch, buf, nand->ecc.ctx.conf.step_size, code); in nand_ecc_sw_bch_calculate()
53 unsigned int step_size = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_bch_correct() local
57 count = bch_decode(engine_conf->bch, NULL, step_size, read_ecc, in nand_ecc_sw_bch_correct()
61 if (errloc[i] < (step_size * 8)) in nand_ecc_sw_bch_correct()
111 unsigned int eccsize = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_bch_init()
189 conf->step_size = nand->ecc.user_conf.step_size; in nand_ecc_sw_bch_init_ctx()
198 if (!conf->step_size) { in nand_ecc_sw_bch_init_ctx()
200 conf->step_size = 512; in nand_ecc_sw_bch_init_ctx()
202 conf->step_size = 256; in nand_ecc_sw_bch_init_ctx()
207 nsteps = mtd->writesize / conf->step_size; in nand_ecc_sw_bch_init_ctx()
[all …]
Decc-sw-hamming.c115 int ecc_sw_hamming_calculate(const unsigned char *buf, unsigned int step_size, in ecc_sw_hamming_calculate() argument
119 const u32 eccsize_mult = (step_size == 256) ? 1 : 2; in ecc_sw_hamming_calculate()
366 unsigned int step_size = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_hamming_calculate() local
369 return ecc_sw_hamming_calculate(buf, step_size, code, sm_order); in nand_ecc_sw_hamming_calculate()
374 unsigned char *calc_ecc, unsigned int step_size, in ecc_sw_hamming_correct() argument
377 const u32 eccsize_mult = step_size >> 8; in ecc_sw_hamming_correct()
459 unsigned int step_size = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_hamming_correct() local
462 return ecc_sw_hamming_correct(buf, read_ecc, calc_ecc, step_size, in nand_ecc_sw_hamming_correct()
492 conf->step_size = nand->ecc.user_conf.step_size; in nand_ecc_sw_hamming_init_ctx()
496 if (conf->step_size != 256 && conf->step_size != 512) in nand_ecc_sw_hamming_init_ctx()
[all …]
Decc-mxic.c226 int step_size = 0, strength = 0, desired_correction = 0, steps, idx; in mxic_ecc_init_ctx() local
252 if (user->step_size && user->strength) { in mxic_ecc_init_ctx()
253 step_size = user->step_size; in mxic_ecc_init_ctx()
255 } else if (reqs->step_size && reqs->strength) { in mxic_ecc_init_ctx()
256 step_size = reqs->step_size; in mxic_ecc_init_ctx()
260 if (step_size && strength) { in mxic_ecc_init_ctx()
261 steps = mtd->writesize / step_size; in mxic_ecc_init_ctx()
266 conf->step_size = SZ_1K; in mxic_ecc_init_ctx()
267 steps = mtd->writesize / conf->step_size; in mxic_ecc_init_ctx()
Decc.c443 nand->ecc.user_conf.step_size = size; in of_get_nand_ecc_user_config()
474 if (conf->step_size == 0 || reqs->step_size == 0) in nand_ecc_is_strong_enough()
482 corr = (mtd->writesize * conf->strength) / conf->step_size; in nand_ecc_is_strong_enough()
483 ds_corr = (mtd->writesize * reqs->strength) / reqs->step_size; in nand_ecc_is_strong_enough()
/linux-5.19.10/arch/powerpc/kernel/
Dtau_6xx.c49 #define step_size 2 /* step size when temp goes out of range */ macro
77 if (tau[cpu].low >= step_size) { in TAUupdate()
78 tau[cpu].low -= step_size; in TAUupdate()
79 tau[cpu].high -= (step_size - window_expand); in TAUupdate()
88 if (tau[cpu].high <= 127 - step_size) { in TAUupdate()
89 tau[cpu].low += (step_size - window_expand); in TAUupdate()
90 tau[cpu].high += step_size; in TAUupdate()
/linux-5.19.10/include/linux/mtd/
Dnand-ecc-sw-hamming.h36 int ecc_sw_hamming_calculate(const unsigned char *buf, unsigned int step_size,
42 unsigned char *calc_ecc, unsigned int step_size,
58 unsigned int step_size, in ecc_sw_hamming_calculate() argument
74 unsigned int step_size, bool sm_order) in ecc_sw_hamming_correct() argument
/linux-5.19.10/arch/x86/mm/
Dinit.c583 static unsigned long __init get_new_step_size(unsigned long step_size) in get_new_step_size() argument
599 return step_size << (PMD_SHIFT - PAGE_SHIFT - 1); in get_new_step_size()
616 unsigned long step_size; in memory_map_top_down() local
634 step_size = PMD_SIZE; in memory_map_top_down()
648 if (last_start > step_size) { in memory_map_top_down()
649 start = round_down(last_start - 1, step_size); in memory_map_top_down()
658 if (mapped_ram_size >= step_size) in memory_map_top_down()
659 step_size = get_new_step_size(step_size); in memory_map_top_down()
683 unsigned long step_size = PMD_SIZE; in memory_map_bottom_up() local
695 if (step_size && map_end - start > step_size) { in memory_map_bottom_up()
[all …]
/linux-5.19.10/drivers/media/dvb-frontends/
Dtda8261.c103 N = (frequency + (div_tab[config->step_size] - 1)) / div_tab[config->step_size]; in tda8261_set_params()
105 __func__, config->step_size, div_tab[config->step_size], N, N); in tda8261_set_params()
109 buf[2] = (0x01 << 7) | ((ref_div[config->step_size] & 0x07) << 1); in tda8261_set_params()
180 fe->ops.tuner_ops.info.frequency_step_hz = div_tab[config->step_size] * kHz; in tda8261_attach()
Dtda10086.c662 fesettings->step_size = 2000; in tda10086_get_tune_settings()
666 fesettings->step_size = 1500; in tda10086_get_tune_settings()
670 fesettings->step_size = 1000; in tda10086_get_tune_settings()
674 fesettings->step_size = 500; in tda10086_get_tune_settings()
678 fesettings->step_size = p->symbol_rate / 8000; in tda10086_get_tune_settings()
679 fesettings->max_drift = 14 * fesettings->step_size; in tda10086_get_tune_settings()
682 fesettings->step_size = p->symbol_rate / 8000; in tda10086_get_tune_settings()
683 fesettings->max_drift = 18 * fesettings->step_size; in tda10086_get_tune_settings()
Ds5h1420.c764 fesettings->step_size = 2000; in s5h1420_get_tune_settings()
768 fesettings->step_size = 1500; in s5h1420_get_tune_settings()
772 fesettings->step_size = 1000; in s5h1420_get_tune_settings()
776 fesettings->step_size = 500; in s5h1420_get_tune_settings()
780 fesettings->step_size = (p->symbol_rate / 8000); in s5h1420_get_tune_settings()
781 fesettings->max_drift = 14 * fesettings->step_size; in s5h1420_get_tune_settings()
784 fesettings->step_size = (p->symbol_rate / 8000); in s5h1420_get_tune_settings()
785 fesettings->max_drift = 18 * fesettings->step_size; in s5h1420_get_tune_settings()
Dtda8261.h22 enum tda8261_step step_size; member
/linux-5.19.10/arch/arm/mach-omap2/
Dpmic-cpcap.c52 .step_size = 12500,
69 .step_size = 12500,
116 .step_size = 10000,
205 .step_size = 12500,
223 .step_size = 12500,
Domap_twl.c129 .step_size = 12500,
145 .step_size = 12500,
161 .step_size = 12660,
179 .step_size = 12660,
197 .step_size = 12660,
/linux-5.19.10/drivers/mtd/nand/raw/
Dnand_samsung.c76 requirements.step_size = 512; in samsung_nand_decode_id()
79 requirements.step_size = 1024; in samsung_nand_decode_id()
92 requirements.step_size = 0; in samsung_nand_decode_id()
102 requirements.step_size = 512; in samsung_nand_decode_id()
Dnand_hynix.c504 requirements.step_size = 1024; in hynix_nand_extract_ecc_requirements()
508 requirements.step_size = 0; in hynix_nand_extract_ecc_requirements()
548 requirements.step_size = 512; in hynix_nand_extract_ecc_requirements()
552 requirements.step_size = 2048; in hynix_nand_extract_ecc_requirements()
554 requirements.step_size = 1024; in hynix_nand_extract_ecc_requirements()
568 requirements.step_size = 0; in hynix_nand_extract_ecc_requirements()
571 requirements.step_size = 512; in hynix_nand_extract_ecc_requirements()
574 requirements.step_size = 1024; in hynix_nand_extract_ecc_requirements()
Dnand_esmt.c20 requirements.step_size = 512; in esmt_nand_decode_id()
33 requirements.step_size = 0; in esmt_nand_decode_id()
Dnand_toshiba.c180 requirements.step_size = 512; in toshiba_nand_decode_id()
193 requirements.step_size = 0; in toshiba_nand_decode_id()
/linux-5.19.10/drivers/acpi/
Dfan_core.c68 *state = 100 / fan->fif.step_size; in fan_get_max_state()
126 *state = (int) fst.control / fan->fif.step_size; in fan_get_state_acpi4()
189 max_state = 100 / fan->fif.step_size; in fan_set_state_acpi4()
197 value *= fan->fif.step_size; in fan_set_state_acpi4()
199 if (value + fan->fif.step_size > 100) in fan_set_state_acpi4()
274 fan->fif.step_size = fields[2]; in acpi_fan_get_fif()
278 if (!fan->fif.step_size) in acpi_fan_get_fif()
279 fan->fif.step_size = 1; in acpi_fan_get_fif()
281 else if (fan->fif.step_size > 9) in acpi_fan_get_fif()
282 fan->fif.step_size = 9; in acpi_fan_get_fif()
Dfan.h36 u8 step_size; member
/linux-5.19.10/drivers/gpu/drm/msm/dsi/phy/
Ddsi_phy_14nm.c170 u64 step_size; in pll_14nm_ssc_calc() local
183 step_size = (u32)pconf->vco_current_rate; in pll_14nm_ssc_calc()
186 step_size = div_u64(step_size, ref); in pll_14nm_ssc_calc()
187 step_size <<= 20; in pll_14nm_ssc_calc()
188 step_size = div_u64(step_size, 1000); in pll_14nm_ssc_calc()
189 step_size *= pconf->ssc_spread; in pll_14nm_ssc_calc()
190 step_size = div_u64(step_size, 1000); in pll_14nm_ssc_calc()
191 step_size *= (pconf->ssc_adj_period + 1); in pll_14nm_ssc_calc()
194 step_size = div_u64_rem(step_size, ssc_period + 1, &rem); in pll_14nm_ssc_calc()
196 step_size++; in pll_14nm_ssc_calc()
[all …]
/linux-5.19.10/tools/testing/selftests/bpf/map_tests/
Dmap_in_map_batch_ops.c126 __u32 batch_key = 0, fetch_count, step_size; in fetch_and_validate() local
137 for (step_size = batch_size; in fetch_and_validate()
138 step_size <= max_entries; in fetch_and_validate()
139 step_size += batch_size) { in fetch_and_validate()
140 fetch_count = step_size; in fetch_and_validate()
/linux-5.19.10/drivers/phy/xilinx/
Dphy-zynqmp.c181 u32 step_size; member
343 u32 step_size; in xpsgtr_configure_pll() local
346 step_size = ssc->step_size; in xpsgtr_configure_pll()
360 STEP_SIZE_0_MASK, step_size & STEP_SIZE_0_MASK); in xpsgtr_configure_pll()
363 step_size >>= STEP_SIZE_SHIFT; in xpsgtr_configure_pll()
365 STEP_SIZE_1_MASK, step_size & STEP_SIZE_1_MASK); in xpsgtr_configure_pll()
368 step_size >>= STEP_SIZE_SHIFT; in xpsgtr_configure_pll()
370 STEP_SIZE_2_MASK, step_size & STEP_SIZE_2_MASK); in xpsgtr_configure_pll()
382 step_size >>= STEP_SIZE_SHIFT; in xpsgtr_configure_pll()
384 STEP_SIZE_3_MASK, (step_size & STEP_SIZE_3_MASK) | in xpsgtr_configure_pll()
/linux-5.19.10/drivers/clk/
Dclk-scmi.c63 ftmp += clk->info->range.step_size - 1; /* to round up */ in scmi_clk_round_rate()
64 do_div(ftmp, clk->info->range.step_size); in scmi_clk_round_rate()
66 return ftmp * clk->info->range.step_size + fmin; in scmi_clk_round_rate()
/linux-5.19.10/drivers/iio/dac/
Dad5755.c156 enum ad5755_slew_step_size step_size; member
609 val = pdata->dac[i].slew.step_size << in ad5755_setup_pdata()
683 .step_size = AD5755_SLEW_STEP_SIZE_1, \
781 pdata->dac[devnr].slew.step_size = AD5755_SLEW_STEP_SIZE_1; in ad5755_parse_fw()
784 pdata->dac[devnr].slew.step_size = in ad5755_parse_fw()
796 pdata->dac[devnr].slew.step_size = in ad5755_parse_fw()
/linux-5.19.10/drivers/spi/
Dspi-mtk-snfi.c636 int step_size = 0, strength = 0, desired_correction = 0, steps; in mtk_snand_ecc_init_ctx() local
653 if (user->step_size && user->strength) { in mtk_snand_ecc_init_ctx()
654 step_size = user->step_size; in mtk_snand_ecc_init_ctx()
657 } else if (reqs->step_size && reqs->strength) { in mtk_snand_ecc_init_ctx()
658 step_size = reqs->step_size; in mtk_snand_ecc_init_ctx()
662 if (step_size && strength) { in mtk_snand_ecc_init_ctx()
663 steps = mtd->writesize / step_size; in mtk_snand_ecc_init_ctx()
696 conf->step_size = snf->caps->sector_size; in mtk_snand_ecc_init_ctx()

12345