Lines Matching refs:bytes_per_sector
709 static void rescue_sector(void *fd, u32 bytes_per_sector, off_t pos, void *buff) argument
723 if (read_all(fd, buff, bytes_per_sector) == -1) {
726 memset(buff, '?', bytes_per_sector);
735 static void read_rescue(void *fd, char *buff, u32 csize, u32 bytes_per_sector, argument
748 for (i = 0; i < csize; i += bytes_per_sector)
749 rescue_sector(fd, bytes_per_sector,
768 static u16 bytes_per_sector = NTFS_SECTOR_SIZE; local
772 bytes_per_sector = vol->sector_size;
801 for (i = 0; i < csize; i += bytes_per_sector)
802 rescue_sector(fd, bytes_per_sector,
822 bytes_per_sector = le16_to_cpu(bs->bpb.bytes_per_sector);
823 if ((bytes_per_sector > csize)
824 || (bytes_per_sector < NTFS_SECTOR_SIZE))
825 bytes_per_sector = NTFS_SECTOR_SIZE;
828 + csize - bytes_per_sector);
1511 u32 bytes_per_sector; local
1523 bytes_per_sector = image->ni->vol->sector_size;
1550 read_rescue(fd, &buff[k*csize], csize, bytes_per_sector,
1593 u32 bytes_per_sector; local
1604 bytes_per_sector = image->ni->vol->sector_size;
1631 read_rescue(fd, &buff[k*csize], csize, bytes_per_sector,