tag | line | file | source code |
toc_entry | 848 | drivers/cdrom/sjcd.c | struct cdrom_tocentry toc_entry; int s; |
toc_entry | 852 | drivers/cdrom/sjcd.c | if( ( s = verify_area( VERIFY_WRITE, (void *)arg, sizeof( toc_entry ) ) ) == 0 ){ |
toc_entry | 855 | drivers/cdrom/sjcd.c | memcpy_fromfs( &toc_entry, (void *)arg, sizeof( toc_entry ) ); |
toc_entry | 857 | drivers/cdrom/sjcd.c | if( toc_entry.cdte_track == CDROM_LEADOUT ) |
toc_entry | 859 | drivers/cdrom/sjcd.c | else if( toc_entry.cdte_track < sjcd_first_track_no ) return( -EINVAL ); |
toc_entry | 860 | drivers/cdrom/sjcd.c | else if( toc_entry.cdte_track > sjcd_last_track_no ) return( -EINVAL ); |
toc_entry | 861 | drivers/cdrom/sjcd.c | else tp = &sjcd_table_of_contents[ toc_entry.cdte_track ]; |
toc_entry | 863 | drivers/cdrom/sjcd.c | toc_entry.cdte_adr = tp->track_control & 0x0F; |
toc_entry | 864 | drivers/cdrom/sjcd.c | toc_entry.cdte_ctrl = tp->track_control >> 4; |
toc_entry | 866 | drivers/cdrom/sjcd.c | switch( toc_entry.cdte_format ){ |
toc_entry | 868 | drivers/cdrom/sjcd.c | toc_entry.cdte_addr.lba = msf2hsg( &( tp->un.track_msf ) ); |
toc_entry | 871 | drivers/cdrom/sjcd.c | toc_entry.cdte_addr.msf.minute = bcd2bin( tp->un.track_msf.min ); |
toc_entry | 872 | drivers/cdrom/sjcd.c | toc_entry.cdte_addr.msf.second = bcd2bin( tp->un.track_msf.sec ); |
toc_entry | 873 | drivers/cdrom/sjcd.c | toc_entry.cdte_addr.msf.frame = bcd2bin( tp->un.track_msf.frame ); |
toc_entry | 877 | drivers/cdrom/sjcd.c | memcpy_tofs( (void *)arg, &toc_entry, sizeof( toc_entry ) ); |