xorriso
1.5.4.pl02
About: GNU xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions. It is suitable for incremental data backup and for production of bootable ISO 9660 images. GNU xorriso is a statical compilation of the libraries libburn, libisofs, libisoburn, and libjte.
![]() ![]() |
Go to the source code of this file.
Macros | |
#define | BURN_MMC_FAKE_TOC_MAX_SIZE 2302 |
Functions | |
void | mmc_read (struct burn_drive *) |
void | mmc_close_session (struct burn_write_opts *o) |
void | mmc_close_disc (struct burn_write_opts *o) |
void | mmc_close (struct burn_drive *, int session, int track) |
void | mmc_get_event (struct burn_drive *) |
int | mmc_write (struct burn_drive *, int start, struct buffer *buf) |
void | mmc_write_12 (struct burn_drive *d, int start, struct buffer *buf) |
void | mmc_sync_cache (struct burn_drive *) |
void | mmc_load (struct burn_drive *) |
void | mmc_eject (struct burn_drive *) |
void | mmc_erase (struct burn_drive *, int) |
void | mmc_read_toc (struct burn_drive *) |
void | mmc_read_disc_info (struct burn_drive *) |
void | mmc_read_atip (struct burn_drive *) |
int | mmc_read_cd (struct burn_drive *d, int start, int len, int sec_type, int main_ch, const struct burn_read_opts *o, struct buffer *buf, int flag) |
void | mmc_set_speed (struct burn_drive *, int, int) |
void | mmc_read_lead_in (struct burn_drive *, struct buffer *) |
void | mmc_perform_opc (struct burn_drive *) |
void | mmc_get_configuration (struct burn_drive *) |
int | mmc_get_nwa (struct burn_drive *d, int trackno, int *lba, int *nwa) |
int | mmc_send_cue_sheet (struct burn_drive *, struct cue_sheet *) |
int | mmc_read_buffer_capacity (struct burn_drive *d) |
int | mmc_setup_drive (struct burn_drive *d) |
int | mmc_format_unit (struct burn_drive *d, off_t size, int flag) |
int | mmc_get_write_performance (struct burn_drive *d) |
int | mmc_compose_mode_page_5 (struct burn_drive *d, struct burn_session *s, int tno, const struct burn_write_opts *o, unsigned char *pd) |
int | mmc_four_char_to_int (unsigned char *data) |
int | mmc_read_track_info (struct burn_drive *d, int trackno, struct buffer *buf, int alloc_len) |
int | mmc_read_10 (struct burn_drive *d, int start, int amount, struct buffer *buf) |
int | mmc_read_capacity (struct burn_drive *d) |
char * | mmc_obtain_profile_name (int profile_number) |
int | mmc_get_media_product_id (struct burn_drive *d, char **product_id, char **media_code1, char **media_code2, char **book_type, int flag) |
int | mmc_function_spy (struct burn_drive *d, char *text) |
int | mmc_start_if_needed (struct burn_drive *d, int flag) |
int | mmc_get_bd_spare_info (struct burn_drive *d, int *alloc_blocks, int *free_blocks, int flag) |
int | mmc_get_phys_format_info (struct burn_drive *d, int *disk_category, char **book_name, int *part_version, int *num_layers, int *num_blocks, int flag) |
int | mmc_get_leadin_text (struct burn_drive *d, unsigned char **text_packs, int *num_packs, int flag) |
int | mmc_get_performance (struct burn_drive *d, int descr_type, int flag) |
int | burn_make_feature_text (struct burn_drive *d, unsigned int feature_code, unsigned char flags, unsigned char additional_length, unsigned char *feature_data, char **text, int flag) |
int burn_make_feature_text | ( | struct burn_drive * | d, |
unsigned int | feature_code, | ||
unsigned char | flags, | ||
unsigned char | additional_length, | ||
unsigned char * | feature_data, | ||
char ** | text, | ||
int | flag | ||
) |
Definition at line 5495 of file mmc.c.
References burn__add_hex_to_text(), burn__add_to_text(), BURN_ALLOC_MEM, and mmc_four_char_to_int().
Referenced by burn_drive_get_feature().
void mmc_close | ( | struct burn_drive * | d, |
int | session, | ||
int | track | ||
) |
Definition at line 603 of file mmc.c.
References burn_drive::cancel, burn_drive::casual_command, command::dir, burn_drive::do_no_immed, command::error, burn_drive::global_index, burn_drive::issue_command, Libburn_mmc_close_noim_timeouT, Libburn_mmc_close_timeouT, libdax_messenger, LIBDAX_MSGS_PRIO_HIGH, LIBDAX_MSGS_SEV_FAILURE, libdax_msgs_submit(), MMC_CLOSE, mmc_function_spy(), NO_TRANSFER, command::opcode, command::page, command::retry, scsi_error_msg(), scsi_init_command(), command::sense, spc_human_readable_cmd(), spc_wait_unit_attention(), and command::timeout.
Referenced by mmc_close_disc(), mmc_close_session(), and mmc_setup_drive().
void mmc_close_disc | ( | struct burn_write_opts * | o | ) |
Definition at line 558 of file mmc.c.
References burn_write_opts::drive, libdax_messenger, LIBDAX_MSGS_PRIO_ZERO, LIBDAX_MSGS_SEV_DEBUG, libdax_msgs_submit(), mmc_close(), mmc_function_spy(), burn_write_opts::multi, and spc_select_write_params().
Referenced by mmc_setup_drive().
void mmc_close_session | ( | struct burn_write_opts * | o | ) |
Definition at line 579 of file mmc.c.
References burn_write_opts::drive, libdax_messenger, LIBDAX_MSGS_PRIO_ZERO, LIBDAX_MSGS_SEV_DEBUG, libdax_msgs_submit(), mmc_close(), mmc_function_spy(), burn_write_opts::multi, and spc_select_write_params().
Referenced by mmc_setup_drive().
int mmc_compose_mode_page_5 | ( | struct burn_drive * | d, |
struct burn_session * | s, | ||
int | tno, | ||
const struct burn_write_opts * | o, | ||
unsigned char * | pd | ||
) |
Definition at line 4608 of file mmc.c.
References burn_write_opts::block_type, BURN_COPY, BURN_SCMS, BURN_WRITE_SAO, BURN_WRITE_TAO, burn_write_opts::control, isrc::country, burn_drive::current_feat21h_link_size, burn_drive::current_profile, isrc::has_isrc, burn_write_opts::has_mediacatalog, burn_track::isrc, libdax_messenger, LIBDAX_MSGS_PRIO_ZERO, LIBDAX_MSGS_SEV_DEBUG, libdax_msgs_submit(), burn_drive::mdata, burn_write_opts::mediacatalog, burn_session::mediacatalog, burn_track::mode, burn_write_opts::multi, isrc::owner, isrc::serial, burn_write_opts::simulate, spc_block_type(), burn_session::track, burn_write_opts::underrun_proof, scsi_mode_data::write_page_length, burn_write_opts::write_type, and isrc::year.
Referenced by spc_select_write_params().
void mmc_eject | ( | struct burn_drive * | ) |
void mmc_erase | ( | struct burn_drive * | d, |
int | fast | ||
) |
Definition at line 2729 of file mmc.c.
References burn_drive::cancel, burn_drive::casual_command, command::dir, burn_drive::do_no_immed, command::error, burn_drive::issue_command, Libburn_mmc_blank_noim_timeouT, Libburn_mmc_blank_timeouT, MMC_BLANK, mmc_function_spy(), mmc_start_if_needed(), NO_TRANSFER, command::opcode, command::page, command::retry, scsi_init_command(), scsi_notify_error(), command::sense, and command::timeout.
Referenced by mmc_setup_drive().
int mmc_format_unit | ( | struct burn_drive * | d, |
off_t | size, | ||
int | flag | ||
) |
Definition at line 3683 of file mmc.c.
References burn_drive::best_format_size, burn_drive::best_format_type, burn_drive::bg_format_status, BURN_ALLOC_MEM, BURN_FREE_MEM, buffer::bytes, burn_drive::current_feat23h_byte4, burn_drive::current_profile, burn_drive::current_profile_text, buffer::data, command::dir, burn_drive::do_no_immed, command::error, burn_drive::format_curr_max_size, burn_drive::format_descr_type, burn_drive::format_descriptors, burn_drive::global_index, burn_drive::issue_command, Libburn_mmc_blank_noim_timeouT, Libburn_mmc_blank_timeouT, libdax_messenger, LIBDAX_MSGS_PRIO_HIGH, LIBDAX_MSGS_PRIO_ZERO, LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_SEV_FAILURE, LIBDAX_MSGS_SEV_NOTE, LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_SEV_WARNING, libdax_msgs_submit(), MMC_FORMAT_UNIT, mmc_function_spy(), mmc_int_to_four_char(), mmc_read_format_capacities(), mmc_start_if_needed(), mmc_sync_cache(), burn_drive::needs_close_session, burn_drive::num_format_descr, command::opcode, command::page, command::retry, scsi_error_msg(), scsi_init_command(), buffer::sectors, command::sense, burn_format_descr::size, spc_decode_sense(), spc_test_unit_ready(), burn_format_descr::tdp, command::timeout, TO_DRIVE, and burn_format_descr::type.
Referenced by mmc_setup_drive().
int mmc_four_char_to_int | ( | unsigned char * | data | ) |
Definition at line 297 of file mmc.c.
Referenced by burn_disc_cd_toc_extensions(), burn_make_feature_text(), interpret_performance(), mmc_fake_toc(), mmc_fake_toc_entry(), mmc_get_bd_spare_info(), mmc_get_configuration_al(), mmc_get_nwa(), mmc_read_capacity(), mmc_read_disc_info_al(), mmc_read_format_capacities_al(), mmc_read_multi_session_c1(), mmc_read_toc_fmt0_al(), and scsi_show_command().
int mmc_function_spy | ( | struct burn_drive * | d, |
char * | text | ||
) |
int mmc_get_bd_spare_info | ( | struct burn_drive * | d, |
int * | alloc_blocks, | ||
int * | free_blocks, | ||
int | flag | ||
) |
Definition at line 5304 of file mmc.c.
References burn_drive::current_profile, mmc_four_char_to_int(), and mmc_read_disc_structure().
Referenced by burn_disc_get_bd_spare_info().
void mmc_get_configuration | ( | struct burn_drive * | d | ) |
Definition at line 3343 of file mmc.c.
References burn_drive::current_profile, mmc_function_spy(), mmc_get_configuration_al(), and mmc_start_if_needed().
Referenced by mmc_get_performance_al(), mmc_read_disc_info_al(), and spc_sense_caps().
void mmc_get_event | ( | struct burn_drive * | d | ) |
Definition at line 651 of file mmc.c.
References BURN_ALLOC_MEM_VOID, BURN_FREE_MEM, buffer::bytes, burn_drive::casual_command, buffer::data, command::dir, command::dxfer_len, command::error, FROM_DRIVE, burn_drive::issue_command, mmc_function_spy(), mmc_get_configuration_al(), MMC_GET_EVENT, command::opcode, command::page, command::retry, scsi_init_command(), buffer::sectors, and burn_drive::start_unit.
Referenced by burn_disc_open_track_dvd_minus_r(), and spc_prevent().
int mmc_get_leadin_text | ( | struct burn_drive * | d, |
unsigned char ** | text_packs, | ||
int * | num_packs, | ||
int | flag | ||
) |
Definition at line 2297 of file mmc.c.
References mmc_function_spy(), and mmc_get_leadin_text_al().
Referenced by burn_disc_get_leadin_text().
int mmc_get_media_product_id | ( | struct burn_drive * | d, |
char ** | product_id, | ||
char ** | media_code1, | ||
char ** | media_code2, | ||
char ** | book_type, | ||
int | flag | ||
) |
Definition at line 5121 of file mmc.c.
References burn_disc_read_atip(), burn_drive_get_start_end_lba(), burn_lba_to_msf(), burn_util_make_printable_word(), burn_drive::current_profile, mmc_read_disc_structure(), and mmc_set_product_id().
Referenced by burn_disc_get_media_id().
int mmc_get_nwa | ( | struct burn_drive * | d, |
int | trackno, | ||
int * | lba, | ||
int * | nwa | ||
) |
Definition at line 454 of file mmc.c.
References BURN_ALLOC_MEM, BURN_DISC_APPENDABLE, BURN_DISC_BLANK, burn_drive_set_media_capacity_remaining(), BURN_FREE_MEM, burn_drive::current_profile, buffer::data, burn_drive::global_index, libdax_messenger, LIBDAX_MSGS_PRIO_HIGH, LIBDAX_MSGS_SEV_WARNING, libdax_msgs_submit(), burn_drive::media_lba_limit, mmc_four_char_to_int(), mmc_function_spy(), mmc_read_track_info(), mmc_start_if_needed(), burn_drive::next_track_damaged, and burn_drive::status.
Referenced by mmc_setup_drive().
int mmc_get_performance | ( | struct burn_drive * | d, |
int | descr_type, | ||
int | flag | ||
) |
Definition at line 4560 of file mmc.c.
References mmc_function_spy(), mmc_get_performance_al(), and mmc_start_if_needed().
Referenced by mmc_get_write_performance(), and spc_try_get_performance().
int mmc_get_phys_format_info | ( | struct burn_drive * | d, |
int * | disk_category, | ||
char ** | book_name, | ||
int * | part_version, | ||
int * | num_layers, | ||
int * | num_blocks, | ||
int | flag | ||
) |
Definition at line 5334 of file mmc.c.
References burn_drive::current_profile, libdax_messenger, LIBDAX_MSGS_PRIO_ZERO, LIBDAX_MSGS_SEV_DEBUG, libdax_msgs_submit(), and mmc_read_disc_structure().
Referenced by burn_disc_get_phys_format_info().
int mmc_get_write_performance | ( | struct burn_drive * | d | ) |
Definition at line 4593 of file mmc.c.
References mmc_get_performance().
Referenced by spc_try_get_performance().
void mmc_load | ( | struct burn_drive * | ) |
char* mmc_obtain_profile_name | ( | int | profile_number | ) |
Definition at line 1868 of file mmc.c.
Referenced by burn_obtain_profile_name(), mmc_get_configuration_al(), and mmc_guess_profile().
void mmc_perform_opc | ( | struct burn_drive * | d | ) |
Definition at line 2781 of file mmc.c.
References burn_drive::casual_command, command::dir, burn_drive::issue_command, Libburn_mmc_opc_timeouT, mmc_function_spy(), MMC_SEND_OPC, mmc_start_if_needed(), NO_TRANSFER, command::opcode, command::page, command::retry, scsi_init_command(), and command::timeout.
Referenced by mmc_setup_drive().
void mmc_read | ( | struct burn_drive * | ) |
int mmc_read_10 | ( | struct burn_drive * | d, |
int | start, | ||
int | amount, | ||
struct buffer * | buf | ||
) |
Definition at line 4772 of file mmc.c.
References BE_CANCELLED, BUFFER_SIZE, buffer::bytes, burn_drive::casual_command, command::dir, command::dxfer_len, command::error, FROM_DRIVE, burn_drive::global_index, burn_drive::had_particular_error, burn_drive::issue_command, libdax_messenger, LIBDAX_MSGS_PRIO_HIGH, LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_SEV_SORRY, libdax_msgs_submit(), mmc_function_spy(), mmc_int_to_four_char(), MMC_READ_10, mmc_start_if_needed(), command::opcode, command::page, command::retry, scsi_error_msg(), scsi_init_command(), buffer::sectors, command::sense, and burn_drive::silent_on_scsi_error.
Referenced by mmc_setup_drive().
void mmc_read_atip | ( | struct burn_drive * | d | ) |
Definition at line 2320 of file mmc.c.
References BURN_ALLOC_MEM_VOID, BURN_FREE_MEM, burn_msf_to_lba(), buffer::bytes, buffer::data, command::dir, command::dxfer_len, burn_drive::end_lba, burn_drive::erasable, command::error, FROM_DRIVE, burn_drive::issue_command, scsi_mode_data::max_write_speed, burn_drive::mdata, scsi_mode_data::min_write_speed, mmc_function_spy(), MMC_GET_ATIP, mmc_start_if_needed(), command::opcode, command::page, command::retry, scsi_init_command(), buffer::sectors, and burn_drive::start_lba.
Referenced by mmc_setup_drive().
int mmc_read_buffer_capacity | ( | struct burn_drive * | d | ) |
Definition at line 3607 of file mmc.c.
References burn_progress::buffer_available, burn_progress::buffer_capacity, burn_progress::buffer_min_fill, burn_progress::buffered_bytes, BURN_ALLOC_MEM, BURN_FREE_MEM, buffer::bytes, buffer::data, command::dir, command::dxfer_len, command::error, FROM_DRIVE, burn_drive::issue_command, mmc_function_spy(), MMC_READ_BUFFER_CAPACITY, command::opcode, command::page, burn_drive::pbf_altered, burn_drive::pessimistic_buffer_free, burn_drive::progress, command::retry, scsi_init_command(), and buffer::sectors.
Referenced by mmc_setup_drive(), and mmc_wait_for_buffer_free().
int mmc_read_capacity | ( | struct burn_drive * | d | ) |
Definition at line 4902 of file mmc.c.
References BURN_ALLOC_MEM, BURN_FREE_MEM, buffer::bytes, burn_drive::current_profile, buffer::data, command::dir, command::dxfer_len, FROM_DRIVE, burn_drive::issue_command, burn_drive::media_read_capacity, mmc_four_char_to_int(), mmc_function_spy(), MMC_READ_CAPACITY, mmc_start_if_needed(), burn_drive::mr_capacity_trusted, command::page, command::retry, scsi_init_command(), and buffer::sectors.
Referenced by mmc_read_disc_info_al().
int mmc_read_cd | ( | struct burn_drive * | d, |
int | start, | ||
int | len, | ||
int | sec_type, | ||
int | main_ch, | ||
const struct burn_read_opts * | o, | ||
struct buffer * | buf, | ||
int | flag | ||
) |
Definition at line 2634 of file mmc.c.
References BURN_DRIVE_GRABBING, burn_lba_to_msf(), burn_drive::busy, burn_drive::casual_command, burn_read_opts::dap_bit, command::dir, FROM_DRIVE, burn_drive::issue_command, mmc_eval_read_error(), mmc_function_spy(), MMC_READ_CD, mmc_read_cd_msf(), mmc_start_if_needed(), command::opcode, command::page, burn_read_opts::report_recovered_errors, command::retry, scsi_init_command(), burn_read_opts::subcodes_audio, and burn_read_opts::subcodes_data.
Referenced by mmc_setup_drive().
void mmc_read_disc_info | ( | struct burn_drive * | d | ) |
Definition at line 2229 of file mmc.c.
References mmc_function_spy(), mmc_read_disc_info_al(), and mmc_start_if_needed().
Referenced by spc_sense_write_params().
void mmc_read_lead_in | ( | struct burn_drive * | d, |
struct buffer * | buf | ||
) |
Definition at line 2756 of file mmc.c.
References burn_drive::casual_command, command::dir, FROM_DRIVE, burn_drive::issue_command, mmc_function_spy(), MMC_READ_CD, mmc_start_if_needed(), command::opcode, command::page, command::retry, and scsi_init_command().
void mmc_read_toc | ( | struct burn_drive * | d | ) |
Definition at line 1764 of file mmc.c.
References mmc_function_spy(), mmc_read_toc_al(), and mmc_start_if_needed().
Referenced by mmc_read_disc_info_al(), and mmc_setup_drive().
int mmc_read_track_info | ( | struct burn_drive * | d, |
int | trackno, | ||
struct buffer * | buf, | ||
int | alloc_len | ||
) |
Definition at line 405 of file mmc.c.
References BUFFER_SIZE, burn_drive::casual_command, burn_drive::current_profile, buffer::data, command::dir, command::dxfer_len, command::error, FROM_DRIVE, burn_drive::issue_command, burn_drive::last_track_no, mmc_function_spy(), mmc_int_to_four_char(), mmc_start_if_needed(), MMC_TRACK_INFO, command::opcode, command::page, command::retry, and scsi_init_command().
Referenced by burn_disc_cd_toc_extensions(), mmc_fake_toc(), and mmc_get_nwa().
int mmc_send_cue_sheet | ( | struct burn_drive * | d, |
struct cue_sheet * | s | ||
) |
Definition at line 331 of file mmc.c.
References BURN_ALLOC_MEM_VOID, BURN_FREE_MEM, buffer::bytes, burn_drive::cancel, burn_drive::casual_command, cue_sheet::count, cue_sheet::data, buffer::data, command::dir, command::error, burn_drive::issue_command, mmc_function_spy(), MMC_SEND_CUE_SHEET, mmc_start_if_needed(), command::opcode, command::page, command::retry, scsi_init_command(), scsi_notify_error(), buffer::sectors, command::sense, and TO_DRIVE.
Referenced by mmc_setup_drive().
void mmc_set_speed | ( | struct burn_drive * | d, |
int | r, | ||
int | w | ||
) |
Definition at line 2905 of file mmc.c.
References burn_drive_get_best_speed(), burn_drive::casual_command, burn_drive::current_is_cd_profile, burn_drive::current_profile, burn_drive::current_profile_text, command::dir, burn_speed_descriptor::end_lba, burn_drive::issue_command, Libburn_bd_max_read_speeD, Libburn_bd_min_read_speeD, Libburn_cd_max_read_speeD, Libburn_cd_min_read_speeD, Libburn_dvd_max_read_speeD, Libburn_dvd_min_read_speeD, mmc_function_spy(), MMC_SET_SPEED, mmc_set_streaming(), mmc_start_if_needed(), NO_TRANSFER, burn_drive::nominal_write_speed, command::opcode, command::page, burn_speed_descriptor::read_speed, command::retry, scsi_init_command(), burn_drive::set_streaming_exact_bit, and burn_speed_descriptor::write_speed.
Referenced by mmc_setup_drive().
int mmc_setup_drive | ( | struct burn_drive * | d | ) |
Definition at line 5378 of file mmc.c.
References burn_drive::all_profiles, burn_drive::bg_format_status, burn_drive::close_disc, burn_drive::close_session, burn_drive::close_track_session, burn_drive::complete_sessions, burn_drive::current_feat21h_link_size, burn_drive::current_feat23h_byte4, burn_drive::current_feat23h_byte8, burn_drive::current_feat2fh_byte4, burn_drive::current_has_feat21h, burn_drive::current_is_cd_profile, burn_drive::current_is_guessed_profile, burn_drive::current_is_supported_profile, burn_drive::current_profile, burn_drive::current_profile_text, burn_drive::disc_app_code, burn_drive::disc_bar_code, burn_drive::disc_id, burn_drive::disc_info_valid, burn_drive::disc_type, burn_drive::do_simulate, burn_drive::end_lba, burn_drive::erasable, burn_drive::erase, burn_drive::format_unit, burn_drive::get_nwa, burn_drive::incomplete_sessions, burn_drive::last_lead_in, burn_drive::last_lead_out, burn_drive::last_track_no, Libburn_wait_for_buffer_freE, Libburn_wait_for_buffer_max_perC, Libburn_wait_for_buffer_max_useC, Libburn_wait_for_buffer_min_perC, Libburn_wait_for_buffer_min_useC, Libburn_wait_for_buffer_tio_seC, burn_drive::media_capacity_remaining, burn_drive::media_lba_limit, burn_drive::media_read_capacity, mmc_close(), mmc_close_disc(), mmc_close_session(), mmc_erase(), mmc_format_unit(), mmc_get_nwa(), mmc_perform_opc(), mmc_read_10(), mmc_read_atip(), mmc_read_buffer_capacity(), mmc_read_cd(), mmc_read_format_capacities(), mmc_read_multi_session_c1(), mmc_read_toc(), mmc_reserve_track(), mmc_send_cue_sheet(), mmc_set_speed(), mmc_sync_cache(), mmc_write(), burn_drive::mr_capacity_trusted, burn_drive::needs_close_session, burn_drive::needs_sync_cache, burn_drive::next_track_damaged, burn_drive::nominal_write_speed, burn_drive::num_format_descr, burn_drive::num_opc_tables, burn_drive::num_profiles, burn_drive::pbf_altered, burn_drive::perform_opc, burn_drive::pessimistic_buffer_free, burn_drive::pessimistic_writes, burn_drive::phys_if_name, burn_drive::phys_if_std, burn_drive::read_10, burn_drive::read_atip, burn_drive::read_buffer_capacity, burn_drive::read_cd, burn_drive::read_format_capacities, burn_drive::read_multi_session_c1, burn_drive::read_toc, burn_drive::reserve_track, burn_drive::send_cue_sheet, burn_drive::sent_default_page_05, burn_drive::set_speed, burn_drive::start_lba, burn_drive::state_of_last_session, burn_drive::sync_cache, burn_drive::wait_for_buffer_free, burn_drive::waited_tries, burn_drive::waited_usec, burn_drive::waited_writes, burn_drive::wfb_max_percent, burn_drive::wfb_max_usec, burn_drive::wfb_min_percent, burn_drive::wfb_min_usec, burn_drive::wfb_timeout_sec, and burn_drive::write.
Referenced by burn_scsi_setup_drive().
int mmc_start_if_needed | ( | struct burn_drive * | d, |
int | flag | ||
) |
Definition at line 319 of file mmc.c.
References burn_drive::is_stopped, mmc_start_for_bit0, and burn_drive::start_unit.
Referenced by mmc_erase(), mmc_format_unit(), mmc_get_configuration(), mmc_get_nwa(), mmc_get_performance(), mmc_perform_opc(), mmc_read_10(), mmc_read_atip(), mmc_read_capacity(), mmc_read_cd(), mmc_read_cd_msf(), mmc_read_disc_info(), mmc_read_disc_structure(), mmc_read_format_capacities(), mmc_read_lead_in(), mmc_read_multi_session_c1(), mmc_read_toc(), mmc_read_toc_fmt0(), mmc_read_track_info(), mmc_reserve_track(), mmc_send_cue_sheet(), mmc_set_speed(), mmc_set_streaming(), mmc_write(), mmc_write_12(), spc_probe_write_modes(), spc_select_error_params(), spc_select_write_params(), spc_sense_caps(), spc_sense_error_params(), and spc_sense_write_params().
void mmc_sync_cache | ( | struct burn_drive * | d | ) |
Definition at line 3539 of file mmc.c.
References BURN_ALLOC_MEM_VOID, BURN_FREE_MEM, burn_drive::cancel, command::dir, burn_drive::do_no_immed, command::error, burn_drive::global_index, burn_drive::issue_command, Libburn_mmc_sync_noim_timeouT, Libburn_mmc_sync_timeouT, libdax_messenger, LIBDAX_MSGS_PRIO_HIGH, LIBDAX_MSGS_PRIO_LOW, LIBDAX_MSGS_PRIO_ZERO, LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_SEV_FAILURE, libdax_msgs_submit(), mmc_function_spy(), MMC_SYNC_CACHE, burn_drive::needs_sync_cache, NO_TRANSFER, command::opcode, command::page, burn_drive::pessimistic_writes, command::retry, scsi_error_msg(), scsi_init_command(), command::sense, spc_human_readable_cmd(), spc_wait_unit_attention(), command::timeout, burn_drive::wait_for_buffer_free, burn_drive::waited_tries, burn_drive::waited_usec, and burn_drive::waited_writes.
Referenced by mmc_format_unit(), and mmc_setup_drive().
int mmc_write | ( | struct burn_drive * | d, |
int | start, | ||
struct buffer * | buf | ||
) |
Definition at line 929 of file mmc.c.
References BE_CANCELLED, burn_progress::buffer_capacity, burn_sg_log_scsi, BURN_WRITE_TAO, buffer::bytes, burn_drive::cancel, burn_drive::casual_command, burn_drive::current_profile, buffer::data, command::dir, burn_drive::do_stream_recording, command::error, burn_write_opts::feat21h_fail_sev, burn_drive::global_index, burn_drive::issue_command, Libburn_scsi_write_timeouT, libdax_messenger, LIBDAX_MSGS_PRIO_HIGH, LIBDAX_MSGS_SEV_FATAL, libdax_msgs_submit(), burn_drive::media_lba_limit, mmc_function_spy(), mmc_int_to_four_char(), mmc_start_if_needed(), mmc_wait_for_buffer_free(), MMC_WRITE_10, MMC_WRITE_12, O_BINARY, command::opcode, command::page, burn_drive::pbf_altered, burn_drive::pessimistic_buffer_free, burn_drive::progress, command::retry, command::retry_count, scsi_error_msg(), scsi_init_command(), buffer::sectors, command::sense, spc_decode_sense(), spc_human_readable_cmd(), burn_drive::stream_recording_start, command::timeout, TO_DRIVE, burn_drive::wait_for_buffer_free, burn_drive::was_feat21h_failure, burn_drive::write_opts, burn_drive::write_retry_count, and burn_write_opts::write_type.
Referenced by mmc_setup_drive().
void mmc_write_12 | ( | struct burn_drive * | d, |
int | start, | ||
struct buffer * | buf | ||
) |
Definition at line 878 of file mmc.c.
References buffer::bytes, burn_drive::casual_command, command::dir, burn_drive::issue_command, Libburn_scsi_write_timeouT, mmc_function_spy(), mmc_int_to_four_char(), mmc_start_if_needed(), MMC_WRITE_12, command::opcode, command::page, burn_drive::pbf_altered, burn_drive::pessimistic_buffer_free, command::retry, scsi_init_command(), buffer::sectors, command::timeout, and TO_DRIVE.