tag | line | file | source code |
schi | 1827 | drivers/block/cdu31a.c | struct cdrom_subchnl schi; |
schi | 1840 | drivers/block/cdu31a.c | verify_area(VERIFY_READ, (char *) arg, sizeof(schi)); |
schi | 1841 | drivers/block/cdu31a.c | verify_area(VERIFY_WRITE, (char *) arg, sizeof(schi)); |
schi | 1843 | drivers/block/cdu31a.c | memcpy_fromfs(&schi, (char *) arg, sizeof(schi)); |
schi | 1859 | drivers/block/cdu31a.c | schi.cdsc_audiostatus = sony_audio_status; |
schi | 1860 | drivers/block/cdu31a.c | memcpy_tofs((char *) arg, &schi, sizeof(schi)); |
schi | 1870 | drivers/block/cdu31a.c | schi.cdsc_audiostatus = sony_audio_status; |
schi | 1871 | drivers/block/cdu31a.c | schi.cdsc_adr = last_sony_subcode->address; |
schi | 1872 | drivers/block/cdu31a.c | schi.cdsc_ctrl = last_sony_subcode->control; |
schi | 1873 | drivers/block/cdu31a.c | schi.cdsc_trk = bcd_to_int(last_sony_subcode->track_num); |
schi | 1874 | drivers/block/cdu31a.c | schi.cdsc_ind = bcd_to_int(last_sony_subcode->index_num); |
schi | 1875 | drivers/block/cdu31a.c | if (schi.cdsc_format == CDROM_MSF) |
schi | 1877 | drivers/block/cdu31a.c | schi.cdsc_absaddr.msf.minute = bcd_to_int(last_sony_subcode->abs_msf[0]); |
schi | 1878 | drivers/block/cdu31a.c | schi.cdsc_absaddr.msf.second = bcd_to_int(last_sony_subcode->abs_msf[1]); |
schi | 1879 | drivers/block/cdu31a.c | schi.cdsc_absaddr.msf.frame = bcd_to_int(last_sony_subcode->abs_msf[2]); |
schi | 1881 | drivers/block/cdu31a.c | schi.cdsc_reladdr.msf.minute = bcd_to_int(last_sony_subcode->rel_msf[0]); |
schi | 1882 | drivers/block/cdu31a.c | schi.cdsc_reladdr.msf.second = bcd_to_int(last_sony_subcode->rel_msf[1]); |
schi | 1883 | drivers/block/cdu31a.c | schi.cdsc_reladdr.msf.frame = bcd_to_int(last_sony_subcode->rel_msf[2]); |
schi | 1885 | drivers/block/cdu31a.c | else if (schi.cdsc_format == CDROM_LBA) |
schi | 1887 | drivers/block/cdu31a.c | schi.cdsc_absaddr.lba = msf_to_log(last_sony_subcode->abs_msf); |
schi | 1888 | drivers/block/cdu31a.c | schi.cdsc_reladdr.lba = msf_to_log(last_sony_subcode->rel_msf); |
schi | 1891 | drivers/block/cdu31a.c | memcpy_tofs((char *) arg, &schi, sizeof(schi)); |
schi | 1042 | drivers/block/sonycd535.c | struct cdrom_subchnl schi; |
schi | 1053 | drivers/block/sonycd535.c | err = verify_area(VERIFY_WRITE /* and read */ , (char *)arg, sizeof schi); |
schi | 1057 | drivers/block/sonycd535.c | memcpy_fromfs(&schi, (char *)arg, sizeof schi); |
schi | 1071 | drivers/block/sonycd535.c | schi.cdsc_audiostatus = sony_audio_status; |
schi | 1072 | drivers/block/sonycd535.c | memcpy_tofs((char *)arg, &schi, sizeof schi); |
schi | 1082 | drivers/block/sonycd535.c | schi.cdsc_audiostatus = sony_audio_status; |
schi | 1083 | drivers/block/sonycd535.c | schi.cdsc_adr = last_sony_subcode->address; |
schi | 1084 | drivers/block/sonycd535.c | schi.cdsc_ctrl = last_sony_subcode->control; |
schi | 1085 | drivers/block/sonycd535.c | schi.cdsc_trk = bcd_to_int(last_sony_subcode->track_num); |
schi | 1086 | drivers/block/sonycd535.c | schi.cdsc_ind = bcd_to_int(last_sony_subcode->index_num); |
schi | 1087 | drivers/block/sonycd535.c | if (schi.cdsc_format == CDROM_MSF) { |
schi | 1088 | drivers/block/sonycd535.c | schi.cdsc_absaddr.msf.minute = bcd_to_int(last_sony_subcode->abs_msf[0]); |
schi | 1089 | drivers/block/sonycd535.c | schi.cdsc_absaddr.msf.second = bcd_to_int(last_sony_subcode->abs_msf[1]); |
schi | 1090 | drivers/block/sonycd535.c | schi.cdsc_absaddr.msf.frame = bcd_to_int(last_sony_subcode->abs_msf[2]); |
schi | 1092 | drivers/block/sonycd535.c | schi.cdsc_reladdr.msf.minute = bcd_to_int(last_sony_subcode->rel_msf[0]); |
schi | 1093 | drivers/block/sonycd535.c | schi.cdsc_reladdr.msf.second = bcd_to_int(last_sony_subcode->rel_msf[1]); |
schi | 1094 | drivers/block/sonycd535.c | schi.cdsc_reladdr.msf.frame = bcd_to_int(last_sony_subcode->rel_msf[2]); |
schi | 1095 | drivers/block/sonycd535.c | } else if (schi.cdsc_format == CDROM_LBA) { |
schi | 1096 | drivers/block/sonycd535.c | schi.cdsc_absaddr.lba = msf_to_log(last_sony_subcode->abs_msf); |
schi | 1097 | drivers/block/sonycd535.c | schi.cdsc_reladdr.lba = msf_to_log(last_sony_subcode->rel_msf); |
schi | 1099 | drivers/block/sonycd535.c | memcpy_tofs((char *)arg, &schi, sizeof schi); |