/drivers/staging/rts5139/ |
D | rts51x_card.h | 744 int monitor_card_cd(struct rts51x_chip *chip, u8 card); 746 void do_remaining_work(struct rts51x_chip *chip); 747 void do_reset_xd_card(struct rts51x_chip *chip); 748 void do_reset_sd_card(struct rts51x_chip *chip); 749 void do_reset_ms_card(struct rts51x_chip *chip); 750 void rts51x_init_cards(struct rts51x_chip *chip); 751 void rts51x_release_cards(struct rts51x_chip *chip); 752 int switch_ssc_clock(struct rts51x_chip *chip, int clk); 753 int switch_normal_clock(struct rts51x_chip *chip, int clk); 754 int card_rw(struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 sec_addr, [all …]
|
D | ms.h | 234 void mspro_polling_format_status(struct rts51x_chip *chip); 235 void mspro_format_sense(struct rts51x_chip *chip, unsigned int lun); 237 void mspro_stop_seq_mode(struct rts51x_chip *chip); 238 int reset_ms_card(struct rts51x_chip *chip); 239 int ms_rw(struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 start_sector, 241 int mspro_format(struct scsi_cmnd *srb, struct rts51x_chip *chip, 243 void ms_free_l2p_tbl(struct rts51x_chip *chip); 244 void ms_cleanup_work(struct rts51x_chip *chip); 245 int ms_power_off_card3v3(struct rts51x_chip *chip); 246 int release_ms_card(struct rts51x_chip *chip); [all …]
|
D | sd_cprm.h | 34 int ext_sd_execute_no_data(struct rts51x_chip *chip, unsigned int lun, 37 int ext_sd_execute_read_data(struct rts51x_chip *chip, unsigned int lun, 41 int ext_sd_execute_write_data(struct rts51x_chip *chip, unsigned int lun, 46 int sd_pass_thru_mode(struct scsi_cmnd *srb, struct rts51x_chip *chip); 47 int sd_execute_no_data(struct scsi_cmnd *srb, struct rts51x_chip *chip); 48 int sd_execute_read_data(struct scsi_cmnd *srb, struct rts51x_chip *chip); 49 int sd_execute_write_data(struct scsi_cmnd *srb, struct rts51x_chip *chip); 50 int sd_get_cmd_rsp(struct scsi_cmnd *srb, struct rts51x_chip *chip); 51 int sd_hw_rst(struct scsi_cmnd *srb, struct rts51x_chip *chip);
|
D | rts51x_transport.h | 53 int rts51x_ctrl_transfer(struct rts51x_chip *chip, unsigned int pipe, 56 int rts51x_clear_halt(struct rts51x_chip *chip, unsigned int pipe); 57 int rts51x_transfer_data(struct rts51x_chip *chip, unsigned int pipe, 60 int rts51x_transfer_data_partial(struct rts51x_chip *chip, unsigned int pipe, 69 int rts51x_reset_pipe(struct rts51x_chip *chip, char pipe); 72 int rts51x_start_epc_transfer(struct rts51x_chip *chip); 73 void rts51x_cancel_epc_transfer(struct rts51x_chip *chip); 76 int rts51x_get_epc_status(struct rts51x_chip *chip, u16 *status); 77 void rts51x_invoke_transport(struct scsi_cmnd *srb, struct rts51x_chip *chip);
|
D | sd.h | 282 int sd_select_card(struct rts51x_chip *chip, int select); 283 int reset_sd_card(struct rts51x_chip *chip); 284 int sd_switch_clock(struct rts51x_chip *chip); 285 void sd_stop_seq_mode(struct rts51x_chip *chip); 286 int sd_rw(struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 start_sector, 288 void sd_cleanup_work(struct rts51x_chip *chip); 289 int sd_power_off_card3v3(struct rts51x_chip *chip); 290 int release_sd_card(struct rts51x_chip *chip); 293 int sd_update_lock_status(struct rts51x_chip *chip); 297 extern int reset_sd(struct rts51x_chip *chip); [all …]
|
D | rts51x_sys.h | 36 extern int rts51x_check_start_time(struct rts51x_chip *chip); 37 extern void rts51x_set_start_time(struct rts51x_chip *chip); 38 extern void rts51x_clear_start_time(struct rts51x_chip *chip); 42 static inline void rts51x_reset_detected_cards(struct rts51x_chip *chip) in rts51x_reset_detected_cards() 47 static inline void clear_first_install_mark(struct rts51x_chip *chip) in clear_first_install_mark() 51 void rts51x_enter_ss(struct rts51x_chip *chip); 52 void rts51x_exit_ss(struct rts51x_chip *chip);
|
D | rts51x_chip.h | 419 struct rts51x_chip; 421 typedef int (*card_rw_func) (struct scsi_cmnd *srb, struct rts51x_chip *chip, 715 struct rts51x_chip { struct 829 int rts51x_reset_chip(struct rts51x_chip *chip); 830 int rts51x_init_chip(struct rts51x_chip *chip); 831 int rts51x_release_chip(struct rts51x_chip *chip); 832 void rts51x_polling_func(struct rts51x_chip *chip); 834 static inline void rts51x_init_cmd(struct rts51x_chip *chip) in rts51x_init_cmd() 844 void rts51x_add_cmd(struct rts51x_chip *chip, 846 int rts51x_send_cmd(struct rts51x_chip *chip, u8 flag, int timeout); [all …]
|
D | ms_mg.h | 33 int mg_set_leaf_id(struct scsi_cmnd *srb, struct rts51x_chip *chip); 34 int mg_get_local_EKB(struct scsi_cmnd *srb, struct rts51x_chip *chip); 35 int mg_chg(struct scsi_cmnd *srb, struct rts51x_chip *chip); 36 int mg_get_rsp_chg(struct scsi_cmnd *srb, struct rts51x_chip *chip); 37 int mg_rsp(struct scsi_cmnd *srb, struct rts51x_chip *chip); 38 int mg_get_ICV(struct scsi_cmnd *srb, struct rts51x_chip *chip); 39 int mg_set_ICV(struct scsi_cmnd *srb, struct rts51x_chip *chip);
|
D | rts51x.c | 117 void rts51x_try_to_enter_ss(struct rts51x_chip *chip) in rts51x_try_to_enter_ss() 123 void rts51x_try_to_exit_ss(struct rts51x_chip *chip) in rts51x_try_to_exit_ss() 131 struct rts51x_chip *chip = usb_get_intfdata(iface); in rts51x_suspend() 159 struct rts51x_chip *chip = usb_get_intfdata(iface); in rts51x_resume() 187 struct rts51x_chip *chip = usb_get_intfdata(iface); in rts51x_reset_resume() 210 void rts51x_try_to_enter_ss(struct rts51x_chip *chip) in rts51x_try_to_enter_ss() 214 void rts51x_try_to_exit_ss(struct rts51x_chip *chip) in rts51x_try_to_exit_ss() 227 struct rts51x_chip *chip = usb_get_intfdata(iface); in rts51x_pre_reset() 238 struct rts51x_chip *chip = usb_get_intfdata(iface); in rts51x_post_reset() 254 struct rts51x_chip *chip = (struct rts51x_chip *)__chip; in rts51x_control_thread() [all …]
|
D | rts51x_chip.c | 58 int rts51x_reset_chip(struct rts51x_chip *chip) in rts51x_reset_chip() 152 int rts51x_init_chip(struct rts51x_chip *chip) in rts51x_init_chip() 232 int rts51x_release_chip(struct rts51x_chip *chip) in rts51x_release_chip() 241 static inline void rts51x_blink_led(struct rts51x_chip *chip) in rts51x_blink_led() 256 int rts51x_check_start_time(struct rts51x_chip *chip) in rts51x_check_start_time() 261 void rts51x_set_start_time(struct rts51x_chip *chip) in rts51x_set_start_time() 265 void rts51x_clear_start_time(struct rts51x_chip *chip) in rts51x_clear_start_time() 269 static void rts51x_auto_delink_cmd(struct rts51x_chip *chip) in rts51x_auto_delink_cmd() 275 static void rts51x_auto_delink_force_cmd(struct rts51x_chip *chip) in rts51x_auto_delink_force_cmd() 284 static void rts51x_auto_delink_polling_cycle(struct rts51x_chip *chip) in rts51x_auto_delink_polling_cycle() [all …]
|
D | xd.h | 184 int reset_xd_card(struct rts51x_chip *chip); 185 int xd_delay_write(struct rts51x_chip *chip); 186 int xd_rw(struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 start_sector, 188 void xd_free_l2p_tbl(struct rts51x_chip *chip); 189 void xd_cleanup_work(struct rts51x_chip *chip); 190 int xd_power_off_card3v3(struct rts51x_chip *chip); 191 int release_xd_card(struct rts51x_chip *chip);
|
D | rts51x_card.c | 45 void do_remaining_work(struct rts51x_chip *chip) in do_remaining_work() 97 void do_reset_xd_card(struct rts51x_chip *chip) in do_reset_xd_card() 124 void do_reset_sd_card(struct rts51x_chip *chip) in do_reset_sd_card() 151 void do_reset_ms_card(struct rts51x_chip *chip) in do_reset_ms_card() 178 void card_cd_debounce(struct rts51x_chip *chip, u8 *need_reset, in card_cd_debounce() 288 void rts51x_init_cards(struct rts51x_chip *chip) in rts51x_init_cards() 362 void rts51x_release_cards(struct rts51x_chip *chip) in rts51x_release_cards() 388 int switch_ssc_clock(struct rts51x_chip *chip, int clk) in switch_ssc_clock() 525 int switch_normal_clock(struct rts51x_chip *chip, int clk) in switch_normal_clock() 665 int card_rw(struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 sec_addr, in card_rw() [all …]
|
D | rts51x_fop.c | 46 static int rts51x_sd_direct_cmnd(struct rts51x_chip *chip, in rts51x_sd_direct_cmnd() 141 static int rts51x_sd_get_rsp(struct rts51x_chip *chip, struct sd_rsp *rsp) in rts51x_sd_get_rsp() 172 struct rts51x_chip *chip; in rts51x_open() 187 chip = (struct rts51x_chip *)usb_get_intfdata(interface); in rts51x_open() 212 struct rts51x_chip *chip; in rts51x_release() 214 chip = (struct rts51x_chip *)filp->private_data; in rts51x_release() 244 struct rts51x_chip *chip; in rts51x_ioctl() 249 chip = (struct rts51x_chip *)filp->private_data; in rts51x_ioctl()
|
D | rts51x.h | 81 struct rts51x_chip; 176 static inline struct Scsi_Host *rts51x_to_host(struct rts51x_chip *chip) in rts51x_to_host() 181 static inline struct rts51x_chip *host_to_rts51x(struct Scsi_Host *host) in host_to_rts51x() 183 return (struct rts51x_chip *)(host->hostdata); in host_to_rts51x() 191 void rts51x_try_to_enter_ss(struct rts51x_chip *chip); 192 void rts51x_try_to_exit_ss(struct rts51x_chip *chip);
|
D | sd.c | 38 static inline void sd_set_reset_fail(struct rts51x_chip *chip, u8 err_code) in sd_set_reset_fail() 45 static inline void sd_clear_reset_fail(struct rts51x_chip *chip) in sd_clear_reset_fail() 52 static inline int sd_check_reset_fail(struct rts51x_chip *chip, u8 err_code) in sd_check_reset_fail() 59 static inline void sd_set_err_code(struct rts51x_chip *chip, u8 err_code) in sd_set_err_code() 66 static inline void sd_clr_err_code(struct rts51x_chip *chip) in sd_clr_err_code() 73 static inline int sd_check_err_code(struct rts51x_chip *chip, u8 err_code) in sd_check_err_code() 80 static int sd_parse_err_code(struct rts51x_chip *chip) in sd_parse_err_code() 85 int sd_check_data0_status(struct rts51x_chip *chip) in sd_check_data0_status() 101 static int sd_send_cmd_get_rsp(struct rts51x_chip *chip, u8 cmd_idx, 281 static inline void sd_print_debug_reg(struct rts51x_chip *chip) [all …]
|
D | rts51x_scsi.c | 337 void set_sense_type(struct rts51x_chip *chip, unsigned int lun, int sense_type) in set_sense_type() 412 void set_sense_data(struct rts51x_chip *chip, unsigned int lun, u8 err_code, in set_sense_data() 435 static int test_unit_ready(struct scsi_cmnd *srb, struct rts51x_chip *chip) in test_unit_ready() 478 static int inquiry(struct scsi_cmnd *srb, struct rts51x_chip *chip) in inquiry() 543 static int start_stop_unit(struct scsi_cmnd *srb, struct rts51x_chip *chip) in start_stop_unit() 578 static int allow_medium_removal(struct scsi_cmnd *srb, struct rts51x_chip *chip) in allow_medium_removal() 595 static void ms_mode_sense(struct rts51x_chip *chip, u8 cmd, in ms_mode_sense() 684 static int mode_sense(struct scsi_cmnd *srb, struct rts51x_chip *chip) in mode_sense() 768 static int request_sense(struct scsi_cmnd *srb, struct rts51x_chip *chip) in request_sense() 798 static int read_write(struct scsi_cmnd *srb, struct rts51x_chip *chip) in read_write() [all …]
|
D | rts51x_scsi.h | 102 struct rts51x_chip; 137 void set_sense_type(struct rts51x_chip *chip, unsigned int lun, int sense_type); 138 void set_sense_data(struct rts51x_chip *chip, unsigned int lun, u8 err_code, 142 int rts51x_scsi_handler(struct scsi_cmnd *srb, struct rts51x_chip *chip);
|
D | ms.c | 40 static inline void ms_set_err_code(struct rts51x_chip *chip, u8 err_code) in ms_set_err_code() 47 static inline int ms_check_err_code(struct rts51x_chip *chip, u8 err_code) in ms_check_err_code() 54 static int ms_parse_err_code(struct rts51x_chip *chip) in ms_parse_err_code() 59 static int ms_transfer_tpc(struct rts51x_chip *chip, u8 trans_mode, u8 tpc, in ms_transfer_tpc() 118 int ms_transfer_data(struct rts51x_chip *chip, u8 trans_mode, u8 tpc, in ms_transfer_data() 197 int ms_write_bytes(struct rts51x_chip *chip, u8 tpc, u8 cnt, u8 cfg, u8 *data, in ms_write_bytes() 269 int ms_read_bytes(struct rts51x_chip *chip, u8 tpc, u8 cnt, u8 cfg, u8 *data, in ms_read_bytes() 345 int ms_set_rw_reg_addr(struct rts51x_chip *chip, in ms_set_rw_reg_addr() 368 static int ms_send_cmd(struct rts51x_chip *chip, u8 cmd, u8 cfg) in ms_send_cmd() 378 static int ms_set_cmd(struct rts51x_chip *chip, in ms_set_cmd() [all …]
|
D | xd.c | 39 static int xd_build_l2p_tbl(struct rts51x_chip *chip, int zone_no); 40 static int xd_init_page(struct rts51x_chip *chip, u32 phy_blk, u16 logoff, 43 static inline void xd_set_err_code(struct rts51x_chip *chip, u8 err_code) in xd_set_err_code() 50 static inline int xd_check_err_code(struct rts51x_chip *chip, u8 err_code) in xd_check_err_code() 57 static int xd_set_init_para(struct rts51x_chip *chip) in xd_set_init_para() 74 static int xd_switch_clock(struct rts51x_chip *chip) in xd_switch_clock() 90 static int xd_read_id(struct rts51x_chip *chip, u8 id_cmd, u8 *id_buf, in xd_read_id() 128 static void xd_assign_phy_addr(struct rts51x_chip *chip, u32 addr, u8 mode) in xd_assign_phy_addr() 163 static int xd_read_redundant(struct rts51x_chip *chip, u32 page_addr, u8 *buf, in xd_read_redundant() 207 static int xd_read_data_from_ppb(struct rts51x_chip *chip, int offset, u8 *buf, in xd_read_data_from_ppb() [all …]
|
D | ms_mg.c | 41 int mg_check_int_error(struct rts51x_chip *chip) in mg_check_int_error() 52 static int mg_send_ex_cmd(struct rts51x_chip *chip, u8 cmd, u8 entry_num) in mg_send_ex_cmd() 81 int mg_set_tpc_para_sub(struct rts51x_chip *chip, int type, u8 mg_entry_num) in mg_set_tpc_para_sub() 122 int mg_set_leaf_id(struct scsi_cmnd *srb, struct rts51x_chip *chip) in mg_set_leaf_id() 173 int mg_get_local_EKB(struct scsi_cmnd *srb, struct rts51x_chip *chip) in mg_get_local_EKB() 232 int mg_chg(struct scsi_cmnd *srb, struct rts51x_chip *chip) in mg_chg() 323 int mg_get_rsp_chg(struct scsi_cmnd *srb, struct rts51x_chip *chip) in mg_get_rsp_chg() 392 int mg_rsp(struct scsi_cmnd *srb, struct rts51x_chip *chip) in mg_rsp() 450 int mg_get_ICV(struct scsi_cmnd *srb, struct rts51x_chip *chip) in mg_get_ICV() 514 int mg_set_ICV(struct scsi_cmnd *srb, struct rts51x_chip *chip) in mg_set_ICV()
|
D | rts51x_transport.c | 178 static int rts51x_msg_common(struct rts51x_chip *chip, struct urb *urb, in rts51x_msg_common() 258 static int interpret_urb_result(struct rts51x_chip *chip, unsigned int pipe, in interpret_urb_result() 335 int rts51x_ctrl_transfer(struct rts51x_chip *chip, unsigned int pipe, in rts51x_ctrl_transfer() 362 int rts51x_clear_halt(struct rts51x_chip *chip, unsigned int pipe) in rts51x_clear_halt() 381 int rts51x_reset_pipe(struct rts51x_chip *chip, char pipe) in rts51x_reset_pipe() 695 static int rts51x_bulk_transfer_sglist(struct rts51x_chip *chip, in rts51x_bulk_transfer_sglist() 744 static int rts51x_bulk_transfer_sglist_partial(struct rts51x_chip *chip, 792 int rts51x_bulk_transfer_buf(struct rts51x_chip *chip, unsigned int pipe, in rts51x_bulk_transfer_buf() 810 int rts51x_transfer_data(struct rts51x_chip *chip, unsigned int pipe, in rts51x_transfer_data() 833 int rts51x_transfer_data_partial(struct rts51x_chip *chip, unsigned int pipe, in rts51x_transfer_data_partial() [all …]
|
D | sd_cprm.c | 80 int soft_reset_sd_card(struct rts51x_chip *chip) in soft_reset_sd_card() 85 int ext_sd_send_cmd_get_rsp(struct rts51x_chip *chip, u8 cmd_idx, 236 int ext_sd_get_rsp(struct rts51x_chip *chip, int len, u8 *rsp, u8 rsp_type) 281 int ext_sd_execute_no_data(struct rts51x_chip *chip, unsigned int lun, 373 int ext_sd_execute_read_data(struct rts51x_chip *chip, unsigned int lun, 592 int ext_sd_execute_write_data(struct rts51x_chip *chip, unsigned int lun, 929 int sd_pass_thru_mode(struct scsi_cmnd *srb, struct rts51x_chip *chip) 1001 int sd_execute_no_data(struct scsi_cmnd *srb, struct rts51x_chip *chip) 1033 int sd_execute_read_data(struct scsi_cmnd *srb, struct rts51x_chip *chip) 1071 int sd_execute_write_data(struct scsi_cmnd *srb, struct rts51x_chip *chip) [all …]
|
D | Makefile | 36 $(TARGET_MODULE)-objs := $(common-obj) rts51x.o rts51x_chip.o rts51x_card.o \
|
/drivers/usb/storage/ |
D | realtek_cr.c | 99 struct rts51x_chip { struct 453 struct rts51x_chip *chip = (struct rts51x_chip *)(us->extra); in rts51x_check_status() 564 struct rts51x_chip *chip = (struct rts51x_chip *)(us->extra); in config_autodelink_after_power_on() 634 struct rts51x_chip *chip = (struct rts51x_chip *)(us->extra); in config_autodelink_before_power_down() 708 struct rts51x_chip *chip = (struct rts51x_chip *)(us->extra); in fw5895_init() 734 struct rts51x_chip *chip = (struct rts51x_chip *)(us->extra); in fw5895_set_mmc_wp() 763 static void rts51x_modi_suspend_timer(struct rts51x_chip *chip) in rts51x_modi_suspend_timer() 775 struct rts51x_chip *chip = (struct rts51x_chip *)data; in rts51x_suspend_timer_fn() 827 struct rts51x_chip *chip = (struct rts51x_chip *)(us->extra); in rts51x_invoke_transport() 913 struct rts51x_chip *chip; in realtek_cr_autosuspend_setup() [all …]
|