Searched refs:NAND_ECC_SECTOR_SIZE (Results 1 – 3 of 3) sorted by relevance
24 static rt_uint32_t ecc_rdbuf[NAND_MAX_PAGE_SIZE/NAND_ECC_SECTOR_SIZE];25 static rt_uint32_t ecc_hdbuf[NAND_MAX_PAGE_SIZE/NAND_ECC_SECTOR_SIZE];279 if (data_len % NAND_ECC_SECTOR_SIZE) in _read_page()288 eccnum = data_len/NAND_ECC_SECTOR_SIZE; in _read_page()294 for (i = 0; i < NAND_ECC_SECTOR_SIZE; i++) in _read_page()334 … result = rt_hw_nand_ecc_check(ecc_hdbuf[i], ecc_rdbuf[i], p + NAND_ECC_SECTOR_SIZE*i); in _read_page()406 if (data_len % NAND_ECC_SECTOR_SIZE) in _write_page()416 eccnum = data_len/NAND_ECC_SECTOR_SIZE; in _write_page()421 for (i = 0; i < NAND_ECC_SECTOR_SIZE; i++) in _write_page()
22 #define NAND_ECC_SECTOR_SIZE 512 macro
59 #define NAND_ECC_SECTOR_SIZE 512UL macro61 …E_FREE_SIZE (NAND_SPARE_AREA_SIZE - (NAND_BYTES_PER_PAGE / NAND_ECC_SECTOR_SIZE) * NAND_ECC…105 … (NAND_BYTES_PER_PAGE / NAND_ECC_SECTOR_SIZE) * NAND_ECC_CODE_SIZE); in _nand_init()285 if ((data_len % NAND_ECC_SECTOR_SIZE) != 0UL) in _nand_read_page()356 if ((data_len % NAND_ECC_SECTOR_SIZE) != 0UL) in _nand_write_page()441 … = (rt_uint16_t)(NAND_SPARE_AREA_SIZE - (NAND_BYTES_PER_PAGE / NAND_ECC_SECTOR_SIZE) * NAND_ECC… in rt_hw_nand_init()
Completed in 10 milliseconds