tag | line | file | source code |
ra | 2260 | drivers/block/ide-cd.c | struct cdrom_read_audio ra; |
ra | 2269 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (char *)arg, sizeof (ra)); |
ra | 2272 | drivers/block/ide-cd.c | memcpy_fromfs (&ra, (void *)arg, sizeof (ra)); |
ra | 2274 | drivers/block/ide-cd.c | if (ra.nframes < 0 || ra.nframes > toc->capacity) |
ra | 2276 | drivers/block/ide-cd.c | else if (ra.nframes == 0) |
ra | 2279 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (char *)ra.buf, |
ra | 2280 | drivers/block/ide-cd.c | ra.nframes * CD_FRAMESIZE_RAW); |
ra | 2283 | drivers/block/ide-cd.c | if (ra.addr_format == CDROM_MSF) |
ra | 2284 | drivers/block/ide-cd.c | lba = msf_to_lba (ra.addr.msf.minute, |
ra | 2285 | drivers/block/ide-cd.c | ra.addr.msf.second, |
ra | 2286 | drivers/block/ide-cd.c | ra.addr.msf.frame); |
ra | 2287 | drivers/block/ide-cd.c | else if (ra.addr_format == CDROM_LBA) |
ra | 2288 | drivers/block/ide-cd.c | lba = ra.addr.lba; |
ra | 2295 | drivers/block/ide-cd.c | while (ra.nframes > 0) { |
ra | 2299 | drivers/block/ide-cd.c | memcpy_tofs (ra.buf, buf, CD_FRAMESIZE_RAW); |
ra | 2300 | drivers/block/ide-cd.c | ra.buf += CD_FRAMESIZE_RAW; |
ra | 2301 | drivers/block/ide-cd.c | --ra.nframes; |
ra | 2174 | drivers/cdrom/cdu31a.c | read_audio(struct cdrom_read_audio *ra, |
ra | 2228 | drivers/cdrom/cdu31a.c | if (start_request(ra->addr.lba, ra->nframes, 1)) |
ra | 2236 | drivers/cdrom/cdu31a.c | while (cframe < ra->nframes) |
ra | 2244 | drivers/cdrom/cdu31a.c | ra->addr.lba + cframe); |
ra | 2267 | drivers/cdrom/cdu31a.c | if (start_request(ra->addr.lba + cframe, ra->nframes - cframe, 1)) |
ra | 2282 | drivers/cdrom/cdu31a.c | ra->addr.lba + cframe); |
ra | 2287 | drivers/cdrom/cdu31a.c | ra->addr.lba + cframe, |
ra | 2295 | drivers/cdrom/cdu31a.c | memcpy_tofs((char *) (ra->buf + (CD_FRAMESIZE_RAW * cframe)), |
ra | 2303 | drivers/cdrom/cdu31a.c | ra->addr.lba + cframe, |
ra | 2311 | drivers/cdrom/cdu31a.c | memcpy_tofs((char *) (ra->buf + (CD_FRAMESIZE_RAW * cframe)), |
ra | 2650 | drivers/cdrom/cdu31a.c | struct cdrom_read_audio ra; |
ra | 2659 | drivers/cdrom/cdu31a.c | i=verify_area(VERIFY_READ, (char *) arg, sizeof(ra)); |
ra | 2662 | drivers/cdrom/cdu31a.c | memcpy_fromfs(&ra, (char *) arg, sizeof(ra)); |
ra | 2664 | drivers/cdrom/cdu31a.c | i=verify_area(VERIFY_WRITE, ra.buf, CD_FRAMESIZE_RAW * ra.nframes); |
ra | 2668 | drivers/cdrom/cdu31a.c | if (ra.addr_format == CDROM_LBA) |
ra | 2670 | drivers/cdrom/cdu31a.c | if ( (ra.addr.lba >= sony_toc.lead_out_start_lba) |
ra | 2671 | drivers/cdrom/cdu31a.c | || (ra.addr.lba + ra.nframes >= sony_toc.lead_out_start_lba)) |
ra | 2676 | drivers/cdrom/cdu31a.c | else if (ra.addr_format == CDROM_MSF) |
ra | 2678 | drivers/cdrom/cdu31a.c | if ( (ra.addr.msf.minute >= 75) |
ra | 2679 | drivers/cdrom/cdu31a.c | || (ra.addr.msf.second >= 60) |
ra | 2680 | drivers/cdrom/cdu31a.c | || (ra.addr.msf.frame >= 75)) |
ra | 2685 | drivers/cdrom/cdu31a.c | ra.addr.lba = ( (ra.addr.msf.minute * 4500) |
ra | 2686 | drivers/cdrom/cdu31a.c | + (ra.addr.msf.second * 75) |
ra | 2687 | drivers/cdrom/cdu31a.c | + ra.addr.msf.frame); |
ra | 2688 | drivers/cdrom/cdu31a.c | if ( (ra.addr.lba >= sony_toc.lead_out_start_lba) |
ra | 2689 | drivers/cdrom/cdu31a.c | || (ra.addr.lba + ra.nframes >= sony_toc.lead_out_start_lba)) |
ra | 2697 | drivers/cdrom/cdu31a.c | ra.addr.lba -= LOG_START_OFFSET; |
ra | 2704 | drivers/cdrom/cdu31a.c | return(read_audio(&ra, inode)); |
ra | 85 | include/asm-mips/asm.h | symbol: .frame sp,0,ra |