Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dsunxi_nand_spl.c88 int ecc_size; member
210 writel(conf->ecc_size, SUNXI_NFC_BASE + NFC_CNT); in nand_apply_config()
257 int nsectors = len / conf->ecc_size; in nand_read_page()
264 if (offs % conf->page_size || len % conf->ecc_size || in nand_read_page()
274 int data_off = i * conf->ecc_size; in nand_read_page()
282 (conf->ecc_size == 512 ? NFC_ECC_BLOCK_SIZE : 0) | in nand_read_page()
288 writel(conf->ecc_size, SUNXI_NFC_BASE + NFC_CNT); in nand_read_page()
314 conf->ecc_size); in nand_read_page()
320 if (data_off + conf->ecc_size >= len) in nand_read_page()
330 int nsectors = conf->page_size / conf->ecc_size; in nand_max_ecc_strength()
[all …]
H A Ddenali.c314 int ecc_size = chip->ecc.size; in denali_check_erased_page() local
327 stat = nand_check_erased_ecc_chunk(buf, ecc_size, in denali_check_erased_page()
338 buf += ecc_size; in denali_check_erased_page()
384 unsigned int ecc_size = denali->nand.ecc.size; in denali_sw_ecc_fixup() local
416 } else if (err_byte < ecc_size) { in denali_sw_ecc_fixup()
427 offset = (err_sector * ecc_size + err_byte) * in denali_sw_ecc_fixup()
639 int ecc_size = chip->ecc.size; in denali_oob_xfer() local
655 pos = ecc_size + i * (ecc_size + ecc_bytes); in denali_oob_xfer()
696 int ecc_size = chip->ecc.size; in denali_read_page_raw() local
710 pos = i * (ecc_size + ecc_bytes); in denali_read_page_raw()
[all …]
H A Dpxa3xx_nand.c225 unsigned int ecc_size; member
624 data_len += info->step_spare_size + info->ecc_size; in handle_data_pio()
889 info->step_spare_size + info->ecc_size; in prepare_set_command()
1311 (chunk * (info->ecc_size)), in pxa3xx_nand_read_page_raw()
1312 info->ecc_size - 2); in pxa3xx_nand_read_page_raw()
1325 (info->nfullchunks * (info->ecc_size)), in pxa3xx_nand_read_page_raw()
1326 info->ecc_size - 2); in pxa3xx_nand_read_page_raw()
1528 info->ecc_size = 24; in pxa_ecc_init()
1538 info->ecc_size = 8; in pxa_ecc_init()
1553 info->ecc_size = 32; in pxa_ecc_init()
[all …]
H A Dfsl_ifc_nand.c711 const int ecc_size = chip->ecc.bytes; in check_erased_page() local
719 res = nand_check_erased_ecc_chunk(buf, pkt_size, ecc, ecc_size, in check_erased_page()
730 ecc += ecc_size; in check_erased_page()
H A Dnand_base.c2288 int ecc_size = chip->ecc.size; in nand_write_subpage_hwecc() local
2292 uint32_t start_step = offset / ecc_size; in nand_write_subpage_hwecc()
2293 uint32_t end_step = (offset + data_len - 1) / ecc_size; in nand_write_subpage_hwecc()
2302 chip->write_buf(mtd, buf, ecc_size); in nand_write_subpage_hwecc()
2315 buf += ecc_size; in nand_write_subpage_hwecc()
/openbmc/u-boot/arch/arm/mach-aspeed/ast2500/
H A Dboard_common.c214 u32 ecc_size = ast_sdmc_get_ecc_size() >> 20; in board_add_ram_info() local
221 printf(", ECC size:%d MiB", ecc_size); in board_add_ram_info()
/openbmc/u-boot/drivers/ram/aspeed/
H A Dsdram_ast2500.c373 u32 ecc_size; in ast2500_sdrammc_init_ddr4() local
375 ecc_size = dev_read_u32_default(dev, "aspeed,ecc-size-mb", 0); in ast2500_sdrammc_init_ddr4()
376 ast2500_sdrammc_ecc_enable(info, ecc_size); in ast2500_sdrammc_init_ddr4()
H A Dsdram_ast2600.c1012 u32 ecc_size; in ast2600_sdrammc_probe() local
1014 ecc_size = dev_read_u32_default(dev, "aspeed,ecc-size-mb", 0); in ast2600_sdrammc_probe()
1015 ast2600_sdrammc_ecc_enable(priv, ecc_size); in ast2600_sdrammc_probe()