Lines Matching refs:ecc_size
328 int ecc_size = chip->ecc.size; in denali_check_erased_page() local
336 stat = nand_check_erased_ecc_chunk(buf, ecc_size, in denali_check_erased_page()
347 buf += ecc_size; in denali_check_erased_page()
393 unsigned int ecc_size = denali->nand.ecc.size; in denali_sw_ecc_fixup() local
425 } else if (err_byte < ecc_size) { in denali_sw_ecc_fixup()
436 offset = (err_sector * ecc_size + err_byte) * in denali_sw_ecc_fixup()
646 int ecc_size = chip->ecc.size; in denali_oob_xfer() local
662 pos = ecc_size + i * (ecc_size + ecc_bytes); in denali_oob_xfer()
708 int ecc_size = chip->ecc.size; in denali_read_page_raw() local
722 pos = i * (ecc_size + ecc_bytes); in denali_read_page_raw()
723 len = ecc_size; in denali_read_page_raw()
732 if (len < ecc_size) { in denali_read_page_raw()
733 len = ecc_size - len; in denali_read_page_raw()
750 pos = ecc_size + i * (ecc_size + ecc_bytes); in denali_read_page_raw()
835 int ecc_size = chip->ecc.size; in denali_write_page_raw() local
852 pos = i * (ecc_size + ecc_bytes); in denali_write_page_raw()
853 len = ecc_size; in denali_write_page_raw()
862 if (len < ecc_size) { in denali_write_page_raw()
863 len = ecc_size - len; in denali_write_page_raw()
880 pos = ecc_size + i * (ecc_size + ecc_bytes); in denali_write_page_raw()