Lines Matching refs:sector_count
334 uint32_t sector_count; /* total number of sectors of the partition */ member
394 lba|= sector2CHS(s->bs, &partition->end_CHS, s->sector_count); in init_mbr()
398 partition->length_sector_long=cpu_to_le32(s->sector_count - s->first_sectors_number+1); in init_mbr()
862 s->sectors_per_fat=(s->sector_count+i)/i; /* round up */ in init_directories()
879 s->cluster_count=sector2cluster(s, s->sector_count); in init_directories()
933 s->fat_type == 12 ? s->sector_count == 2880 ? "1.44 MB" in init_directories()
968 bootsector->total_sectors16=s->sector_count>0xffff?0:cpu_to_le16(s->sector_count); in init_directories()
969 …bootsector->media_type=(s->fat_type!=12?0xf8:s->sector_count==5760?0xf9:0xf8); /* media descriptor… in init_directories()
975 bootsector->total_sectors=cpu_to_le32(s->sector_count>0xffff?s->sector_count:0); in init_directories()
1041 s->sector_count=bs->cyls*bs->heads*bs->secs; in vvfat_open()
1050 s->sector_count=2880; in vvfat_open()
1072 s->sector_count = s->faked_sectors + s->sectors_per_cluster*s->cluster_count; in vvfat_open()
1295 if (sector_num >= s->sector_count) in vvfat_read()
1888 for (i = 0; i < sector2cluster(s, s->sector_count); i++) in is_consistent()
1909 for (i = check; i < sector2cluster(s, s->sector_count); i++) { in is_consistent()
2645 memset(s->used_clusters, 0, sector2cluster(s, s->sector_count)); in do_commit()
2756 *n = s->sector_count - sector_num; in vvfat_is_allocated()
2786 int size = sector2cluster(s, s->sector_count); in enable_write_target()
2796 set_option_parameter_int(options, BLOCK_OPT_SIZE, s->sector_count * 512); in enable_write_target()