tag | line | file | source code |
toc_entry | 788 | drivers/cdrom/sjcd.c | struct cdrom_tocentry toc_entry; int s; |
toc_entry | 792 | drivers/cdrom/sjcd.c | if( ( s = verify_area( VERIFY_WRITE, (void *)arg, sizeof( toc_entry ) ) ) == 0 ){ |
toc_entry | 795 | drivers/cdrom/sjcd.c | memcpy_fromfs( &toc_entry, (void *)arg, sizeof( toc_entry ) ); |
toc_entry | 797 | drivers/cdrom/sjcd.c | if( toc_entry.cdte_track == CDROM_LEADOUT ) |
toc_entry | 799 | drivers/cdrom/sjcd.c | else if( toc_entry.cdte_track < sjcd_first_track_no ) return( -EINVAL ); |
toc_entry | 800 | drivers/cdrom/sjcd.c | else if( toc_entry.cdte_track > sjcd_last_track_no ) return( -EINVAL ); |
toc_entry | 801 | drivers/cdrom/sjcd.c | else tp = &sjcd_table_of_contents[ toc_entry.cdte_track ]; |
toc_entry | 803 | drivers/cdrom/sjcd.c | toc_entry.cdte_adr = tp->track_control & 0x0F; |
toc_entry | 804 | drivers/cdrom/sjcd.c | toc_entry.cdte_ctrl = tp->track_control >> 4; |
toc_entry | 806 | drivers/cdrom/sjcd.c | switch( toc_entry.cdte_format ){ |
toc_entry | 808 | drivers/cdrom/sjcd.c | toc_entry.cdte_addr.lba = msf2hsg( &( tp->un.track_msf ) ); |
toc_entry | 811 | drivers/cdrom/sjcd.c | toc_entry.cdte_addr.msf.minute = bcd2bin( tp->un.track_msf.min ); |
toc_entry | 812 | drivers/cdrom/sjcd.c | toc_entry.cdte_addr.msf.second = bcd2bin( tp->un.track_msf.sec ); |
toc_entry | 813 | drivers/cdrom/sjcd.c | toc_entry.cdte_addr.msf.frame = bcd2bin( tp->un.track_msf.frame ); |
toc_entry | 817 | drivers/cdrom/sjcd.c | memcpy_tofs( (void *)arg, &toc_entry, sizeof( toc_entry ) ); |