Home
last modified time | relevance | path

Searched refs:max_step_size (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/mtd/nand/raw/
H A Dcadence-nand-controller.c534 int max_step_size; member
1055 static int cadence_nand_calc_ecc_bytes(int max_step_size, int strength) in cadence_nand_calc_ecc_bytes() argument
1057 int nbytes = DIV_ROUND_UP(fls(8 * max_step_size) * strength, 8); in cadence_nand_calc_ecc_bytes()
1062 #define CADENCE_NAND_CALC_ECC_BYTES(max_step_size) \ argument
1064 cadence_nand_calc_ecc_bytes_##max_step_size(int step_size, \
1067 return cadence_nand_calc_ecc_bytes(max_step_size, strength);\
1080 int max_step_size = 0, nstrengths, i; in cadence_nand_read_bch_caps() local
1126 if (cdns_ctrl->ecc_stepinfos[i].stepsize > max_step_size) in cadence_nand_read_bch_caps()
1127 max_step_size = cdns_ctrl->ecc_stepinfos[i].stepsize; in cadence_nand_read_bch_caps()
1131 switch (max_step_size) { in cadence_nand_read_bch_caps()
[all …]