Lines Matching refs:SECTOR_SIZE
53 #define SECTOR_SIZE 512 macro
140 (i + part->header_sectors_per_block) * SECTOR_SIZE; in build_block_map()
158 sectors_per_block = part->block_size / SECTOR_SIZE; in scan_header()
167 sizeof(u16) + SECTOR_SIZE - 1) / SECTOR_SIZE; in scan_header()
252 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in rfd_ftl_readsect()
254 if (!rc && retlen != SECTOR_SIZE) in rfd_ftl_readsect()
263 memset(buf, 0, SECTOR_SIZE); in rfd_ftl_readsect()
328 sector_data = kmalloc(SECTOR_SIZE, GFP_KERNEL); in move_block_contents()
366 (i + part->header_sectors_per_block) * SECTOR_SIZE; in move_block_contents()
376 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in move_block_contents()
379 if (!rc && retlen != SECTOR_SIZE) in move_block_contents()
553 offset = (old_addr % part->block_size) / SECTOR_SIZE - in mark_sector_deleted()
628 addr = (i + part->header_sectors_per_block) * SECTOR_SIZE + in do_writesect()
630 rc = mtd_write(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in do_writesect()
633 if (!rc && retlen != SECTOR_SIZE) in do_writesect()
688 for (i=0; i<SECTOR_SIZE; i++) { in rfd_ftl_writesect()
698 if (i == SECTOR_SIZE) in rfd_ftl_writesect()
813 .blksize = SECTOR_SIZE,