Home
last modified time | relevance | path

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

/openbmc/linux/drivers/mtd/nand/raw/
H A Dpl35x-nand-controller.c441 u32 ecc_value = ~ecc_reg; in pl35x_nand_ecc_reg_to_array() local
445 ecc_array[ecc_byte] = ecc_value >> (8 * ecc_byte); in pl35x_nand_ecc_reg_to_array()
451 u32 ecc_value; in pl35x_nand_read_eccbytes() local
456 ecc_value = readl(nfc->conf_regs + PL35X_SMC_ECC_VALUE(chunk)); in pl35x_nand_read_eccbytes()
457 if (!PL35X_SMC_ECC_VALUE_IS_VALID(ecc_value)) in pl35x_nand_read_eccbytes()
460 pl35x_nand_ecc_reg_to_array(chip, ecc_value, read_ecc); in pl35x_nand_read_eccbytes()
473 u32 ecc_value; in pl35x_nand_recover_data_hwecc() local
479 ecc_value = readl(nfc->conf_regs + PL35X_SMC_ECC_VALUE(chunk)); in pl35x_nand_recover_data_hwecc()
481 if (!PL35X_SMC_ECC_VALUE_IS_VALID(ecc_value)) in pl35x_nand_recover_data_hwecc()
484 if (PL35X_SMC_ECC_VALUE_HAS_FAILED(ecc_value)) { in pl35x_nand_recover_data_hwecc()
[all …]
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dzynq_nand.c314 u32 ecc_value = 0; in zynq_nand_calculate_hwecc() local
327 ecc_value = readl(&zynq_nand_smc_base->eval0r + ecc_reg); in zynq_nand_calculate_hwecc()
330 ecc_status = (ecc_value >> 24) & 0xFF; in zynq_nand_calculate_hwecc()
336 *ecc_code = ecc_value & 0xFF; in zynq_nand_calculate_hwecc()
337 ecc_value = ecc_value >> 8; in zynq_nand_calculate_hwecc()
H A Datmel_nand.c995 unsigned int ecc_value; in atmel_nand_calculate() local
998 ecc_value = ecc_readl(CONFIG_SYS_NAND_ECC_BASE, PR); in atmel_nand_calculate()
1000 ecc_code[0] = ecc_value & 0xFF; in atmel_nand_calculate()
1001 ecc_code[1] = (ecc_value >> 8) & 0xFF; in atmel_nand_calculate()
1004 ecc_value = ecc_readl(CONFIG_SYS_NAND_ECC_BASE, NPR) & ATMEL_ECC_NPARITY; in atmel_nand_calculate()
1006 ecc_code[2] = ecc_value & 0xFF; in atmel_nand_calculate()
1007 ecc_code[3] = (ecc_value >> 8) & 0xFF; in atmel_nand_calculate()