tag | line | file | source code |
ra | 1986 | drivers/block/cdu31a.c | read_audio(struct cdrom_read_audio *ra, |
ra | 2037 | drivers/block/cdu31a.c | if (start_request(ra->addr.lba, ra->nframes, 1)) |
ra | 2045 | drivers/block/cdu31a.c | while (cframe < ra->nframes) |
ra | 2053 | drivers/block/cdu31a.c | ra->addr.lba + cframe); |
ra | 2076 | drivers/block/cdu31a.c | if (start_request(ra->addr.lba + cframe, ra->nframes - cframe, 1)) |
ra | 2091 | drivers/block/cdu31a.c | ra->addr.lba + cframe); |
ra | 2096 | drivers/block/cdu31a.c | ra->addr.lba + cframe, |
ra | 2104 | drivers/block/cdu31a.c | memcpy_tofs((char *) (ra->buf + (CD_FRAMESIZE_RAW * cframe)), |
ra | 2112 | drivers/block/cdu31a.c | ra->addr.lba + cframe, |
ra | 2120 | drivers/block/cdu31a.c | memcpy_tofs((char *) (ra->buf + (CD_FRAMESIZE_RAW * cframe)), |
ra | 2474 | drivers/block/cdu31a.c | struct cdrom_read_audio ra; |
ra | 2483 | drivers/block/cdu31a.c | verify_area(VERIFY_READ, (char *) arg, sizeof(ra)); |
ra | 2484 | drivers/block/cdu31a.c | memcpy_fromfs(&ra, (char *) arg, sizeof(ra)); |
ra | 2486 | drivers/block/cdu31a.c | verify_area(VERIFY_WRITE, ra.buf, CD_FRAMESIZE_RAW * ra.nframes); |
ra | 2488 | drivers/block/cdu31a.c | if (ra.addr_format == CDROM_LBA) |
ra | 2490 | drivers/block/cdu31a.c | if ( (ra.addr.lba >= sony_toc->lead_out_start_lba) |
ra | 2491 | drivers/block/cdu31a.c | || (ra.addr.lba + ra.nframes >= sony_toc->lead_out_start_lba)) |
ra | 2496 | drivers/block/cdu31a.c | else if (ra.addr_format == CDROM_MSF) |
ra | 2498 | drivers/block/cdu31a.c | if ( (ra.addr.msf.minute >= 75) |
ra | 2499 | drivers/block/cdu31a.c | || (ra.addr.msf.second >= 60) |
ra | 2500 | drivers/block/cdu31a.c | || (ra.addr.msf.frame >= 75)) |
ra | 2505 | drivers/block/cdu31a.c | ra.addr.lba = ( (ra.addr.msf.minute * 4500) |
ra | 2506 | drivers/block/cdu31a.c | + (ra.addr.msf.second * 75) |
ra | 2507 | drivers/block/cdu31a.c | + ra.addr.msf.frame); |
ra | 2508 | drivers/block/cdu31a.c | if ( (ra.addr.lba >= sony_toc->lead_out_start_lba) |
ra | 2509 | drivers/block/cdu31a.c | || (ra.addr.lba + ra.nframes >= sony_toc->lead_out_start_lba)) |
ra | 2517 | drivers/block/cdu31a.c | ra.addr.lba -= LOG_START_OFFSET; |
ra | 2524 | drivers/block/cdu31a.c | return(read_audio(&ra, inode)); |