tag | line | file | source code |
msf | 1459 | drivers/block/ide-cd.c | void msf_from_bcd (struct atapi_msf *msf) |
msf | 1461 | drivers/block/ide-cd.c | msf->minute = bcd2bin (msf->minute); |
msf | 1462 | drivers/block/ide-cd.c | msf->second = bcd2bin (msf->second); |
msf | 1463 | drivers/block/ide-cd.c | msf->frame = bcd2bin (msf->frame); |
msf | 1712 | drivers/block/ide-cd.c | msf_from_bcd (&toc->ent[i].addr.msf); |
msf | 1715 | drivers/block/ide-cd.c | toc->ent[i].addr.lba = msf_to_lba (toc->ent[i].addr.msf.minute, |
msf | 1716 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.second, |
msf | 1717 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.frame); |
msf | 1728 | drivers/block/ide-cd.c | msf_from_bcd (&ms_tmp.ent.addr.msf); |
msf | 1731 | drivers/block/ide-cd.c | toc->last_session_lba = msf_to_lba (ms_tmp.ent.addr.msf.minute, |
msf | 1732 | drivers/block/ide-cd.c | ms_tmp.ent.addr.msf.second, |
msf | 1733 | drivers/block/ide-cd.c | ms_tmp.ent.addr.msf.frame); |
msf | 2011 | drivers/block/ide-cd.c | struct cdrom_msf msf; |
msf | 2014 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (msf)); |
msf | 2017 | drivers/block/ide-cd.c | memcpy_fromfs (&msf, (void *) arg, sizeof(msf)); |
msf | 2019 | drivers/block/ide-cd.c | lba_start = msf_to_lba (msf.cdmsf_min0, msf.cdmsf_sec0, |
msf | 2020 | drivers/block/ide-cd.c | msf.cdmsf_frame0); |
msf | 2021 | drivers/block/ide-cd.c | lba_end = msf_to_lba (msf.cdmsf_min1, msf.cdmsf_sec1, |
msf | 2022 | drivers/block/ide-cd.c | msf.cdmsf_frame1) + 1; |
msf | 2100 | drivers/block/ide-cd.c | &tocentry.cdte_addr.msf.minute, |
msf | 2101 | drivers/block/ide-cd.c | &tocentry.cdte_addr.msf.second, |
msf | 2102 | drivers/block/ide-cd.c | &tocentry.cdte_addr.msf.frame); |
msf | 2129 | drivers/block/ide-cd.c | msf_from_bcd (&scbuf.acdsc_absaddr.msf); |
msf | 2130 | drivers/block/ide-cd.c | msf_from_bcd (&scbuf.acdsc_reladdr.msf); |
msf | 2137 | drivers/block/ide-cd.c | subchnl.cdsc_absaddr.msf.minute = |
msf | 2138 | drivers/block/ide-cd.c | scbuf.acdsc_absaddr.msf.minute; |
msf | 2139 | drivers/block/ide-cd.c | subchnl.cdsc_absaddr.msf.second = |
msf | 2140 | drivers/block/ide-cd.c | scbuf.acdsc_absaddr.msf.second; |
msf | 2141 | drivers/block/ide-cd.c | subchnl.cdsc_absaddr.msf.frame = |
msf | 2142 | drivers/block/ide-cd.c | scbuf.acdsc_absaddr.msf.frame; |
msf | 2144 | drivers/block/ide-cd.c | subchnl.cdsc_reladdr.msf.minute = |
msf | 2145 | drivers/block/ide-cd.c | scbuf.acdsc_reladdr.msf.minute; |
msf | 2146 | drivers/block/ide-cd.c | subchnl.cdsc_reladdr.msf.second = |
msf | 2147 | drivers/block/ide-cd.c | scbuf.acdsc_reladdr.msf.second; |
msf | 2148 | drivers/block/ide-cd.c | subchnl.cdsc_reladdr.msf.frame = |
msf | 2149 | drivers/block/ide-cd.c | scbuf.acdsc_reladdr.msf.frame; |
msf | 2152 | drivers/block/ide-cd.c | msf_to_lba (scbuf.acdsc_absaddr.msf.minute, |
msf | 2153 | drivers/block/ide-cd.c | scbuf.acdsc_absaddr.msf.second, |
msf | 2154 | drivers/block/ide-cd.c | scbuf.acdsc_absaddr.msf.frame); |
msf | 2156 | drivers/block/ide-cd.c | msf_to_lba (scbuf.acdsc_reladdr.msf.minute, |
msf | 2157 | drivers/block/ide-cd.c | scbuf.acdsc_reladdr.msf.second, |
msf | 2158 | drivers/block/ide-cd.c | scbuf.acdsc_reladdr.msf.frame); |
msf | 2241 | drivers/block/ide-cd.c | &ms_info.addr.msf.minute, |
msf | 2242 | drivers/block/ide-cd.c | &ms_info.addr.msf.second, |
msf | 2243 | drivers/block/ide-cd.c | &ms_info.addr.msf.frame); |
msf | 2284 | drivers/block/ide-cd.c | lba = msf_to_lba (ra.addr.msf.minute, |
msf | 2285 | drivers/block/ide-cd.c | ra.addr.msf.second, |
msf | 2286 | drivers/block/ide-cd.c | ra.addr.msf.frame); |
msf | 2310 | drivers/block/ide-cd.c | struct cdrom_msf msf; |
msf | 2326 | drivers/block/ide-cd.c | memcpy_fromfs (&msf, (void *)arg, sizeof (msf)); |
msf | 2328 | drivers/block/ide-cd.c | lba = msf_to_lba (msf.cdmsf_min0, |
msf | 2329 | drivers/block/ide-cd.c | msf.cdmsf_sec0, |
msf | 2330 | drivers/block/ide-cd.c | msf.cdmsf_frame0); |
msf | 213 | drivers/block/ide.h | struct atapi_msf msf; |
msf | 241 | drivers/block/ide.h | struct atapi_msf msf; |
msf | 245 | drivers/block/ide.h | struct atapi_msf msf; |
msf | 355 | drivers/cdrom/aztcd.c | static void azt_hsg2msf(long hsg, struct msf *msf); |
msf | 356 | drivers/cdrom/aztcd.c | static long azt_msf2hsg(struct msf *mp); |
msf | 1070 | drivers/cdrom/aztcd.c | struct cdrom_msf msf; |
msf | 1134 | drivers/cdrom/aztcd.c | { ms.addr.msf.minute = azt_bcd2bin(DiskInfo.lastSession.min); |
msf | 1135 | drivers/cdrom/aztcd.c | ms.addr.msf.second = azt_bcd2bin(DiskInfo.lastSession.sec); |
msf | 1136 | drivers/cdrom/aztcd.c | ms.addr.msf.frame = azt_bcd2bin(DiskInfo.lastSession.frame); |
msf | 1149 | drivers/cdrom/aztcd.c | ms.xa_flag, ms.addr.msf.minute, ms.addr.msf.second, |
msf | 1150 | drivers/cdrom/aztcd.c | ms.addr.msf.frame, DiskInfo.lastSession.min, |
msf | 1191 | drivers/cdrom/aztcd.c | st = verify_area(VERIFY_READ, (void *) arg, sizeof msf); |
msf | 1193 | drivers/cdrom/aztcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof msf); |
msf | 1195 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_min0); |
msf | 1196 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_sec0); |
msf | 1197 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_frame0); |
msf | 1198 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_min1); |
msf | 1199 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_sec1); |
msf | 1200 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_frame1); |
msf | 1201 | drivers/cdrom/aztcd.c | azt_Play.start.min = msf.cdmsf_min0; |
msf | 1202 | drivers/cdrom/aztcd.c | azt_Play.start.sec = msf.cdmsf_sec0; |
msf | 1203 | drivers/cdrom/aztcd.c | azt_Play.start.frame = msf.cdmsf_frame0; |
msf | 1204 | drivers/cdrom/aztcd.c | azt_Play.end.min = msf.cdmsf_min1; |
msf | 1205 | drivers/cdrom/aztcd.c | azt_Play.end.sec = msf.cdmsf_sec1; |
msf | 1206 | drivers/cdrom/aztcd.c | azt_Play.end.frame = msf.cdmsf_frame1; |
msf | 1247 | drivers/cdrom/aztcd.c | { entry.cdte_addr.msf.minute = azt_bcd2bin(tocPtr -> diskTime.min); |
msf | 1248 | drivers/cdrom/aztcd.c | entry.cdte_addr.msf.second = azt_bcd2bin(tocPtr -> diskTime.sec); |
msf | 1249 | drivers/cdrom/aztcd.c | entry.cdte_addr.msf.frame = azt_bcd2bin(tocPtr -> diskTime.frame); |
msf | 1290 | drivers/cdrom/aztcd.c | subchnl.cdsc_absaddr.msf.minute = azt_bcd2bin(qInfo.diskTime.min); |
msf | 1291 | drivers/cdrom/aztcd.c | subchnl.cdsc_absaddr.msf.second = azt_bcd2bin(qInfo.diskTime.sec); |
msf | 1292 | drivers/cdrom/aztcd.c | subchnl.cdsc_absaddr.msf.frame = azt_bcd2bin(qInfo.diskTime.frame); |
msf | 1293 | drivers/cdrom/aztcd.c | subchnl.cdsc_reladdr.msf.minute = azt_bcd2bin(qInfo.trackTime.min); |
msf | 1294 | drivers/cdrom/aztcd.c | subchnl.cdsc_reladdr.msf.second = azt_bcd2bin(qInfo.trackTime.sec); |
msf | 1295 | drivers/cdrom/aztcd.c | subchnl.cdsc_reladdr.msf.frame = azt_bcd2bin(qInfo.trackTime.frame); |
msf | 1343 | drivers/cdrom/aztcd.c | { st = verify_area(VERIFY_READ, (void *) arg, sizeof msf); |
msf | 1347 | drivers/cdrom/aztcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof msf); |
msf | 1349 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_min0); |
msf | 1350 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_sec0); |
msf | 1351 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_frame0); |
msf | 1352 | drivers/cdrom/aztcd.c | msf.cdmsf_min1=0; |
msf | 1353 | drivers/cdrom/aztcd.c | msf.cdmsf_sec1=0; |
msf | 1354 | drivers/cdrom/aztcd.c | msf.cdmsf_frame1=1; /*read only one frame*/ |
msf | 1355 | drivers/cdrom/aztcd.c | azt_Play.start.min = msf.cdmsf_min0; |
msf | 1356 | drivers/cdrom/aztcd.c | azt_Play.start.sec = msf.cdmsf_sec0; |
msf | 1357 | drivers/cdrom/aztcd.c | azt_Play.start.frame = msf.cdmsf_frame0; |
msf | 1358 | drivers/cdrom/aztcd.c | azt_Play.end.min = msf.cdmsf_min1; |
msf | 1359 | drivers/cdrom/aztcd.c | azt_Play.end.sec = msf.cdmsf_sec1; |
msf | 1360 | drivers/cdrom/aztcd.c | azt_Play.end.frame = msf.cdmsf_frame1; |
msf | 1381 | drivers/cdrom/aztcd.c | st = verify_area(VERIFY_READ, (void *) arg, sizeof msf); |
msf | 1383 | drivers/cdrom/aztcd.c | memcpy_fromfs(&msf, (void *) arg, sizeof msf); |
msf | 1385 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_min0); |
msf | 1386 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_sec0); |
msf | 1387 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf.cdmsf_frame0); |
msf | 1388 | drivers/cdrom/aztcd.c | azt_Play.start.min = msf.cdmsf_min0; |
msf | 1389 | drivers/cdrom/aztcd.c | azt_Play.start.sec = msf.cdmsf_sec0; |
msf | 1390 | drivers/cdrom/aztcd.c | azt_Play.start.frame = msf.cdmsf_frame0; |
msf | 1906 | drivers/cdrom/aztcd.c | struct azt_Play_msf msf; |
msf | 1909 | drivers/cdrom/aztcd.c | azt_hsg2msf(azt_next_bn, &msf.start); |
msf | 1912 | drivers/cdrom/aztcd.c | while (azt_msf2hsg(&msf.start)>azt_msf2hsg(&Toc[++i].trackTime)) {}; |
msf | 1913 | drivers/cdrom/aztcd.c | if (azt_msf2hsg(&msf.start)<azt_msf2hsg(&Toc[i].trackTime)-AZT_BUF_SIZ) |
msf | 1919 | drivers/cdrom/aztcd.c | { azt_read_count=(azt_msf2hsg(&Toc[i].trackTime)/4)*4-azt_msf2hsg(&msf.start); |
msf | 1929 | drivers/cdrom/aztcd.c | msf.end.min = 0; |
msf | 1930 | drivers/cdrom/aztcd.c | msf.end.sec = 0; |
msf | 1931 | drivers/cdrom/aztcd.c | msf.end.frame = azt_read_count ;/*Mitsumi here reads 0xffffff sectors*/ |
msf | 1933 | 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 | 1938 | drivers/cdrom/aztcd.c | { sendAztCmd(ACMD_PLAY_READ_RAW, &msf); /*XA disks in raw mode*/ |
msf | 1941 | drivers/cdrom/aztcd.c | { sendAztCmd(ACMD_PLAY_READ, &msf); /*others in cooked mode*/ |
msf | 2171 | drivers/cdrom/aztcd.c | static void azt_hsg2msf(long hsg, struct msf *msf) |
msf | 2173 | drivers/cdrom/aztcd.c | msf -> min = hsg / 4500; |
msf | 2175 | drivers/cdrom/aztcd.c | msf -> sec = hsg / 75; |
msf | 2176 | drivers/cdrom/aztcd.c | msf -> frame = hsg % 75; |
msf | 2178 | drivers/cdrom/aztcd.c | if (msf->min >=70) printk("aztcd: Error hsg2msf address Minutes\n"); |
msf | 2179 | drivers/cdrom/aztcd.c | if (msf->sec >=60) printk("aztcd: Error hsg2msf address Seconds\n"); |
msf | 2180 | drivers/cdrom/aztcd.c | if (msf->frame>=75) printk("aztcd: Error hsg2msf address Frames\n"); |
msf | 2182 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf -> min); /* convert to BCD */ |
msf | 2183 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf -> sec); |
msf | 2184 | drivers/cdrom/aztcd.c | azt_bin2bcd(&msf -> frame); |
msf | 2187 | 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 | 133 | drivers/scsi/sr_ioctl.c | struct cdrom_msf msf; |
msf | 135 | drivers/scsi/sr_ioctl.c | err = verify_area (VERIFY_READ, (void *) arg, sizeof (msf)); |
msf | 138 | drivers/scsi/sr_ioctl.c | memcpy_fromfs(&msf, (void *) arg, sizeof(msf)); |
msf | 143 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = msf.cdmsf_min0; |
msf | 144 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = msf.cdmsf_sec0; |
msf | 145 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = msf.cdmsf_frame0; |
msf | 146 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = msf.cdmsf_min1; |
msf | 147 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = msf.cdmsf_sec1; |
msf | 148 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = msf.cdmsf_frame1; |
msf | 263 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.msf.minute = buffer[9]; |
msf | 264 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.msf.second = buffer[10]; |
msf | 265 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.msf.frame = buffer[11]; |
msf | 472 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.minute = buffer[13]; |
msf | 473 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.second = buffer[14]; |
msf | 474 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.frame = buffer[15]; |
msf | 475 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.minute = buffer[9]; |
msf | 476 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.second = buffer[10]; |
msf | 477 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.frame = buffer[11]; |
msf | 539 | drivers/scsi/sr_ioctl.c | ms_info.addr.msf.minute = lba / (CD_SECS*CD_FRAMES); |
msf | 541 | drivers/scsi/sr_ioctl.c | ms_info.addr.msf.second = lba / CD_FRAMES; |
msf | 542 | 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; |