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