tag | line | file | source code |
toc | 183 | drivers/block/cm206.c | struct toc_struct toc[101]; /* The whole table of contents + lead-out */ |
toc | 192 | drivers/block/cm206.c | #define PLAY_TO cd->toc[0] /* toc[0] records end-time in play */ |
toc | 560 | drivers/block/cm206.c | memset(cd->toc, 0, sizeof(cd->toc)); |
toc | 749 | drivers/block/cm206.c | for (i=track; i>0; i--) if (cd->toc[i].track) { |
toc | 750 | drivers/block/cm206.c | min = fsm2lba(cd->toc[i].fsm); |
toc | 758 | drivers/block/cm206.c | if (!cd->toc[ct].track) { |
toc | 761 | drivers/block/cm206.c | cd->toc[ct].track=q[1]; /* lead out still 0xaa */ |
toc | 762 | drivers/block/cm206.c | fsm(l, cd->toc[ct].fsm); |
toc | 763 | drivers/block/cm206.c | cd->toc[ct].q0 = q[0]; /* contains adr and ctrl info */ |
toc | 790 | drivers/block/cm206.c | if (!cd->toc[track].track) get_toc_lba(track); |
toc | 800 | drivers/block/cm206.c | cd->toc[1].track=1; /* fill in first track position */ |
toc | 801 | drivers/block/cm206.c | for (i=0; i<3; i++) cd->toc[1].fsm[i] = cd->disc_status[3+i]; |
toc | 834 | drivers/block/cm206.c | play_command[i+1] = cd->toc[from].fsm[i]; |
toc | 835 | drivers/block/cm206.c | PLAY_TO.fsm[i] = play_command[i+4] = cd->toc[to+1].fsm[i]; |
toc | 878 | drivers/block/cm206.c | ep->cdte_addr.msf.frame = cd->toc[track].fsm[0]; |
toc | 879 | drivers/block/cm206.c | ep->cdte_addr.msf.second = cd->toc[track].fsm[1]; |
toc | 880 | drivers/block/cm206.c | ep->cdte_addr.msf.minute = cd->toc[track].fsm[2]; |
toc | 882 | drivers/block/cm206.c | else ep->cdte_addr.lba = fsm2lba(cd->toc[track].fsm); |
toc | 883 | drivers/block/cm206.c | ep->cdte_adr = cd->toc[track].q0 & 0xf; |
toc | 884 | drivers/block/cm206.c | ep->cdte_ctrl = cd->toc[track].q0 >> 4; |
toc | 998 | drivers/block/cm206.c | memset(cd->toc, 0, sizeof(cd->toc)); |
toc | 1703 | drivers/block/ide-cd.c | struct atapi_toc *toc = drive->cdrom_info.toc; |
toc | 1709 | drivers/block/ide-cd.c | if (toc == NULL) |
toc | 1712 | drivers/block/ide-cd.c | toc = (struct atapi_toc *) kmalloc (sizeof (struct atapi_toc), |
toc | 1714 | drivers/block/ide-cd.c | drive->cdrom_info.toc = toc; |
toc | 1717 | drivers/block/ide-cd.c | if (toc == NULL) |
toc | 1734 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, msf_flag, 0, (char *)&toc->hdr, |
toc | 1740 | drivers/block/ide-cd.c | ntracks = toc->hdr.last_track - toc->hdr.first_track + 1; |
toc | 1745 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, msf_flag, 0, (char *)&toc->hdr, |
toc | 1750 | drivers/block/ide-cd.c | byte_swap_word (&toc->hdr.toc_length); |
toc | 1755 | drivers/block/ide-cd.c | byte *adr = (byte *)&(toc->ent[i].lba); |
toc | 1756 | drivers/block/ide-cd.c | toc->ent[i].lba = msf_to_lba (adr[1], adr[2], adr[3]); |
toc | 1759 | drivers/block/ide-cd.c | byte_swap_long (&toc->ent[i].lba); |
toc | 1770 | drivers/block/ide-cd.c | toc->last_session_lba = msf_to_lba (adr[1], adr[2], adr[3]); |
toc | 1775 | drivers/block/ide-cd.c | toc->last_session_lba = ms_tmp.ent.lba; |
toc | 1777 | drivers/block/ide-cd.c | toc->xa_flag = (ms_tmp.hdr.first_track != ms_tmp.hdr.last_track); |
toc | 1780 | drivers/block/ide-cd.c | stat = cdrom_read_capacity (drive, &toc->capacity, reqbuf); |
toc | 1781 | drivers/block/ide-cd.c | if (stat) toc->capacity = 0x1fffff; |
toc | 1784 | drivers/block/ide-cd.c | = toc->capacity * SECTORS_PER_FRAME; |
toc | 1955 | drivers/block/ide-cd.c | struct atapi_toc *toc; |
toc | 1961 | drivers/block/ide-cd.c | toc = drive->cdrom_info.toc; |
toc | 1964 | drivers/block/ide-cd.c | ntracks = toc->hdr.last_track - toc->hdr.first_track + 1; |
toc | 1966 | drivers/block/ide-cd.c | *ent = &toc->ent[ntracks]; |
toc | 1967 | drivers/block/ide-cd.c | else if (track < toc->hdr.first_track || |
toc | 1968 | drivers/block/ide-cd.c | track > toc->hdr.last_track) |
toc | 1971 | drivers/block/ide-cd.c | *ent = &toc->ent[track - toc->hdr.first_track]; |
toc | 2117 | drivers/block/ide-cd.c | struct atapi_toc *toc; |
toc | 2126 | drivers/block/ide-cd.c | toc = drive->cdrom_info.toc; |
toc | 2127 | drivers/block/ide-cd.c | tochdr.cdth_trk0 = toc->hdr.first_track; |
toc | 2128 | drivers/block/ide-cd.c | tochdr.cdth_trk1 = toc->hdr.last_track; |
toc | 2268 | drivers/block/ide-cd.c | struct atapi_toc *toc; |
toc | 2282 | drivers/block/ide-cd.c | toc = drive->cdrom_info.toc; |
toc | 2285 | drivers/block/ide-cd.c | lba_to_msf (toc->last_session_lba, |
toc | 2291 | drivers/block/ide-cd.c | ms_info.addr.lba = toc->last_session_lba; |
toc | 2296 | drivers/block/ide-cd.c | ms_info.xa_flag = toc->xa_flag; |
toc | 2307 | drivers/block/ide-cd.c | struct atapi_toc *toc; |
toc | 2315 | drivers/block/ide-cd.c | toc = drive->cdrom_info.toc; |
toc | 2322 | drivers/block/ide-cd.c | if (ra.nframes < 0 || ra.nframes > toc->capacity) |
toc | 2341 | drivers/block/ide-cd.c | if (lba < 0 || lba >= toc->capacity) |
toc | 2363 | drivers/block/ide-cd.c | struct atapi_toc *toc; |
toc | 2390 | drivers/block/ide-cd.c | toc = drive->cdrom_info.toc; |
toc | 2392 | drivers/block/ide-cd.c | if (lba < 0 || lba >= toc->capacity) |
toc | 2590 | drivers/block/ide-cd.c | drive->cdrom_info.toc = NULL; |
toc | 203 | drivers/block/ide.h | struct atapi_toc *toc; |
toc | 152 | drivers/block/mcdx.c | struct s_subqcode* toc; /* first enty of the toc array */ |
toc | 370 | drivers/block/mcdx.c | tp = &stuffp->toc[stuffp->di.n_last - stuffp->di.n_first + 1]; |
toc | 373 | drivers/block/mcdx.c | else tp = &stuffp->toc[entry.cdte_track - stuffp->di.n_first]; |
toc | 449 | drivers/block/mcdx.c | struct cdrom_tochdr toc; |
toc | 453 | drivers/block/mcdx.c | if ((ans = verify_area(VERIFY_WRITE, (void*) arg, sizeof toc))) |
toc | 455 | drivers/block/mcdx.c | toc.cdth_trk0 = stuffp->di.n_first; |
toc | 456 | drivers/block/mcdx.c | toc.cdth_trk1 = stuffp->di.n_last; |
toc | 457 | drivers/block/mcdx.c | memcpy_tofs((void*) arg, &toc, sizeof toc); |
toc | 684 | drivers/block/mcdx.c | if (stuffp->toc) { |
toc | 685 | drivers/block/mcdx.c | TRACE((MALLOC, "open() free toc @ %p\n", stuffp->toc)); |
toc | 686 | drivers/block/mcdx.c | kfree(stuffp->toc); |
toc | 688 | drivers/block/mcdx.c | stuffp->toc = NULL; |
toc | 983 | drivers/block/mcdx.c | if (stuffp->toc) { |
toc | 984 | drivers/block/mcdx.c | TRACE((MALLOC, "cleanup_module() free toc @ %p\n", stuffp->toc)); |
toc | 985 | drivers/block/mcdx.c | kfree(stuffp->toc); |
toc | 1066 | drivers/block/mcdx.c | stuffp->toc = NULL; /* this should be NULL already */ |
toc | 1388 | drivers/block/mcdx.c | if (stuffp->toc) { |
toc | 1407 | drivers/block/mcdx.c | stuffp->toc = kmalloc(size, GFP_KERNEL); |
toc | 1408 | drivers/block/mcdx.c | if (!stuffp->toc) { |
toc | 1423 | drivers/block/mcdx.c | stuffp->toc[trk].index = 0; |
toc | 1439 | drivers/block/mcdx.c | && (stuffp->toc[idx - stuffp->di.n_first].index == 0)) { |
toc | 1440 | drivers/block/mcdx.c | stuffp->toc[idx - stuffp->di.n_first] = q; |
toc | 1446 | drivers/block/mcdx.c | memset(&stuffp->toc[stuffp->di.n_last - stuffp->di.n_first + 1], |
toc | 1447 | drivers/block/mcdx.c | 0, sizeof(stuffp->toc[0])); |
toc | 1448 | drivers/block/mcdx.c | stuffp->toc[stuffp->di.n_last - stuffp->di.n_first + 1].dt |
toc | 1465 | drivers/block/mcdx.c | stuffp->toc[trk].control, stuffp->toc[trk].tno, stuffp->toc[trk].index, |
toc | 1466 | drivers/block/mcdx.c | stuffp->toc[trk].tt.minute, stuffp->toc[trk].tt.second, stuffp->toc[trk].tt.frame, |
toc | 1467 | drivers/block/mcdx.c | stuffp->toc[trk].dt.minute, stuffp->toc[trk].dt.second, stuffp->toc[trk].dt.frame)); |
toc | 1514 | drivers/block/mcdx.c | if (ti) p = &stuffp->toc[ti->cdti_trk0 - stuffp->di.n_first]; |
toc | 1522 | drivers/block/mcdx.c | p = &stuffp->toc[ti->cdti_trk1 - stuffp->di.n_first + 1]; |
toc | 684 | drivers/block/sonycd535.c | request_toc_data(Byte status[2], struct s535_sony_toc *toc) |
toc | 693 | drivers/block/sonycd535.c | if ((to_status = do_sony_cmd(&cmd_no, 1, status, (Byte *) toc, 15, 1)) != 0) |
toc | 697 | drivers/block/sonycd535.c | first_track_num = bcd_to_int(toc->first_track_num); |
toc | 698 | drivers/block/sonycd535.c | last_track_num = bcd_to_int(toc->last_track_num); |
toc | 711 | drivers/block/sonycd535.c | memcpy(toc->tracks + i, track_address_buffer, 5); |