tag | line | file | source code |
msf | 1764 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.m = bcd2bin (toc->ent[i].addr.msf.m); |
msf | 1765 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.s = bcd2bin (toc->ent[i].addr.msf.s); |
msf | 1766 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.f = bcd2bin (toc->ent[i].addr.msf.f); |
msf | 1768 | drivers/block/ide-cd.c | toc->ent[i].addr.lba = msf_to_lba (toc->ent[i].addr.msf.m, |
msf | 1769 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.s, |
msf | 1770 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.f); |
msf | 1784 | drivers/block/ide-cd.c | toc->last_session_lba = msf_to_lba (ms_tmp.ent.addr.msf.m, |
msf | 1785 | drivers/block/ide-cd.c | ms_tmp.ent.addr.msf.s, |
msf | 1786 | drivers/block/ide-cd.c | ms_tmp.ent.addr.msf.f); |
msf | 2129 | drivers/block/ide-cd.c | struct cdrom_msf msf; |
msf | 2132 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (msf)); |
msf | 2135 | drivers/block/ide-cd.c | memcpy_fromfs (&msf, (void *) arg, sizeof(msf)); |
msf | 2137 | drivers/block/ide-cd.c | lba_start = msf_to_lba (msf.cdmsf_min0, msf.cdmsf_sec0, |
msf | 2138 | drivers/block/ide-cd.c | msf.cdmsf_frame0); |
msf | 2139 | drivers/block/ide-cd.c | lba_end = msf_to_lba (msf.cdmsf_min1, msf.cdmsf_sec1, |
msf | 2140 | drivers/block/ide-cd.c | msf.cdmsf_frame1) + 1; |
msf | 2219 | drivers/block/ide-cd.c | &tocentry.cdte_addr.msf.minute, |
msf | 2220 | drivers/block/ide-cd.c | &tocentry.cdte_addr.msf.second, |
msf | 2221 | drivers/block/ide-cd.c | &tocentry.cdte_addr.msf.frame); |
msf | 2251 | drivers/block/ide-cd.c | abs_lba = msf_to_lba (bcd2bin (scbuf.acdsc_absaddr.msf.minute), |
msf | 2252 | drivers/block/ide-cd.c | bcd2bin (scbuf.acdsc_absaddr.msf.second), |
msf | 2253 | drivers/block/ide-cd.c | bcd2bin (scbuf.acdsc_absaddr.msf.frame)); |
msf | 2254 | drivers/block/ide-cd.c | rel_lba = msf_to_lba (bcd2bin (scbuf.acdsc_reladdr.msf.minute), |
msf | 2255 | drivers/block/ide-cd.c | bcd2bin (scbuf.acdsc_reladdr.msf.second), |
msf | 2256 | drivers/block/ide-cd.c | bcd2bin (scbuf.acdsc_reladdr.msf.frame)); |
msf | 2269 | drivers/block/ide-cd.c | &subchnl.cdsc_absaddr.msf.minute, |
msf | 2270 | drivers/block/ide-cd.c | &subchnl.cdsc_absaddr.msf.second, |
msf | 2271 | drivers/block/ide-cd.c | &subchnl.cdsc_absaddr.msf.frame); |
msf | 2273 | drivers/block/ide-cd.c | &subchnl.cdsc_reladdr.msf.minute, |
msf | 2274 | drivers/block/ide-cd.c | &subchnl.cdsc_reladdr.msf.second, |
msf | 2275 | drivers/block/ide-cd.c | &subchnl.cdsc_reladdr.msf.frame); |
msf | 2361 | drivers/block/ide-cd.c | &ms_info.addr.msf.minute, |
msf | 2362 | drivers/block/ide-cd.c | &ms_info.addr.msf.second, |
msf | 2363 | drivers/block/ide-cd.c | &ms_info.addr.msf.frame); |
msf | 2407 | drivers/block/ide-cd.c | lba = msf_to_lba (ra.addr.msf.minute, ra.addr.msf.second, |
msf | 2408 | drivers/block/ide-cd.c | ra.addr.msf.frame); |
msf | 2436 | drivers/block/ide-cd.c | struct cdrom_msf msf; |
msf | 2452 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (char *)arg, sizeof (msf)); |
msf | 2457 | drivers/block/ide-cd.c | memcpy_fromfs (&msf, (void *)arg, sizeof (msf)); |
msf | 2459 | drivers/block/ide-cd.c | lba = msf_to_lba (msf.cdmsf_min0, msf.cdmsf_sec0, msf.cdmsf_frame0); |
msf | 208 | drivers/block/ide.h | } msf; |
msf | 242 | drivers/block/ide.h | } msf; |
msf | 253 | drivers/block/ide.h | } msf; |
msf | 261 | drivers/cdrom/aztcd.c | static void azt_hsg2msf(long hsg, struct msf *msf); |
msf | 263 | drivers/cdrom/aztcd.c | static long azt_msf2hsg(struct msf *mp); |
msf | 616 | drivers/cdrom/aztcd.c | struct cdrom_msf msf; |
msf | 680 | drivers/cdrom/aztcd.c | { ms.addr.msf.minute = azt_bcd2bin(DiskInfo.lastSession.min); |
msf | 681 | drivers/cdrom/aztcd.c | ms.addr.msf.second = azt_bcd2bin(DiskInfo.lastSession.sec); |
msf | 682 | drivers/cdrom/aztcd.c | ms.addr.msf.frame = azt_bcd2bin(DiskInfo.lastSession.frame); |
msf | 695 | drivers/cdrom/aztcd.c | ms.xa_flag, ms.addr.msf.minute, ms.addr.msf.second, |
msf | 696 | drivers/cdrom/aztcd.c | ms.addr.msf.frame, DiskInfo.lastSession.min, |
msf | 737 | drivers/cdrom/aztcd.c | st = verify_area(VERIFY_READ, (void *) arg, sizeof msf); |
msf | 739 | drivers/cdrom/aztcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof msf); |
msf | 741 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_min0); |
msf | 742 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_sec0); |
msf | 743 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_frame0); |
msf | 744 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_min1); |
msf | 745 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_sec1); |
msf | 746 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_frame1); |
msf | 747 | drivers/cdrom/aztcd.c | azt_Play.start.min = msf.cdmsf_min0; |
msf | 748 | drivers/cdrom/aztcd.c | azt_Play.start.sec = msf.cdmsf_sec0; |
msf | 749 | drivers/cdrom/aztcd.c | azt_Play.start.frame = msf.cdmsf_frame0; |
msf | 750 | drivers/cdrom/aztcd.c | azt_Play.end.min = msf.cdmsf_min1; |
msf | 751 | drivers/cdrom/aztcd.c | azt_Play.end.sec = msf.cdmsf_sec1; |
msf | 752 | drivers/cdrom/aztcd.c | azt_Play.end.frame = msf.cdmsf_frame1; |
msf | 793 | drivers/cdrom/aztcd.c | { entry.cdte_addr.msf.minute = azt_bcd2bin(tocPtr -> diskTime.min); |
msf | 794 | drivers/cdrom/aztcd.c | entry.cdte_addr.msf.second = azt_bcd2bin(tocPtr -> diskTime.sec); |
msf | 795 | drivers/cdrom/aztcd.c | entry.cdte_addr.msf.frame = azt_bcd2bin(tocPtr -> diskTime.frame); |
msf | 836 | drivers/cdrom/aztcd.c | subchnl.cdsc_absaddr.msf.minute = azt_bcd2bin(qInfo.diskTime.min); |
msf | 837 | drivers/cdrom/aztcd.c | subchnl.cdsc_absaddr.msf.second = azt_bcd2bin(qInfo.diskTime.sec); |
msf | 838 | drivers/cdrom/aztcd.c | subchnl.cdsc_absaddr.msf.frame = azt_bcd2bin(qInfo.diskTime.frame); |
msf | 839 | drivers/cdrom/aztcd.c | subchnl.cdsc_reladdr.msf.minute = azt_bcd2bin(qInfo.trackTime.min); |
msf | 840 | drivers/cdrom/aztcd.c | subchnl.cdsc_reladdr.msf.second = azt_bcd2bin(qInfo.trackTime.sec); |
msf | 841 | drivers/cdrom/aztcd.c | subchnl.cdsc_reladdr.msf.frame = azt_bcd2bin(qInfo.trackTime.frame); |
msf | 889 | drivers/cdrom/aztcd.c | { st = verify_area(VERIFY_READ, (void *) arg, sizeof msf); |
msf | 893 | drivers/cdrom/aztcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof msf); |
msf | 895 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_min0); |
msf | 896 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_sec0); |
msf | 897 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_frame0); |
msf | 898 | drivers/cdrom/aztcd.c | msf.cdmsf_min1=0; |
msf | 899 | drivers/cdrom/aztcd.c | msf.cdmsf_sec1=0; |
msf | 900 | drivers/cdrom/aztcd.c | msf.cdmsf_frame1=1; /*read only one frame*/ |
msf | 901 | drivers/cdrom/aztcd.c | azt_Play.start.min = msf.cdmsf_min0; |
msf | 902 | drivers/cdrom/aztcd.c | azt_Play.start.sec = msf.cdmsf_sec0; |
msf | 903 | drivers/cdrom/aztcd.c | azt_Play.start.frame = msf.cdmsf_frame0; |
msf | 904 | drivers/cdrom/aztcd.c | azt_Play.end.min = msf.cdmsf_min1; |
msf | 905 | drivers/cdrom/aztcd.c | azt_Play.end.sec = msf.cdmsf_sec1; |
msf | 906 | drivers/cdrom/aztcd.c | azt_Play.end.frame = msf.cdmsf_frame1; |
msf | 927 | drivers/cdrom/aztcd.c | st = verify_area(VERIFY_READ, (void *) arg, sizeof msf); |
msf | 929 | drivers/cdrom/aztcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof msf); |
msf | 931 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_min0); |
msf | 932 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_sec0); |
msf | 933 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_frame0); |
msf | 934 | drivers/cdrom/aztcd.c | azt_Play.start.min = msf.cdmsf_min0; |
msf | 935 | drivers/cdrom/aztcd.c | azt_Play.start.sec = msf.cdmsf_sec0; |
msf | 936 | drivers/cdrom/aztcd.c | azt_Play.start.frame = msf.cdmsf_frame0; |
msf | 1181 | drivers/cdrom/aztcd.c | struct azt_Play_msf msf; |
msf | 1184 | drivers/cdrom/aztcd.c | azt_hsg2msf(azt_next_bn, &msf.start); |
msf | 1187 | drivers/cdrom/aztcd.c | while (azt_msf2hsg(&msf.start)>azt_msf2hsg(&Toc[++i].trackTime)) {}; |
msf | 1188 | drivers/cdrom/aztcd.c | if (azt_msf2hsg(&msf.start)<azt_msf2hsg(&Toc[i].trackTime)-AZT_BUF_SIZ) |
msf | 1194 | drivers/cdrom/aztcd.c | { azt_read_count=(azt_msf2hsg(&Toc[i].trackTime)/4)*4-azt_msf2hsg(&msf.start); |
msf | 1204 | drivers/cdrom/aztcd.c | msf.end.min = 0; |
msf | 1205 | drivers/cdrom/aztcd.c | msf.end.sec = 0; |
msf | 1206 | drivers/cdrom/aztcd.c | msf.end.frame = azt_read_count ;/*Mitsumi here reads 0xffffff sectors*/ |
msf | 1208 | drivers/cdrom/aztcd.c | printk("---reading msf-address %x:%x:%x %x:%x:%x\n",msf.start.min,msf.start.sec,msf.start.frame,msf.end.min,msf.end.sec,msf.end.frame); |
msf | 1213 | drivers/cdrom/aztcd.c | { sendAztCmd(ACMD_PLAY_READ_RAW, &msf); /*XA disks in raw mode*/ |
msf | 1216 | drivers/cdrom/aztcd.c | { sendAztCmd(ACMD_PLAY_READ, &msf); /*others in cooked mode*/ |
msf | 1690 | drivers/cdrom/aztcd.c | static void azt_hsg2msf(long hsg, struct msf *msf) |
msf | 1692 | drivers/cdrom/aztcd.c | msf -> min = hsg / 4500; |
msf | 1694 | drivers/cdrom/aztcd.c | msf -> sec = hsg / 75; |
msf | 1695 | drivers/cdrom/aztcd.c | msf -> frame = hsg % 75; |
msf | 1697 | drivers/cdrom/aztcd.c | if (msf->min >=70) printk("aztcd: Error hsg2msf address Minutes\n"); |
msf | 1698 | drivers/cdrom/aztcd.c | if (msf->sec >=60) printk("aztcd: Error hsg2msf address Seconds\n"); |
msf | 1699 | drivers/cdrom/aztcd.c | if (msf->frame>=75) printk("aztcd: Error hsg2msf address Frames\n"); |
msf | 1701 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf -> min); /* convert to BCD */ |
msf | 1702 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf -> sec); |
msf | 1703 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf -> frame); |
msf | 1706 | drivers/cdrom/aztcd.c | static long azt_msf2hsg(struct msf *mp) |
msf | 1029 | drivers/cdrom/cdu31a.c | log_to_msf(unsigned int log, unsigned char *msf) |
msf | 1032 | drivers/cdrom/cdu31a.c | msf[0] = int_to_bcd(log / 4500); |
msf | 1034 | drivers/cdrom/cdu31a.c | msf[1] = int_to_bcd(log / 75); |
msf | 1035 | drivers/cdrom/cdu31a.c | msf[2] = int_to_bcd(log % 75); |
msf | 1043 | drivers/cdrom/cdu31a.c | msf_to_log(unsigned char *msf) |
msf | 1048 | drivers/cdrom/cdu31a.c | log = bcd_to_int(msf[2]); |
msf | 1049 | drivers/cdrom/cdu31a.c | log += bcd_to_int(msf[1]) * 75; |
msf | 1050 | drivers/cdrom/cdu31a.c | log += bcd_to_int(msf[0]) * 4500; |
msf | 2014 | drivers/cdrom/cdu31a.c | schi.cdsc_absaddr.msf.minute = bcd_to_int(last_sony_subcode.abs_msf[0]); |
msf | 2015 | drivers/cdrom/cdu31a.c | schi.cdsc_absaddr.msf.second = bcd_to_int(last_sony_subcode.abs_msf[1]); |
msf | 2016 | drivers/cdrom/cdu31a.c | schi.cdsc_absaddr.msf.frame = bcd_to_int(last_sony_subcode.abs_msf[2]); |
msf | 2018 | drivers/cdrom/cdu31a.c | schi.cdsc_reladdr.msf.minute = bcd_to_int(last_sony_subcode.rel_msf[0]); |
msf | 2019 | drivers/cdrom/cdu31a.c | schi.cdsc_reladdr.msf.second = bcd_to_int(last_sony_subcode.rel_msf[1]); |
msf | 2020 | drivers/cdrom/cdu31a.c | schi.cdsc_reladdr.msf.frame = bcd_to_int(last_sony_subcode.rel_msf[2]); |
msf | 2541 | drivers/cdrom/cdu31a.c | loc_entry.cdte_addr.msf.minute = bcd_to_int(*msf_val); |
msf | 2542 | drivers/cdrom/cdu31a.c | loc_entry.cdte_addr.msf.second = bcd_to_int(*(msf_val+1)); |
msf | 2543 | drivers/cdrom/cdu31a.c | loc_entry.cdte_addr.msf.frame = bcd_to_int(*(msf_val+2)); |
msf | 2678 | drivers/cdrom/cdu31a.c | if ( (ra.addr.msf.minute >= 75) |
msf | 2679 | drivers/cdrom/cdu31a.c | || (ra.addr.msf.second >= 60) |
msf | 2680 | drivers/cdrom/cdu31a.c | || (ra.addr.msf.frame >= 75)) |
msf | 2685 | drivers/cdrom/cdu31a.c | ra.addr.lba = ( (ra.addr.msf.minute * 4500) |
msf | 2686 | drivers/cdrom/cdu31a.c | + (ra.addr.msf.second * 75) |
msf | 2687 | drivers/cdrom/cdu31a.c | + ra.addr.msf.frame); |
msf | 680 | drivers/cdrom/cm206.c | mssp->addr.msf.frame = cd->disc_status[3]; |
msf | 681 | drivers/cdrom/cm206.c | mssp->addr.msf.second = cd->disc_status[4]; |
msf | 682 | drivers/cdrom/cm206.c | mssp->addr.msf.minute = cd->disc_status[5]; |
msf | 846 | drivers/cdrom/cm206.c | qp->cdsc_reladdr.msf.minute = q[3]; |
msf | 847 | drivers/cdrom/cm206.c | qp->cdsc_reladdr.msf.second = q[4]; |
msf | 848 | drivers/cdrom/cm206.c | qp->cdsc_reladdr.msf.frame = q[5]; |
msf | 849 | drivers/cdrom/cm206.c | qp->cdsc_absaddr.msf.minute = q[7]; |
msf | 850 | drivers/cdrom/cm206.c | qp->cdsc_absaddr.msf.second = q[8]; |
msf | 851 | drivers/cdrom/cm206.c | qp->cdsc_absaddr.msf.frame = q[9]; |
msf | 870 | drivers/cdrom/cm206.c | ep->cdte_addr.msf.frame = cd->toc[track].fsm[0]; |
msf | 871 | drivers/cdrom/cm206.c | ep->cdte_addr.msf.second = cd->toc[track].fsm[1]; |
msf | 872 | drivers/cdrom/cm206.c | ep->cdte_addr.msf.minute = cd->toc[track].fsm[2]; |
msf | 952 | drivers/cdrom/cm206.c | struct cdrom_msf msf; |
msf | 955 | drivers/cdrom/cm206.c | st=verify_area(VERIFY_READ, (void *) arg, sizeof(msf)); |
msf | 957 | drivers/cdrom/cm206.c | memcpy_fromfs(&msf, (struct cdrom_mdf *) arg, sizeof msf); |
msf | 958 | drivers/cdrom/cm206.c | play_from_to_msf(&msf); |
msf | 81 | drivers/cdrom/gscd.c | static void gscd_hsg2msf (long hsg, struct msf *msf); |
msf | 110 | drivers/cdrom/gscd.c | static long gscd_msf2hsg (struct msf *mp); |
msf | 1069 | drivers/cdrom/gscd.c | static void gscd_hsg2msf (long hsg, struct msf *msf) |
msf | 1072 | drivers/cdrom/gscd.c | msf -> min = hsg / (CD_FRAMES*CD_SECS); |
msf | 1074 | drivers/cdrom/gscd.c | msf -> sec = hsg / CD_FRAMES; |
msf | 1075 | drivers/cdrom/gscd.c | msf -> frame = hsg % CD_FRAMES; |
msf | 1077 | drivers/cdrom/gscd.c | gscd_bin2bcd(&msf -> min); /* convert to BCD */ |
msf | 1078 | drivers/cdrom/gscd.c | gscd_bin2bcd(&msf -> sec); |
msf | 1079 | drivers/cdrom/gscd.c | gscd_bin2bcd(&msf -> frame); |
msf | 1094 | drivers/cdrom/gscd.c | static long gscd_msf2hsg (struct msf *mp) |
msf | 182 | drivers/cdrom/mcd.c | static void hsg2msf(long hsg, struct msf *msf); |
msf | 276 | drivers/cdrom/mcd.c | msf2hsg(struct msf *mp) |
msf | 293 | drivers/cdrom/mcd.c | struct cdrom_msf msf; |
msf | 413 | drivers/cdrom/mcd.c | st = verify_area(VERIFY_READ, (void *) arg, sizeof msf); |
msf | 417 | drivers/cdrom/mcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof msf); |
msf | 421 | drivers/cdrom/mcd.c | bin2bcd(&msf.cdmsf_min0); |
msf | 422 | drivers/cdrom/mcd.c | bin2bcd(&msf.cdmsf_sec0); |
msf | 423 | drivers/cdrom/mcd.c | bin2bcd(&msf.cdmsf_frame0); |
msf | 424 | drivers/cdrom/mcd.c | bin2bcd(&msf.cdmsf_min1); |
msf | 425 | drivers/cdrom/mcd.c | bin2bcd(&msf.cdmsf_sec1); |
msf | 426 | drivers/cdrom/mcd.c | bin2bcd(&msf.cdmsf_frame1); |
msf | 428 | drivers/cdrom/mcd.c | mcd_Play.start.min = msf.cdmsf_min0; |
msf | 429 | drivers/cdrom/mcd.c | mcd_Play.start.sec = msf.cdmsf_sec0; |
msf | 430 | drivers/cdrom/mcd.c | mcd_Play.start.frame = msf.cdmsf_frame0; |
msf | 431 | drivers/cdrom/mcd.c | mcd_Play.end.min = msf.cdmsf_min1; |
msf | 432 | drivers/cdrom/mcd.c | mcd_Play.end.sec = msf.cdmsf_sec1; |
msf | 433 | drivers/cdrom/mcd.c | mcd_Play.end.frame = msf.cdmsf_frame1; |
msf | 487 | drivers/cdrom/mcd.c | entry.cdte_addr.msf.minute = bcd2bin(tocPtr -> diskTime.min); |
msf | 488 | drivers/cdrom/mcd.c | entry.cdte_addr.msf.second = bcd2bin(tocPtr -> diskTime.sec); |
msf | 489 | drivers/cdrom/mcd.c | entry.cdte_addr.msf.frame = bcd2bin(tocPtr -> diskTime.frame); |
msf | 523 | drivers/cdrom/mcd.c | subchnl.cdsc_absaddr.msf.minute = bcd2bin(qInfo.diskTime.min); |
msf | 524 | drivers/cdrom/mcd.c | subchnl.cdsc_absaddr.msf.second = bcd2bin(qInfo.diskTime.sec); |
msf | 525 | drivers/cdrom/mcd.c | subchnl.cdsc_absaddr.msf.frame = bcd2bin(qInfo.diskTime.frame); |
msf | 527 | drivers/cdrom/mcd.c | subchnl.cdsc_reladdr.msf.minute = bcd2bin(qInfo.trackTime.min); |
msf | 528 | drivers/cdrom/mcd.c | subchnl.cdsc_reladdr.msf.second = bcd2bin(qInfo.trackTime.sec); |
msf | 529 | drivers/cdrom/mcd.c | subchnl.cdsc_reladdr.msf.frame = bcd2bin(qInfo.trackTime.frame); |
msf | 862 | drivers/cdrom/mcd.c | struct mcd_Play_msf msf; |
msf | 864 | drivers/cdrom/mcd.c | hsg2msf(mcd_next_bn, &msf.start); |
msf | 865 | drivers/cdrom/mcd.c | msf.end.min = ~0; |
msf | 866 | drivers/cdrom/mcd.c | msf.end.sec = ~0; |
msf | 867 | drivers/cdrom/mcd.c | msf.end.frame = ~0; |
msf | 868 | drivers/cdrom/mcd.c | sendMcdCmd(MCMD_DATA_READ, &msf); |
msf | 1270 | drivers/cdrom/mcd.c | hsg2msf(long hsg, struct msf *msf) |
msf | 1273 | drivers/cdrom/mcd.c | msf -> min = hsg / 4500; |
msf | 1275 | drivers/cdrom/mcd.c | msf -> sec = hsg / 75; |
msf | 1276 | drivers/cdrom/mcd.c | msf -> frame = hsg % 75; |
msf | 1278 | drivers/cdrom/mcd.c | bin2bcd(&msf -> min); /* convert to BCD */ |
msf | 1279 | drivers/cdrom/mcd.c | bin2bcd(&msf -> sec); |
msf | 1280 | drivers/cdrom/mcd.c | bin2bcd(&msf -> frame); |
msf | 320 | drivers/cdrom/mcdx.c | struct cdrom_msf msf; |
msf | 331 | drivers/cdrom/mcdx.c | memcpy_fromfs(&msf, (void*) arg, sizeof msf); |
msf | 333 | drivers/cdrom/mcdx.c | msf.cdmsf_min0 = uint2bcd(msf.cdmsf_min0); |
msf | 334 | drivers/cdrom/mcdx.c | msf.cdmsf_sec0 = uint2bcd(msf.cdmsf_sec0); |
msf | 335 | drivers/cdrom/mcdx.c | msf.cdmsf_frame0 = uint2bcd(msf.cdmsf_frame0); |
msf | 337 | drivers/cdrom/mcdx.c | msf.cdmsf_min1 = uint2bcd(msf.cdmsf_min1); |
msf | 338 | drivers/cdrom/mcdx.c | msf.cdmsf_sec1 = uint2bcd(msf.cdmsf_sec1); |
msf | 339 | drivers/cdrom/mcdx.c | msf.cdmsf_frame1 = uint2bcd(msf.cdmsf_frame1); |
msf | 341 | drivers/cdrom/mcdx.c | return mcdx_playmsf(stuffp, &msf); |
msf | 373 | drivers/cdrom/mcdx.c | entry.cdte_addr.msf.minute = bcd2uint(tp->dt.minute); |
msf | 374 | drivers/cdrom/mcdx.c | entry.cdte_addr.msf.second = bcd2uint(tp->dt.second); |
msf | 375 | drivers/cdrom/mcdx.c | entry.cdte_addr.msf.frame = bcd2uint(tp->dt.frame); |
msf | 417 | drivers/cdrom/mcdx.c | sub.cdsc_absaddr.msf.minute = bcd2uint(q.dt.minute); |
msf | 418 | drivers/cdrom/mcdx.c | sub.cdsc_absaddr.msf.second = bcd2uint(q.dt.second); |
msf | 419 | drivers/cdrom/mcdx.c | sub.cdsc_absaddr.msf.frame = bcd2uint(q.dt.frame); |
msf | 420 | drivers/cdrom/mcdx.c | sub.cdsc_reladdr.msf.minute = bcd2uint(q.tt.minute); |
msf | 421 | drivers/cdrom/mcdx.c | sub.cdsc_reladdr.msf.second = bcd2uint(q.tt.second); |
msf | 422 | drivers/cdrom/mcdx.c | sub.cdsc_reladdr.msf.frame = bcd2uint(q.tt.frame); |
msf | 425 | drivers/cdrom/mcdx.c | sub.cdsc_absaddr.msf.minute, |
msf | 426 | drivers/cdrom/mcdx.c | sub.cdsc_absaddr.msf.second, |
msf | 427 | drivers/cdrom/mcdx.c | sub.cdsc_absaddr.msf.frame, |
msf | 428 | drivers/cdrom/mcdx.c | sub.cdsc_reladdr.msf.minute, |
msf | 429 | drivers/cdrom/mcdx.c | sub.cdsc_reladdr.msf.second, |
msf | 430 | drivers/cdrom/mcdx.c | sub.cdsc_reladdr.msf.frame)); |
msf | 475 | drivers/cdrom/mcdx.c | ms.addr.msf.minute = bcd2uint(stuffp->multi.msf_last.minute); |
msf | 476 | drivers/cdrom/mcdx.c | ms.addr.msf.second = bcd2uint(stuffp->multi.msf_last.second); |
msf | 477 | drivers/cdrom/mcdx.c | ms.addr.msf.frame = bcd2uint(stuffp->multi.msf_last.frame); |
msf | 493 | drivers/cdrom/mcdx.c | ms.addr.msf.minute, |
msf | 494 | drivers/cdrom/mcdx.c | ms.addr.msf.second, |
msf | 495 | drivers/cdrom/mcdx.c | ms.addr.msf.frame, |
msf | 1572 | drivers/cdrom/mcdx.c | mcdx_playmsf(struct s_drive_stuff* stuffp, const struct cdrom_msf* msf) |
msf | 1580 | drivers/cdrom/mcdx.c | cmd[1] = msf->cdmsf_min0; |
msf | 1581 | drivers/cdrom/mcdx.c | cmd[2] = msf->cdmsf_sec0; |
msf | 1582 | drivers/cdrom/mcdx.c | cmd[3] = msf->cdmsf_frame0; |
msf | 1583 | drivers/cdrom/mcdx.c | cmd[4] = msf->cdmsf_min1; |
msf | 1584 | drivers/cdrom/mcdx.c | cmd[5] = msf->cdmsf_sec1; |
msf | 1585 | drivers/cdrom/mcdx.c | cmd[6] = msf->cdmsf_frame1; |
msf | 1607 | drivers/cdrom/mcdx.c | struct cdrom_msf msf; |
msf | 1614 | drivers/cdrom/mcdx.c | msf.cdmsf_min0 = p->dt.minute; |
msf | 1615 | drivers/cdrom/mcdx.c | msf.cdmsf_sec0 = p->dt.second; |
msf | 1616 | drivers/cdrom/mcdx.c | msf.cdmsf_frame0 = p->dt.frame; |
msf | 1623 | drivers/cdrom/mcdx.c | msf.cdmsf_min1 = p->dt.minute; |
msf | 1624 | drivers/cdrom/mcdx.c | msf.cdmsf_sec1 = p->dt.second; |
msf | 1625 | drivers/cdrom/mcdx.c | msf.cdmsf_frame1 = p->dt.frame; |
msf | 1627 | drivers/cdrom/mcdx.c | return mcdx_playmsf(stuffp, &msf); |
msf | 527 | drivers/cdrom/optcd.c | static void bin2bcd(struct cdrom_msf *msf) |
msf | 529 | drivers/cdrom/optcd.c | single_bin2bcd(&msf->cdmsf_min0); |
msf | 530 | drivers/cdrom/optcd.c | single_bin2bcd(&msf->cdmsf_sec0); |
msf | 531 | drivers/cdrom/optcd.c | single_bin2bcd(&msf->cdmsf_frame0); |
msf | 532 | drivers/cdrom/optcd.c | single_bin2bcd(&msf->cdmsf_min1); |
msf | 533 | drivers/cdrom/optcd.c | single_bin2bcd(&msf->cdmsf_sec1); |
msf | 534 | drivers/cdrom/optcd.c | single_bin2bcd(&msf->cdmsf_frame1); |
msf | 541 | drivers/cdrom/optcd.c | static void lba2msf(int lba, struct cdrom_msf *msf) |
msf | 545 | drivers/cdrom/optcd.c | msf->cdmsf_min0 = lba / CD_FPM; lba %= CD_FPM; |
msf | 546 | drivers/cdrom/optcd.c | msf->cdmsf_sec0 = lba / CD_FRAMES; |
msf | 547 | drivers/cdrom/optcd.c | msf->cdmsf_frame0 = lba % CD_FRAMES; |
msf | 548 | drivers/cdrom/optcd.c | msf->cdmsf_min1 = 0; |
msf | 549 | drivers/cdrom/optcd.c | msf->cdmsf_sec1 = 0; |
msf | 550 | drivers/cdrom/optcd.c | msf->cdmsf_frame1 = 0; |
msf | 551 | drivers/cdrom/optcd.c | bin2bcd(msf); |
msf | 565 | drivers/cdrom/optcd.c | addr->lba = addr->msf.minute * CD_FPM |
msf | 566 | drivers/cdrom/optcd.c | + addr->msf.second * CD_FRAMES |
msf | 567 | drivers/cdrom/optcd.c | + addr->msf.frame - CD_MSF_OFFSET; |
msf | 575 | drivers/cdrom/optcd.c | addr->msf.minute = bcd2bin(addr->msf.minute); |
msf | 576 | drivers/cdrom/optcd.c | addr->msf.second = bcd2bin(addr->msf.second); |
msf | 577 | drivers/cdrom/optcd.c | addr->msf.frame = bcd2bin(addr->msf.frame); |
msf | 649 | drivers/cdrom/optcd.c | qp->cdsc_reladdr.msf.minute = d4; |
msf | 654 | drivers/cdrom/optcd.c | qp->cdsc_reladdr.msf.second = d5; |
msf | 659 | drivers/cdrom/optcd.c | qp->cdsc_reladdr.msf.frame = d6; |
msf | 669 | drivers/cdrom/optcd.c | qp->cdsc_absaddr.msf.minute = d8; |
msf | 674 | drivers/cdrom/optcd.c | qp->cdsc_absaddr.msf.second = d9; |
msf | 679 | drivers/cdrom/optcd.c | qp->cdsc_absaddr.msf.frame = d10; |
msf | 739 | drivers/cdrom/optcd.c | toc[i].cdsc_reladdr.msf.minute, |
msf | 740 | drivers/cdrom/optcd.c | toc[i].cdsc_reladdr.msf.second, |
msf | 741 | drivers/cdrom/optcd.c | toc[i].cdsc_reladdr.msf.frame, |
msf | 742 | drivers/cdrom/optcd.c | toc[i].cdsc_absaddr.msf.minute, |
msf | 743 | drivers/cdrom/optcd.c | toc[i].cdsc_absaddr.msf.second, |
msf | 744 | drivers/cdrom/optcd.c | toc[i].cdsc_absaddr.msf.frame); |
msf | 794 | drivers/cdrom/optcd.c | && toc[QINFO_FIRSTTRACK].cdsc_absaddr.msf.minute + count |
msf | 795 | drivers/cdrom/optcd.c | >= toc[QINFO_LASTTRACK].cdsc_absaddr.msf.minute + 1) |
msf | 801 | drivers/cdrom/optcd.c | disk_info.first = toc[QINFO_FIRSTTRACK].cdsc_absaddr.msf.minute; |
msf | 803 | drivers/cdrom/optcd.c | toc[disk_info.first].cdsc_absaddr.msf.minute; |
msf | 805 | drivers/cdrom/optcd.c | toc[disk_info.first].cdsc_absaddr.msf.second; |
msf | 807 | drivers/cdrom/optcd.c | toc[disk_info.first].cdsc_absaddr.msf.frame; |
msf | 809 | drivers/cdrom/optcd.c | disk_info.last = toc[QINFO_LASTTRACK].cdsc_absaddr.msf.minute; |
msf | 811 | drivers/cdrom/optcd.c | toc[QINFO_DISKLENGTH].cdsc_absaddr.msf.minute; |
msf | 813 | drivers/cdrom/optcd.c | toc[QINFO_DISKLENGTH].cdsc_absaddr.msf.second-2; |
msf | 815 | drivers/cdrom/optcd.c | toc[QINFO_DISKLENGTH].cdsc_absaddr.msf.frame; |
msf | 817 | drivers/cdrom/optcd.c | toc[QINFO_NEXTSESSION].cdsc_reladdr.msf.minute; |
msf | 819 | drivers/cdrom/optcd.c | toc[QINFO_NEXTSESSION].cdsc_reladdr.msf.second; |
msf | 821 | drivers/cdrom/optcd.c | toc[QINFO_NEXTSESSION].cdsc_reladdr.msf.frame; |
msf | 822 | drivers/cdrom/optcd.c | disk_info.next = toc[QINFO_FIRSTTRACK].cdsc_absaddr.msf.minute; |
msf | 824 | drivers/cdrom/optcd.c | toc[disk_info.next].cdsc_absaddr.msf.minute; |
msf | 826 | drivers/cdrom/optcd.c | toc[disk_info.next].cdsc_absaddr.msf.second; |
msf | 828 | drivers/cdrom/optcd.c | toc[disk_info.next].cdsc_absaddr.msf.frame; |
msf | 829 | drivers/cdrom/optcd.c | toc[disk_info.last + 1].cdsc_absaddr.msf.minute = |
msf | 831 | drivers/cdrom/optcd.c | toc[disk_info.last + 1].cdsc_absaddr.msf.second = |
msf | 833 | drivers/cdrom/optcd.c | toc[disk_info.last + 1].cdsc_absaddr.msf.frame = |
msf | 847 | drivers/cdrom/optcd.c | || toc[QINFO_FIRSTTRACK].cdsc_absaddr.msf.minute + count |
msf | 848 | drivers/cdrom/optcd.c | < toc[QINFO_LASTTRACK].cdsc_absaddr.msf.minute + 1) |
msf | 1130 | drivers/cdrom/optcd.c | struct cdrom_msf msf; |
msf | 1158 | drivers/cdrom/optcd.c | lba2msf(next_bn, &msf); |
msf | 1160 | drivers/cdrom/optcd.c | msf.cdmsf_frame1 = read_count; /* Not BCD! */ |
msf | 1163 | drivers/cdrom/optcd.c | msf.cdmsf_min0, |
msf | 1164 | drivers/cdrom/optcd.c | msf.cdmsf_sec0, |
msf | 1165 | drivers/cdrom/optcd.c | msf.cdmsf_frame0, |
msf | 1166 | drivers/cdrom/optcd.c | msf.cdmsf_min1, |
msf | 1167 | drivers/cdrom/optcd.c | msf.cdmsf_sec1, |
msf | 1168 | drivers/cdrom/optcd.c | msf.cdmsf_frame1)); |
msf | 1176 | drivers/cdrom/optcd.c | exec_read_cmd(COMREAD, &msf); |
msf | 1435 | drivers/cdrom/optcd.c | struct cdrom_msf msf; |
msf | 1437 | drivers/cdrom/optcd.c | status = verify_area(VERIFY_READ, (void *) arg, sizeof msf); |
msf | 1440 | drivers/cdrom/optcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof msf); |
msf | 1442 | drivers/cdrom/optcd.c | bin2bcd(&msf); |
msf | 1443 | drivers/cdrom/optcd.c | status = exec_long_cmd(COMPLAY, &msf); |
msf | 1459 | drivers/cdrom/optcd.c | struct cdrom_msf msf; |
msf | 1473 | drivers/cdrom/optcd.c | msf.cdmsf_min0 = toc[ti.cdti_trk0].cdsc_absaddr.msf.minute; |
msf | 1474 | drivers/cdrom/optcd.c | msf.cdmsf_sec0 = toc[ti.cdti_trk0].cdsc_absaddr.msf.second; |
msf | 1475 | drivers/cdrom/optcd.c | msf.cdmsf_frame0 = toc[ti.cdti_trk0].cdsc_absaddr.msf.frame; |
msf | 1476 | drivers/cdrom/optcd.c | msf.cdmsf_min1 = toc[ti.cdti_trk1 + 1].cdsc_absaddr.msf.minute; |
msf | 1477 | drivers/cdrom/optcd.c | msf.cdmsf_sec1 = toc[ti.cdti_trk1 + 1].cdsc_absaddr.msf.second; |
msf | 1478 | drivers/cdrom/optcd.c | msf.cdmsf_frame1 = toc[ti.cdti_trk1 + 1].cdsc_absaddr.msf.frame; |
msf | 1481 | drivers/cdrom/optcd.c | msf.cdmsf_min0, |
msf | 1482 | drivers/cdrom/optcd.c | msf.cdmsf_sec0, |
msf | 1483 | drivers/cdrom/optcd.c | msf.cdmsf_frame0, |
msf | 1484 | drivers/cdrom/optcd.c | msf.cdmsf_min1, |
msf | 1485 | drivers/cdrom/optcd.c | msf.cdmsf_sec1, |
msf | 1486 | drivers/cdrom/optcd.c | msf.cdmsf_frame1)); |
msf | 1488 | drivers/cdrom/optcd.c | bin2bcd(&msf); |
msf | 1489 | drivers/cdrom/optcd.c | status = exec_long_cmd(COMPLAY, &msf); |
msf | 1542 | drivers/cdrom/optcd.c | entry.cdte_addr.msf.minute = tocptr->cdsc_absaddr.msf.minute; |
msf | 1543 | drivers/cdrom/optcd.c | entry.cdte_addr.msf.second = tocptr->cdsc_absaddr.msf.second; |
msf | 1544 | drivers/cdrom/optcd.c | entry.cdte_addr.msf.frame = tocptr->cdsc_absaddr.msf.frame; |
msf | 1561 | drivers/cdrom/optcd.c | struct cdrom_msf msf; |
msf | 1568 | drivers/cdrom/optcd.c | msf.cdmsf_min0 = 0x10; |
msf | 1569 | drivers/cdrom/optcd.c | msf.cdmsf_sec0 = 0x32; |
msf | 1570 | drivers/cdrom/optcd.c | msf.cdmsf_frame0 = volctrl.channel0; |
msf | 1571 | drivers/cdrom/optcd.c | msf.cdmsf_min1 = volctrl.channel1; |
msf | 1572 | drivers/cdrom/optcd.c | msf.cdmsf_sec1 = volctrl.channel2; |
msf | 1573 | drivers/cdrom/optcd.c | msf.cdmsf_frame1 = volctrl.channel3; |
msf | 1575 | drivers/cdrom/optcd.c | status = exec_long_cmd(COMCHCTRL, &msf); |
msf | 1615 | drivers/cdrom/optcd.c | struct cdrom_msf msf; |
msf | 1618 | drivers/cdrom/optcd.c | status = verify_area(VERIFY_READ, (void *) arg, sizeof msf); |
msf | 1624 | drivers/cdrom/optcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof msf); |
msf | 1626 | drivers/cdrom/optcd.c | bin2bcd(&msf); |
msf | 1627 | drivers/cdrom/optcd.c | msf.cdmsf_min1 = 0; |
msf | 1628 | drivers/cdrom/optcd.c | msf.cdmsf_sec1 = 0; |
msf | 1629 | drivers/cdrom/optcd.c | msf.cdmsf_frame1 = 1; /* read only one frame */ |
msf | 1630 | drivers/cdrom/optcd.c | status = exec_read_cmd(cmd, &msf); |
msf | 1646 | drivers/cdrom/optcd.c | struct cdrom_msf msf; |
msf | 1648 | drivers/cdrom/optcd.c | status = verify_area(VERIFY_READ, (void *) arg, sizeof msf); |
msf | 1651 | drivers/cdrom/optcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof msf); |
msf | 1653 | drivers/cdrom/optcd.c | bin2bcd(&msf); |
msf | 1654 | drivers/cdrom/optcd.c | status = exec_seek_cmd(COMSEEK, &msf); |
msf | 1678 | drivers/cdrom/optcd.c | ms.addr.msf.minute = disk_info.last_session.minute; |
msf | 1679 | drivers/cdrom/optcd.c | ms.addr.msf.second = disk_info.last_session.second; |
msf | 1680 | drivers/cdrom/optcd.c | ms.addr.msf.frame = disk_info.last_session.frame; |
msf | 1697 | drivers/cdrom/optcd.c | ms.addr.msf.minute, |
msf | 1698 | drivers/cdrom/optcd.c | ms.addr.msf.second, |
msf | 1699 | drivers/cdrom/optcd.c | ms.addr.msf.frame); |
msf | 515 | drivers/cdrom/sbpcd.c | static struct cdrom_msf msf; |
msf | 806 | drivers/cdrom/sbpcd.c | static INLINE void lba2msf(int lba, u_char *msf) |
msf | 809 | drivers/cdrom/sbpcd.c | msf[0] = lba / (CD_SECS*CD_FRAMES); |
msf | 811 | drivers/cdrom/sbpcd.c | msf[1] = lba / CD_FRAMES; |
msf | 812 | drivers/cdrom/sbpcd.c | msf[2] = lba % CD_FRAMES; |
msf | 826 | drivers/cdrom/sbpcd.c | MSF msf; |
msf | 829 | drivers/cdrom/sbpcd.c | msf.c[3] = 0; |
msf | 830 | drivers/cdrom/sbpcd.c | msf.c[2] = (blk + CD_MSF_OFFSET) / (CD_SECS * CD_FRAMES); |
msf | 832 | drivers/cdrom/sbpcd.c | msf.c[1] = mm / CD_FRAMES; |
msf | 833 | drivers/cdrom/sbpcd.c | msf.c[0] = mm % CD_FRAMES; |
msf | 834 | drivers/cdrom/sbpcd.c | return (msf.n); |
msf | 864 | drivers/cdrom/sbpcd.c | MSF msf; |
msf | 867 | drivers/cdrom/sbpcd.c | msf.n=msfx; |
msf | 868 | drivers/cdrom/sbpcd.c | i=(msf.c[2] * CD_SECS + msf.c[1]) * CD_FRAMES + msf.c[0] - CD_MSF_OFFSET; |
msf | 876 | drivers/cdrom/sbpcd.c | static INLINE int msf2lba(u_char *msf) |
msf | 880 | drivers/cdrom/sbpcd.c | i=(msf[0] * CD_SECS + msf[1]) * CD_FRAMES + msf[2] - CD_MSF_OFFSET; |
msf | 3919 | drivers/cdrom/sbpcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof(struct cdrom_msf)); |
msf | 3921 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start = (msf.cdmsf_min0<<16) | |
msf | 3922 | drivers/cdrom/sbpcd.c | (msf.cdmsf_sec0<<8) | |
msf | 3923 | drivers/cdrom/sbpcd.c | msf.cdmsf_frame0; |
msf | 3924 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_end = (msf.cdmsf_min1<<16) | |
msf | 3925 | drivers/cdrom/sbpcd.c | (msf.cdmsf_sec1<<8) | |
msf | 3926 | drivers/cdrom/sbpcd.c | msf.cdmsf_frame1; |
msf | 3989 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.minute=(D_S[d].TocBuffer[i].address>>16)&0x00FF; |
msf | 3990 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.second=(D_S[d].TocBuffer[i].address>>8)&0x00FF; |
msf | 3991 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.frame=D_S[d].TocBuffer[i].address&0x00FF; |
msf | 4098 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.msf.minute=(D_S[d].SubQ_run_tot>>16)&0x00FF; |
msf | 4099 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.msf.second=(D_S[d].SubQ_run_tot>>8)&0x00FF; |
msf | 4100 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.msf.frame=D_S[d].SubQ_run_tot&0x00FF; |
msf | 4101 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.msf.minute=(D_S[d].SubQ_run_trk>>16)&0x00FF; |
msf | 4102 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.msf.second=(D_S[d].SubQ_run_trk>>8)&0x00FF; |
msf | 4103 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.msf.frame=D_S[d].SubQ_run_trk&0x00FF; |
msf | 4171 | drivers/cdrom/sbpcd.c | block=msf2lba(&read_audio.addr.msf.minute); |
msf | 4362 | drivers/cdrom/sbpcd.c | lba2msf(D_S[d].lba_multi,&ms_info.addr.msf.minute); |
msf | 178 | drivers/cdrom/sjcd.c | static long msf2hsg( struct msf *mp ){ |
msf | 183 | drivers/cdrom/sjcd.c | static void hsg2msf( long hsg, struct msf *msf ){ |
msf | 184 | drivers/cdrom/sjcd.c | hsg += 150; msf->min = hsg / 4500; |
msf | 185 | drivers/cdrom/sjcd.c | hsg %= 4500; msf->sec = hsg / 75; msf->frame = hsg % 75; |
msf | 186 | drivers/cdrom/sjcd.c | msf->min = bin2bcd( msf->min ); /* convert to BCD */ |
msf | 187 | drivers/cdrom/sjcd.c | msf->sec = bin2bcd( msf->sec ); |
msf | 188 | drivers/cdrom/sjcd.c | msf->frame = bin2bcd( msf->frame ); |
msf | 592 | drivers/cdrom/sjcd.c | struct sjcd_play_msf msf; |
msf | 603 | drivers/cdrom/sjcd.c | msf.start = mp->start; |
msf | 604 | drivers/cdrom/sjcd.c | msf.end.min = msf.end.sec = msf.end.frame = 0x00; |
msf | 605 | drivers/cdrom/sjcd.c | sjcd_send_6_cmd( SCMD_SEEK, &msf ); |
msf | 811 | drivers/cdrom/sjcd.c | toc_entry.cdte_addr.msf.minute = bcd2bin( tp->un.track_msf.min ); |
msf | 812 | drivers/cdrom/sjcd.c | toc_entry.cdte_addr.msf.second = bcd2bin( tp->un.track_msf.sec ); |
msf | 813 | drivers/cdrom/sjcd.c | toc_entry.cdte_addr.msf.frame = bcd2bin( tp->un.track_msf.frame ); |
msf | 845 | drivers/cdrom/sjcd.c | subchnl.cdsc_absaddr.msf.minute = bcd2bin( q_info.abs.min ); |
msf | 846 | drivers/cdrom/sjcd.c | subchnl.cdsc_absaddr.msf.second = bcd2bin( q_info.abs.sec ); |
msf | 847 | drivers/cdrom/sjcd.c | subchnl.cdsc_absaddr.msf.frame = bcd2bin( q_info.abs.frame ); |
msf | 848 | drivers/cdrom/sjcd.c | subchnl.cdsc_reladdr.msf.minute = bcd2bin( q_info.rel.min ); |
msf | 849 | drivers/cdrom/sjcd.c | subchnl.cdsc_reladdr.msf.second = bcd2bin( q_info.rel.sec ); |
msf | 850 | drivers/cdrom/sjcd.c | subchnl.cdsc_reladdr.msf.frame = bcd2bin( q_info.rel.frame ); |
msf | 1063 | drivers/cdrom/sjcd.c | struct sjcd_play_msf msf; |
msf | 1066 | drivers/cdrom/sjcd.c | hsg2msf( sjcd_next_bn, &msf.start ); |
msf | 1067 | drivers/cdrom/sjcd.c | msf.end.min = 0; msf.end.sec = 0; |
msf | 1068 | drivers/cdrom/sjcd.c | msf.end.frame = sjcd_read_count = SJCD_BUF_SIZ; |
msf | 1071 | drivers/cdrom/sjcd.c | msf.start.min, msf.start.sec, msf.start.frame, |
msf | 1072 | drivers/cdrom/sjcd.c | msf.end.min, msf.end.sec, msf.end.frame ); |
msf | 1077 | drivers/cdrom/sjcd.c | sjcd_send_6_cmd( SCMD_DATA_READ, &msf ); |
msf | 733 | drivers/cdrom/sonycd535.c | log_to_msf(unsigned int log, Byte *msf) |
msf | 736 | drivers/cdrom/sonycd535.c | msf[0] = int_to_bcd(log / 4500); |
msf | 738 | drivers/cdrom/sonycd535.c | msf[1] = int_to_bcd(log / 75); |
msf | 739 | drivers/cdrom/sonycd535.c | msf[2] = int_to_bcd(log % 75); |
msf | 747 | drivers/cdrom/sonycd535.c | msf_to_log(Byte *msf) |
msf | 752 | drivers/cdrom/sonycd535.c | log = bcd_to_int(msf[2]); |
msf | 753 | drivers/cdrom/sonycd535.c | log += bcd_to_int(msf[1]) * 75; |
msf | 754 | drivers/cdrom/sonycd535.c | log += bcd_to_int(msf[0]) * 4500; |
msf | 1051 | drivers/cdrom/sonycd535.c | schi.cdsc_absaddr.msf.minute = bcd_to_int(last_sony_subcode->abs_msf[0]); |
msf | 1052 | drivers/cdrom/sonycd535.c | schi.cdsc_absaddr.msf.second = bcd_to_int(last_sony_subcode->abs_msf[1]); |
msf | 1053 | drivers/cdrom/sonycd535.c | schi.cdsc_absaddr.msf.frame = bcd_to_int(last_sony_subcode->abs_msf[2]); |
msf | 1055 | drivers/cdrom/sonycd535.c | schi.cdsc_reladdr.msf.minute = bcd_to_int(last_sony_subcode->rel_msf[0]); |
msf | 1056 | drivers/cdrom/sonycd535.c | schi.cdsc_reladdr.msf.second = bcd_to_int(last_sony_subcode->rel_msf[1]); |
msf | 1057 | drivers/cdrom/sonycd535.c | schi.cdsc_reladdr.msf.frame = bcd_to_int(last_sony_subcode->rel_msf[2]); |
msf | 1258 | drivers/cdrom/sonycd535.c | loc_entry.cdte_addr.msf.minute = bcd_to_int(*msf_val); |
msf | 1259 | drivers/cdrom/sonycd535.c | loc_entry.cdte_addr.msf.second = bcd_to_int(*(msf_val + 1)); |
msf | 1260 | drivers/cdrom/sonycd535.c | loc_entry.cdte_addr.msf.frame = bcd_to_int(*(msf_val + 2)); |
msf | 129 | drivers/scsi/sr_ioctl.c | struct cdrom_msf msf; |
msf | 131 | drivers/scsi/sr_ioctl.c | err = verify_area (VERIFY_READ, (void *) arg, sizeof (msf)); |
msf | 134 | drivers/scsi/sr_ioctl.c | memcpy_fromfs(&msf, (void *) arg, sizeof(msf)); |
msf | 139 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = msf.cdmsf_min0; |
msf | 140 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = msf.cdmsf_sec0; |
msf | 141 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = msf.cdmsf_frame0; |
msf | 142 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = msf.cdmsf_min1; |
msf | 143 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = msf.cdmsf_sec1; |
msf | 144 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = msf.cdmsf_frame1; |
msf | 255 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.msf.minute = buffer[9]; |
msf | 256 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.msf.second = buffer[10]; |
msf | 257 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.msf.frame = buffer[11]; |
msf | 445 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.minute = buffer[13]; |
msf | 446 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.second = buffer[14]; |
msf | 447 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.frame = buffer[15]; |
msf | 448 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.minute = buffer[9]; |
msf | 449 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.second = buffer[10]; |
msf | 450 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.frame = buffer[11]; |
msf | 480 | drivers/scsi/sr_ioctl.c | ms_info.addr.msf.minute = lba / (CD_SECS*CD_FRAMES); |
msf | 482 | drivers/scsi/sr_ioctl.c | ms_info.addr.msf.second = lba / CD_FRAMES; |
msf | 483 | drivers/scsi/sr_ioctl.c | ms_info.addr.msf.frame = lba % CD_FRAMES; |
msf | 131 | include/linux/aztcd.h | struct msf start; |
msf | 132 | include/linux/aztcd.h | struct msf end; |
msf | 139 | include/linux/aztcd.h | struct msf diskLength; |
msf | 140 | include/linux/aztcd.h | struct msf firstTrack; |
msf | 142 | include/linux/aztcd.h | struct msf nextSession; |
msf | 143 | include/linux/aztcd.h | struct msf lastSession; |
msf | 152 | include/linux/aztcd.h | struct msf trackTime; |
msf | 153 | include/linux/aztcd.h | struct msf diskTime; |
msf | 110 | include/linux/cdrom.h | struct cdrom_msf0 msf; |
msf | 92 | include/linux/gscd.h | struct msf start; |
msf | 93 | include/linux/gscd.h | struct msf end; |
msf | 99 | include/linux/gscd.h | struct msf diskLength; |
msf | 100 | include/linux/gscd.h | struct msf firstTrack; |
msf | 107 | include/linux/gscd.h | struct msf trackTime; |
msf | 108 | include/linux/gscd.h | struct msf diskTime; |
msf | 94 | include/linux/mcd.h | struct msf start; |
msf | 95 | include/linux/mcd.h | struct msf end; |
msf | 101 | include/linux/mcd.h | struct msf diskLength; |
msf | 102 | include/linux/mcd.h | struct msf firstTrack; |
msf | 109 | include/linux/mcd.h | struct msf trackTime; |
msf | 110 | include/linux/mcd.h | struct msf diskTime; |
msf | 133 | include/linux/sjcd.h | struct msf track_msf; |
msf | 141 | include/linux/sjcd.h | struct msf rel; |
msf | 142 | include/linux/sjcd.h | struct msf abs; |
msf | 146 | include/linux/sjcd.h | struct msf start; |
msf | 147 | include/linux/sjcd.h | struct msf end; |
msf | 153 | include/linux/sjcd.h | struct msf disk_length; |
msf | 154 | include/linux/sjcd.h | struct msf first_track; |
msf | 161 | include/linux/sjcd.h | struct msf track_time; |
msf | 162 | include/linux/sjcd.h | struct msf disk_time; |