Home
last modified time | relevance | path

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

1234

/linux/drivers/mtd/nand/
H A 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 …]
H A 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 …]
H A Decc-realtek.c323 nand->ecc.user_conf.step_size != RTL_ECC_BLOCK_SIZE) { in rtl_ecc_check_support()
355 conf->step_size = RTL_ECC_BLOCK_SIZE; in rtl_ecc_init_ctx()
369 conf->strength, ctx->steps, conf->step_size, in rtl_ecc_init_ctx()
/linux/arch/powerpc/kernel/
H A 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/include/linux/mtd/
H A 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/arch/x86/mm/
H A Dinit.c599 static unsigned long __init get_new_step_size(unsigned long step_size) in get_new_step_size() argument
615 return step_size << (PMD_SHIFT - PAGE_SHIFT - 1); in get_new_step_size()
632 unsigned long step_size; in memory_map_top_down() local
655 step_size = PMD_SIZE; in memory_map_top_down()
669 if (last_start > step_size) { in memory_map_top_down()
670 start = round_down(last_start - 1, step_size); in memory_map_top_down()
679 if (mapped_ram_size >= step_size) in memory_map_top_down()
680 step_size = get_new_step_size(step_size); in memory_map_top_down()
704 unsigned long step_size = PMD_SIZE; in memory_map_bottom_up() local
716 if (step_size && map_end - start > step_size) { in memory_map_bottom_up()
[all …]
/linux/drivers/media/dvb-frontends/
H A 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()
H A 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()
H A 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()
H A Dtda8261.h22 enum tda8261_step step_size; member
/linux/arch/arm/mach-omap2/
H A Dpmic-cpcap.c52 .step_size = 12500,
69 .step_size = 12500,
116 .step_size = 10000,
205 .step_size = 12500,
223 .step_size = 12500,
H A Domap_twl.c129 .step_size = 12500,
145 .step_size = 12500,
161 .step_size = 12660,
179 .step_size = 12660,
197 .step_size = 12660,
/linux/drivers/mtd/nand/raw/
H A 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()
H A Dnand_esmt.c20 requirements.step_size = 512; in esmt_nand_decode_id()
33 requirements.step_size = 0; in esmt_nand_decode_id()
H A Dnand_toshiba.c180 requirements.step_size = 512; in toshiba_nand_decode_id()
193 requirements.step_size = 0; in toshiba_nand_decode_id()
H A Dnand_base.c4974 requirements.step_size = NAND_ECC_STEP(type); in find_full_id_nand()
5525 chip->ecc.size = nand->ecc.user_conf.step_size; in rawnand_dt_init()
5640 base->ecc.user_conf.step_size = chip->ecc.size; in rawnand_sw_hamming_init()
5651 chip->ecc.size = base->ecc.ctx.conf.step_size; in rawnand_sw_hamming_init()
5698 base->ecc.user_conf.step_size = chip->ecc.size; in rawnand_sw_bch_init()
5705 chip->ecc.size = ecc_conf->step_size; in rawnand_sw_bch_init()
5949 int req_step = requirements->step_size; in nand_match_ecc_req()
5951 int req_corr, step_size, strength, nsteps, ecc_bytes, ecc_bytes_total; in nand_match_ecc_req() local
5965 step_size = stepinfo->stepsize; in nand_match_ecc_req()
5975 if (step_size < req_step && strength < req_strength) in nand_match_ecc_req()
[all …]
/linux/drivers/acpi/
H A Dfan_core.c62 *state = 100 / fan->fif.step_size; in fan_get_max_state()
125 *state = (int) fst.control / fan->fif.step_size; in fan_get_state_acpi4()
188 max_state = 100 / fan->fif.step_size; in fan_set_state_acpi4()
196 value *= fan->fif.step_size; in fan_set_state_acpi4()
198 if (value + fan->fif.step_size > 100) in fan_set_state_acpi4()
266 fan->fif.step_size = fields[2]; in acpi_fan_get_fif()
270 if (!fan->fif.step_size) in acpi_fan_get_fif()
271 fan->fif.step_size = 1; in acpi_fan_get_fif()
273 else if (fan->fif.step_size > 9) in acpi_fan_get_fif()
274 fan->fif.step_size = 9; in acpi_fan_get_fif()
H A Dfan.h43 u8 step_size; member
/linux/drivers/phy/xilinx/
H A Dphy-zynqmp.c194 u32 step_size; member
427 u32 step_size; in xpsgtr_configure_pll() local
433 step_size = ssc->step_size; in xpsgtr_configure_pll()
448 STEP_SIZE_0_MASK, step_size & STEP_SIZE_0_MASK); in xpsgtr_configure_pll()
451 step_size >>= STEP_SIZE_SHIFT; in xpsgtr_configure_pll()
453 STEP_SIZE_1_MASK, step_size & STEP_SIZE_1_MASK); in xpsgtr_configure_pll()
456 step_size >>= STEP_SIZE_SHIFT; in xpsgtr_configure_pll()
458 STEP_SIZE_2_MASK, step_size & STEP_SIZE_2_MASK); in xpsgtr_configure_pll()
470 step_size >>= STEP_SIZE_SHIFT; in xpsgtr_configure_pll()
472 STEP_SIZE_3_MASK, (step_size & STEP_SIZE_3_MASK) | in xpsgtr_configure_pll()
/linux/fs/xfs/scrub/
H A Dreap.c597 const unsigned int step_size = max(f1, f2); in xreap_configure_agextent_limits() local
618 xreap_configure_limits(rs, step_size, variable_overhead, per_intent, in xreap_configure_agextent_limits()
622 step_size, per_intent, rs->max_deferred); in xreap_configure_agextent_limits()
676 const unsigned int step_size = max3(f1, f2, f3); in xreap_configure_agcow_limits() local
696 xreap_configure_limits(rs, step_size, variable_overhead, per_intent, in xreap_configure_agcow_limits()
699 trace_xreap_agcow_limits(sc->tp, per_binval, rs->max_binval, step_size, in xreap_configure_agcow_limits()
1067 const unsigned int step_size = max3(f1, f2, f3); in xreap_configure_rgcow_limits() local
1073 xreap_configure_limits(rs, step_size, per_intent, per_intent, 0); in xreap_configure_rgcow_limits()
1075 trace_xreap_rgcow_limits(sc->tp, 0, 0, step_size, per_intent, in xreap_configure_rgcow_limits()
1572 const unsigned int step_size = max3(f1, f2, f3); in xreap_configure_bmapi_limits() local
[all …]
/linux/tools/testing/selftests/bpf/map_tests/
H A Dmap_in_map_batch_ops.c128 __u32 batch_key = 0, fetch_count, step_size = batch_size; in fetch_and_validate() local
140 fetch_count = step_size; in fetch_and_validate()
158 step_size += batch_size; in fetch_and_validate()
/linux/drivers/thermal/intel/int340x_thermal/
H A Dacpi_thermal_rel.h75 u64 step_size; member
129 u64 step_size; member
/linux/drivers/spi/
H A Dspi-amlogic-spifc-a4.c637 int i, count, step_size; in aml_sfc_set_user_byte() local
641 step_size = auto_oob ? ECC_BCH8_INFO_BYTES : ECC_BCH8_USER_BYTES; in aml_sfc_set_user_byte()
643 for (i = 0, count = 0; i < ecc_cfg->nsteps; i++, count += step_size) { in aml_sfc_set_user_byte()
957 ecc_step_size = nand->ecc.user_conf.step_size; in aml_sfc_ecc_init_ctx()
962 nand->ecc.ctx.conf.step_size = ecc_step_size; in aml_sfc_ecc_init_ctx()
970 if (!nand->ecc.ctx.conf.step_size) { in aml_sfc_ecc_init_ctx()
971 nand->ecc.ctx.conf.step_size = ECC_BCH8_DEFAULT_STEP; in aml_sfc_ecc_init_ctx()
978 nand->ecc.ctx.nsteps = nand->memorg.pagesize / nand->ecc.ctx.conf.step_size; in aml_sfc_ecc_init_ctx()
982 if ((nand->memorg.pagesize % nand->ecc.ctx.conf.step_size) || in aml_sfc_ecc_init_ctx()
993 ecc_cfg->stepsize = nand->ecc.ctx.conf.step_size; in aml_sfc_ecc_init_ctx()
/linux/drivers/iio/dac/
H A 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/drivers/clk/
H A Dclk-scmi.c85 ftmp += clk->info->range.step_size - 1; /* to round up */ in scmi_clk_determine_rate()
86 do_div(ftmp, clk->info->range.step_size); in scmi_clk_determine_rate()
88 req->rate = ftmp * clk->info->range.step_size + fmin; in scmi_clk_determine_rate()

1234