Home
last modified time | relevance | path

Searched refs:last_written (Results 1 – 5 of 5) sorted by relevance

/linux-3.4.99/drivers/scsi/
Dsr.c759 long last_written; in get_sectorsize() local
770 if (!cdrom_get_last_written(&cd->cdi, &last_written)) in get_sectorsize()
771 cd->capacity = max_t(long, cd->capacity, last_written); in get_sectorsize()
/linux-3.4.99/drivers/ide/
Dide-cd.c960 long last_written; in ide_cd_read_toc() local
1105 stat = cdrom_get_last_written(cdi, &last_written); 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()
/linux-3.4.99/drivers/cdrom/
Dcdrom.c3282 int cdrom_get_last_written(struct cdrom_device_info *cdi, long *last_written) in cdrom_get_last_written() argument
3319 *last_written = be32_to_cpu(ti.last_rec_address); in cdrom_get_last_written()
3322 *last_written = be32_to_cpu(ti.track_start) + in cdrom_get_last_written()
3325 *last_written -= (be32_to_cpu(ti.free_blocks) + 7); in cdrom_get_last_written()
3339 *last_written = toc.cdte_addr.lba; in cdrom_get_last_written()
/linux-3.4.99/drivers/block/
Dpktcdvd.c1742 long *last_written) in pkt_get_last_written() argument
1765 *last_written = be32_to_cpu(ti.last_rec_address); in pkt_get_last_written()
1768 *last_written = be32_to_cpu(ti.track_start) + in pkt_get_last_written()
1771 *last_written -= (be32_to_cpu(ti.free_blocks) + 7); in pkt_get_last_written()
/linux-3.4.99/include/linux/
Dcdrom.h1015 extern int cdrom_get_last_written(struct cdrom_device_info *cdi, long *last_written);