/Linux-v5.4/drivers/staging/rts5208/ |
D | ms.h | 188 void mspro_polling_format_status(struct rtsx_chip *chip); 190 void mspro_stop_seq_mode(struct rtsx_chip *chip); 191 int reset_ms_card(struct rtsx_chip *chip); 192 int ms_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, 194 int mspro_format(struct scsi_cmnd *srb, struct rtsx_chip *chip, 196 void ms_free_l2p_tbl(struct rtsx_chip *chip); 197 void ms_cleanup_work(struct rtsx_chip *chip); 198 int ms_power_off_card3v3(struct rtsx_chip *chip); 199 int release_ms_card(struct rtsx_chip *chip); 201 int ms_delay_write(struct rtsx_chip *chip); [all …]
|
D | spi.h | 40 int spi_erase_eeprom_chip(struct rtsx_chip *chip); 41 int spi_erase_eeprom_byte(struct rtsx_chip *chip, u16 addr); 42 int spi_read_eeprom(struct rtsx_chip *chip, u16 addr, u8 *val); 43 int spi_write_eeprom(struct rtsx_chip *chip, u16 addr, u8 val); 44 int spi_get_status(struct scsi_cmnd *srb, struct rtsx_chip *chip); 45 int spi_set_parameter(struct scsi_cmnd *srb, struct rtsx_chip *chip); 46 int spi_read_flash_id(struct scsi_cmnd *srb, struct rtsx_chip *chip); 47 int spi_read_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip); 48 int spi_write_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip); 49 int spi_erase_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip); [all …]
|
D | sd.h | 265 int sd_select_card(struct rtsx_chip *chip, int select); 266 int sd_pull_ctl_enable(struct rtsx_chip *chip); 267 int reset_sd_card(struct rtsx_chip *chip); 268 int sd_switch_clock(struct rtsx_chip *chip); 269 void sd_stop_seq_mode(struct rtsx_chip *chip); 270 int sd_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, 272 void sd_cleanup_work(struct rtsx_chip *chip); 273 int sd_power_off_card3v3(struct rtsx_chip *chip); 274 int release_sd_card(struct rtsx_chip *chip); 276 int ext_sd_send_cmd_get_rsp(struct rtsx_chip *chip, u8 cmd_idx, [all …]
|
D | rtsx_card.h | 987 void do_remaining_work(struct rtsx_chip *chip); 988 void try_to_switch_sdio_ctrl(struct rtsx_chip *chip); 989 void do_reset_sd_card(struct rtsx_chip *chip); 990 void do_reset_xd_card(struct rtsx_chip *chip); 991 void do_reset_ms_card(struct rtsx_chip *chip); 992 void rtsx_power_off_card(struct rtsx_chip *chip); 993 void rtsx_release_cards(struct rtsx_chip *chip); 994 void rtsx_reset_cards(struct rtsx_chip *chip); 995 void rtsx_reinit_cards(struct rtsx_chip *chip, int reset_chip); 996 void rtsx_init_cards(struct rtsx_chip *chip); [all …]
|
D | rtsx_chip.h | 338 struct rtsx_chip; 340 typedef int (*card_rw_func)(struct scsi_cmnd *srb, struct rtsx_chip *chip, 693 struct rtsx_chip { struct 922 static inline struct device *rtsx_dev(const struct rtsx_chip *chip) in rtsx_dev() argument 949 int rtsx_force_power_on(struct rtsx_chip *chip, u8 ctl); 950 int rtsx_force_power_down(struct rtsx_chip *chip, u8 ctl); 952 void rtsx_enable_card_int(struct rtsx_chip *chip); 953 void rtsx_enable_bus_int(struct rtsx_chip *chip); 954 void rtsx_disable_bus_int(struct rtsx_chip *chip); 955 int rtsx_reset_chip(struct rtsx_chip *chip); [all …]
|
D | rtsx_transport.h | 30 void rtsx_invoke_transport(struct scsi_cmnd *srb, struct rtsx_chip *chip); 34 void rtsx_add_cmd(struct rtsx_chip *chip, u8 cmd_type, u16 reg_addr, u8 mask, 36 void rtsx_send_cmd_no_wait(struct rtsx_chip *chip); 37 int rtsx_send_cmd(struct rtsx_chip *chip, u8 card, int timeout); 39 static inline u8 *rtsx_get_cmd_data(struct rtsx_chip *chip) in rtsx_get_cmd_data() 48 int rtsx_transfer_data(struct rtsx_chip *chip, u8 card, void *buf, size_t len, 52 int rtsx_transfer_data_partial(struct rtsx_chip *chip, u8 card, void *buf,
|
D | xd.h | 165 int reset_xd_card(struct rtsx_chip *chip); 167 int xd_delay_write(struct rtsx_chip *chip); 169 int xd_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, 171 void xd_free_l2p_tbl(struct rtsx_chip *chip); 172 void xd_cleanup_work(struct rtsx_chip *chip); 173 int xd_power_off_card3v3(struct rtsx_chip *chip); 174 int release_xd_card(struct rtsx_chip *chip);
|
D | rtsx_chip.c | 23 static void rtsx_calibration(struct rtsx_chip *chip) in rtsx_calibration() 35 void rtsx_enable_card_int(struct rtsx_chip *chip) in rtsx_enable_card_int() 54 void rtsx_enable_bus_int(struct rtsx_chip *chip) in rtsx_enable_bus_int() 93 void rtsx_disable_bus_int(struct rtsx_chip *chip) in rtsx_disable_bus_int() 98 static int rtsx_pre_handle_sdio_old(struct rtsx_chip *chip) in rtsx_pre_handle_sdio_old() 142 static int rtsx_pre_handle_sdio_new(struct rtsx_chip *chip) in rtsx_pre_handle_sdio_new() 248 static int rtsx_reset_aspm(struct rtsx_chip *chip) in rtsx_reset_aspm() 287 static int rtsx_enable_pcie_intr(struct rtsx_chip *chip) in rtsx_enable_pcie_intr() 334 int rtsx_reset_chip(struct rtsx_chip *chip) in rtsx_reset_chip() 635 static int rts5208_init(struct rtsx_chip *chip) in rts5208_init() [all …]
|
D | rtsx_card.c | 23 void do_remaining_work(struct rtsx_chip *chip) in do_remaining_work() 81 void try_to_switch_sdio_ctrl(struct rtsx_chip *chip) in try_to_switch_sdio_ctrl() 99 void dynamic_configure_sdio_aspm(struct rtsx_chip *chip) in dynamic_configure_sdio_aspm() 138 void do_reset_sd_card(struct rtsx_chip *chip) in do_reset_sd_card() 192 void do_reset_xd_card(struct rtsx_chip *chip) in do_reset_xd_card() 240 void do_reset_ms_card(struct rtsx_chip *chip) in do_reset_ms_card() 288 static void release_sdio(struct rtsx_chip *chip) in release_sdio() 308 void rtsx_power_off_card(struct rtsx_chip *chip) in rtsx_power_off_card() 326 void rtsx_release_cards(struct rtsx_chip *chip) in rtsx_release_cards() 349 void rtsx_reset_cards(struct rtsx_chip *chip) in rtsx_reset_cards() [all …]
|
D | rtsx_scsi.h | 124 void scsi_show_command(struct rtsx_chip *chip); 125 void set_sense_type(struct rtsx_chip *chip, unsigned int lun, int sense_type); 126 void set_sense_data(struct rtsx_chip *chip, unsigned int lun, u8 err_code, 129 int rtsx_scsi_handler(struct scsi_cmnd *srb, struct rtsx_chip *chip);
|
D | spi.c | 19 static inline void spi_set_err_code(struct rtsx_chip *chip, u8 err_code) in spi_set_err_code() 26 static int spi_init(struct rtsx_chip *chip) in spi_init() 43 static int spi_set_init_para(struct rtsx_chip *chip) in spi_set_init_para() 83 static int sf_polling_status(struct rtsx_chip *chip, int msec) in sf_polling_status() 105 static int sf_enable_write(struct rtsx_chip *chip, u8 ins) in sf_enable_write() 133 static int sf_disable_write(struct rtsx_chip *chip, u8 ins) in sf_disable_write() 161 static void sf_program(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr, in sf_program() 185 static int sf_erase(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr) in sf_erase() 219 static int spi_init_eeprom(struct rtsx_chip *chip) in spi_init_eeprom() 267 static int spi_eeprom_program_enable(struct rtsx_chip *chip) in spi_eeprom_program_enable() [all …]
|
D | rtsx_scsi.c | 22 void scsi_show_command(struct rtsx_chip *chip) in scsi_show_command() 313 void set_sense_type(struct rtsx_chip *chip, unsigned int lun, int sense_type) in set_sense_type() 388 void set_sense_data(struct rtsx_chip *chip, unsigned int lun, u8 err_code, in set_sense_data() 411 static int test_unit_ready(struct scsi_cmnd *srb, struct rtsx_chip *chip) in test_unit_ready() 463 static int inquiry(struct scsi_cmnd *srb, struct rtsx_chip *chip) in inquiry() 548 static int start_stop_unit(struct scsi_cmnd *srb, struct rtsx_chip *chip) in start_stop_unit() 581 static int allow_medium_removal(struct scsi_cmnd *srb, struct rtsx_chip *chip) in allow_medium_removal() 598 static int request_sense(struct scsi_cmnd *srb, struct rtsx_chip *chip) in request_sense() 643 static void ms_mode_sense(struct rtsx_chip *chip, u8 cmd, in ms_mode_sense() 736 static int mode_sense(struct scsi_cmnd *srb, struct rtsx_chip *chip) in mode_sense() [all …]
|
D | ms.c | 20 static inline void ms_set_err_code(struct rtsx_chip *chip, u8 err_code) in ms_set_err_code() 27 static inline int ms_check_err_code(struct rtsx_chip *chip, u8 err_code) in ms_check_err_code() 34 static int ms_parse_err_code(struct rtsx_chip *chip) in ms_parse_err_code() 39 static int ms_transfer_tpc(struct rtsx_chip *chip, u8 trans_mode, in ms_transfer_tpc() 95 static int ms_transfer_data(struct rtsx_chip *chip, u8 trans_mode, in ms_transfer_data() 162 static int ms_write_bytes(struct rtsx_chip *chip, in ms_write_bytes() 226 static int ms_read_bytes(struct rtsx_chip *chip, in ms_read_bytes() 302 static int ms_set_rw_reg_addr(struct rtsx_chip *chip, u8 read_start, in ms_set_rw_reg_addr() 324 static int ms_send_cmd(struct rtsx_chip *chip, u8 cmd, u8 cfg) in ms_send_cmd() 334 static int ms_set_init_para(struct rtsx_chip *chip) in ms_set_init_para() [all …]
|
D | xd.c | 23 static int xd_build_l2p_tbl(struct rtsx_chip *chip, int zone_no); 24 static int xd_init_page(struct rtsx_chip *chip, u32 phy_blk, u16 logoff, 27 static inline void xd_set_err_code(struct rtsx_chip *chip, u8 err_code) in xd_set_err_code() 34 static inline int xd_check_err_code(struct rtsx_chip *chip, u8 err_code) in xd_check_err_code() 41 static int xd_set_init_para(struct rtsx_chip *chip) in xd_set_init_para() 58 static int xd_switch_clock(struct rtsx_chip *chip) in xd_switch_clock() 74 static int xd_read_id(struct rtsx_chip *chip, u8 id_cmd, u8 *id_buf, u8 buf_len) in xd_read_id() 104 static void xd_assign_phy_addr(struct rtsx_chip *chip, u32 addr, u8 mode) in xd_assign_phy_addr() 138 static int xd_read_redundant(struct rtsx_chip *chip, u32 page_addr, in xd_read_redundant() 175 static int xd_read_data_from_ppb(struct rtsx_chip *chip, int offset, in xd_read_data_from_ppb() [all …]
|
D | sd.c | 46 static inline void sd_set_err_code(struct rtsx_chip *chip, u8 err_code) in sd_set_err_code() 53 static inline void sd_clr_err_code(struct rtsx_chip *chip) in sd_clr_err_code() 60 static inline int sd_check_err_code(struct rtsx_chip *chip, u8 err_code) in sd_check_err_code() 67 static void sd_init_reg_addr(struct rtsx_chip *chip) in sd_init_reg_addr() 95 static int sd_check_data0_status(struct rtsx_chip *chip) in sd_check_data0_status() 112 static int sd_send_cmd_get_rsp(struct rtsx_chip *chip, u8 cmd_idx, 260 static int sd_read_data(struct rtsx_chip *chip, 327 static int sd_write_data(struct rtsx_chip *chip, u8 trans_mode, 393 static int sd_check_csd(struct rtsx_chip *chip, char check_wp) 497 static int sd_set_sample_push_timing(struct rtsx_chip *chip) [all …]
|
D | rtsx_sys.h | 19 static inline void rtsx_exclusive_enter_ss(struct rtsx_chip *chip) in rtsx_exclusive_enter_ss() 28 static inline void rtsx_reset_detected_cards(struct rtsx_chip *chip, int flag) in rtsx_reset_detected_cards()
|
D | rtsx.c | 125 struct rtsx_chip *chip = dev->chip; in queuecommand_lck() 161 struct rtsx_chip *chip = dev->chip; in DEF_SCSI_QCMD() 241 struct rtsx_chip *chip = dev->chip; in rtsx_acquire_irq() 268 struct rtsx_chip *chip; in rtsx_suspend() 302 struct rtsx_chip *chip; in rtsx_resume() 348 struct rtsx_chip *chip; in rtsx_shutdown() 371 struct rtsx_chip *chip = dev->chip; in rtsx_control_thread() 479 struct rtsx_chip *chip = dev->chip; in rtsx_polling_thread() 527 struct rtsx_chip *chip; in rtsx_interrupt() 625 struct rtsx_chip *chip = dev->chip; in quiesce_and_remove_host() [all …]
|
D | rtsx_transport.c | 151 void rtsx_invoke_transport(struct scsi_cmnd *srb, struct rtsx_chip *chip) in rtsx_invoke_transport() 195 void rtsx_add_cmd(struct rtsx_chip *chip, in rtsx_add_cmd() 213 void rtsx_send_cmd_no_wait(struct rtsx_chip *chip) in rtsx_send_cmd_no_wait() 225 int rtsx_send_cmd(struct rtsx_chip *chip, u8 card, int timeout) in rtsx_send_cmd() 288 struct rtsx_chip *chip, u32 addr, u32 len, u8 option) in rtsx_add_sg_tbl() 313 static int rtsx_transfer_sglist_adma_partial(struct rtsx_chip *chip, u8 card, in rtsx_transfer_sglist_adma_partial() 479 static int rtsx_transfer_sglist_adma(struct rtsx_chip *chip, u8 card, in rtsx_transfer_sglist_adma() 626 static int rtsx_transfer_buf(struct rtsx_chip *chip, u8 card, void *buf, in rtsx_transfer_buf() 710 int rtsx_transfer_data_partial(struct rtsx_chip *chip, u8 card, in rtsx_transfer_data_partial() 742 int rtsx_transfer_data(struct rtsx_chip *chip, u8 card, void *buf, size_t len, in rtsx_transfer_data()
|
D | rtsx.h | 79 struct rtsx_chip; 116 struct rtsx_chip *chip;
|
D | Makefile | 6 rts5208-y := rtsx.o rtsx_chip.o rtsx_transport.o rtsx_scsi.o \
|