/drivers/mtd/nand/ |
D | ecc-sw-bch.c | 30 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 …]
|
D | ecc-sw-hamming.c | 115 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 …]
|
D | ecc-mxic.c | 226 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()
|
D | ecc.c | 443 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()
|
/drivers/acpi/ |
D | fan_core.c | 37 *state = 100 / fan->fif.step_size; in fan_get_max_state() 95 *state = (int) fst.control / fan->fif.step_size; in fan_get_state_acpi4() 158 max_state = 100 / fan->fif.step_size; in fan_set_state_acpi4() 166 value *= fan->fif.step_size; in fan_set_state_acpi4() 168 if (value + fan->fif.step_size > 100) in fan_set_state_acpi4() 243 fan->fif.step_size = fields[2]; in acpi_fan_get_fif() 247 if (!fan->fif.step_size) in acpi_fan_get_fif() 248 fan->fif.step_size = 1; in acpi_fan_get_fif() 250 else if (fan->fif.step_size > 9) in acpi_fan_get_fif() 251 fan->fif.step_size = 9; in acpi_fan_get_fif()
|
D | fan.h | 36 u8 step_size; member
|
/drivers/media/dvb-frontends/ |
D | tda8261.c | 103 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()
|
D | tda10086.c | 662 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()
|
D | s5h1420.c | 764 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()
|
D | tda8261.h | 22 enum tda8261_step step_size; member
|
D | stb0899_algo.c | 970 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()
|
D | tc90522.c | 518 settings->step_size = 1000; in tc90522_get_tune_settings() 519 settings->max_drift = settings->step_size * 2; in tc90522_get_tune_settings() 522 settings->step_size = 142857; in tc90522_get_tune_settings() 523 settings->max_drift = settings->step_size; in tc90522_get_tune_settings()
|
/drivers/mtd/nand/raw/ |
D | nand_samsung.c | 76 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()
|
D | nand_hynix.c | 504 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()
|
D | nand_esmt.c | 20 requirements.step_size = 512; in esmt_nand_decode_id() 33 requirements.step_size = 0; in esmt_nand_decode_id()
|
D | nand_toshiba.c | 180 requirements.step_size = 512; in toshiba_nand_decode_id() 193 requirements.step_size = 0; in toshiba_nand_decode_id()
|
D | nand_base.c | 4922 requirements.step_size = NAND_ECC_STEP(type); in find_full_id_nand() 5410 chip->ecc.size = nand->ecc.user_conf.step_size; in rawnand_dt_init() 5525 base->ecc.user_conf.step_size = chip->ecc.size; in rawnand_sw_hamming_init() 5536 chip->ecc.size = base->ecc.ctx.conf.step_size; in rawnand_sw_hamming_init() 5583 base->ecc.user_conf.step_size = chip->ecc.size; in rawnand_sw_bch_init() 5590 chip->ecc.size = ecc_conf->step_size; in rawnand_sw_bch_init() 5834 int req_step = requirements->step_size; in nand_match_ecc_req() 5836 int req_corr, step_size, strength, nsteps, ecc_bytes, ecc_bytes_total; in nand_match_ecc_req() local 5850 step_size = stepinfo->stepsize; in nand_match_ecc_req() 5860 if (step_size < req_step && strength < req_strength) in nand_match_ecc_req() [all …]
|
D | nand_onfi.c | 100 requirements.step_size = 1 << ecc->codeword_size; in nand_flash_detect_ext_param_page() 275 .step_size = 512, in nand_onfi_detect()
|
/drivers/gpu/drm/msm/dsi/phy/ |
D | dsi_phy_14nm.c | 170 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 …]
|
/drivers/phy/xilinx/ |
D | phy-zynqmp.c | 181 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()
|
/drivers/clk/ |
D | clk-scmi.c | 63 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()
|
/drivers/iio/dac/ |
D | ad5755.c | 156 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()
|
/drivers/spi/ |
D | spi-mtk-snfi.c | 636 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()
|
D | spi-bcm63xx-hsspi.c | 163 int step_size = HSSPI_BUFFER_LEN; in bcm63xx_hsspi_do_txrx() local 179 step_size -= HSSPI_OPCODE_LEN; in bcm63xx_hsspi_do_txrx() 195 int curr_step = min_t(int, step_size, pending); in bcm63xx_hsspi_do_txrx()
|
/drivers/media/platform/qcom/venus/ |
D | hfi_parser.h | 42 return cap->step_size; in get_cap()
|