Home
last modified time | relevance | path

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

1234

/linux/drivers/mtd/nand/
A Decc-sw-bch.c53 unsigned int step_size = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_bch_correct() local
61 if (errloc[i] < (step_size * 8)) in nand_ecc_sw_bch_correct()
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()
211 conf->step_size = 1024; in nand_ecc_sw_bch_init_ctx()
212 nsteps = mtd->writesize / conf->step_size; in nand_ecc_sw_bch_init_ctx()
220 fls(8 * conf->step_size), 8); in nand_ecc_sw_bch_init_ctx()
[all …]
A Decc-sw-hamming.c119 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
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
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()
497 conf->step_size = 256; in nand_ecc_sw_hamming_init_ctx()
516 nand->ecc.ctx.nsteps = mtd->writesize / conf->step_size; in nand_ecc_sw_hamming_init_ctx()
550 int eccsize = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_hamming_prepare_io_req()
[all …]
A Decc.c437 nand->ecc.user_conf.step_size = size; in of_get_nand_ecc_user_config()
468 if (conf->step_size == 0 || reqs->step_size == 0) in nand_ecc_is_strong_enough()
476 corr = (mtd->writesize * conf->strength) / conf->step_size; in nand_ecc_is_strong_enough()
477 ds_corr = (mtd->writesize * reqs->strength) / reqs->step_size; in nand_ecc_is_strong_enough()
/linux/arch/powerpc/kernel/
A Dtau_6xx.c50 #define step_size 2 /* step size when temp goes out of range */ macro
78 if (tau[cpu].low >= step_size) { in TAUupdate()
79 tau[cpu].low -= step_size; in TAUupdate()
80 tau[cpu].high -= (step_size - window_expand); in TAUupdate()
89 if (tau[cpu].high <= 127 - step_size) { in TAUupdate()
90 tau[cpu].low += (step_size - window_expand); in TAUupdate()
91 tau[cpu].high += step_size; in TAUupdate()
/linux/arch/x86/mm/
A Dinit.c607 unsigned long step_size; in memory_map_top_down() local
625 step_size = PMD_SIZE; in memory_map_top_down()
639 if (last_start > step_size) { in memory_map_top_down()
640 start = round_down(last_start - 1, step_size); in memory_map_top_down()
649 if (mapped_ram_size >= step_size) in memory_map_top_down()
650 step_size = get_new_step_size(step_size); in memory_map_top_down()
674 unsigned long step_size = PMD_SIZE; in memory_map_bottom_up() local
686 if (step_size && map_end - start > step_size) { in memory_map_bottom_up()
687 next = round_up(start + 1, step_size); in memory_map_bottom_up()
697 if (mapped_ram_size >= step_size) in memory_map_bottom_up()
[all …]
/linux/include/linux/mtd/
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/drivers/media/dvb-frontends/
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()
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()
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()
A Dtda8261.h22 enum tda8261_step step_size; member
A Dstb0899_algo.c970 s32 steps, step_size; in stb0899_dvbs2_init_calc() local
982 step_size = (1 << 17) / 5; in stb0899_dvbs2_init_calc()
984 step_size = (1 << 17) / 7; in stb0899_dvbs2_init_calc()
986 step_size = (1 << 17) / 10; in stb0899_dvbs2_init_calc()
988 step_size = (1 << 17) / 4; in stb0899_dvbs2_init_calc()
991 steps = (10 * range * (1 << 17)) / (step_size * (internal->srate / 1000000)); in stb0899_dvbs2_init_calc()
996 (internal->step_size * (internal->srate / 20000000)), in stb0899_dvbs2_init_calc()
1005 STB0899_SETFIELD_VAL(FREQ_STEPSIZE, reg, step_size); in stb0899_dvbs2_init_calc()
/linux/arch/arm/mach-omap2/
A Dpmic-cpcap.c52 .step_size = 12500,
69 .step_size = 12500,
116 .step_size = 10000,
205 .step_size = 12500,
223 .step_size = 12500,
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/
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()
A 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()
A Dnand_esmt.c20 requirements.step_size = 512; in esmt_nand_decode_id()
33 requirements.step_size = 0; in esmt_nand_decode_id()
A Dnand_toshiba.c180 requirements.step_size = 512; in toshiba_nand_decode_id()
193 requirements.step_size = 0; in toshiba_nand_decode_id()
A Dnand_base.c4848 requirements.step_size = NAND_ECC_STEP(type); in find_full_id_nand()
5515 chip->ecc.size = ecc_conf->step_size; in rawnand_sw_bch_init()
5759 int req_step = requirements->step_size; in nand_match_ecc_req()
5775 step_size = stepinfo->stepsize; in nand_match_ecc_req()
5788 if (mtd->writesize % step_size) in nand_match_ecc_req()
5791 nsteps = mtd->writesize / step_size; in nand_match_ecc_req()
5808 best_step = step_size; in nand_match_ecc_req()
5848 step_size = stepinfo->stepsize; in nand_maximize_ecc()
5857 if (mtd->writesize % step_size) in nand_maximize_ecc()
5860 nsteps = mtd->writesize / step_size; in nand_maximize_ecc()
[all …]
A Dnand_onfi.c100 requirements.step_size = 1 << ecc->codeword_size; in nand_flash_detect_ext_param_page()
275 .step_size = 512, in nand_onfi_detect()
/linux/drivers/gpu/drm/msm/dsi/phy/
A 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()
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()
198 DBG("step_size=%lld", step_size); in pll_14nm_ssc_calc()
[all …]
/linux/drivers/phy/xilinx/
A Dphy-zynqmp.c180 u32 step_size; member
342 u32 step_size; in xpsgtr_configure_pll() local
345 step_size = ssc->step_size; in xpsgtr_configure_pll()
359 STEP_SIZE_0_MASK, step_size & STEP_SIZE_0_MASK); in xpsgtr_configure_pll()
362 step_size >>= STEP_SIZE_SHIFT; in xpsgtr_configure_pll()
364 STEP_SIZE_1_MASK, step_size & STEP_SIZE_1_MASK); in xpsgtr_configure_pll()
367 step_size >>= STEP_SIZE_SHIFT; in xpsgtr_configure_pll()
369 STEP_SIZE_2_MASK, step_size & STEP_SIZE_2_MASK); in xpsgtr_configure_pll()
381 step_size >>= STEP_SIZE_SHIFT; in xpsgtr_configure_pll()
383 STEP_SIZE_3_MASK, (step_size & STEP_SIZE_3_MASK) | in xpsgtr_configure_pll()
/linux/drivers/clk/
A 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/drivers/iio/dac/
A Dad5755.c516 val = pdata->dac[i].slew.step_size << in ad5755_setup_pdata()
590 .step_size = AD5755_SLEW_STEP_SIZE_1, \
691 pdata->dac[devnr].slew.step_size = AD5755_SLEW_STEP_SIZE_1; in ad5755_parse_dt()
694 pdata->dac[devnr].slew.step_size = in ad5755_parse_dt()
706 pdata->dac[devnr].slew.step_size = in ad5755_parse_dt()
/linux/include/linux/platform_data/
A Dad5755.h97 enum ad5755_slew_step_size step_size; member
/linux/drivers/spi/
A Dspi-bcm63xx-hsspi.c163 int step_size = HSSPI_BUFFER_LEN; in bcm63xx_hsspi_do_txrx() local
178 step_size -= HSSPI_OPCODE_LEN; in bcm63xx_hsspi_do_txrx()
189 int curr_step = min_t(int, step_size, pending); in bcm63xx_hsspi_do_txrx()

Completed in 61 milliseconds

1234