Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dmxc_nand_spl.c188 u16 ecc_status = readw(&nfc->ecc_status_result); in nfc_nand_check_ecc() local
189 return (ecc_status & 0x3) == 2 || (ecc_status >> 2) == 2; in nfc_nand_check_ecc()
191 u32 ecc_status = readl(&nfc->ecc_status_result); in nfc_nand_check_ecc()
197 if ((ecc_status & 0xf) > err_limit) in nfc_nand_check_ecc()
199 ecc_status >>= 4; in nfc_nand_check_ecc()
H A Dvf610_nfc.c557 u8 ecc_status; in vf610_nfc_correct_data() local
562 ecc_status = vf610_nfc_read(mtd, ecc_status_off) & 0xff; in vf610_nfc_correct_data()
563 ecc_count = ecc_status & ECC_STATUS_ERR_COUNT; in vf610_nfc_correct_data()
565 if (!(ecc_status & ECC_STATUS_MASK)) in vf610_nfc_correct_data()
H A Dzynq_nand.c316 u32 ecc_status; in zynq_nand_calculate_hwecc() local
319 ecc_status = zynq_nand_waitfor_ecc_completion(); in zynq_nand_calculate_hwecc()
320 if (ecc_status < 0) { in zynq_nand_calculate_hwecc()
322 return ecc_status; in zynq_nand_calculate_hwecc()
330 ecc_status = (ecc_value >> 24) & 0xFF; in zynq_nand_calculate_hwecc()
333 if (ecc_status & ZYNQ_NAND_ECC_STATUS) { in zynq_nand_calculate_hwecc()
H A Dmxc_nand.c663 uint32_t ecc_status = readl(&host->regs->ecc_status_result); local
669 if ((ecc_status & 0xf) > 4) {
683 ecc_status >>= 4;
708 uint16_t ecc_status = readnfc(&host->regs->ecc_status_result); local
710 if (((ecc_status & 0x3) == 2) || ((ecc_status >> 2) == 2)) {
H A Datmel_nand.c1083 unsigned int ecc_status; in atmel_nand_correct() local
1087 ecc_status = ecc_readl(CONFIG_SYS_NAND_ECC_BASE, SR); in atmel_nand_correct()
1090 if (likely(!(ecc_status & ATMEL_ECC_RECERR))) in atmel_nand_correct()
1100 if (ecc_status & ATMEL_ECC_MULERR) { in atmel_nand_correct()
1117 if (ecc_status & ATMEL_ECC_ECCERR) { in atmel_nand_correct()
/openbmc/linux/drivers/mtd/nand/raw/
H A Dnand_toshiba.c32 u8 *ecc_status = buf; in toshiba_nand_benand_read_eccstatus_op() local
40 NAND_OP_8BIT_DATA_IN(chip->ecc.steps, ecc_status, 0), in toshiba_nand_benand_read_eccstatus_op()
55 u8 status, ecc_status[TOSHIBA_NAND_MAX_ECC_STEPS]; in toshiba_nand_benand_eccstatus() local
58 ret = toshiba_nand_benand_read_eccstatus_op(chip, ecc_status); in toshiba_nand_benand_eccstatus()
63 bitflips = ecc_status[i] & TOSHIBA_NAND_ECC_STATUS_MASK; in toshiba_nand_benand_eccstatus()
H A Dr852.c466 uint8_t ecc_status, err_byte; in r852_ecc_correct() local
485 ecc_status = (ecc_reg >> 8) & 0xFF; in r852_ecc_correct()
488 if (ecc_status & R852_ECC_FAIL) { in r852_ecc_correct()
495 if (ecc_status & R852_ECC_CORRECTABLE) { in r852_ecc_correct()
500 err_byte, ecc_status & R852_ECC_ERR_BIT_MSK); in r852_ecc_correct()
503 1 << (ecc_status & R852_ECC_ERR_BIT_MSK); in r852_ecc_correct()
H A Dvf610_nfc.c513 u8 ecc_status; in vf610_nfc_correct_data() local
517 ecc_status = vf610_nfc_read(nfc, ecc_status_off) & 0xff; in vf610_nfc_correct_data()
518 ecc_count = ecc_status & ECC_STATUS_ERR_COUNT; in vf610_nfc_correct_data()
520 if (!(ecc_status & ECC_STATUS_MASK)) in vf610_nfc_correct_data()
/openbmc/linux/drivers/edac/
H A Dzynqmp_edac.c91 struct ecc_status { struct
113 struct ecc_status stat; argument
133 static void get_error_info(void __iomem *base, struct ecc_status *p, int mask) in get_error_info()
157 static void handle_error(struct edac_device_ctl_info *dci, struct ecc_status *p) in handle_error()
/openbmc/u-boot/arch/arm/mach-aspeed/ast2500/
H A Dboard_common.c153 u32 ecc_status = SDMC_CONFIG_ECC_STATUS_GET(readl(0x1e6e0004)); in ast_sdmc_is_ecc_on() local
155 return !!ecc_status; in ast_sdmc_is_ecc_on()
/openbmc/linux/drivers/scsi/aic94xx/
H A Daic94xx_hwi.c959 u32 ecc_status; in asd_hst_pcix_isr() local
963 pci_read_config_dword(asd_ha->pcidev, ECC_CTRL_STAT, &ecc_status); in asd_hst_pcix_isr()
988 else if (ecc_status & UNCOR_ECCERR) in asd_hst_pcix_isr()