Lines Matching refs:capacity
873 static int cdrom_read_capacity(ide_drive_t *drive, unsigned long *capacity, in cdrom_read_capacity() argument
918 *capacity = 1 + be32_to_cpu(capbuf.lba); in cdrom_read_capacity()
922 *capacity, *sectors_per_frame); in cdrom_read_capacity()
986 stat = cdrom_read_capacity(drive, &toc->capacity, §ors_per_frame, in ide_cd_read_toc()
989 toc->capacity = 0x1fffff; in ide_cd_read_toc()
991 set_capacity(info->disk, toc->capacity * sectors_per_frame); in ide_cd_read_toc()
993 drive->probed_capacity = toc->capacity * sectors_per_frame; in ide_cd_read_toc()
1106 if (!stat && (last_written > toc->capacity)) { in ide_cd_read_toc()
1107 toc->capacity = last_written; in ide_cd_read_toc()
1108 set_capacity(info->disk, toc->capacity * sectors_per_frame); in ide_cd_read_toc()
1109 drive->probed_capacity = toc->capacity * sectors_per_frame; in ide_cd_read_toc()
1194 devinfo->capacity = nslots; in ide_cdrom_register()
1393 unsigned long capacity, sectors_per_frame; in ide_cdrom_capacity() local
1395 if (cdrom_read_capacity(drive, &capacity, §ors_per_frame, NULL)) in ide_cdrom_capacity()
1398 return capacity * sectors_per_frame; in ide_cdrom_capacity()