Lines Matching refs:SECTORSIZE
36 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()
332 if (memcmpb(buf, 0xff, SECTORSIZE) != 0) in check_free_sectors()
337 &retlen, &buf[SECTORSIZE]) < 0) in check_free_sectors()
339 if (memcmpb(buf + SECTORSIZE, 0xff, mtd->oobsize) != 0) in check_free_sectors()
342 address += SECTORSIZE; in check_free_sectors()
408 instr->addr = block * inftl->EraseSize + SECTORSIZE * 2; in INFTL_formatblock()
585 2 * SECTORSIZE + 8, 8, &retlen, in INFTL_mount()