Searched refs:ecc_size (Results 1 – 5 of 5) sorted by relevance
| /rk3399_rockchip-uboot/drivers/mtd/nand/raw/ |
| H A D | sunxi_nand_spl.c | 89 int ecc_size; member 211 writel(conf->ecc_size, SUNXI_NFC_BASE + NFC_CNT); in nand_apply_config() 258 int nsectors = len / conf->ecc_size; in nand_read_page() 265 if (offs % conf->page_size || len % conf->ecc_size || in nand_read_page() 275 int data_off = i * conf->ecc_size; in nand_read_page() 283 (conf->ecc_size == 512 ? NFC_ECC_BLOCK_SIZE : 0) | in nand_read_page() 289 writel(conf->ecc_size, SUNXI_NFC_BASE + NFC_CNT); in nand_read_page() 315 conf->ecc_size); in nand_read_page() 321 if (data_off + conf->ecc_size >= len) in nand_read_page() 331 int nsectors = conf->page_size / conf->ecc_size; in nand_max_ecc_strength() [all …]
|
| H A D | denali.c | 315 int ecc_size = chip->ecc.size; in denali_check_erased_page() local 328 stat = nand_check_erased_ecc_chunk(buf, ecc_size, in denali_check_erased_page() 339 buf += ecc_size; in denali_check_erased_page() 385 unsigned int ecc_size = denali->nand.ecc.size; in denali_sw_ecc_fixup() local 417 } else if (err_byte < ecc_size) { in denali_sw_ecc_fixup() 428 offset = (err_sector * ecc_size + err_byte) * in denali_sw_ecc_fixup() 640 int ecc_size = chip->ecc.size; in denali_oob_xfer() local 656 pos = ecc_size + i * (ecc_size + ecc_bytes); in denali_oob_xfer() 697 int ecc_size = chip->ecc.size; in denali_read_page_raw() local 711 pos = i * (ecc_size + ecc_bytes); in denali_read_page_raw() [all …]
|
| H A D | pxa3xx_nand.c | 226 unsigned int ecc_size; member 625 data_len += info->step_spare_size + info->ecc_size; in handle_data_pio() 890 info->step_spare_size + info->ecc_size; in prepare_set_command() 1312 (chunk * (info->ecc_size)), in pxa3xx_nand_read_page_raw() 1313 info->ecc_size - 2); in pxa3xx_nand_read_page_raw() 1326 (info->nfullchunks * (info->ecc_size)), in pxa3xx_nand_read_page_raw() 1327 info->ecc_size - 2); in pxa3xx_nand_read_page_raw() 1529 info->ecc_size = 24; in pxa_ecc_init() 1539 info->ecc_size = 8; in pxa_ecc_init() 1554 info->ecc_size = 32; in pxa_ecc_init() [all …]
|
| H A D | fsl_ifc_nand.c | 712 const int ecc_size = chip->ecc.bytes; in check_erased_page() local 720 res = nand_check_erased_ecc_chunk(buf, pkt_size, ecc, ecc_size, in check_erased_page() 731 ecc += ecc_size; in check_erased_page()
|
| H A D | nand_base.c | 2959 int ecc_size = chip->ecc.size; in nand_write_subpage_hwecc() local 2963 uint32_t start_step = offset / ecc_size; in nand_write_subpage_hwecc() 2964 uint32_t end_step = (offset + data_len - 1) / ecc_size; in nand_write_subpage_hwecc() 2974 ret = nand_write_data_op(chip, buf, ecc_size, false); in nand_write_subpage_hwecc() 2989 buf += ecc_size; in nand_write_subpage_hwecc()
|