| /linux-4.4.14/drivers/staging/rts5208/ | 
| D | spi.h | 52 int spi_erase_eeprom_chip(struct rtsx_chip *chip); 53 int spi_erase_eeprom_byte(struct rtsx_chip *chip, u16 addr); 54 int spi_read_eeprom(struct rtsx_chip *chip, u16 addr, u8 *val); 55 int spi_write_eeprom(struct rtsx_chip *chip, u16 addr, u8 val); 56 int spi_get_status(struct scsi_cmnd *srb, struct rtsx_chip *chip); 57 int spi_set_parameter(struct scsi_cmnd *srb, struct rtsx_chip *chip); 58 int spi_read_flash_id(struct scsi_cmnd *srb, struct rtsx_chip *chip); 59 int spi_read_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip); 60 int spi_write_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip); 61 int spi_erase_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip); [all …] 
 | 
| D | ms.h | 201 void mspro_polling_format_status(struct rtsx_chip *chip); 203 void mspro_stop_seq_mode(struct rtsx_chip *chip); 204 int reset_ms_card(struct rtsx_chip *chip); 205 int ms_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, 207 int mspro_format(struct scsi_cmnd *srb, struct rtsx_chip *chip, 209 void ms_free_l2p_tbl(struct rtsx_chip *chip); 210 void ms_cleanup_work(struct rtsx_chip *chip); 211 int ms_power_off_card3v3(struct rtsx_chip *chip); 212 int release_ms_card(struct rtsx_chip *chip); 214 int ms_delay_write(struct rtsx_chip *chip); [all …] 
 | 
| D | sd.h | 277 int sd_select_card(struct rtsx_chip *chip, int select); 278 int sd_pull_ctl_enable(struct rtsx_chip *chip); 279 int reset_sd_card(struct rtsx_chip *chip); 280 int sd_switch_clock(struct rtsx_chip *chip); 281 void sd_stop_seq_mode(struct rtsx_chip *chip); 282 int sd_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, 284 void sd_cleanup_work(struct rtsx_chip *chip); 285 int sd_power_off_card3v3(struct rtsx_chip *chip); 286 int release_sd_card(struct rtsx_chip *chip); 288 int soft_reset_sd_card(struct rtsx_chip *chip); [all …] 
 | 
| D | rtsx_card.h | 999 void do_remaining_work(struct rtsx_chip *chip); 1000 void try_to_switch_sdio_ctrl(struct rtsx_chip *chip); 1001 void do_reset_sd_card(struct rtsx_chip *chip); 1002 void do_reset_xd_card(struct rtsx_chip *chip); 1003 void do_reset_ms_card(struct rtsx_chip *chip); 1004 void rtsx_power_off_card(struct rtsx_chip *chip); 1005 void rtsx_release_cards(struct rtsx_chip *chip); 1006 void rtsx_reset_cards(struct rtsx_chip *chip); 1007 void rtsx_reinit_cards(struct rtsx_chip *chip, int reset_chip); 1008 void rtsx_init_cards(struct rtsx_chip *chip); [all …] 
 | 
| D | rtsx_chip.h | 350 struct rtsx_chip; 352 typedef int (*card_rw_func)(struct scsi_cmnd *srb, struct rtsx_chip *chip, 691 struct rtsx_chip {  struct 923 static inline struct device *rtsx_dev(const struct rtsx_chip *chip)  in rtsx_dev()  argument 950 int rtsx_force_power_on(struct rtsx_chip *chip, u8 ctl); 951 int rtsx_force_power_down(struct rtsx_chip *chip, u8 ctl); 953 void rtsx_disable_card_int(struct rtsx_chip *chip); 954 void rtsx_enable_card_int(struct rtsx_chip *chip); 955 void rtsx_enable_bus_int(struct rtsx_chip *chip); 956 void rtsx_disable_bus_int(struct rtsx_chip *chip); [all …] 
 | 
| D | rtsx_transport.h | 39 void rtsx_invoke_transport(struct scsi_cmnd *srb, struct rtsx_chip *chip); 44 void rtsx_add_cmd(struct rtsx_chip *chip, 46 void rtsx_send_cmd_no_wait(struct rtsx_chip *chip); 47 int rtsx_send_cmd(struct rtsx_chip *chip, u8 card, int timeout); 49 static inline u8 *rtsx_get_cmd_data(struct rtsx_chip *chip)  in rtsx_get_cmd_data() 58 int rtsx_transfer_data(struct rtsx_chip *chip, u8 card, void *buf, size_t len, 61 int rtsx_transfer_data_partial(struct rtsx_chip *chip, u8 card,
  | 
| D | xd.h | 177 int reset_xd_card(struct rtsx_chip *chip); 179 int xd_delay_write(struct rtsx_chip *chip); 181 int xd_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, 183 void xd_free_l2p_tbl(struct rtsx_chip *chip); 184 void xd_cleanup_work(struct rtsx_chip *chip); 185 int xd_power_off_card3v3(struct rtsx_chip *chip); 186 int release_xd_card(struct rtsx_chip *chip);
  | 
| D | rtsx_card.c | 34 void do_remaining_work(struct rtsx_chip *chip)  in do_remaining_work() 92 void try_to_switch_sdio_ctrl(struct rtsx_chip *chip)  in try_to_switch_sdio_ctrl() 110 void dynamic_configure_sdio_aspm(struct rtsx_chip *chip)  in dynamic_configure_sdio_aspm() 149 void do_reset_sd_card(struct rtsx_chip *chip)  in do_reset_sd_card() 203 void do_reset_xd_card(struct rtsx_chip *chip)  in do_reset_xd_card() 251 void do_reset_ms_card(struct rtsx_chip *chip)  in do_reset_ms_card() 299 static void release_sdio(struct rtsx_chip *chip)  in release_sdio() 319 void rtsx_power_off_card(struct rtsx_chip *chip)  in rtsx_power_off_card() 337 void rtsx_release_cards(struct rtsx_chip *chip)  in rtsx_release_cards() 360 void rtsx_reset_cards(struct rtsx_chip *chip)  in rtsx_reset_cards() [all …] 
 | 
| D | rtsx_chip.c | 34 static void rtsx_calibration(struct rtsx_chip *chip)  in rtsx_calibration() 46 void rtsx_disable_card_int(struct rtsx_chip *chip)  in rtsx_disable_card_int() 54 void rtsx_enable_card_int(struct rtsx_chip *chip)  in rtsx_enable_card_int() 73 void rtsx_enable_bus_int(struct rtsx_chip *chip)  in rtsx_enable_bus_int() 112 void rtsx_disable_bus_int(struct rtsx_chip *chip)  in rtsx_disable_bus_int() 117 static int rtsx_pre_handle_sdio_old(struct rtsx_chip *chip)  in rtsx_pre_handle_sdio_old() 170 static int rtsx_pre_handle_sdio_new(struct rtsx_chip *chip)  in rtsx_pre_handle_sdio_new() 300 static int rtsx_reset_aspm(struct rtsx_chip *chip)  in rtsx_reset_aspm() 347 static int rtsx_enable_pcie_intr(struct rtsx_chip *chip)  in rtsx_enable_pcie_intr() 404 int rtsx_reset_chip(struct rtsx_chip *chip)  in rtsx_reset_chip() [all …] 
 | 
| D | trace.h | 27 struct rtsx_chip; 30 void _rtsx_trace(struct rtsx_chip *chip, const char *file, const char *func, 35 static inline void rtsx_trace(struct rtsx_chip *chip)  in rtsx_trace()
  | 
| D | rtsx_scsi.h | 136 void scsi_show_command(struct rtsx_chip *chip); 137 void set_sense_type(struct rtsx_chip *chip, unsigned int lun, int sense_type); 138 void set_sense_data(struct rtsx_chip *chip, unsigned int lun, u8 err_code, 141 int rtsx_scsi_handler(struct scsi_cmnd *srb, struct rtsx_chip *chip);
  | 
| D | spi.c | 30 static inline void spi_set_err_code(struct rtsx_chip *chip, u8 err_code)  in spi_set_err_code() 37 static int spi_init(struct rtsx_chip *chip)  in spi_init() 57 static int spi_set_init_para(struct rtsx_chip *chip)  in spi_set_init_para() 111 static int sf_polling_status(struct rtsx_chip *chip, int msec)  in sf_polling_status() 134 static int sf_enable_write(struct rtsx_chip *chip, u8 ins)  in sf_enable_write() 163 static int sf_disable_write(struct rtsx_chip *chip, u8 ins)  in sf_disable_write() 192 static void sf_program(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr,  in sf_program() 216 static int sf_erase(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr)  in sf_erase() 251 static int spi_init_eeprom(struct rtsx_chip *chip)  in spi_init_eeprom() 315 static int spi_eeprom_program_enable(struct rtsx_chip *chip)  in spi_eeprom_program_enable() [all …] 
 | 
| D | ms.c | 31 static inline void ms_set_err_code(struct rtsx_chip *chip, u8 err_code)  in ms_set_err_code() 38 static inline int ms_check_err_code(struct rtsx_chip *chip, u8 err_code)  in ms_check_err_code() 45 static int ms_parse_err_code(struct rtsx_chip *chip)  in ms_parse_err_code() 51 static int ms_transfer_tpc(struct rtsx_chip *chip, u8 trans_mode,  in ms_transfer_tpc() 111 static int ms_transfer_data(struct rtsx_chip *chip, u8 trans_mode,  in ms_transfer_data() 185 static int ms_write_bytes(struct rtsx_chip *chip,  in ms_write_bytes() 255 static int ms_read_bytes(struct rtsx_chip *chip,  in ms_read_bytes() 337 static int ms_set_rw_reg_addr(struct rtsx_chip *chip,  in ms_set_rw_reg_addr() 360 static int ms_send_cmd(struct rtsx_chip *chip, u8 cmd, u8 cfg)  in ms_send_cmd() 370 static int ms_set_init_para(struct rtsx_chip *chip)  in ms_set_init_para() [all …] 
 | 
| D | xd.c | 34 static int xd_build_l2p_tbl(struct rtsx_chip *chip, int zone_no); 35 static int xd_init_page(struct rtsx_chip *chip, u32 phy_blk, u16 logoff, 38 static inline void xd_set_err_code(struct rtsx_chip *chip, u8 err_code)  in xd_set_err_code() 45 static inline int xd_check_err_code(struct rtsx_chip *chip, u8 err_code)  in xd_check_err_code() 52 static int xd_set_init_para(struct rtsx_chip *chip)  in xd_set_init_para() 71 static int xd_switch_clock(struct rtsx_chip *chip)  in xd_switch_clock() 91 static int xd_read_id(struct rtsx_chip *chip, u8 id_cmd, u8 *id_buf, u8 buf_len)  in xd_read_id() 123 static void xd_assign_phy_addr(struct rtsx_chip *chip, u32 addr, u8 mode)  in xd_assign_phy_addr() 155 static int xd_read_redundant(struct rtsx_chip *chip, u32 page_addr,  in xd_read_redundant() 194 static int xd_read_data_from_ppb(struct rtsx_chip *chip, int offset,  in xd_read_data_from_ppb() [all …] 
 | 
| D | rtsx_scsi.c | 33 void scsi_show_command(struct rtsx_chip *chip)  in scsi_show_command() 324 void set_sense_type(struct rtsx_chip *chip, unsigned int lun, int sense_type)  in set_sense_type() 399 void set_sense_data(struct rtsx_chip *chip, unsigned int lun, u8 err_code,  in set_sense_data() 422 static int test_unit_ready(struct scsi_cmnd *srb, struct rtsx_chip *chip)  in test_unit_ready() 474 static int inquiry(struct scsi_cmnd *srb, struct rtsx_chip *chip)  in inquiry() 562 static int start_stop_unit(struct scsi_cmnd *srb, struct rtsx_chip *chip)  in start_stop_unit() 598 static int allow_medium_removal(struct scsi_cmnd *srb, struct rtsx_chip *chip)  in allow_medium_removal() 617 static int request_sense(struct scsi_cmnd *srb, struct rtsx_chip *chip)  in request_sense() 664 static void ms_mode_sense(struct rtsx_chip *chip, u8 cmd,  in ms_mode_sense() 757 static int mode_sense(struct scsi_cmnd *srb, struct rtsx_chip *chip)  in mode_sense() [all …] 
 | 
| D | rtsx_sys.h | 33 static inline void rtsx_exclusive_enter_ss(struct rtsx_chip *chip)  in rtsx_exclusive_enter_ss() 42 static inline void rtsx_reset_detected_cards(struct rtsx_chip *chip, int flag)  in rtsx_reset_detected_cards()
  | 
| D | sd.c | 57 static inline void sd_set_err_code(struct rtsx_chip *chip, u8 err_code)  in sd_set_err_code() 64 static inline void sd_clr_err_code(struct rtsx_chip *chip)  in sd_clr_err_code() 71 static inline int sd_check_err_code(struct rtsx_chip *chip, u8 err_code)  in sd_check_err_code() 78 static void sd_init_reg_addr(struct rtsx_chip *chip)  in sd_init_reg_addr() 106 static int sd_check_data0_status(struct rtsx_chip *chip)  in sd_check_data0_status() 126 static int sd_send_cmd_get_rsp(struct rtsx_chip *chip, u8 cmd_idx, 283 static int sd_read_data(struct rtsx_chip *chip, 355 static int sd_write_data(struct rtsx_chip *chip, u8 trans_mode, 425 static int sd_check_csd(struct rtsx_chip *chip, char check_wp) 534 static int sd_set_sample_push_timing(struct rtsx_chip *chip) [all …] 
 | 
| D | rtsx.c | 130 	struct rtsx_chip *chip = dev->chip;  in queuecommand_lck() 166 	struct rtsx_chip *chip = dev->chip;  in DEF_SCSI_QCMD() 265 	struct rtsx_chip *chip = dev->chip;  in rtsx_acquire_irq() 310 	struct rtsx_chip *chip;  in rtsx_suspend() 345 	struct rtsx_chip *chip;  in rtsx_resume() 391 	struct rtsx_chip *chip;  in rtsx_shutdown() 415 	struct rtsx_chip *chip = dev->chip;  in rtsx_control_thread() 524 	struct rtsx_chip *chip = dev->chip;  in rtsx_polling_thread() 573 	struct rtsx_chip *chip;  in rtsx_interrupt() 673 	struct rtsx_chip *chip = dev->chip;  in quiesce_and_remove_host() [all …] 
 | 
| D | rtsx_transport.c | 158 void rtsx_invoke_transport(struct scsi_cmnd *srb, struct rtsx_chip *chip)  in rtsx_invoke_transport() 204 void rtsx_add_cmd(struct rtsx_chip *chip,  in rtsx_add_cmd() 222 void rtsx_send_cmd_no_wait(struct rtsx_chip *chip)  in rtsx_send_cmd_no_wait() 234 int rtsx_send_cmd(struct rtsx_chip *chip, u8 card, int timeout)  in rtsx_send_cmd() 298 	struct rtsx_chip *chip, u32 addr, u32 len, u8 option)  in rtsx_add_sg_tbl() 323 static int rtsx_transfer_sglist_adma_partial(struct rtsx_chip *chip, u8 card,  in rtsx_transfer_sglist_adma_partial() 487 static int rtsx_transfer_sglist_adma(struct rtsx_chip *chip, u8 card,  in rtsx_transfer_sglist_adma() 634 static int rtsx_transfer_buf(struct rtsx_chip *chip, u8 card, void *buf,  in rtsx_transfer_buf() 717 int rtsx_transfer_data_partial(struct rtsx_chip *chip, u8 card,  in rtsx_transfer_data_partial() 746 int rtsx_transfer_data(struct rtsx_chip *chip, u8 card, void *buf, size_t len,  in rtsx_transfer_data()
  | 
| D | rtsx.h | 94 struct rtsx_chip; 131 	struct rtsx_chip	*chip;
  | 
| D | Makefile | 5 rts5208-y := rtsx.o rtsx_chip.o rtsx_transport.o rtsx_scsi.o \
  | 
| D | trace.c | 8 void _rtsx_trace(struct rtsx_chip *chip, const char *file, const char *func,  in _rtsx_trace()
  |