Searched refs:last_written (Results 1 – 5 of 5) sorted by relevance
759 long last_written; in get_sectorsize() local770 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()
960 long last_written; in ide_cd_read_toc() local1105 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()
3282 int cdrom_get_last_written(struct cdrom_device_info *cdi, long *last_written) in cdrom_get_last_written() argument3319 *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()
1742 long *last_written) in pkt_get_last_written() argument1765 *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()
1015 extern int cdrom_get_last_written(struct cdrom_device_info *cdi, long *last_written);