tag | line | file | source code |
toc | 1663 | drivers/block/ide-cd.c | struct atapi_toc *toc = drive->cdrom_info.toc; |
toc | 1669 | drivers/block/ide-cd.c | if (toc == NULL) |
toc | 1672 | drivers/block/ide-cd.c | toc = (struct atapi_toc *) kmalloc (sizeof (struct atapi_toc), |
toc | 1674 | drivers/block/ide-cd.c | drive->cdrom_info.toc = toc; |
toc | 1677 | drivers/block/ide-cd.c | if (toc == NULL) |
toc | 1698 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, msf_flag, 0, (char *)&toc->hdr, |
toc | 1707 | drivers/block/ide-cd.c | toc->hdr.first_track = bcd2bin (toc->hdr.first_track); |
toc | 1708 | drivers/block/ide-cd.c | toc->hdr.last_track = bcd2bin (toc->hdr.last_track); |
toc | 1713 | drivers/block/ide-cd.c | ntracks = toc->hdr.last_track - toc->hdr.first_track + 1; |
toc | 1718 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, msf_flag, 0, (char *)&toc->hdr, |
toc | 1723 | drivers/block/ide-cd.c | toc->hdr.toc_length = ntohs (toc->hdr.toc_length); |
toc | 1728 | drivers/block/ide-cd.c | toc->hdr.first_track = bcd2bin (toc->hdr.first_track); |
toc | 1729 | drivers/block/ide-cd.c | toc->hdr.last_track = bcd2bin (toc->hdr.last_track); |
toc | 1741 | drivers/block/ide-cd.c | toc->ent[i].track = bcd2bin (toc->ent[i].track); |
toc | 1742 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.m = bcd2bin (toc->ent[i].addr.msf.m); |
toc | 1743 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.s = bcd2bin (toc->ent[i].addr.msf.s); |
toc | 1744 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.f = bcd2bin (toc->ent[i].addr.msf.f); |
toc | 1746 | drivers/block/ide-cd.c | toc->ent[i].addr.lba = msf_to_lba (toc->ent[i].addr.msf.m, |
toc | 1747 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.s, |
toc | 1748 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.f); |
toc | 1752 | drivers/block/ide-cd.c | toc->ent[i].addr.lba = ntohl (toc->ent[i].addr.lba); |
toc | 1762 | drivers/block/ide-cd.c | toc->last_session_lba = msf_to_lba (ms_tmp.ent.addr.msf.m, |
toc | 1767 | drivers/block/ide-cd.c | toc->last_session_lba = ntohl (ms_tmp.ent.addr.lba); |
toc | 1769 | drivers/block/ide-cd.c | toc->xa_flag = (ms_tmp.hdr.first_track != ms_tmp.hdr.last_track); |
toc | 1772 | drivers/block/ide-cd.c | stat = cdrom_read_capacity (drive, &toc->capacity, reqbuf); |
toc | 1773 | drivers/block/ide-cd.c | if (stat) toc->capacity = 0x1fffff; |
toc | 1776 | drivers/block/ide-cd.c | = toc->capacity * SECTORS_PER_FRAME; |
toc | 1777 | drivers/block/ide-cd.c | drive->part[0].nr_sects = toc->capacity * SECTORS_PER_FRAME; |
toc | 1952 | drivers/block/ide-cd.c | struct atapi_toc *toc; |
toc | 1958 | drivers/block/ide-cd.c | toc = drive->cdrom_info.toc; |
toc | 1961 | drivers/block/ide-cd.c | ntracks = toc->hdr.last_track - toc->hdr.first_track + 1; |
toc | 1963 | drivers/block/ide-cd.c | *ent = &toc->ent[ntracks]; |
toc | 1964 | drivers/block/ide-cd.c | else if (track < toc->hdr.first_track || |
toc | 1965 | drivers/block/ide-cd.c | track > toc->hdr.last_track) |
toc | 1968 | 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 | 2282 | drivers/block/ide-cd.c | struct atapi_toc *toc; |
toc | 2296 | drivers/block/ide-cd.c | toc = drive->cdrom_info.toc; |
toc | 2299 | drivers/block/ide-cd.c | lba_to_msf (toc->last_session_lba, |
toc | 2305 | drivers/block/ide-cd.c | ms_info.addr.lba = toc->last_session_lba; |
toc | 2310 | drivers/block/ide-cd.c | ms_info.xa_flag = toc->xa_flag; |
toc | 2321 | drivers/block/ide-cd.c | struct atapi_toc *toc; |
toc | 2329 | drivers/block/ide-cd.c | toc = drive->cdrom_info.toc; |
toc | 2336 | drivers/block/ide-cd.c | if (ra.nframes < 0 || ra.nframes > toc->capacity) |
toc | 2355 | drivers/block/ide-cd.c | if (lba < 0 || lba >= toc->capacity) |
toc | 2377 | drivers/block/ide-cd.c | struct atapi_toc *toc; |
toc | 2404 | drivers/block/ide-cd.c | toc = drive->cdrom_info.toc; |
toc | 2406 | drivers/block/ide-cd.c | if (lba < 0 || lba >= toc->capacity) |
toc | 2625 | drivers/block/ide-cd.c | drive->cdrom_info.toc = NULL; |
toc | 263 | 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 | 140 | drivers/cdrom/mcdx.c | struct s_subqcode* toc; /* first enty of the toc array */ |
toc | 351 | drivers/cdrom/mcdx.c | tp = &stuffp->toc[stuffp->di.n_last - stuffp->di.n_first + 1]; |
toc | 354 | drivers/cdrom/mcdx.c | else tp = &stuffp->toc[entry.cdte_track - stuffp->di.n_first]; |
toc | 430 | drivers/cdrom/mcdx.c | struct cdrom_tochdr toc; |
toc | 434 | drivers/cdrom/mcdx.c | if ((ans = verify_area(VERIFY_WRITE, (void*) arg, sizeof toc))) |
toc | 436 | drivers/cdrom/mcdx.c | toc.cdth_trk0 = stuffp->di.n_first; |
toc | 437 | drivers/cdrom/mcdx.c | toc.cdth_trk1 = stuffp->di.n_last; |
toc | 438 | drivers/cdrom/mcdx.c | memcpy_tofs((void*) arg, &toc, sizeof toc); |
toc | 693 | drivers/cdrom/mcdx.c | if (stuffp->toc) { |
toc | 694 | drivers/cdrom/mcdx.c | TRACE((MALLOC, "open() free toc @ %p\n", stuffp->toc)); |
toc | 695 | drivers/cdrom/mcdx.c | kfree(stuffp->toc); |
toc | 697 | drivers/cdrom/mcdx.c | stuffp->toc = NULL; |
toc | 1006 | drivers/cdrom/mcdx.c | if (stuffp->toc) { |
toc | 1007 | drivers/cdrom/mcdx.c | TRACE((MALLOC, "cleanup_module() free toc @ %p\n", stuffp->toc)); |
toc | 1008 | drivers/cdrom/mcdx.c | kfree(stuffp->toc); |
toc | 1087 | drivers/cdrom/mcdx.c | stuffp->toc = NULL; /* this should be NULL already */ |
toc | 1401 | drivers/cdrom/mcdx.c | if (stuffp->toc) { |
toc | 1420 | drivers/cdrom/mcdx.c | stuffp->toc = kmalloc(size, GFP_KERNEL); |
toc | 1421 | drivers/cdrom/mcdx.c | if (!stuffp->toc) { |
toc | 1436 | drivers/cdrom/mcdx.c | stuffp->toc[trk].index = 0; |
toc | 1452 | drivers/cdrom/mcdx.c | && (stuffp->toc[idx - stuffp->di.n_first].index == 0)) { |
toc | 1453 | drivers/cdrom/mcdx.c | stuffp->toc[idx - stuffp->di.n_first] = q; |
toc | 1459 | drivers/cdrom/mcdx.c | memset(&stuffp->toc[stuffp->di.n_last - stuffp->di.n_first + 1], |
toc | 1460 | drivers/cdrom/mcdx.c | 0, sizeof(stuffp->toc[0])); |
toc | 1461 | drivers/cdrom/mcdx.c | stuffp->toc[stuffp->di.n_last - stuffp->di.n_first + 1].dt |
toc | 1478 | drivers/cdrom/mcdx.c | stuffp->toc[trk].control, stuffp->toc[trk].tno, stuffp->toc[trk].index, |
toc | 1479 | drivers/cdrom/mcdx.c | stuffp->toc[trk].tt.minute, stuffp->toc[trk].tt.second, stuffp->toc[trk].tt.frame, |
toc | 1480 | drivers/cdrom/mcdx.c | stuffp->toc[trk].dt.minute, stuffp->toc[trk].dt.second, stuffp->toc[trk].dt.frame)); |
toc | 1527 | drivers/cdrom/mcdx.c | if (ti) p = &stuffp->toc[ti->cdti_trk0 - stuffp->di.n_first]; |
toc | 1535 | drivers/cdrom/mcdx.c | p = &stuffp->toc[ti->cdti_trk1 - stuffp->di.n_first + 1]; |
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); |