Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/mtd/
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()
220 if ((i & (SECTORSIZE - 1)) == 0) { in find_boot_record()
224 SECTORSIZE, SECTORSIZE, in find_boot_record()
235 if (buf[i & (SECTORSIZE - 1)] != 0xff) in find_boot_record()
[all …]
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 …]
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()
331 buf = kmalloc(SECTORSIZE + mtd->oobsize, GFP_KERNEL); in check_free_sectors()
336 for (i = 0; i < len; i += SECTORSIZE) { in check_free_sectors()
337 if (mtd_read(mtd, address, SECTORSIZE, &retlen, buf)) in check_free_sectors()
[all …]
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/mtd/
Dinftl-user.h24 #define SECTORSIZE 512 macro
/kernel/linux/linux-5.10/include/uapi/mtd/
Dinftl-user.h15 #define SECTORSIZE 512 macro
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/mtd/
Dinftl-user.h11 #define SECTORSIZE 512 macro