tag | line | file | source code |
toc | 1648 | drivers/block/ide-cd.c | struct atapi_toc *toc = drive->cdrom_info.toc; |
toc | 1654 | drivers/block/ide-cd.c | if (toc == NULL) { |
toc | 1656 | drivers/block/ide-cd.c | toc = (struct atapi_toc *) kmalloc (sizeof (struct atapi_toc), |
toc | 1658 | drivers/block/ide-cd.c | drive->cdrom_info.toc = toc; |
toc | 1661 | drivers/block/ide-cd.c | if (toc == NULL) { |
toc | 1674 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, 1, 0, (char *)&toc->hdr, |
toc | 1682 | drivers/block/ide-cd.c | toc->hdr.first_track = bcd2bin (toc->hdr.first_track); |
toc | 1683 | drivers/block/ide-cd.c | toc->hdr.last_track = bcd2bin (toc->hdr.last_track); |
toc | 1687 | drivers/block/ide-cd.c | ntracks = toc->hdr.last_track - toc->hdr.first_track + 1; |
toc | 1692 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, 1, 0, (char *)&toc->hdr, |
toc | 1698 | drivers/block/ide-cd.c | toc->hdr.toc_length = ntohs (toc->hdr.toc_length); |
toc | 1702 | drivers/block/ide-cd.c | toc->hdr.first_track = bcd2bin (toc->hdr.first_track); |
toc | 1703 | drivers/block/ide-cd.c | toc->hdr.last_track = bcd2bin (toc->hdr.last_track); |
toc | 1711 | drivers/block/ide-cd.c | toc->ent[i].track = bcd2bin (toc->ent[i].track); |
toc | 1712 | drivers/block/ide-cd.c | msf_from_bcd (&toc->ent[i].addr.msf); |
toc | 1715 | drivers/block/ide-cd.c | toc->ent[i].addr.lba = msf_to_lba (toc->ent[i].addr.msf.minute, |
toc | 1716 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.second, |
toc | 1717 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.frame); |
toc | 1731 | drivers/block/ide-cd.c | toc->last_session_lba = msf_to_lba (ms_tmp.ent.addr.msf.minute, |
toc | 1735 | drivers/block/ide-cd.c | toc->xa_flag = (ms_tmp.hdr.first_track != ms_tmp.hdr.last_track); |
toc | 1738 | drivers/block/ide-cd.c | stat = cdrom_read_capacity (drive, &toc->capacity, reqbuf); |
toc | 1739 | drivers/block/ide-cd.c | if (stat) toc->capacity = 0x1fffff; |
toc | 1742 | drivers/block/ide-cd.c | = toc->capacity * SECTORS_PER_FRAME; |
toc | 1743 | drivers/block/ide-cd.c | drive->part[0].nr_sects = toc->capacity * SECTORS_PER_FRAME; |
toc | 1883 | drivers/block/ide-cd.c | struct atapi_toc *toc; |
toc | 1889 | drivers/block/ide-cd.c | toc = drive->cdrom_info.toc; |
toc | 1892 | drivers/block/ide-cd.c | ntracks = toc->hdr.last_track - toc->hdr.first_track + 1; |
toc | 1894 | drivers/block/ide-cd.c | *ent = &toc->ent[ntracks]; |
toc | 1895 | drivers/block/ide-cd.c | else if (track < toc->hdr.first_track || |
toc | 1896 | drivers/block/ide-cd.c | track > toc->hdr.last_track) |
toc | 1899 | drivers/block/ide-cd.c | *ent = &toc->ent[track - toc->hdr.first_track]; |
toc | 2060 | drivers/block/ide-cd.c | struct atapi_toc *toc; |
toc | 2070 | drivers/block/ide-cd.c | toc = drive->cdrom_info.toc; |
toc | 2071 | drivers/block/ide-cd.c | tochdr.cdth_trk0 = toc->hdr.first_track; |
toc | 2072 | drivers/block/ide-cd.c | tochdr.cdth_trk1 = toc->hdr.last_track; |
toc | 2224 | drivers/block/ide-cd.c | struct atapi_toc *toc; |
toc | 2237 | drivers/block/ide-cd.c | toc = drive->cdrom_info.toc; |
toc | 2240 | drivers/block/ide-cd.c | lba_to_msf (toc->last_session_lba, |
toc | 2245 | drivers/block/ide-cd.c | ms_info.addr.lba = toc->last_session_lba; |
toc | 2249 | drivers/block/ide-cd.c | ms_info.xa_flag = toc->xa_flag; |
toc | 2259 | drivers/block/ide-cd.c | struct atapi_toc *toc; |
toc | 2267 | drivers/block/ide-cd.c | toc = drive->cdrom_info.toc; |
toc | 2274 | drivers/block/ide-cd.c | if (ra.nframes < 0 || ra.nframes > toc->capacity) |
toc | 2292 | drivers/block/ide-cd.c | if (lba < 0 || lba >= toc->capacity) |
toc | 2312 | drivers/block/ide-cd.c | struct atapi_toc *toc; |
toc | 2336 | drivers/block/ide-cd.c | toc = drive->cdrom_info.toc; |
toc | 2338 | drivers/block/ide-cd.c | if (lba < 0 || lba >= toc->capacity) |
toc | 2580 | drivers/block/ide-cd.c | drive->cdrom_info.toc = NULL; |
toc | 257 | drivers/block/ide.h | struct atapi_toc *toc; |
toc | 174 | drivers/cdrom/cm206.c | struct toc_struct toc[101]; /* The whole table of contents + lead-out */ |
toc | 183 | drivers/cdrom/cm206.c | #define PLAY_TO cd->toc[0] /* toc[0] records end-time in play */ |
toc | 551 | drivers/cdrom/cm206.c | memset(cd->toc, 0, sizeof(cd->toc)); |
toc | 741 | drivers/cdrom/cm206.c | for (i=track; i>0; i--) if (cd->toc[i].track) { |
toc | 742 | drivers/cdrom/cm206.c | min = fsm2lba(cd->toc[i].fsm); |
toc | 750 | drivers/cdrom/cm206.c | if (!cd->toc[ct].track) { |
toc | 753 | drivers/cdrom/cm206.c | cd->toc[ct].track=q[1]; /* lead out still 0xaa */ |
toc | 754 | drivers/cdrom/cm206.c | fsm(l, cd->toc[ct].fsm); |
toc | 755 | drivers/cdrom/cm206.c | cd->toc[ct].q0 = q[0]; /* contains adr and ctrl info */ |
toc | 782 | drivers/cdrom/cm206.c | if (!cd->toc[track].track) get_toc_lba(track); |
toc | 792 | drivers/cdrom/cm206.c | cd->toc[1].track=1; /* fill in first track position */ |
toc | 793 | drivers/cdrom/cm206.c | for (i=0; i<3; i++) cd->toc[1].fsm[i] = cd->disc_status[3+i]; |
toc | 826 | drivers/cdrom/cm206.c | play_command[i+1] = cd->toc[from].fsm[i]; |
toc | 827 | drivers/cdrom/cm206.c | PLAY_TO.fsm[i] = play_command[i+4] = cd->toc[to+1].fsm[i]; |
toc | 870 | drivers/cdrom/cm206.c | ep->cdte_addr.msf.frame = cd->toc[track].fsm[0]; |
toc | 871 | drivers/cdrom/cm206.c | ep->cdte_addr.msf.second = cd->toc[track].fsm[1]; |
toc | 872 | drivers/cdrom/cm206.c | ep->cdte_addr.msf.minute = cd->toc[track].fsm[2]; |
toc | 874 | drivers/cdrom/cm206.c | else ep->cdte_addr.lba = fsm2lba(cd->toc[track].fsm); |
toc | 875 | drivers/cdrom/cm206.c | ep->cdte_adr = cd->toc[track].q0 & 0xf; |
toc | 876 | drivers/cdrom/cm206.c | ep->cdte_ctrl = cd->toc[track].q0 >> 4; |
toc | 990 | drivers/cdrom/cm206.c | memset(cd->toc, 0, sizeof(cd->toc)); |
toc | 148 | drivers/cdrom/mcdx.c | struct s_subqcode* toc; /* first entry of the toc array */ |
toc | 362 | drivers/cdrom/mcdx.c | tp = &stuffp->toc[stuffp->di.n_last - stuffp->di.n_first + 1]; |
toc | 365 | drivers/cdrom/mcdx.c | else tp = &stuffp->toc[entry.cdte_track - stuffp->di.n_first]; |
toc | 441 | drivers/cdrom/mcdx.c | struct cdrom_tochdr toc; |
toc | 445 | drivers/cdrom/mcdx.c | if ((ans = verify_area(VERIFY_WRITE, (void*) arg, sizeof toc))) |
toc | 447 | drivers/cdrom/mcdx.c | toc.cdth_trk0 = stuffp->di.n_first; |
toc | 448 | drivers/cdrom/mcdx.c | toc.cdth_trk1 = stuffp->di.n_last; |
toc | 449 | drivers/cdrom/mcdx.c | memcpy_tofs((void*) arg, &toc, sizeof toc); |
toc | 710 | drivers/cdrom/mcdx.c | if (stuffp->toc) { |
toc | 711 | drivers/cdrom/mcdx.c | TRACE((MALLOC, "open() free old toc @ %p\n", stuffp->toc)); |
toc | 712 | drivers/cdrom/mcdx.c | kfree(stuffp->toc); |
toc | 714 | drivers/cdrom/mcdx.c | stuffp->toc = NULL; |
toc | 1054 | drivers/cdrom/mcdx.c | if (stuffp->toc) { |
toc | 1055 | drivers/cdrom/mcdx.c | TRACE((MALLOC, "cleanup_module() free toc @ %p\n", stuffp->toc)); |
toc | 1056 | drivers/cdrom/mcdx.c | kfree(stuffp->toc); |
toc | 1142 | drivers/cdrom/mcdx.c | stuffp->toc = NULL; /* this should be NULL already */ |
toc | 1485 | drivers/cdrom/mcdx.c | if (stuffp->toc) { |
toc | 1504 | drivers/cdrom/mcdx.c | stuffp->toc = kmalloc(size, GFP_KERNEL); |
toc | 1505 | drivers/cdrom/mcdx.c | if (!stuffp->toc) { |
toc | 1520 | drivers/cdrom/mcdx.c | stuffp->toc[trk].index = 0; |
toc | 1536 | drivers/cdrom/mcdx.c | && (stuffp->toc[idx - stuffp->di.n_first].index == 0)) { |
toc | 1537 | drivers/cdrom/mcdx.c | stuffp->toc[idx - stuffp->di.n_first] = q; |
toc | 1543 | drivers/cdrom/mcdx.c | memset(&stuffp->toc[stuffp->di.n_last - stuffp->di.n_first + 1], |
toc | 1544 | drivers/cdrom/mcdx.c | 0, sizeof(stuffp->toc[0])); |
toc | 1545 | drivers/cdrom/mcdx.c | stuffp->toc[stuffp->di.n_last - stuffp->di.n_first + 1].dt |
toc | 1562 | drivers/cdrom/mcdx.c | stuffp->toc[trk].control, stuffp->toc[trk].tno, stuffp->toc[trk].index, |
toc | 1563 | drivers/cdrom/mcdx.c | stuffp->toc[trk].tt.minute, stuffp->toc[trk].tt.second, stuffp->toc[trk].tt.frame, |
toc | 1564 | drivers/cdrom/mcdx.c | stuffp->toc[trk].dt.minute, stuffp->toc[trk].dt.second, stuffp->toc[trk].dt.frame)); |
toc | 1611 | drivers/cdrom/mcdx.c | if (ti) p = &stuffp->toc[ti->cdti_trk0 - stuffp->di.n_first]; |
toc | 1619 | drivers/cdrom/mcdx.c | p = &stuffp->toc[ti->cdti_trk1 - stuffp->di.n_first + 1]; |
toc | 718 | drivers/cdrom/optcd.c | static struct cdrom_subchnl toc[MAX_TRACKS]; |
toc | 737 | drivers/cdrom/optcd.c | i, toc[i].cdsc_ctrl, toc[i].cdsc_adr, |
toc | 738 | drivers/cdrom/optcd.c | toc[i].cdsc_trk, toc[i].cdsc_ind, |
toc | 739 | drivers/cdrom/optcd.c | toc[i].cdsc_reladdr.msf.minute, |
toc | 740 | drivers/cdrom/optcd.c | toc[i].cdsc_reladdr.msf.second, |
toc | 741 | drivers/cdrom/optcd.c | toc[i].cdsc_reladdr.msf.frame, |
toc | 742 | drivers/cdrom/optcd.c | toc[i].cdsc_absaddr.msf.minute, |
toc | 743 | drivers/cdrom/optcd.c | toc[i].cdsc_absaddr.msf.second, |
toc | 744 | drivers/cdrom/optcd.c | toc[i].cdsc_absaddr.msf.frame); |
toc | 771 | drivers/cdrom/optcd.c | && q_info.cdsc_trk == 0 && toc[index].cdsc_ind == 0) { |
toc | 772 | drivers/cdrom/optcd.c | toc[index] = q_info; |
toc | 794 | drivers/cdrom/optcd.c | && toc[QINFO_FIRSTTRACK].cdsc_absaddr.msf.minute + count |
toc | 795 | drivers/cdrom/optcd.c | >= toc[QINFO_LASTTRACK].cdsc_absaddr.msf.minute + 1) |
toc | 801 | drivers/cdrom/optcd.c | disk_info.first = toc[QINFO_FIRSTTRACK].cdsc_absaddr.msf.minute; |
toc | 803 | drivers/cdrom/optcd.c | toc[disk_info.first].cdsc_absaddr.msf.minute; |
toc | 805 | drivers/cdrom/optcd.c | toc[disk_info.first].cdsc_absaddr.msf.second; |
toc | 807 | drivers/cdrom/optcd.c | toc[disk_info.first].cdsc_absaddr.msf.frame; |
toc | 809 | drivers/cdrom/optcd.c | disk_info.last = toc[QINFO_LASTTRACK].cdsc_absaddr.msf.minute; |
toc | 811 | drivers/cdrom/optcd.c | toc[QINFO_DISKLENGTH].cdsc_absaddr.msf.minute; |
toc | 813 | drivers/cdrom/optcd.c | toc[QINFO_DISKLENGTH].cdsc_absaddr.msf.second-2; |
toc | 815 | drivers/cdrom/optcd.c | toc[QINFO_DISKLENGTH].cdsc_absaddr.msf.frame; |
toc | 817 | drivers/cdrom/optcd.c | toc[QINFO_NEXTSESSION].cdsc_reladdr.msf.minute; |
toc | 819 | drivers/cdrom/optcd.c | toc[QINFO_NEXTSESSION].cdsc_reladdr.msf.second; |
toc | 821 | drivers/cdrom/optcd.c | toc[QINFO_NEXTSESSION].cdsc_reladdr.msf.frame; |
toc | 822 | drivers/cdrom/optcd.c | disk_info.next = toc[QINFO_FIRSTTRACK].cdsc_absaddr.msf.minute; |
toc | 824 | drivers/cdrom/optcd.c | toc[disk_info.next].cdsc_absaddr.msf.minute; |
toc | 826 | drivers/cdrom/optcd.c | toc[disk_info.next].cdsc_absaddr.msf.second; |
toc | 828 | drivers/cdrom/optcd.c | toc[disk_info.next].cdsc_absaddr.msf.frame; |
toc | 829 | drivers/cdrom/optcd.c | toc[disk_info.last + 1].cdsc_absaddr.msf.minute = |
toc | 831 | drivers/cdrom/optcd.c | toc[disk_info.last + 1].cdsc_absaddr.msf.second = |
toc | 833 | drivers/cdrom/optcd.c | toc[disk_info.last + 1].cdsc_absaddr.msf.frame = |
toc | 847 | drivers/cdrom/optcd.c | || toc[QINFO_FIRSTTRACK].cdsc_absaddr.msf.minute + count |
toc | 848 | drivers/cdrom/optcd.c | < toc[QINFO_LASTTRACK].cdsc_absaddr.msf.minute + 1) |
toc | 865 | drivers/cdrom/optcd.c | toc[count].cdsc_ind = 0; |
toc | 928 | drivers/cdrom/optcd.c | toc[count].cdsc_ind = 0; |
toc | 942 | drivers/cdrom/optcd.c | (toc[disk_info.first].cdsc_ctrl & CDROM_DATA_TRACK) ? 0 : 1; |
toc | 1473 | drivers/cdrom/optcd.c | msf.cdmsf_min0 = toc[ti.cdti_trk0].cdsc_absaddr.msf.minute; |
toc | 1474 | drivers/cdrom/optcd.c | msf.cdmsf_sec0 = toc[ti.cdti_trk0].cdsc_absaddr.msf.second; |
toc | 1475 | drivers/cdrom/optcd.c | msf.cdmsf_frame0 = toc[ti.cdti_trk0].cdsc_absaddr.msf.frame; |
toc | 1476 | drivers/cdrom/optcd.c | msf.cdmsf_min1 = toc[ti.cdti_trk1 + 1].cdsc_absaddr.msf.minute; |
toc | 1477 | drivers/cdrom/optcd.c | msf.cdmsf_sec1 = toc[ti.cdti_trk1 + 1].cdsc_absaddr.msf.second; |
toc | 1478 | drivers/cdrom/optcd.c | msf.cdmsf_frame1 = toc[ti.cdti_trk1 + 1].cdsc_absaddr.msf.frame; |
toc | 1533 | drivers/cdrom/optcd.c | tocptr = &toc[disk_info.last + 1]; |
toc | 1538 | drivers/cdrom/optcd.c | tocptr = &toc[entry.cdte_track]; |
toc | 652 | drivers/cdrom/sonycd535.c | request_toc_data(Byte status[2], struct s535_sony_toc *toc) |
toc | 661 | drivers/cdrom/sonycd535.c | if ((to_status = do_sony_cmd(&cmd_no, 1, status, (Byte *) toc, 15, 1)) != 0) |
toc | 665 | drivers/cdrom/sonycd535.c | first_track_num = bcd_to_int(toc->first_track_num); |
toc | 666 | drivers/cdrom/sonycd535.c | last_track_num = bcd_to_int(toc->last_track_num); |
toc | 679 | drivers/cdrom/sonycd535.c | memcpy(toc->tracks + i, track_address_buffer, 5); |