Searched refs:SECTORSIZE (Results 1 – 3 of 3) sorted by relevance
/drivers/mtd/ |
D | nftlmount.c | 31 #define SECTORSIZE 512 macro 43 u8 buf[SECTORSIZE]; in find_boot_record() 66 ret = mtd_read(mtd, block * nftl->EraseSize, SECTORSIZE, in find_boot_record() 70 if (retlen != SECTORSIZE) { in find_boot_record() 93 SECTORSIZE + 8, 8, &retlen, in find_boot_record() 113 ret = mtd->read(mtd, block * nftl->EraseSize, SECTORSIZE, in find_boot_record() 193 nftl->mbd.size = nftl->numvunits * (nftl->EraseSize / SECTORSIZE); in find_boot_record() 231 if ((i & (SECTORSIZE - 1)) == 0) { in find_boot_record() 235 SECTORSIZE, SECTORSIZE, in find_boot_record() 246 if (buf[i & (SECTORSIZE - 1)] != 0xff) in find_boot_record() [all …]
|
D | inftlcore.c | 280 for (block = 0; block < inftl->EraseSize/SECTORSIZE; block ++) { in INFTL_foldchain() 286 + (block * SECTORSIZE), 16, &retlen, in INFTL_foldchain() 326 for (block = 0; block < inftl->EraseSize/SECTORSIZE ; block++) { in INFTL_foldchain() 327 unsigned char movebuf[SECTORSIZE]; in INFTL_foldchain() 335 (thisVUC * (inftl->EraseSize / SECTORSIZE) + block))) { in INFTL_foldchain() 347 (inftl->EraseSize * BlockMap[block]) + (block * SECTORSIZE), in INFTL_foldchain() 348 SECTORSIZE, in INFTL_foldchain() 353 (inftl->EraseSize * BlockMap[block]) + (block * SECTORSIZE), in INFTL_foldchain() 354 SECTORSIZE, in INFTL_foldchain() 364 (block * SECTORSIZE), SECTORSIZE, &retlen, in INFTL_foldchain() [all …]
|
D | inftlmount.c | 49 u8 buf[SECTORSIZE]; in find_boot_record() 75 ret = mtd_read(mtd, block * inftl->EraseSize, SECTORSIZE, in find_boot_record() 79 if (retlen != SECTORSIZE) { in find_boot_record() 102 block * inftl->EraseSize + SECTORSIZE + 8, in find_boot_record() 120 mtd_read(mtd, block * inftl->EraseSize + 4096, SECTORSIZE, in find_boot_record() 122 if (retlen != SECTORSIZE) { in find_boot_record() 264 (inftl->EraseSize / SECTORSIZE); in find_boot_record() 339 u8 buf[SECTORSIZE + inftl->mbd.mtd->oobsize]; in check_free_sectors() 344 for (i = 0; i < len; i += SECTORSIZE) { in check_free_sectors() 345 if (mtd_read(mtd, address, SECTORSIZE, &retlen, buf)) in check_free_sectors() [all …]
|