Lines Matching refs:toc
245 struct atapi_toc *toc;
251 if ((drive->atapi_flags & IDE_AFLAG_TOC_VALID) == 0 || !info->toc) {
257 toc = info->toc;
258 ms_info->addr.lba = toc->last_session_lba;
259 ms_info->xa_flag = toc->xa_flag;
319 struct atapi_toc *toc = info->toc;
323 * don't serve cached data, if the toc isn't valid
329 ntracks = toc->hdr.last_track - toc->hdr.first_track + 1;
331 if (toc->hdr.first_track == CDROM_LEADOUT)
335 *ent = &toc->ent[ntracks];
336 else if (track < toc->hdr.first_track || track > toc->hdr.last_track)
339 *ent = &toc->ent[track - toc->hdr.first_track];
382 struct atapi_toc *toc;
390 toc = cd->toc;
391 tochdr->cdth_trk0 = toc->hdr.first_track;
392 tochdr->cdth_trk1 = toc->hdr.last_track;