tag | line | file | source code |
subchnl | 2174 | drivers/block/ide-cd.c | struct cdrom_subchnl subchnl; |
subchnl | 2176 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (subchnl)); |
subchnl | 2178 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (subchnl)); |
subchnl | 2181 | drivers/block/ide-cd.c | memcpy_fromfs (&subchnl, (void *) arg, sizeof (subchnl)); |
subchnl | 2205 | drivers/block/ide-cd.c | if (subchnl.cdsc_format == CDROM_MSF) |
subchnl | 2208 | drivers/block/ide-cd.c | &subchnl.cdsc_absaddr.msf.minute, |
subchnl | 2209 | drivers/block/ide-cd.c | &subchnl.cdsc_absaddr.msf.second, |
subchnl | 2210 | drivers/block/ide-cd.c | &subchnl.cdsc_absaddr.msf.frame); |
subchnl | 2212 | drivers/block/ide-cd.c | &subchnl.cdsc_reladdr.msf.minute, |
subchnl | 2213 | drivers/block/ide-cd.c | &subchnl.cdsc_reladdr.msf.second, |
subchnl | 2214 | drivers/block/ide-cd.c | &subchnl.cdsc_reladdr.msf.frame); |
subchnl | 2218 | drivers/block/ide-cd.c | subchnl.cdsc_absaddr.lba = abs_lba; |
subchnl | 2219 | drivers/block/ide-cd.c | subchnl.cdsc_reladdr.lba = rel_lba; |
subchnl | 2222 | drivers/block/ide-cd.c | subchnl.cdsc_audiostatus = scbuf.acdsc_audiostatus; |
subchnl | 2223 | drivers/block/ide-cd.c | subchnl.cdsc_ctrl = scbuf.acdsc_ctrl; |
subchnl | 2224 | drivers/block/ide-cd.c | subchnl.cdsc_trk = scbuf.acdsc_trk; |
subchnl | 2225 | drivers/block/ide-cd.c | subchnl.cdsc_ind = scbuf.acdsc_ind; |
subchnl | 2227 | drivers/block/ide-cd.c | memcpy_tofs ((void *) arg, &subchnl, sizeof (subchnl)); |
subchnl | 619 | drivers/cdrom/aztcd.c | struct cdrom_subchnl subchnl; |
subchnl | 817 | drivers/cdrom/aztcd.c | memcpy_fromfs(&subchnl, (void *) arg, sizeof (struct cdrom_subchnl)); |
subchnl | 825 | drivers/cdrom/aztcd.c | subchnl.cdsc_audiostatus = aztAudioStatus; |
subchnl | 826 | drivers/cdrom/aztcd.c | subchnl.cdsc_adr = qInfo.ctrl_addr; |
subchnl | 827 | drivers/cdrom/aztcd.c | subchnl.cdsc_ctrl = qInfo.ctrl_addr >> 4; |
subchnl | 828 | drivers/cdrom/aztcd.c | subchnl.cdsc_trk = azt_bcd2bin(qInfo.track); |
subchnl | 829 | drivers/cdrom/aztcd.c | subchnl.cdsc_ind = azt_bcd2bin(qInfo.pointIndex); |
subchnl | 830 | drivers/cdrom/aztcd.c | if (subchnl.cdsc_format == CDROM_LBA) |
subchnl | 831 | drivers/cdrom/aztcd.c | { subchnl.cdsc_absaddr.lba = azt_msf2hsg(&qInfo.diskTime); |
subchnl | 832 | drivers/cdrom/aztcd.c | subchnl.cdsc_reladdr.lba = azt_msf2hsg(&qInfo.trackTime); |
subchnl | 835 | drivers/cdrom/aztcd.c | { subchnl.cdsc_format = CDROM_MSF; |
subchnl | 836 | drivers/cdrom/aztcd.c | subchnl.cdsc_absaddr.msf.minute = azt_bcd2bin(qInfo.diskTime.min); |
subchnl | 837 | drivers/cdrom/aztcd.c | subchnl.cdsc_absaddr.msf.second = azt_bcd2bin(qInfo.diskTime.sec); |
subchnl | 838 | drivers/cdrom/aztcd.c | subchnl.cdsc_absaddr.msf.frame = azt_bcd2bin(qInfo.diskTime.frame); |
subchnl | 839 | drivers/cdrom/aztcd.c | subchnl.cdsc_reladdr.msf.minute = azt_bcd2bin(qInfo.trackTime.min); |
subchnl | 840 | drivers/cdrom/aztcd.c | subchnl.cdsc_reladdr.msf.second = azt_bcd2bin(qInfo.trackTime.sec); |
subchnl | 841 | drivers/cdrom/aztcd.c | subchnl.cdsc_reladdr.msf.frame = azt_bcd2bin(qInfo.trackTime.frame); |
subchnl | 843 | drivers/cdrom/aztcd.c | memcpy_tofs((void *) arg, &subchnl, sizeof (struct cdrom_subchnl)); |
subchnl | 294 | drivers/cdrom/mcd.c | struct cdrom_subchnl subchnl; |
subchnl | 498 | drivers/cdrom/mcd.c | st = verify_area(VERIFY_WRITE, (void *) arg, sizeof subchnl); |
subchnl | 502 | drivers/cdrom/mcd.c | memcpy_fromfs(&subchnl, (void *) arg, sizeof subchnl); |
subchnl | 507 | drivers/cdrom/mcd.c | subchnl.cdsc_audiostatus = audioStatus; |
subchnl | 508 | drivers/cdrom/mcd.c | subchnl.cdsc_adr = qInfo.ctrl_addr; |
subchnl | 509 | drivers/cdrom/mcd.c | subchnl.cdsc_ctrl = qInfo.ctrl_addr >> 4; |
subchnl | 510 | drivers/cdrom/mcd.c | subchnl.cdsc_trk = bcd2bin(qInfo.track); |
subchnl | 511 | drivers/cdrom/mcd.c | subchnl.cdsc_ind = bcd2bin(qInfo.pointIndex); |
subchnl | 513 | drivers/cdrom/mcd.c | if (subchnl.cdsc_format == CDROM_LBA) |
subchnl | 515 | drivers/cdrom/mcd.c | subchnl.cdsc_absaddr.lba = msf2hsg(&qInfo.diskTime); |
subchnl | 516 | drivers/cdrom/mcd.c | subchnl.cdsc_reladdr.lba = msf2hsg(&qInfo.trackTime); |
subchnl | 519 | drivers/cdrom/mcd.c | else if (subchnl.cdsc_format == CDROM_MSF) |
subchnl | 521 | drivers/cdrom/mcd.c | subchnl.cdsc_absaddr.msf.minute = bcd2bin(qInfo.diskTime.min); |
subchnl | 522 | drivers/cdrom/mcd.c | subchnl.cdsc_absaddr.msf.second = bcd2bin(qInfo.diskTime.sec); |
subchnl | 523 | drivers/cdrom/mcd.c | subchnl.cdsc_absaddr.msf.frame = bcd2bin(qInfo.diskTime.frame); |
subchnl | 525 | drivers/cdrom/mcd.c | subchnl.cdsc_reladdr.msf.minute = bcd2bin(qInfo.trackTime.min); |
subchnl | 526 | drivers/cdrom/mcd.c | subchnl.cdsc_reladdr.msf.second = bcd2bin(qInfo.trackTime.sec); |
subchnl | 527 | drivers/cdrom/mcd.c | subchnl.cdsc_reladdr.msf.frame = bcd2bin(qInfo.trackTime.frame); |
subchnl | 533 | drivers/cdrom/mcd.c | memcpy_tofs((void *) arg, &subchnl, sizeof subchnl); |
subchnl | 1209 | drivers/cdrom/optcd.c | struct cdrom_subchnl subchnl; |
subchnl | 1213 | drivers/cdrom/optcd.c | (void *) arg, sizeof subchnl))) |
subchnl | 1216 | drivers/cdrom/optcd.c | (void *) arg, sizeof subchnl))) |
subchnl | 1218 | drivers/cdrom/optcd.c | memcpy_fromfs(&subchnl, (void *) arg, sizeof subchnl); |
subchnl | 1221 | drivers/cdrom/optcd.c | subchnl.cdsc_audiostatus = optAudioStatus; |
subchnl | 1222 | drivers/cdrom/optcd.c | subchnl.cdsc_adr = qInfo.ctrl_addr; |
subchnl | 1223 | drivers/cdrom/optcd.c | subchnl.cdsc_ctrl = qInfo.ctrl_addr >> 4; |
subchnl | 1224 | drivers/cdrom/optcd.c | subchnl.cdsc_trk = bcd2bin(qInfo.track); |
subchnl | 1225 | drivers/cdrom/optcd.c | subchnl.cdsc_ind = bcd2bin(qInfo.pointIndex); |
subchnl | 1226 | drivers/cdrom/optcd.c | switch (subchnl.cdsc_format) { |
subchnl | 1228 | drivers/cdrom/optcd.c | subchnl.cdsc_absaddr.lba = msf2hsg(&qInfo.diskTime); |
subchnl | 1229 | drivers/cdrom/optcd.c | subchnl.cdsc_reladdr.lba = msf2hsg(&qInfo.trackTime); |
subchnl | 1232 | drivers/cdrom/optcd.c | subchnl.cdsc_absaddr.msf.minute = |
subchnl | 1234 | drivers/cdrom/optcd.c | subchnl.cdsc_absaddr.msf.second = |
subchnl | 1236 | drivers/cdrom/optcd.c | subchnl.cdsc_absaddr.msf.frame = |
subchnl | 1238 | drivers/cdrom/optcd.c | subchnl.cdsc_reladdr.msf.minute = |
subchnl | 1240 | drivers/cdrom/optcd.c | subchnl.cdsc_reladdr.msf.second = |
subchnl | 1242 | drivers/cdrom/optcd.c | subchnl.cdsc_reladdr.msf.frame = |
subchnl | 1248 | drivers/cdrom/optcd.c | memcpy_tofs((void *) arg, &subchnl, sizeof subchnl); |
subchnl | 883 | drivers/cdrom/sjcd.c | struct cdrom_subchnl subchnl; int s; |
subchnl | 887 | drivers/cdrom/sjcd.c | if( ( s = verify_area( VERIFY_WRITE, (void *)arg, sizeof( subchnl ) ) ) == 0 ){ |
subchnl | 890 | drivers/cdrom/sjcd.c | memcpy_fromfs( &subchnl, (void *)arg, sizeof( subchnl ) ); |
subchnl | 893 | drivers/cdrom/sjcd.c | subchnl.cdsc_audiostatus = sjcd_audio_status; |
subchnl | 894 | drivers/cdrom/sjcd.c | subchnl.cdsc_adr = q_info.track_control & 0x0F; |
subchnl | 895 | drivers/cdrom/sjcd.c | subchnl.cdsc_ctrl = q_info.track_control >> 4; |
subchnl | 896 | drivers/cdrom/sjcd.c | subchnl.cdsc_trk = bcd2bin( q_info.track_no ); |
subchnl | 897 | drivers/cdrom/sjcd.c | subchnl.cdsc_ind = bcd2bin( q_info.x ); |
subchnl | 899 | drivers/cdrom/sjcd.c | switch( subchnl.cdsc_format ){ |
subchnl | 901 | drivers/cdrom/sjcd.c | subchnl.cdsc_absaddr.lba = msf2hsg( &( q_info.abs ) ); |
subchnl | 902 | drivers/cdrom/sjcd.c | subchnl.cdsc_reladdr.lba = msf2hsg( &( q_info.rel ) ); |
subchnl | 905 | drivers/cdrom/sjcd.c | subchnl.cdsc_absaddr.msf.minute = bcd2bin( q_info.abs.min ); |
subchnl | 906 | drivers/cdrom/sjcd.c | subchnl.cdsc_absaddr.msf.second = bcd2bin( q_info.abs.sec ); |
subchnl | 907 | drivers/cdrom/sjcd.c | subchnl.cdsc_absaddr.msf.frame = bcd2bin( q_info.abs.frame ); |
subchnl | 908 | drivers/cdrom/sjcd.c | subchnl.cdsc_reladdr.msf.minute = bcd2bin( q_info.rel.min ); |
subchnl | 909 | drivers/cdrom/sjcd.c | subchnl.cdsc_reladdr.msf.second = bcd2bin( q_info.rel.sec ); |
subchnl | 910 | drivers/cdrom/sjcd.c | subchnl.cdsc_reladdr.msf.frame = bcd2bin( q_info.rel.frame ); |
subchnl | 914 | drivers/cdrom/sjcd.c | memcpy_tofs( (void *)arg, &subchnl, sizeof( subchnl ) ); |
subchnl | 383 | drivers/scsi/sr_ioctl.c | struct cdrom_subchnl subchnl; |
subchnl | 401 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_audiostatus = buffer[1]; |
subchnl | 402 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_format = CDROM_MSF; |
subchnl | 403 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_ctrl = buffer[5] & 0xf; |
subchnl | 404 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_trk = buffer[6]; |
subchnl | 405 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_ind = buffer[7]; |
subchnl | 407 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.minute = buffer[13]; |
subchnl | 408 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.second = buffer[14]; |
subchnl | 409 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.frame = buffer[15]; |
subchnl | 410 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.minute = buffer[9]; |
subchnl | 411 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.second = buffer[10]; |
subchnl | 412 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.frame = buffer[11]; |
subchnl | 419 | drivers/scsi/sr_ioctl.c | memcpy_tofs ((void *) arg, &subchnl, sizeof (struct cdrom_subchnl)); |