Searched refs:disk_size (Results 1 – 1 of 1) sorted by relevance
80 get_sectors_per_cluster( Wide disk_size ) in get_sectors_per_cluster() argument82 Wide disk_MB = disk_size/(1024*1024); in get_sectors_per_cluster()100 get_sectors_per_fat( Wide disk_size, int sectors_per_cluster ) in get_sectors_per_fat() argument105 disk_size -= RESERVED_SECTORS * BYTES_PER_SECTOR; /* don't count 32 reserved sectors */ in get_sectors_per_fat()106 disk_size /= BYTES_PER_SECTOR; /* disk size in sectors */ in get_sectors_per_fat()109 return (int)( (disk_size + (divider-1)) / divider ); in get_sectors_per_fat()113 boot_sector_init( Bytes boot, Bytes info, Wide disk_size, const char* label ) in boot_sector_init() argument115 int sectors_per_cluster = get_sectors_per_cluster(disk_size); in boot_sector_init()116 int sectors_per_fat = get_sectors_per_fat(disk_size, sectors_per_cluster); in boot_sector_init()117 int sectors_per_disk = (int)(disk_size / BYTES_PER_SECTOR); in boot_sector_init()[all …]