Lines Matching refs:sectorsize
226 if (req->ecc.sectorsize == 512) { in atmel_pmecc_create_gf_tables()
260 if (req->ecc.sectorsize == 512) in atmel_pmecc_get_gf_tables()
289 if (req->ecc.sectorsize == ATMEL_PMECC_SECTOR_SIZE_AUTO) { in atmel_pmecc_prepare_user_req()
294 req->ecc.sectorsize = 1024; in atmel_pmecc_prepare_user_req()
296 req->ecc.sectorsize = 512; in atmel_pmecc_prepare_user_req()
299 if (req->ecc.sectorsize != 512 && req->ecc.sectorsize != 1024) in atmel_pmecc_prepare_user_req()
302 if (req->pagesize % req->ecc.sectorsize) in atmel_pmecc_prepare_user_req()
305 req->ecc.nsectors = req->pagesize / req->ecc.sectorsize; in atmel_pmecc_prepare_user_req()
316 nbytes = DIV_ROUND_UP(strength * fls(8 * req->ecc.sectorsize), in atmel_pmecc_prepare_user_req()
400 if (req->ecc.sectorsize == 1024) in atmel_pmecc_create_user()
694 int sectorsize = get_sectorsize(user); in atmel_pmecc_correct_sector() local
722 if (byte < sectorsize) { in atmel_pmecc_correct_sector()
725 } else if (byte < sectorsize + eccbytes) { in atmel_pmecc_correct_sector()
726 ptr = ecc + byte - sectorsize; in atmel_pmecc_correct_sector()
731 errpos, (sectorsize + eccbytes) * 8); in atmel_pmecc_correct_sector()