Home
last modified time | relevance | path

Searched refs:rtsx_chip (Results 1 – 20 of 20) sorted by relevance

/Linux-v4.19/drivers/staging/rts5208/
Dspi.h52 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 …]
Dms.h200 void mspro_polling_format_status(struct rtsx_chip *chip);
202 void mspro_stop_seq_mode(struct rtsx_chip *chip);
203 int reset_ms_card(struct rtsx_chip *chip);
204 int ms_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip,
206 int mspro_format(struct scsi_cmnd *srb, struct rtsx_chip *chip,
208 void ms_free_l2p_tbl(struct rtsx_chip *chip);
209 void ms_cleanup_work(struct rtsx_chip *chip);
210 int ms_power_off_card3v3(struct rtsx_chip *chip);
211 int release_ms_card(struct rtsx_chip *chip);
213 int ms_delay_write(struct rtsx_chip *chip);
[all …]
Dsd.h277 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 …]
Drtsx_card.h999 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 …]
Drtsx_chip.h350 struct rtsx_chip;
352 typedef int (*card_rw_func)(struct scsi_cmnd *srb, struct rtsx_chip *chip,
705 struct rtsx_chip { struct
934 static inline struct device *rtsx_dev(const struct rtsx_chip *chip) in rtsx_dev() argument
961 int rtsx_force_power_on(struct rtsx_chip *chip, u8 ctl);
962 int rtsx_force_power_down(struct rtsx_chip *chip, u8 ctl);
964 void rtsx_enable_card_int(struct rtsx_chip *chip);
965 void rtsx_enable_bus_int(struct rtsx_chip *chip);
966 void rtsx_disable_bus_int(struct rtsx_chip *chip);
967 int rtsx_reset_chip(struct rtsx_chip *chip);
[all …]
Drtsx_transport.h42 void rtsx_invoke_transport(struct scsi_cmnd *srb, struct rtsx_chip *chip);
46 void rtsx_add_cmd(struct rtsx_chip *chip, u8 cmd_type, u16 reg_addr, u8 mask,
48 void rtsx_send_cmd_no_wait(struct rtsx_chip *chip);
49 int rtsx_send_cmd(struct rtsx_chip *chip, u8 card, int timeout);
51 static inline u8 *rtsx_get_cmd_data(struct rtsx_chip *chip) in rtsx_get_cmd_data()
60 int rtsx_transfer_data(struct rtsx_chip *chip, u8 card, void *buf, size_t len,
64 int rtsx_transfer_data_partial(struct rtsx_chip *chip, u8 card, void *buf,
Dxd.h177 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);
Drtsx_chip.c34 static void rtsx_calibration(struct rtsx_chip *chip) in rtsx_calibration()
46 void rtsx_enable_card_int(struct rtsx_chip *chip) in rtsx_enable_card_int()
65 void rtsx_enable_bus_int(struct rtsx_chip *chip) in rtsx_enable_bus_int()
104 void rtsx_disable_bus_int(struct rtsx_chip *chip) in rtsx_disable_bus_int()
109 static int rtsx_pre_handle_sdio_old(struct rtsx_chip *chip) in rtsx_pre_handle_sdio_old()
158 static int rtsx_pre_handle_sdio_new(struct rtsx_chip *chip) in rtsx_pre_handle_sdio_new()
276 static int rtsx_reset_aspm(struct rtsx_chip *chip) in rtsx_reset_aspm()
319 static int rtsx_enable_pcie_intr(struct rtsx_chip *chip) in rtsx_enable_pcie_intr()
371 int rtsx_reset_chip(struct rtsx_chip *chip) in rtsx_reset_chip()
711 static int rts5208_init(struct rtsx_chip *chip) in rts5208_init()
[all …]
Drtsx_card.c34 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 …]
Drtsx_scsi.h136 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);
Dspi.c30 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()
56 static int spi_set_init_para(struct rtsx_chip *chip) in spi_set_init_para()
103 static int sf_polling_status(struct rtsx_chip *chip, int msec) in sf_polling_status()
125 static int sf_enable_write(struct rtsx_chip *chip, u8 ins) in sf_enable_write()
153 static int sf_disable_write(struct rtsx_chip *chip, u8 ins) in sf_disable_write()
181 static void sf_program(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr, in sf_program()
205 static int sf_erase(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr) in sf_erase()
239 static int spi_init_eeprom(struct rtsx_chip *chip) in spi_init_eeprom()
295 static int spi_eeprom_program_enable(struct rtsx_chip *chip) in spi_eeprom_program_enable()
[all …]
Drtsx_scsi.c33 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()
560 static int start_stop_unit(struct scsi_cmnd *srb, struct rtsx_chip *chip) in start_stop_unit()
593 static int allow_medium_removal(struct scsi_cmnd *srb, struct rtsx_chip *chip) in allow_medium_removal()
610 static int request_sense(struct scsi_cmnd *srb, struct rtsx_chip *chip) in request_sense()
656 static void ms_mode_sense(struct rtsx_chip *chip, u8 cmd, in ms_mode_sense()
749 static int mode_sense(struct scsi_cmnd *srb, struct rtsx_chip *chip) in mode_sense()
[all …]
Dms.c31 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()
50 static int ms_transfer_tpc(struct rtsx_chip *chip, u8 trans_mode, in ms_transfer_tpc()
106 static int ms_transfer_data(struct rtsx_chip *chip, u8 trans_mode, in ms_transfer_data()
175 static int ms_write_bytes(struct rtsx_chip *chip, in ms_write_bytes()
240 static int ms_read_bytes(struct rtsx_chip *chip, in ms_read_bytes()
317 static int ms_set_rw_reg_addr(struct rtsx_chip *chip, u8 read_start, in ms_set_rw_reg_addr()
339 static int ms_send_cmd(struct rtsx_chip *chip, u8 cmd, u8 cfg) in ms_send_cmd()
349 static int ms_set_init_para(struct rtsx_chip *chip) in ms_set_init_para()
[all …]
Dxd.c34 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()
70 static int xd_switch_clock(struct rtsx_chip *chip) in xd_switch_clock()
88 static int xd_read_id(struct rtsx_chip *chip, u8 id_cmd, u8 *id_buf, u8 buf_len) in xd_read_id()
119 static void xd_assign_phy_addr(struct rtsx_chip *chip, u32 addr, u8 mode) in xd_assign_phy_addr()
153 static int xd_read_redundant(struct rtsx_chip *chip, u32 page_addr, in xd_read_redundant()
191 static int xd_read_data_from_ppb(struct rtsx_chip *chip, int offset, in xd_read_data_from_ppb()
[all …]
Dsd.c57 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()
124 static int sd_send_cmd_get_rsp(struct rtsx_chip *chip, u8 cmd_idx,
273 static int sd_read_data(struct rtsx_chip *chip,
342 static int sd_write_data(struct rtsx_chip *chip, u8 trans_mode,
409 static int sd_check_csd(struct rtsx_chip *chip, char check_wp)
514 static int sd_set_sample_push_timing(struct rtsx_chip *chip)
[all …]
Drtsx_sys.h31 static inline void rtsx_exclusive_enter_ss(struct rtsx_chip *chip) in rtsx_exclusive_enter_ss()
40 static inline void rtsx_reset_detected_cards(struct rtsx_chip *chip, int flag) in rtsx_reset_detected_cards()
Drtsx.c136 struct rtsx_chip *chip = dev->chip; in queuecommand_lck()
172 struct rtsx_chip *chip = dev->chip; in DEF_SCSI_QCMD()
258 struct rtsx_chip *chip = dev->chip; in rtsx_acquire_irq()
285 struct rtsx_chip *chip; in rtsx_suspend()
319 struct rtsx_chip *chip; in rtsx_resume()
365 struct rtsx_chip *chip; in rtsx_shutdown()
388 struct rtsx_chip *chip = dev->chip; in rtsx_control_thread()
496 struct rtsx_chip *chip = dev->chip; in rtsx_polling_thread()
544 struct rtsx_chip *chip; in rtsx_interrupt()
642 struct rtsx_chip *chip = dev->chip; in quiesce_and_remove_host()
[all …]
Drtsx_transport.c163 void rtsx_invoke_transport(struct scsi_cmnd *srb, struct rtsx_chip *chip) in rtsx_invoke_transport()
207 void rtsx_add_cmd(struct rtsx_chip *chip, in rtsx_add_cmd()
225 void rtsx_send_cmd_no_wait(struct rtsx_chip *chip) in rtsx_send_cmd_no_wait()
237 int rtsx_send_cmd(struct rtsx_chip *chip, u8 card, int timeout) in rtsx_send_cmd()
300 struct rtsx_chip *chip, u32 addr, u32 len, u8 option) in rtsx_add_sg_tbl()
325 static int rtsx_transfer_sglist_adma_partial(struct rtsx_chip *chip, u8 card, in rtsx_transfer_sglist_adma_partial()
492 static int rtsx_transfer_sglist_adma(struct rtsx_chip *chip, u8 card, in rtsx_transfer_sglist_adma()
640 static int rtsx_transfer_buf(struct rtsx_chip *chip, u8 card, void *buf, in rtsx_transfer_buf()
724 int rtsx_transfer_data_partial(struct rtsx_chip *chip, u8 card, in rtsx_transfer_data_partial()
756 int rtsx_transfer_data(struct rtsx_chip *chip, u8 card, void *buf, size_t len, in rtsx_transfer_data()
Drtsx.h91 struct rtsx_chip;
128 struct rtsx_chip *chip;
DMakefile5 rts5208-y := rtsx.o rtsx_chip.o rtsx_transport.o rtsx_scsi.o \