Home
last modified time | relevance | path

Searched refs:SECTORSIZE (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/mtd/
H A Dnftlmount.c18 #define SECTORSIZE 512 macro
30 u8 buf[SECTORSIZE]; in find_boot_record()
53 ret = mtd_read(mtd, block * nftl->EraseSize, SECTORSIZE, in find_boot_record()
57 if (retlen != SECTORSIZE) { in find_boot_record()
80 SECTORSIZE + 8, 8, &retlen, in find_boot_record()
100 ret = mtd->read(mtd, block * nftl->EraseSize, SECTORSIZE, in find_boot_record()
179 nftl->mbd.size = nftl->numvunits * (nftl->EraseSize / SECTORSIZE); in find_boot_record()
217 if ((i & (SECTORSIZE - 1)) == 0) { in find_boot_record()
221 SECTORSIZE, SECTORSIZE, in find_boot_record()
232 if (buf[i & (SECTORSIZE - 1)] != 0xff) in find_boot_record()
[all …]
H A Dinftlcore.c267 for (block = 0; block < inftl->EraseSize/SECTORSIZE; block ++) { in INFTL_foldchain()
273 + (block * SECTORSIZE), 16, &retlen, in INFTL_foldchain()
313 for (block = 0; block < inftl->EraseSize/SECTORSIZE ; block++) { in INFTL_foldchain()
314 unsigned char movebuf[SECTORSIZE]; in INFTL_foldchain()
322 (thisVUC * (inftl->EraseSize / SECTORSIZE) + block))) { in INFTL_foldchain()
334 (inftl->EraseSize * BlockMap[block]) + (block * SECTORSIZE), in INFTL_foldchain()
335 SECTORSIZE, in INFTL_foldchain()
340 (inftl->EraseSize * BlockMap[block]) + (block * SECTORSIZE), in INFTL_foldchain()
341 SECTORSIZE, in INFTL_foldchain()
351 (block * SECTORSIZE), SECTORSIZE, &retlen, in INFTL_foldchain()
[all …]
H A Dinftlmount.c36 u8 buf[SECTORSIZE]; in find_boot_record()
62 ret = mtd_read(mtd, block * inftl->EraseSize, SECTORSIZE, in find_boot_record()
66 if (retlen != SECTORSIZE) { in find_boot_record()
89 block * inftl->EraseSize + SECTORSIZE + 8, in find_boot_record()
107 mtd_read(mtd, block * inftl->EraseSize + 4096, SECTORSIZE, in find_boot_record()
109 if (retlen != SECTORSIZE) { in find_boot_record()
249 (inftl->EraseSize / SECTORSIZE); in find_boot_record()
324 buf = kmalloc(SECTORSIZE + mtd->oobsize, GFP_KERNEL); in check_free_sectors()
329 for (i = 0; i < len; i += SECTORSIZE) { in check_free_sectors()
330 if (mtd_read(mtd, address, SECTORSIZE, &retlen, buf)) in check_free_sectors()
[all …]
/linux/include/uapi/mtd/
H A Dinftl-user.h15 #define SECTORSIZE 512 macro