Home
last modified time | relevance | path

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

/openbmc/linux/drivers/staging/rts5208/
H A Dspi.h40 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 …]
H A Dms.h188 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,
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);
207 int mg_chg(struct scsi_cmnd *srb, struct rtsx_chip *chip);
[all …]
H A Dsd.h265 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 …]
H A Drtsx_card.h987 void do_remaining_work(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);
996 void rtsx_init_cards(struct rtsx_chip *chip);
1005 void toggle_gpio(struct rtsx_chip *chip, u8 gpio);
1006 void turn_on_led(struct rtsx_chip *chip, u8 gpio);
[all …]
H A Drtsx_transport.h30 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,
H A Drtsx_chip.h338 struct rtsx_chip;
693 struct rtsx_chip { struct
955 int rtsx_reset_chip(struct rtsx_chip *chip);
956 int rtsx_init_chip(struct rtsx_chip *chip);
962 int rtsx_write_cfg_dw(struct rtsx_chip *chip,
965 int rtsx_write_cfg_seq(struct rtsx_chip *chip,
967 int rtsx_read_cfg_seq(struct rtsx_chip *chip,
975 void rtsx_enter_ss(struct rtsx_chip *chip);
976 void rtsx_exit_ss(struct rtsx_chip *chip);
978 void rtsx_enter_L1(struct rtsx_chip *chip);
[all …]
H A Dxd.h165 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);
H A Drtsx_chip.c23 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()
334 int rtsx_reset_chip(struct rtsx_chip *chip) in rtsx_reset_chip()
754 int rtsx_init_chip(struct rtsx_chip *chip) in rtsx_init_chip()
888 void rtsx_release_chip(struct rtsx_chip *chip) in rtsx_release_chip()
1753 void rtsx_enter_L1(struct rtsx_chip *chip) in rtsx_enter_L1()
1758 void rtsx_exit_L1(struct rtsx_chip *chip) in rtsx_exit_L1()
1764 void rtsx_enter_ss(struct rtsx_chip *chip) in rtsx_enter_ss()
[all …]
H A Drtsx_card.c23 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()
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()
514 void rtsx_init_cards(struct rtsx_chip *chip) in rtsx_init_cards()
[all …]
H A Drtsx_scsi.h124 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);
H A Dspi.c26 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()
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()
287 int spi_erase_eeprom_chip(struct rtsx_chip *chip) in spi_erase_eeprom_chip()
321 int spi_erase_eeprom_byte(struct rtsx_chip *chip, u16 addr) in spi_erase_eeprom_byte()
357 int spi_read_eeprom(struct rtsx_chip *chip, u16 addr, u8 *val) in spi_read_eeprom()
[all …]
H A Drtsx_scsi.c22 void scsi_show_command(struct rtsx_chip *chip) in scsi_show_command()
463 static int inquiry(struct scsi_cmnd *srb, struct rtsx_chip *chip) in inquiry()
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()
833 static int read_write(struct scsi_cmnd *srb, struct rtsx_chip *chip) in read_write()
1188 static int read_mem(struct scsi_cmnd *srb, struct rtsx_chip *chip) in read_mem()
1241 static int write_mem(struct scsi_cmnd *srb, struct rtsx_chip *chip) in write_mem()
1294 static int get_sd_csd(struct scsi_cmnd *srb, struct rtsx_chip *chip) in get_sd_csd()
1781 static int suit_cmd(struct scsi_cmnd *srb, struct rtsx_chip *chip) in suit_cmd()
2319 static int app_cmd(struct scsi_cmnd *srb, struct rtsx_chip *chip) in app_cmd()
[all …]
H A Dms.c34 static int ms_parse_err_code(struct rtsx_chip *chip) in ms_parse_err_code()
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()
1147 static int reset_ms_pro(struct rtsx_chip *chip)
1880 static int reset_ms(struct rtsx_chip *chip)
2495 int reset_ms_card(struct rtsx_chip *chip)
2610 struct rtsx_chip *chip, u32 start_sector,
3358 int ms_delay_write(struct rtsx_chip *chip)
3660 void ms_free_l2p_tbl(struct rtsx_chip *chip)
4228 void ms_cleanup_work(struct rtsx_chip *chip)
[all …]
H A Dxd.c34 static int xd_set_init_para(struct rtsx_chip *chip) in xd_set_init_para()
51 static int xd_switch_clock(struct rtsx_chip *chip) in xd_switch_clock()
432 static int reset_xd(struct rtsx_chip *chip) in reset_xd()
779 static int xd_init_l2p_tbl(struct rtsx_chip *chip) in xd_init_l2p_tbl()
956 int reset_xd_card(struct rtsx_chip *chip) in reset_xd_card()
1207 static int xd_reset_cmd(struct rtsx_chip *chip) in xd_reset_cmd()
1794 int xd_delay_write(struct rtsx_chip *chip) in xd_delay_write()
2064 void xd_free_l2p_tbl(struct rtsx_chip *chip) in xd_free_l2p_tbl()
2081 void xd_cleanup_work(struct rtsx_chip *chip) in xd_cleanup_work()
2094 int xd_power_off_card3v3(struct rtsx_chip *chip) in xd_power_off_card3v3()
[all …]
H A Dsd.c67 static void sd_init_reg_addr(struct rtsx_chip *chip) in sd_init_reg_addr()
260 static int sd_read_data(struct rtsx_chip *chip,
1731 static int sd_tuning_rx(struct rtsx_chip *chip)
1968 int sd_switch_clock(struct rtsx_chip *chip)
2101 int sd_pull_ctl_enable(struct rtsx_chip *chip)
2285 static int reset_sd(struct rtsx_chip *chip)
2871 static int reset_mmc(struct rtsx_chip *chip)
3045 int reset_sd_card(struct rtsx_chip *chip)
3215 void sd_stop_seq_mode(struct rtsx_chip *chip)
4646 void sd_cleanup_work(struct rtsx_chip *chip)
[all …]
H A Drtsx_sys.h19 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()
H A Drtsx.c125 struct rtsx_chip *chip = dev->chip; in queuecommand_lck()
160 struct rtsx_chip *chip = dev->chip; in DEF_SCSI_QCMD()
234 struct rtsx_chip *chip = dev->chip; in rtsx_acquire_irq()
261 struct rtsx_chip *chip; in rtsx_suspend()
293 struct rtsx_chip *chip; in rtsx_resume()
328 struct rtsx_chip *chip; in rtsx_shutdown()
351 struct rtsx_chip *chip = dev->chip; in rtsx_control_thread()
453 struct rtsx_chip *chip = dev->chip; in rtsx_polling_thread()
501 struct rtsx_chip *chip; in rtsx_interrupt()
599 struct rtsx_chip *chip = dev->chip; in quiesce_and_remove_host()
[all …]
H A Drtsx_transport.c149 void rtsx_invoke_transport(struct scsi_cmnd *srb, struct rtsx_chip *chip) in rtsx_invoke_transport()
193 void rtsx_add_cmd(struct rtsx_chip *chip, in rtsx_add_cmd()
211 void rtsx_send_cmd_no_wait(struct rtsx_chip *chip) in rtsx_send_cmd_no_wait()
223 int rtsx_send_cmd(struct rtsx_chip *chip, u8 card, int timeout) in rtsx_send_cmd()
285 static inline void rtsx_add_sg_tbl(struct rtsx_chip *chip, in rtsx_add_sg_tbl()
311 static int rtsx_transfer_sglist_adma_partial(struct rtsx_chip *chip, u8 card, in rtsx_transfer_sglist_adma_partial()
477 static int rtsx_transfer_sglist_adma(struct rtsx_chip *chip, u8 card, in rtsx_transfer_sglist_adma()
624 static int rtsx_transfer_buf(struct rtsx_chip *chip, u8 card, void *buf, in rtsx_transfer_buf()
708 int rtsx_transfer_data_partial(struct rtsx_chip *chip, u8 card, in rtsx_transfer_data_partial()
740 int rtsx_transfer_data(struct rtsx_chip *chip, u8 card, void *buf, size_t len, in rtsx_transfer_data()
H A Drtsx.h79 struct rtsx_chip;
116 struct rtsx_chip *chip;
H A DMakefile4 rts5208-y := rtsx.o rtsx_chip.o rtsx_transport.o rtsx_scsi.o \