Lines Matching refs:SECTOR_SIZE
106 #define SECTOR_SIZE 512 macro
398 le32_to_cpu(part->header.BAMOffset), SECTOR_SIZE); in prepare_xfer()
431 u_char buf[SECTOR_SIZE]; in copy_erase_unit()
490 ret = mtd_read(part->mbd.mtd, src, SECTOR_SIZE, &retlen, in copy_erase_unit()
498 ret = mtd_write(part->mbd.mtd, dest, SECTOR_SIZE, &retlen, in copy_erase_unit()
512 src += SECTOR_SIZE; in copy_erase_unit()
513 dest += SECTOR_SIZE; in copy_erase_unit()
765 if (((sector+i) * SECTOR_SIZE) >= le32_to_cpu(part->header.FormattedSize)) { in ftl_read()
771 memset(buffer, 0, SECTOR_SIZE); in ftl_read()
775 ret = mtd_read(part->mbd.mtd, offset, SECTOR_SIZE, &retlen, in ftl_read()
783 buffer += SECTOR_SIZE; in ftl_read()
809 blk = (log_addr % bsize) / SECTOR_SIZE; in set_bam_entry()
885 virt_addr = sector * SECTOR_SIZE | BLOCK_DATA; in ftl_write()
903 log_addr = part->bam_index * bsize + blk * SECTOR_SIZE; in ftl_write()
910 blk * SECTOR_SIZE); in ftl_write()
911 ret = mtd_write(part->mbd.mtd, offset, SECTOR_SIZE, &retlen, buffer); in ftl_write()
936 buffer += SECTOR_SIZE; in ftl_write()
937 virt_addr += SECTOR_SIZE; in ftl_write()
948 sect = le32_to_cpu(part->header.FormattedSize)/SECTOR_SIZE; in ftl_getgeo()
1049 .blksize = SECTOR_SIZE,