tag | line | file | source code |
msf | 264 | drivers/block/aztcd.c | static void azt_hsg2msf(long hsg, struct msf *msf); |
msf | 612 | drivers/block/aztcd.c | long azt_msf2hsg(struct msf *mp) |
msf | 622 | drivers/block/aztcd.c | struct cdrom_msf msf; |
msf | 686 | drivers/block/aztcd.c | { ms.addr.msf.minute = azt_bcd2bin(DiskInfo.lastSession.min); |
msf | 687 | drivers/block/aztcd.c | ms.addr.msf.second = azt_bcd2bin(DiskInfo.lastSession.sec); |
msf | 688 | drivers/block/aztcd.c | ms.addr.msf.frame = azt_bcd2bin(DiskInfo.lastSession.frame); |
msf | 701 | drivers/block/aztcd.c | ms.xa_flag, ms.addr.msf.minute, ms.addr.msf.second, |
msf | 702 | drivers/block/aztcd.c | ms.addr.msf.frame, DiskInfo.lastSession.min, |
msf | 743 | drivers/block/aztcd.c | st = verify_area(VERIFY_READ, (void *) arg, sizeof msf); |
msf | 745 | drivers/block/aztcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof msf); |
msf | 747 | drivers/block/aztcd.c | azt_bin2bcd(&msf.cdmsf_min0); |
msf | 748 | drivers/block/aztcd.c | azt_bin2bcd(&msf.cdmsf_sec0); |
msf | 749 | drivers/block/aztcd.c | azt_bin2bcd(&msf.cdmsf_frame0); |
msf | 750 | drivers/block/aztcd.c | azt_bin2bcd(&msf.cdmsf_min1); |
msf | 751 | drivers/block/aztcd.c | azt_bin2bcd(&msf.cdmsf_sec1); |
msf | 752 | drivers/block/aztcd.c | azt_bin2bcd(&msf.cdmsf_frame1); |
msf | 753 | drivers/block/aztcd.c | azt_Play.start.min = msf.cdmsf_min0; |
msf | 754 | drivers/block/aztcd.c | azt_Play.start.sec = msf.cdmsf_sec0; |
msf | 755 | drivers/block/aztcd.c | azt_Play.start.frame = msf.cdmsf_frame0; |
msf | 756 | drivers/block/aztcd.c | azt_Play.end.min = msf.cdmsf_min1; |
msf | 757 | drivers/block/aztcd.c | azt_Play.end.sec = msf.cdmsf_sec1; |
msf | 758 | drivers/block/aztcd.c | azt_Play.end.frame = msf.cdmsf_frame1; |
msf | 799 | drivers/block/aztcd.c | { entry.cdte_addr.msf.minute = azt_bcd2bin(tocPtr -> diskTime.min); |
msf | 800 | drivers/block/aztcd.c | entry.cdte_addr.msf.second = azt_bcd2bin(tocPtr -> diskTime.sec); |
msf | 801 | drivers/block/aztcd.c | entry.cdte_addr.msf.frame = azt_bcd2bin(tocPtr -> diskTime.frame); |
msf | 842 | drivers/block/aztcd.c | subchnl.cdsc_absaddr.msf.minute = azt_bcd2bin(qInfo.diskTime.min); |
msf | 843 | drivers/block/aztcd.c | subchnl.cdsc_absaddr.msf.second = azt_bcd2bin(qInfo.diskTime.sec); |
msf | 844 | drivers/block/aztcd.c | subchnl.cdsc_absaddr.msf.frame = azt_bcd2bin(qInfo.diskTime.frame); |
msf | 845 | drivers/block/aztcd.c | subchnl.cdsc_reladdr.msf.minute = azt_bcd2bin(qInfo.trackTime.min); |
msf | 846 | drivers/block/aztcd.c | subchnl.cdsc_reladdr.msf.second = azt_bcd2bin(qInfo.trackTime.sec); |
msf | 847 | drivers/block/aztcd.c | subchnl.cdsc_reladdr.msf.frame = azt_bcd2bin(qInfo.trackTime.frame); |
msf | 895 | drivers/block/aztcd.c | { st = verify_area(VERIFY_READ, (void *) arg, sizeof msf); |
msf | 899 | drivers/block/aztcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof msf); |
msf | 901 | drivers/block/aztcd.c | azt_bin2bcd(&msf.cdmsf_min0); |
msf | 902 | drivers/block/aztcd.c | azt_bin2bcd(&msf.cdmsf_sec0); |
msf | 903 | drivers/block/aztcd.c | azt_bin2bcd(&msf.cdmsf_frame0); |
msf | 904 | drivers/block/aztcd.c | msf.cdmsf_min1=0; |
msf | 905 | drivers/block/aztcd.c | msf.cdmsf_sec1=0; |
msf | 906 | drivers/block/aztcd.c | msf.cdmsf_frame1=1; /*read only one frame*/ |
msf | 907 | drivers/block/aztcd.c | azt_Play.start.min = msf.cdmsf_min0; |
msf | 908 | drivers/block/aztcd.c | azt_Play.start.sec = msf.cdmsf_sec0; |
msf | 909 | drivers/block/aztcd.c | azt_Play.start.frame = msf.cdmsf_frame0; |
msf | 910 | drivers/block/aztcd.c | azt_Play.end.min = msf.cdmsf_min1; |
msf | 911 | drivers/block/aztcd.c | azt_Play.end.sec = msf.cdmsf_sec1; |
msf | 912 | drivers/block/aztcd.c | azt_Play.end.frame = msf.cdmsf_frame1; |
msf | 933 | drivers/block/aztcd.c | st = verify_area(VERIFY_READ, (void *) arg, sizeof msf); |
msf | 935 | drivers/block/aztcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof msf); |
msf | 937 | drivers/block/aztcd.c | azt_bin2bcd(&msf.cdmsf_min0); |
msf | 938 | drivers/block/aztcd.c | azt_bin2bcd(&msf.cdmsf_sec0); |
msf | 939 | drivers/block/aztcd.c | azt_bin2bcd(&msf.cdmsf_frame0); |
msf | 940 | drivers/block/aztcd.c | azt_Play.start.min = msf.cdmsf_min0; |
msf | 941 | drivers/block/aztcd.c | azt_Play.start.sec = msf.cdmsf_sec0; |
msf | 942 | drivers/block/aztcd.c | azt_Play.start.frame = msf.cdmsf_frame0; |
msf | 1187 | drivers/block/aztcd.c | struct azt_Play_msf msf; |
msf | 1189 | drivers/block/aztcd.c | azt_hsg2msf(azt_next_bn, &msf.start); |
msf | 1193 | drivers/block/aztcd.c | msf.end.min = 0; |
msf | 1194 | drivers/block/aztcd.c | msf.end.sec = 0; |
msf | 1195 | drivers/block/aztcd.c | msf.end.frame = azt_read_count ;/*Mitsumi here reads 0xffffff sectors*/ |
msf | 1197 | drivers/block/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 | 1202 | drivers/block/aztcd.c | { sendAztCmd(ACMD_PLAY_READ_RAW, &msf); /*XA disks in raw mode*/ |
msf | 1205 | drivers/block/aztcd.c | { sendAztCmd(ACMD_PLAY_READ, &msf); /*others in cooked mode*/ |
msf | 1710 | drivers/block/aztcd.c | static void azt_hsg2msf(long hsg, struct msf *msf) |
msf | 1712 | drivers/block/aztcd.c | msf -> min = hsg / 4500; |
msf | 1714 | drivers/block/aztcd.c | msf -> sec = hsg / 75; |
msf | 1715 | drivers/block/aztcd.c | msf -> frame = hsg % 75; |
msf | 1717 | drivers/block/aztcd.c | if (msf->min >=70) printk("aztcd: Error hsg2msf address Minutes\n"); |
msf | 1718 | drivers/block/aztcd.c | if (msf->sec >=60) printk("aztcd: Error hsg2msf address Seconds\n"); |
msf | 1719 | drivers/block/aztcd.c | if (msf->frame>=75) printk("aztcd: Error hsg2msf address Frames\n"); |
msf | 1721 | drivers/block/aztcd.c | azt_bin2bcd(&msf -> min); /* convert to BCD */ |
msf | 1722 | drivers/block/aztcd.c | azt_bin2bcd(&msf -> sec); |
msf | 1723 | drivers/block/aztcd.c | azt_bin2bcd(&msf -> frame); |
msf | 1020 | drivers/block/cdu31a.c | log_to_msf(unsigned int log, unsigned char *msf) |
msf | 1023 | drivers/block/cdu31a.c | msf[0] = int_to_bcd(log / 4500); |
msf | 1025 | drivers/block/cdu31a.c | msf[1] = int_to_bcd(log / 75); |
msf | 1026 | drivers/block/cdu31a.c | msf[2] = int_to_bcd(log % 75); |
msf | 1034 | drivers/block/cdu31a.c | msf_to_log(unsigned char *msf) |
msf | 1039 | drivers/block/cdu31a.c | log = bcd_to_int(msf[2]); |
msf | 1040 | drivers/block/cdu31a.c | log += bcd_to_int(msf[1]) * 75; |
msf | 1041 | drivers/block/cdu31a.c | log += bcd_to_int(msf[0]) * 4500; |
msf | 1960 | drivers/block/cdu31a.c | schi.cdsc_absaddr.msf.minute = bcd_to_int(last_sony_subcode.abs_msf[0]); |
msf | 1961 | drivers/block/cdu31a.c | schi.cdsc_absaddr.msf.second = bcd_to_int(last_sony_subcode.abs_msf[1]); |
msf | 1962 | drivers/block/cdu31a.c | schi.cdsc_absaddr.msf.frame = bcd_to_int(last_sony_subcode.abs_msf[2]); |
msf | 1964 | drivers/block/cdu31a.c | schi.cdsc_reladdr.msf.minute = bcd_to_int(last_sony_subcode.rel_msf[0]); |
msf | 1965 | drivers/block/cdu31a.c | schi.cdsc_reladdr.msf.second = bcd_to_int(last_sony_subcode.rel_msf[1]); |
msf | 1966 | drivers/block/cdu31a.c | schi.cdsc_reladdr.msf.frame = bcd_to_int(last_sony_subcode.rel_msf[2]); |
msf | 2487 | drivers/block/cdu31a.c | loc_entry.cdte_addr.msf.minute = bcd_to_int(*msf_val); |
msf | 2488 | drivers/block/cdu31a.c | loc_entry.cdte_addr.msf.second = bcd_to_int(*(msf_val+1)); |
msf | 2489 | drivers/block/cdu31a.c | loc_entry.cdte_addr.msf.frame = bcd_to_int(*(msf_val+2)); |
msf | 2624 | drivers/block/cdu31a.c | if ( (ra.addr.msf.minute >= 75) |
msf | 2625 | drivers/block/cdu31a.c | || (ra.addr.msf.second >= 60) |
msf | 2626 | drivers/block/cdu31a.c | || (ra.addr.msf.frame >= 75)) |
msf | 2631 | drivers/block/cdu31a.c | ra.addr.lba = ( (ra.addr.msf.minute * 4500) |
msf | 2632 | drivers/block/cdu31a.c | + (ra.addr.msf.second * 75) |
msf | 2633 | drivers/block/cdu31a.c | + ra.addr.msf.frame); |
msf | 688 | drivers/block/cm206.c | mssp->addr.msf.frame = cd->disc_status[3]; |
msf | 689 | drivers/block/cm206.c | mssp->addr.msf.second = cd->disc_status[4]; |
msf | 690 | drivers/block/cm206.c | mssp->addr.msf.minute = cd->disc_status[5]; |
msf | 854 | drivers/block/cm206.c | qp->cdsc_reladdr.msf.minute = q[3]; |
msf | 855 | drivers/block/cm206.c | qp->cdsc_reladdr.msf.second = q[4]; |
msf | 856 | drivers/block/cm206.c | qp->cdsc_reladdr.msf.frame = q[5]; |
msf | 857 | drivers/block/cm206.c | qp->cdsc_absaddr.msf.minute = q[7]; |
msf | 858 | drivers/block/cm206.c | qp->cdsc_absaddr.msf.second = q[8]; |
msf | 859 | drivers/block/cm206.c | qp->cdsc_absaddr.msf.frame = q[9]; |
msf | 878 | drivers/block/cm206.c | ep->cdte_addr.msf.frame = cd->toc[track].fsm[0]; |
msf | 879 | drivers/block/cm206.c | ep->cdte_addr.msf.second = cd->toc[track].fsm[1]; |
msf | 880 | drivers/block/cm206.c | ep->cdte_addr.msf.minute = cd->toc[track].fsm[2]; |
msf | 960 | drivers/block/cm206.c | struct cdrom_msf msf; |
msf | 963 | drivers/block/cm206.c | st=verify_area(VERIFY_READ, (void *) arg, sizeof(msf)); |
msf | 965 | drivers/block/cm206.c | memcpy_fromfs(&msf, (struct cdrom_mdf *) arg, sizeof msf); |
msf | 966 | drivers/block/cm206.c | play_from_to_msf(&msf); |
msf | 89 | drivers/block/gscd.c | static void gscd_hsg2msf (long hsg, struct msf *msf); |
msf | 118 | drivers/block/gscd.c | static long gscd_msf2hsg (struct msf *mp); |
msf | 1090 | drivers/block/gscd.c | static void gscd_hsg2msf (long hsg, struct msf *msf) |
msf | 1093 | drivers/block/gscd.c | msf -> min = hsg / (CD_FRAMES*CD_SECS); |
msf | 1095 | drivers/block/gscd.c | msf -> sec = hsg / CD_FRAMES; |
msf | 1096 | drivers/block/gscd.c | msf -> frame = hsg % CD_FRAMES; |
msf | 1098 | drivers/block/gscd.c | gscd_bin2bcd(&msf -> min); /* convert to BCD */ |
msf | 1099 | drivers/block/gscd.c | gscd_bin2bcd(&msf -> sec); |
msf | 1100 | drivers/block/gscd.c | gscd_bin2bcd(&msf -> frame); |
msf | 1115 | drivers/block/gscd.c | static long gscd_msf2hsg (struct msf *mp) |
msf | 1741 | drivers/block/ide-cd.c | struct cdrom_msf msf; |
msf | 1744 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (msf)); |
msf | 1747 | drivers/block/ide-cd.c | memcpy_fromfs (&msf, (void *) arg, sizeof(msf)); |
msf | 1749 | drivers/block/ide-cd.c | lba_start = msf_to_lba (msf.cdmsf_min0, msf.cdmsf_sec0, |
msf | 1750 | drivers/block/ide-cd.c | msf.cdmsf_frame0); |
msf | 1751 | drivers/block/ide-cd.c | lba_end = msf_to_lba (msf.cdmsf_min1, msf.cdmsf_sec1, |
msf | 1752 | drivers/block/ide-cd.c | msf.cdmsf_frame1) + 1; |
msf | 1831 | drivers/block/ide-cd.c | &tocentry.cdte_addr.msf.minute, |
msf | 1832 | drivers/block/ide-cd.c | &tocentry.cdte_addr.msf.second, |
msf | 1833 | drivers/block/ide-cd.c | &tocentry.cdte_addr.msf.frame); |
msf | 1867 | drivers/block/ide-cd.c | &subchnl.cdsc_absaddr.msf.minute, |
msf | 1868 | drivers/block/ide-cd.c | &subchnl.cdsc_absaddr.msf.second, |
msf | 1869 | drivers/block/ide-cd.c | &subchnl.cdsc_absaddr.msf.frame); |
msf | 1871 | drivers/block/ide-cd.c | &subchnl.cdsc_reladdr.msf.minute, |
msf | 1872 | drivers/block/ide-cd.c | &subchnl.cdsc_reladdr.msf.second, |
msf | 1873 | drivers/block/ide-cd.c | &subchnl.cdsc_reladdr.msf.frame); |
msf | 189 | drivers/block/mcd.c | static void hsg2msf(long hsg, struct msf *msf); |
msf | 283 | drivers/block/mcd.c | msf2hsg(struct msf *mp) |
msf | 300 | drivers/block/mcd.c | struct cdrom_msf msf; |
msf | 420 | drivers/block/mcd.c | st = verify_area(VERIFY_READ, (void *) arg, sizeof msf); |
msf | 424 | drivers/block/mcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof msf); |
msf | 428 | drivers/block/mcd.c | bin2bcd(&msf.cdmsf_min0); |
msf | 429 | drivers/block/mcd.c | bin2bcd(&msf.cdmsf_sec0); |
msf | 430 | drivers/block/mcd.c | bin2bcd(&msf.cdmsf_frame0); |
msf | 431 | drivers/block/mcd.c | bin2bcd(&msf.cdmsf_min1); |
msf | 432 | drivers/block/mcd.c | bin2bcd(&msf.cdmsf_sec1); |
msf | 433 | drivers/block/mcd.c | bin2bcd(&msf.cdmsf_frame1); |
msf | 435 | drivers/block/mcd.c | mcd_Play.start.min = msf.cdmsf_min0; |
msf | 436 | drivers/block/mcd.c | mcd_Play.start.sec = msf.cdmsf_sec0; |
msf | 437 | drivers/block/mcd.c | mcd_Play.start.frame = msf.cdmsf_frame0; |
msf | 438 | drivers/block/mcd.c | mcd_Play.end.min = msf.cdmsf_min1; |
msf | 439 | drivers/block/mcd.c | mcd_Play.end.sec = msf.cdmsf_sec1; |
msf | 440 | drivers/block/mcd.c | mcd_Play.end.frame = msf.cdmsf_frame1; |
msf | 494 | drivers/block/mcd.c | entry.cdte_addr.msf.minute = bcd2bin(tocPtr -> diskTime.min); |
msf | 495 | drivers/block/mcd.c | entry.cdte_addr.msf.second = bcd2bin(tocPtr -> diskTime.sec); |
msf | 496 | drivers/block/mcd.c | entry.cdte_addr.msf.frame = bcd2bin(tocPtr -> diskTime.frame); |
msf | 530 | drivers/block/mcd.c | subchnl.cdsc_absaddr.msf.minute = bcd2bin(qInfo.diskTime.min); |
msf | 531 | drivers/block/mcd.c | subchnl.cdsc_absaddr.msf.second = bcd2bin(qInfo.diskTime.sec); |
msf | 532 | drivers/block/mcd.c | subchnl.cdsc_absaddr.msf.frame = bcd2bin(qInfo.diskTime.frame); |
msf | 534 | drivers/block/mcd.c | subchnl.cdsc_reladdr.msf.minute = bcd2bin(qInfo.trackTime.min); |
msf | 535 | drivers/block/mcd.c | subchnl.cdsc_reladdr.msf.second = bcd2bin(qInfo.trackTime.sec); |
msf | 536 | drivers/block/mcd.c | subchnl.cdsc_reladdr.msf.frame = bcd2bin(qInfo.trackTime.frame); |
msf | 869 | drivers/block/mcd.c | struct mcd_Play_msf msf; |
msf | 871 | drivers/block/mcd.c | hsg2msf(mcd_next_bn, &msf.start); |
msf | 872 | drivers/block/mcd.c | msf.end.min = ~0; |
msf | 873 | drivers/block/mcd.c | msf.end.sec = ~0; |
msf | 874 | drivers/block/mcd.c | msf.end.frame = ~0; |
msf | 875 | drivers/block/mcd.c | sendMcdCmd(MCMD_DATA_READ, &msf); |
msf | 1308 | drivers/block/mcd.c | hsg2msf(long hsg, struct msf *msf) |
msf | 1311 | drivers/block/mcd.c | msf -> min = hsg / 4500; |
msf | 1313 | drivers/block/mcd.c | msf -> sec = hsg / 75; |
msf | 1314 | drivers/block/mcd.c | msf -> frame = hsg % 75; |
msf | 1316 | drivers/block/mcd.c | bin2bcd(&msf -> min); /* convert to BCD */ |
msf | 1317 | drivers/block/mcd.c | bin2bcd(&msf -> sec); |
msf | 1318 | drivers/block/mcd.c | bin2bcd(&msf -> frame); |
msf | 328 | drivers/block/mcdx.c | struct cdrom_msf msf; |
msf | 339 | drivers/block/mcdx.c | memcpy_fromfs(&msf, (void*) arg, sizeof msf); |
msf | 341 | drivers/block/mcdx.c | msf.cdmsf_min0 = uint2bcd(msf.cdmsf_min0); |
msf | 342 | drivers/block/mcdx.c | msf.cdmsf_sec0 = uint2bcd(msf.cdmsf_sec0); |
msf | 343 | drivers/block/mcdx.c | msf.cdmsf_frame0 = uint2bcd(msf.cdmsf_frame0); |
msf | 345 | drivers/block/mcdx.c | msf.cdmsf_min1 = uint2bcd(msf.cdmsf_min1); |
msf | 346 | drivers/block/mcdx.c | msf.cdmsf_sec1 = uint2bcd(msf.cdmsf_sec1); |
msf | 347 | drivers/block/mcdx.c | msf.cdmsf_frame1 = uint2bcd(msf.cdmsf_frame1); |
msf | 349 | drivers/block/mcdx.c | return mcdx_playmsf(stuffp, &msf); |
msf | 381 | drivers/block/mcdx.c | entry.cdte_addr.msf.minute = bcd2uint(tp->dt.minute); |
msf | 382 | drivers/block/mcdx.c | entry.cdte_addr.msf.second = bcd2uint(tp->dt.second); |
msf | 383 | drivers/block/mcdx.c | entry.cdte_addr.msf.frame = bcd2uint(tp->dt.frame); |
msf | 425 | drivers/block/mcdx.c | sub.cdsc_absaddr.msf.minute = bcd2uint(q.dt.minute); |
msf | 426 | drivers/block/mcdx.c | sub.cdsc_absaddr.msf.second = bcd2uint(q.dt.second); |
msf | 427 | drivers/block/mcdx.c | sub.cdsc_absaddr.msf.frame = bcd2uint(q.dt.frame); |
msf | 428 | drivers/block/mcdx.c | sub.cdsc_reladdr.msf.minute = bcd2uint(q.tt.minute); |
msf | 429 | drivers/block/mcdx.c | sub.cdsc_reladdr.msf.second = bcd2uint(q.tt.second); |
msf | 430 | drivers/block/mcdx.c | sub.cdsc_reladdr.msf.frame = bcd2uint(q.tt.frame); |
msf | 433 | drivers/block/mcdx.c | sub.cdsc_absaddr.msf.minute, |
msf | 434 | drivers/block/mcdx.c | sub.cdsc_absaddr.msf.second, |
msf | 435 | drivers/block/mcdx.c | sub.cdsc_absaddr.msf.frame, |
msf | 436 | drivers/block/mcdx.c | sub.cdsc_reladdr.msf.minute, |
msf | 437 | drivers/block/mcdx.c | sub.cdsc_reladdr.msf.second, |
msf | 438 | drivers/block/mcdx.c | sub.cdsc_reladdr.msf.frame)); |
msf | 484 | drivers/block/mcdx.c | ms.addr.msf.minute = bcd2uint(stuffp->multi.msf_last.minute); |
msf | 485 | drivers/block/mcdx.c | ms.addr.msf.second = bcd2uint(stuffp->multi.msf_last.second); |
msf | 486 | drivers/block/mcdx.c | ms.addr.msf.frame = bcd2uint(stuffp->multi.msf_last.frame); |
msf | 502 | drivers/block/mcdx.c | ms.addr.msf.minute, |
msf | 503 | drivers/block/mcdx.c | ms.addr.msf.second, |
msf | 504 | drivers/block/mcdx.c | ms.addr.msf.frame, |
msf | 1475 | drivers/block/mcdx.c | mcdx_playmsf(struct s_drive_stuff* stuffp, const struct cdrom_msf* msf) |
msf | 1483 | drivers/block/mcdx.c | cmd[1] = msf->cdmsf_min0; |
msf | 1484 | drivers/block/mcdx.c | cmd[2] = msf->cdmsf_sec0; |
msf | 1485 | drivers/block/mcdx.c | cmd[3] = msf->cdmsf_frame0; |
msf | 1486 | drivers/block/mcdx.c | cmd[4] = msf->cdmsf_min1; |
msf | 1487 | drivers/block/mcdx.c | cmd[5] = msf->cdmsf_sec1; |
msf | 1488 | drivers/block/mcdx.c | cmd[6] = msf->cdmsf_frame1; |
msf | 1510 | drivers/block/mcdx.c | struct cdrom_msf msf; |
msf | 1517 | drivers/block/mcdx.c | msf.cdmsf_min0 = p->dt.minute; |
msf | 1518 | drivers/block/mcdx.c | msf.cdmsf_sec0 = p->dt.second; |
msf | 1519 | drivers/block/mcdx.c | msf.cdmsf_frame0 = p->dt.frame; |
msf | 1526 | drivers/block/mcdx.c | msf.cdmsf_min1 = p->dt.minute; |
msf | 1527 | drivers/block/mcdx.c | msf.cdmsf_sec1 = p->dt.second; |
msf | 1528 | drivers/block/mcdx.c | msf.cdmsf_frame1 = p->dt.frame; |
msf | 1530 | drivers/block/mcdx.c | return mcdx_playmsf(stuffp, &msf); |
msf | 414 | drivers/block/optcd.c | static void hsg2msf(long hsg, struct msf *msf) { |
msf | 416 | drivers/block/optcd.c | msf -> min = hsg / 4500; |
msf | 418 | drivers/block/optcd.c | msf -> sec = hsg / 75; |
msf | 419 | drivers/block/optcd.c | msf -> frame = hsg % 75; |
msf | 421 | drivers/block/optcd.c | if (msf -> min >= 70) |
msf | 423 | drivers/block/optcd.c | if (msf -> sec >= 60) |
msf | 425 | drivers/block/optcd.c | if (msf -> frame >= 75) |
msf | 428 | drivers/block/optcd.c | msf -> min = bin2bcd(msf -> min); /* convert to BCD */ |
msf | 429 | drivers/block/optcd.c | msf -> sec = bin2bcd(msf -> sec); |
msf | 430 | drivers/block/optcd.c | msf -> frame = bin2bcd(msf -> frame); |
msf | 439 | drivers/block/optcd.c | static long msf2hsg(struct msf *mp) { |
msf | 793 | drivers/block/optcd.c | struct opt_Play_msf msf; |
msf | 826 | drivers/block/optcd.c | hsg2msf(opt_next_bn, &msf.start); |
msf | 828 | drivers/block/optcd.c | msf.end.min = 0; |
msf | 829 | drivers/block/optcd.c | msf.end.sec = 0; |
msf | 830 | drivers/block/optcd.c | msf.end.frame = opt_read_count; |
msf | 833 | drivers/block/optcd.c | msf.start.min, |
msf | 834 | drivers/block/optcd.c | msf.start.sec, |
msf | 835 | drivers/block/optcd.c | msf.start.frame, |
msf | 836 | drivers/block/optcd.c | msf.end.min, |
msf | 837 | drivers/block/optcd.c | msf.end.sec, |
msf | 838 | drivers/block/optcd.c | msf.end.frame); |
msf | 845 | drivers/block/optcd.c | optReadCmd(COMREAD, &msf); |
msf | 1087 | drivers/block/optcd.c | struct cdrom_msf msf; |
msf | 1089 | drivers/block/optcd.c | if ((st = verify_area(VERIFY_READ, (void *) arg, sizeof msf))) |
msf | 1091 | drivers/block/optcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof msf); |
msf | 1092 | drivers/block/optcd.c | opt_Play.start.min = bin2bcd(msf.cdmsf_min0); |
msf | 1093 | drivers/block/optcd.c | opt_Play.start.sec = bin2bcd(msf.cdmsf_sec0); |
msf | 1094 | drivers/block/optcd.c | opt_Play.start.frame = bin2bcd(msf.cdmsf_frame0); |
msf | 1095 | drivers/block/optcd.c | opt_Play.end.min = bin2bcd(msf.cdmsf_min1); |
msf | 1096 | drivers/block/optcd.c | opt_Play.end.sec = bin2bcd(msf.cdmsf_sec1); |
msf | 1097 | drivers/block/optcd.c | opt_Play.end.frame = bin2bcd(msf.cdmsf_frame1); |
msf | 1175 | drivers/block/optcd.c | entry.cdte_addr.msf.minute = |
msf | 1177 | drivers/block/optcd.c | entry.cdte_addr.msf.second = |
msf | 1179 | drivers/block/optcd.c | entry.cdte_addr.msf.frame = |
msf | 1242 | drivers/block/optcd.c | subchnl.cdsc_absaddr.msf.minute = |
msf | 1244 | drivers/block/optcd.c | subchnl.cdsc_absaddr.msf.second = |
msf | 1246 | drivers/block/optcd.c | subchnl.cdsc_absaddr.msf.frame = |
msf | 1248 | drivers/block/optcd.c | subchnl.cdsc_reladdr.msf.minute = |
msf | 1250 | drivers/block/optcd.c | subchnl.cdsc_reladdr.msf.second = |
msf | 1252 | drivers/block/optcd.c | subchnl.cdsc_reladdr.msf.frame = |
msf | 1263 | drivers/block/optcd.c | struct cdrom_msf msf; |
msf | 1266 | drivers/block/optcd.c | if ((st = verify_area(VERIFY_READ, (void *) arg, sizeof msf))) |
msf | 1270 | drivers/block/optcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof msf); |
msf | 1271 | drivers/block/optcd.c | opt_Play.start.min = bin2bcd(msf.cdmsf_min0); |
msf | 1272 | drivers/block/optcd.c | opt_Play.start.sec = bin2bcd(msf.cdmsf_sec0); |
msf | 1273 | drivers/block/optcd.c | opt_Play.start.frame = bin2bcd(msf.cdmsf_frame0); |
msf | 485 | drivers/block/sbpcd.c | static struct cdrom_msf msf; |
msf | 776 | drivers/block/sbpcd.c | static INLINE void lba2msf(int lba, u_char *msf) |
msf | 779 | drivers/block/sbpcd.c | msf[0] = lba / (CD_SECS*CD_FRAMES); |
msf | 781 | drivers/block/sbpcd.c | msf[1] = lba / CD_FRAMES; |
msf | 782 | drivers/block/sbpcd.c | msf[2] = lba % CD_FRAMES; |
msf | 796 | drivers/block/sbpcd.c | MSF msf; |
msf | 799 | drivers/block/sbpcd.c | msf.c[3] = 0; |
msf | 800 | drivers/block/sbpcd.c | msf.c[2] = (blk + CD_BLOCK_OFFSET) / (CD_SECS * CD_FRAMES); |
msf | 802 | drivers/block/sbpcd.c | msf.c[1] = mm / CD_FRAMES; |
msf | 803 | drivers/block/sbpcd.c | msf.c[0] = mm % CD_FRAMES; |
msf | 804 | drivers/block/sbpcd.c | return (msf.n); |
msf | 834 | drivers/block/sbpcd.c | MSF msf; |
msf | 837 | drivers/block/sbpcd.c | msf.n=msfx; |
msf | 838 | drivers/block/sbpcd.c | i=(msf.c[2] * CD_SECS + msf.c[1]) * CD_FRAMES + msf.c[0] - CD_BLOCK_OFFSET; |
msf | 846 | drivers/block/sbpcd.c | static INLINE int msf2lba(u_char *msf) |
msf | 850 | drivers/block/sbpcd.c | i=(msf[0] * CD_SECS + msf[1]) * CD_FRAMES + msf[2] - CD_BLOCK_OFFSET; |
msf | 3881 | drivers/block/sbpcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof(struct cdrom_msf)); |
msf | 3883 | drivers/block/sbpcd.c | D_S[d].pos_audio_start = (msf.cdmsf_min0<<16) | |
msf | 3884 | drivers/block/sbpcd.c | (msf.cdmsf_sec0<<8) | |
msf | 3885 | drivers/block/sbpcd.c | msf.cdmsf_frame0; |
msf | 3886 | drivers/block/sbpcd.c | D_S[d].pos_audio_end = (msf.cdmsf_min1<<16) | |
msf | 3887 | drivers/block/sbpcd.c | (msf.cdmsf_sec1<<8) | |
msf | 3888 | drivers/block/sbpcd.c | msf.cdmsf_frame1; |
msf | 3951 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.minute=(D_S[d].TocBuffer[i].address>>16)&0x00FF; |
msf | 3952 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.second=(D_S[d].TocBuffer[i].address>>8)&0x00FF; |
msf | 3953 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.frame=D_S[d].TocBuffer[i].address&0x00FF; |
msf | 4060 | drivers/block/sbpcd.c | SC.cdsc_absaddr.msf.minute=(D_S[d].SubQ_run_tot>>16)&0x00FF; |
msf | 4061 | drivers/block/sbpcd.c | SC.cdsc_absaddr.msf.second=(D_S[d].SubQ_run_tot>>8)&0x00FF; |
msf | 4062 | drivers/block/sbpcd.c | SC.cdsc_absaddr.msf.frame=D_S[d].SubQ_run_tot&0x00FF; |
msf | 4063 | drivers/block/sbpcd.c | SC.cdsc_reladdr.msf.minute=(D_S[d].SubQ_run_trk>>16)&0x00FF; |
msf | 4064 | drivers/block/sbpcd.c | SC.cdsc_reladdr.msf.second=(D_S[d].SubQ_run_trk>>8)&0x00FF; |
msf | 4065 | drivers/block/sbpcd.c | SC.cdsc_reladdr.msf.frame=D_S[d].SubQ_run_trk&0x00FF; |
msf | 4136 | drivers/block/sbpcd.c | block=msf2lba(&read_audio.addr.msf.minute); |
msf | 4315 | drivers/block/sbpcd.c | lba2msf(D_S[d].lba_multi,&ms_info.addr.msf.minute); |
msf | 229 | drivers/block/sjcd.c | static long msf2hsg( struct msf *mp ){ |
msf | 234 | drivers/block/sjcd.c | static void hsg2msf( long hsg, struct msf *msf ){ |
msf | 235 | drivers/block/sjcd.c | hsg += 150; msf->min = hsg / 4500; |
msf | 236 | drivers/block/sjcd.c | hsg %= 4500; msf->sec = hsg / 75; msf->frame = hsg % 75; |
msf | 237 | drivers/block/sjcd.c | msf->min = bin2bcd( msf->min ); /* convert to BCD */ |
msf | 238 | drivers/block/sjcd.c | msf->sec = bin2bcd( msf->sec ); |
msf | 239 | drivers/block/sjcd.c | msf->frame = bin2bcd( msf->frame ); |
msf | 611 | drivers/block/sjcd.c | struct sjcd_play_msf msf; |
msf | 622 | drivers/block/sjcd.c | msf.start = mp->start; |
msf | 623 | drivers/block/sjcd.c | msf.end.min = msf.end.sec = msf.end.frame = 0x00; |
msf | 624 | drivers/block/sjcd.c | sjcd_send_6_cmd( SCMD_SEEK, &msf ); |
msf | 795 | drivers/block/sjcd.c | toc_entry.cdte_addr.msf.minute = bcd2bin( tp->un.track_msf.min ); |
msf | 796 | drivers/block/sjcd.c | toc_entry.cdte_addr.msf.second = bcd2bin( tp->un.track_msf.sec ); |
msf | 797 | drivers/block/sjcd.c | toc_entry.cdte_addr.msf.frame = bcd2bin( tp->un.track_msf.frame ); |
msf | 829 | drivers/block/sjcd.c | subchnl.cdsc_absaddr.msf.minute = bcd2bin( q_info.abs.min ); |
msf | 830 | drivers/block/sjcd.c | subchnl.cdsc_absaddr.msf.second = bcd2bin( q_info.abs.sec ); |
msf | 831 | drivers/block/sjcd.c | subchnl.cdsc_absaddr.msf.frame = bcd2bin( q_info.abs.frame ); |
msf | 832 | drivers/block/sjcd.c | subchnl.cdsc_reladdr.msf.minute = bcd2bin( q_info.rel.min ); |
msf | 833 | drivers/block/sjcd.c | subchnl.cdsc_reladdr.msf.second = bcd2bin( q_info.rel.sec ); |
msf | 834 | drivers/block/sjcd.c | subchnl.cdsc_reladdr.msf.frame = bcd2bin( q_info.rel.frame ); |
msf | 1045 | drivers/block/sjcd.c | struct sjcd_play_msf msf; |
msf | 1048 | drivers/block/sjcd.c | hsg2msf( sjcd_next_bn, &msf.start ); |
msf | 1049 | drivers/block/sjcd.c | msf.end.min = 0; msf.end.sec = 0; |
msf | 1050 | drivers/block/sjcd.c | msf.end.frame = sjcd_read_count = SJCD_BUF_SIZ; |
msf | 1053 | drivers/block/sjcd.c | msf.start.min, msf.start.sec, msf.start.frame, |
msf | 1054 | drivers/block/sjcd.c | msf.end.min, msf.end.sec, msf.end.frame ); |
msf | 1059 | drivers/block/sjcd.c | sjcd_send_6_cmd( SCMD_DATA_READ, &msf ); |
msf | 765 | drivers/block/sonycd535.c | log_to_msf(unsigned int log, Byte *msf) |
msf | 768 | drivers/block/sonycd535.c | msf[0] = int_to_bcd(log / 4500); |
msf | 770 | drivers/block/sonycd535.c | msf[1] = int_to_bcd(log / 75); |
msf | 771 | drivers/block/sonycd535.c | msf[2] = int_to_bcd(log % 75); |
msf | 779 | drivers/block/sonycd535.c | msf_to_log(Byte *msf) |
msf | 784 | drivers/block/sonycd535.c | log = bcd_to_int(msf[2]); |
msf | 785 | drivers/block/sonycd535.c | log += bcd_to_int(msf[1]) * 75; |
msf | 786 | drivers/block/sonycd535.c | log += bcd_to_int(msf[0]) * 4500; |
msf | 1088 | drivers/block/sonycd535.c | schi.cdsc_absaddr.msf.minute = bcd_to_int(last_sony_subcode->abs_msf[0]); |
msf | 1089 | drivers/block/sonycd535.c | schi.cdsc_absaddr.msf.second = bcd_to_int(last_sony_subcode->abs_msf[1]); |
msf | 1090 | drivers/block/sonycd535.c | schi.cdsc_absaddr.msf.frame = bcd_to_int(last_sony_subcode->abs_msf[2]); |
msf | 1092 | drivers/block/sonycd535.c | schi.cdsc_reladdr.msf.minute = bcd_to_int(last_sony_subcode->rel_msf[0]); |
msf | 1093 | drivers/block/sonycd535.c | schi.cdsc_reladdr.msf.second = bcd_to_int(last_sony_subcode->rel_msf[1]); |
msf | 1094 | drivers/block/sonycd535.c | schi.cdsc_reladdr.msf.frame = bcd_to_int(last_sony_subcode->rel_msf[2]); |
msf | 1295 | drivers/block/sonycd535.c | loc_entry.cdte_addr.msf.minute = bcd_to_int(*msf_val); |
msf | 1296 | drivers/block/sonycd535.c | loc_entry.cdte_addr.msf.second = bcd_to_int(*(msf_val + 1)); |
msf | 1297 | drivers/block/sonycd535.c | loc_entry.cdte_addr.msf.frame = bcd_to_int(*(msf_val + 2)); |
msf | 139 | drivers/scsi/sr_ioctl.c | struct cdrom_msf msf; |
msf | 141 | drivers/scsi/sr_ioctl.c | err = verify_area (VERIFY_READ, (void *) arg, sizeof (msf)); |
msf | 144 | drivers/scsi/sr_ioctl.c | memcpy_fromfs(&msf, (void *) arg, sizeof(msf)); |
msf | 149 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = msf.cdmsf_min0; |
msf | 150 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = msf.cdmsf_sec0; |
msf | 151 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = msf.cdmsf_frame0; |
msf | 152 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = msf.cdmsf_min1; |
msf | 153 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = msf.cdmsf_sec1; |
msf | 154 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = msf.cdmsf_frame1; |
msf | 241 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.msf.minute = buffer[9]; |
msf | 242 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.msf.second = buffer[10]; |
msf | 243 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.msf.frame = buffer[11]; |
msf | 393 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.minute = buffer[13]; |
msf | 394 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.second = buffer[14]; |
msf | 395 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.frame = buffer[15]; |
msf | 396 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.minute = buffer[9]; |
msf | 397 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.second = buffer[10]; |
msf | 398 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.frame = buffer[11]; |
msf | 428 | drivers/scsi/sr_ioctl.c | ms_info.addr.msf.minute = lba / (CD_SECS*CD_FRAMES); |
msf | 430 | drivers/scsi/sr_ioctl.c | ms_info.addr.msf.second = lba / CD_FRAMES; |
msf | 431 | drivers/scsi/sr_ioctl.c | ms_info.addr.msf.frame = lba % CD_FRAMES; |
msf | 130 | include/linux/aztcd.h | struct msf start; |
msf | 131 | include/linux/aztcd.h | struct msf end; |
msf | 138 | include/linux/aztcd.h | struct msf diskLength; |
msf | 139 | include/linux/aztcd.h | struct msf firstTrack; |
msf | 141 | include/linux/aztcd.h | struct msf nextSession; |
msf | 142 | include/linux/aztcd.h | struct msf lastSession; |
msf | 151 | include/linux/aztcd.h | struct msf trackTime; |
msf | 152 | include/linux/aztcd.h | struct msf diskTime; |
msf | 235 | include/linux/cdrom.h | } msf; |
msf | 274 | include/linux/cdrom.h | } msf; |
msf | 284 | include/linux/cdrom.h | } msf; |
msf | 329 | include/linux/cdrom.h | } msf; |
msf | 351 | include/linux/cdrom.h | } 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 | 152 | include/linux/optcd.h | struct msf start; |
msf | 153 | include/linux/optcd.h | struct msf end; |
msf | 159 | include/linux/optcd.h | struct msf diskLength; |
msf | 160 | include/linux/optcd.h | struct msf firstTrack; |
msf | 167 | include/linux/optcd.h | struct msf trackTime; |
msf | 168 | include/linux/optcd.h | struct msf diskTime; |
msf | 95 | include/linux/sjcd.h | struct msf track_msf; |
msf | 103 | include/linux/sjcd.h | struct msf rel; |
msf | 104 | include/linux/sjcd.h | struct msf abs; |
msf | 108 | include/linux/sjcd.h | struct msf start; |
msf | 109 | include/linux/sjcd.h | struct msf end; |
msf | 115 | include/linux/sjcd.h | struct msf disk_length; |
msf | 116 | include/linux/sjcd.h | struct msf first_track; |
msf | 123 | include/linux/sjcd.h | struct msf track_time; |
msf | 124 | include/linux/sjcd.h | struct msf disk_time; |