Searched refs:ecc_value (Results 1 – 3 of 3) sorted by relevance
441 u32 ecc_value = ~ecc_reg; in pl35x_nand_ecc_reg_to_array() local445 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() local456 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() local479 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 …]
314 u32 ecc_value = 0; in zynq_nand_calculate_hwecc() local327 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()
995 unsigned int ecc_value; in atmel_nand_calculate() local998 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()