Home
last modified time | relevance | path

Searched refs:pcr (Results 1 - 25 of 179) sorted by relevance

12345678

/kernel/linux/linux-6.6/drivers/misc/cardreader/
H A Drtsx_pcr.c62 static int rtsx_comm_set_ltr_latency(struct rtsx_pcr *pcr, u32 latency) in rtsx_comm_set_ltr_latency() argument
64 rtsx_pci_write_register(pcr, MSGTXDATA0, in rtsx_comm_set_ltr_latency()
66 rtsx_pci_write_register(pcr, MSGTXDATA1, in rtsx_comm_set_ltr_latency()
68 rtsx_pci_write_register(pcr, MSGTXDATA2, in rtsx_comm_set_ltr_latency()
70 rtsx_pci_write_register(pcr, MSGTXDATA3, in rtsx_comm_set_ltr_latency()
72 rtsx_pci_write_register(pcr, LTR_CTL, LTR_TX_EN_MASK | in rtsx_comm_set_ltr_latency()
78 int rtsx_set_ltr_latency(struct rtsx_pcr *pcr, u32 latency) in rtsx_set_ltr_latency() argument
80 return rtsx_comm_set_ltr_latency(pcr, latency); in rtsx_set_ltr_latency()
83 static void rtsx_comm_set_aspm(struct rtsx_pcr *pcr, bool enable) in rtsx_comm_set_aspm() argument
85 if (pcr in rtsx_comm_set_aspm()
107 rtsx_disable_aspm(struct rtsx_pcr *pcr) rtsx_disable_aspm() argument
115 rtsx_set_l1off_sub(struct rtsx_pcr *pcr, u8 val) rtsx_set_l1off_sub() argument
122 rtsx_set_l1off_sub_cfg_d0(struct rtsx_pcr *pcr, int active) rtsx_set_l1off_sub_cfg_d0() argument
128 rtsx_comm_pm_full_on(struct rtsx_pcr *pcr) rtsx_comm_pm_full_on() argument
144 rtsx_pm_full_on(struct rtsx_pcr *pcr) rtsx_pm_full_on() argument
149 rtsx_pci_start_run(struct rtsx_pcr *pcr) rtsx_pci_start_run() argument
164 rtsx_pci_write_register(struct rtsx_pcr *pcr, u16 addr, u8 mask, u8 data) rtsx_pci_write_register() argument
188 rtsx_pci_read_register(struct rtsx_pcr *pcr, u16 addr, u8 *data) rtsx_pci_read_register() argument
212 __rtsx_pci_write_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 val) __rtsx_pci_write_phy_register() argument
239 rtsx_pci_write_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 val) rtsx_pci_write_phy_register() argument
248 __rtsx_pci_read_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 *val) __rtsx_pci_read_phy_register() argument
281 rtsx_pci_read_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 *val) rtsx_pci_read_phy_register() argument
290 rtsx_pci_stop_cmd(struct rtsx_pcr *pcr) rtsx_pci_stop_cmd() argument
303 rtsx_pci_add_cmd(struct rtsx_pcr *pcr, u8 cmd_type, u16 reg_addr, u8 mask, u8 data) rtsx_pci_add_cmd() argument
326 rtsx_pci_send_cmd_no_wait(struct rtsx_pcr *pcr) rtsx_pci_send_cmd_no_wait() argument
339 rtsx_pci_send_cmd(struct rtsx_pcr *pcr, int timeout) rtsx_pci_send_cmd() argument
396 rtsx_pci_add_sg_tbl(struct rtsx_pcr *pcr, dma_addr_t addr, unsigned int len, int end) rtsx_pci_add_sg_tbl() argument
421 rtsx_pci_transfer_data(struct rtsx_pcr *pcr, struct scatterlist *sglist, int num_sg, bool read, int timeout) rtsx_pci_transfer_data() argument
440 rtsx_pci_dma_map_sg(struct rtsx_pcr *pcr, struct scatterlist *sglist, int num_sg, bool read) rtsx_pci_dma_map_sg() argument
455 rtsx_pci_dma_unmap_sg(struct rtsx_pcr *pcr, struct scatterlist *sglist, int num_sg, bool read) rtsx_pci_dma_unmap_sg() argument
464 rtsx_pci_dma_transfer(struct rtsx_pcr *pcr, struct scatterlist *sglist, int count, bool read, int timeout) rtsx_pci_dma_transfer() argument
535 rtsx_pci_read_ppbuf(struct rtsx_pcr *pcr, u8 *buf, int buf_len) rtsx_pci_read_ppbuf() argument
578 rtsx_pci_write_ppbuf(struct rtsx_pcr *pcr, u8 *buf, int buf_len) rtsx_pci_write_ppbuf() argument
622 rtsx_pci_set_pull_ctl(struct rtsx_pcr *pcr, const u32 *tbl) rtsx_pci_set_pull_ctl() argument
635 rtsx_pci_card_pull_ctl_enable(struct rtsx_pcr *pcr, int card) rtsx_pci_card_pull_ctl_enable() argument
650 rtsx_pci_card_pull_ctl_disable(struct rtsx_pcr *pcr, int card) rtsx_pci_card_pull_ctl_disable() argument
665 rtsx_pci_enable_bus_int(struct rtsx_pcr *pcr) rtsx_pci_enable_bus_int() argument
698 rtsx_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) rtsx_pci_switch_clock() argument
814 rtsx_pci_card_power_on(struct rtsx_pcr *pcr, int card) rtsx_pci_card_power_on() argument
823 rtsx_pci_card_power_off(struct rtsx_pcr *pcr, int card) rtsx_pci_card_power_off() argument
832 rtsx_pci_card_exclusive_check(struct rtsx_pcr *pcr, int card) rtsx_pci_card_exclusive_check() argument
851 rtsx_pci_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rtsx_pci_switch_output_voltage() argument
860 rtsx_pci_card_exist(struct rtsx_pcr *pcr) rtsx_pci_card_exist() argument
872 rtsx_pci_complete_unfinished_transfer(struct rtsx_pcr *pcr) rtsx_pci_complete_unfinished_transfer() argument
894 struct rtsx_pcr *pcr; rtsx_pci_card_detect() local
941 rtsx_pci_process_ocp(struct rtsx_pcr *pcr) rtsx_pci_process_ocp() argument
958 rtsx_pci_process_ocp_interrupt(struct rtsx_pcr *pcr) rtsx_pci_process_ocp_interrupt() argument
968 struct rtsx_pcr *pcr = dev_id; rtsx_pci_isr() local
1037 rtsx_pci_acquire_irq(struct rtsx_pcr *pcr) rtsx_pci_acquire_irq() argument
1057 rtsx_base_force_power_down(struct rtsx_pcr *pcr) rtsx_base_force_power_down() argument
1071 rtsx_pci_power_off(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) rtsx_pci_power_off() argument
1088 rtsx_pci_enable_ocp(struct rtsx_pcr *pcr) rtsx_pci_enable_ocp() argument
1101 rtsx_pci_disable_ocp(struct rtsx_pcr *pcr) rtsx_pci_disable_ocp() argument
1114 rtsx_pci_init_ocp(struct rtsx_pcr *pcr) rtsx_pci_init_ocp() argument
1136 rtsx_pci_get_ocpstat(struct rtsx_pcr *pcr, u8 *val) rtsx_pci_get_ocpstat() argument
1144 rtsx_pci_clear_ocpstat(struct rtsx_pcr *pcr) rtsx_pci_clear_ocpstat() argument
1158 rtsx_pci_enable_oobs_polling(struct rtsx_pcr *pcr) rtsx_pci_enable_oobs_polling() argument
1174 rtsx_pci_disable_oobs_polling(struct rtsx_pcr *pcr) rtsx_pci_disable_oobs_polling() argument
1188 rtsx_sd_power_off_card3v3(struct rtsx_pcr *pcr) rtsx_sd_power_off_card3v3() argument
1202 rtsx_ms_power_off_card3v3(struct rtsx_pcr *pcr) rtsx_ms_power_off_card3v3() argument
1215 rtsx_pci_init_hw(struct rtsx_pcr *pcr) rtsx_pci_init_hw() argument
1343 rtsx_pci_init_chip(struct rtsx_pcr *pcr) rtsx_pci_init_chip() argument
1499 struct rtsx_pcr *pcr; rtsx_pci_probe() local
1636 struct rtsx_pcr *pcr = handle->pcr; rtsx_pci_remove() local
1680 struct rtsx_pcr *pcr = handle->pcr; rtsx_pci_suspend() local
1698 struct rtsx_pcr *pcr = handle->pcr; rtsx_pci_resume() local
1720 rtsx_enable_aspm(struct rtsx_pcr *pcr) rtsx_enable_aspm() argument
1728 rtsx_comm_pm_power_saving(struct rtsx_pcr *pcr) rtsx_comm_pm_power_saving() argument
1747 rtsx_pm_power_saving(struct rtsx_pcr *pcr) rtsx_pm_power_saving() argument
1755 struct rtsx_pcr *pcr = handle->pcr; rtsx_pci_shutdown() local
1771 struct rtsx_pcr *pcr = handle->pcr; rtsx_pci_runtime_idle() local
1798 struct rtsx_pcr *pcr = handle->pcr; rtsx_pci_runtime_suspend() local
1816 struct rtsx_pcr *pcr = handle->pcr; rtsx_pci_runtime_resume() local
[all...]
H A Drts5249.c16 static u8 rts5249_get_ic_version(struct rtsx_pcr *pcr) in rts5249_get_ic_version() argument
20 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5249_get_ic_version()
24 static void rts5249_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5249_fill_driving() argument
42 drive_sel = pcr->sd30_drive_sel_3v3; in rts5249_fill_driving()
45 drive_sel = pcr->sd30_drive_sel_1v8; in rts5249_fill_driving()
48 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CLK_DRIVE_SEL, in rts5249_fill_driving()
50 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CMD_DRIVE_SEL, in rts5249_fill_driving()
52 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_DAT_DRIVE_SEL, in rts5249_fill_driving()
56 static void rtsx_base_fetch_vendor_settings(struct rtsx_pcr *pcr) in rtsx_base_fetch_vendor_settings() argument
58 struct pci_dev *pdev = pcr in rtsx_base_fetch_vendor_settings()
87 rts5249_init_from_cfg(struct rtsx_pcr *pcr) rts5249_init_from_cfg() argument
105 rts52xa_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) rts52xa_force_power_down() argument
126 rts52xa_save_content_from_efuse(struct rtsx_pcr *pcr) rts52xa_save_content_from_efuse() argument
200 rts52xa_save_content_to_autoload_space(struct rtsx_pcr *pcr) rts52xa_save_content_to_autoload_space() argument
232 rts5249_extra_init_hw(struct rtsx_pcr *pcr) rts5249_extra_init_hw() argument
309 rts5249_optimize_phy(struct rtsx_pcr *pcr) rts5249_optimize_phy() argument
375 rtsx_base_turn_on_led(struct rtsx_pcr *pcr) rtsx_base_turn_on_led() argument
380 rtsx_base_turn_off_led(struct rtsx_pcr *pcr) rtsx_base_turn_off_led() argument
385 rtsx_base_enable_auto_blink(struct rtsx_pcr *pcr) rtsx_base_enable_auto_blink() argument
390 rtsx_base_disable_auto_blink(struct rtsx_pcr *pcr) rtsx_base_disable_auto_blink() argument
395 rtsx_base_card_power_on(struct rtsx_pcr *pcr, int card) rtsx_base_card_power_on() argument
422 rtsx_base_card_power_off(struct rtsx_pcr *pcr, int card) rtsx_base_card_power_off() argument
435 rtsx_base_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rtsx_base_switch_output_voltage() argument
538 rts5249_init_params(struct rtsx_pcr *pcr) rts5249_init_params() argument
577 rts524a_write_phy(struct rtsx_pcr *pcr, u8 addr, u16 val) rts524a_write_phy() argument
584 rts524a_read_phy(struct rtsx_pcr *pcr, u8 addr, u16 *val) rts524a_read_phy() argument
591 rts524a_optimize_phy(struct rtsx_pcr *pcr) rts524a_optimize_phy() argument
634 rts524a_extra_init_hw(struct rtsx_pcr *pcr) rts524a_extra_init_hw() argument
662 rts5250_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active) rts5250_set_l1off_cfg_sub_d0() argument
713 rts524a_init_params(struct rtsx_pcr *pcr) rts524a_init_params() argument
733 rts525a_card_power_on(struct rtsx_pcr *pcr, int card) rts525a_card_power_on() argument
740 rts525a_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rts525a_switch_output_voltage() argument
763 rts525a_optimize_phy(struct rtsx_pcr *pcr) rts525a_optimize_phy() argument
789 rts525a_extra_init_hw(struct rtsx_pcr *pcr) rts525a_extra_init_hw() argument
831 rts525a_init_params(struct rtsx_pcr *pcr) rts525a_init_params() argument
[all...]
H A Drts5228.c19 static u8 rts5228_get_ic_version(struct rtsx_pcr *pcr) in rts5228_get_ic_version() argument
23 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5228_get_ic_version()
27 static void rts5228_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5228_fill_driving() argument
45 drive_sel = pcr->sd30_drive_sel_3v3; in rts5228_fill_driving()
48 drive_sel = pcr->sd30_drive_sel_1v8; in rts5228_fill_driving()
51 rtsx_pci_write_register(pcr, SD30_CLK_DRIVE_SEL, in rts5228_fill_driving()
54 rtsx_pci_write_register(pcr, SD30_CMD_DRIVE_SEL, in rts5228_fill_driving()
57 rtsx_pci_write_register(pcr, SD30_DAT_DRIVE_SEL, in rts5228_fill_driving()
61 static void rtsx5228_fetch_vendor_settings(struct rtsx_pcr *pcr) in rtsx5228_fetch_vendor_settings() argument
63 struct pci_dev *pdev = pcr in rtsx5228_fetch_vendor_settings()
89 rts5228_optimize_phy(struct rtsx_pcr *pcr) rts5228_optimize_phy() argument
94 rts5228_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) rts5228_force_power_down() argument
117 rts5228_enable_auto_blink(struct rtsx_pcr *pcr) rts5228_enable_auto_blink() argument
123 rts5228_disable_auto_blink(struct rtsx_pcr *pcr) rts5228_disable_auto_blink() argument
129 rts5228_turn_on_led(struct rtsx_pcr *pcr) rts5228_turn_on_led() argument
135 rts5228_turn_off_led(struct rtsx_pcr *pcr) rts5228_turn_off_led() argument
167 rts5228_sd_set_sample_push_timing_sd30(struct rtsx_pcr *pcr) rts5228_sd_set_sample_push_timing_sd30() argument
179 rts5228_card_power_on(struct rtsx_pcr *pcr, int card) rts5228_card_power_on() argument
229 rts5228_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rts5228_switch_output_voltage() argument
272 rts5228_stop_cmd(struct rtsx_pcr *pcr) rts5228_stop_cmd() argument
282 rts5228_card_before_power_off(struct rtsx_pcr *pcr) rts5228_card_before_power_off() argument
288 rts5228_enable_ocp(struct rtsx_pcr *pcr) rts5228_enable_ocp() argument
299 rts5228_disable_ocp(struct rtsx_pcr *pcr) rts5228_disable_ocp() argument
309 rts5228_card_power_off(struct rtsx_pcr *pcr, int card) rts5228_card_power_off() argument
324 rts5228_init_ocp(struct rtsx_pcr *pcr) rts5228_init_ocp() argument
356 rts5228_clear_ocpstat(struct rtsx_pcr *pcr) rts5228_clear_ocpstat() argument
371 rts5228_process_ocp(struct rtsx_pcr *pcr) rts5228_process_ocp() argument
387 rts5228_init_from_cfg(struct rtsx_pcr *pcr) rts5228_init_from_cfg() argument
405 rts5228_extra_init_hw(struct rtsx_pcr *pcr) rts5228_extra_init_hw() argument
466 rts5228_enable_aspm(struct rtsx_pcr *pcr, bool enable) rts5228_enable_aspm() argument
482 rts5228_disable_aspm(struct rtsx_pcr *pcr, bool enable) rts5228_disable_aspm() argument
499 rts5228_set_aspm(struct rtsx_pcr *pcr, bool enable) rts5228_set_aspm() argument
507 rts5228_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active) rts5228_set_l1off_cfg_sub_d0() argument
557 rts5228_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) rts5228_pci_switch_clock() argument
683 rts5228_init_params(struct rtsx_pcr *pcr) rts5228_init_params() argument
[all...]
H A Drts5227.c17 static u8 rts5227_get_ic_version(struct rtsx_pcr *pcr) in rts5227_get_ic_version() argument
21 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5227_get_ic_version()
25 static void rts5227_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5227_fill_driving() argument
43 drive_sel = pcr->sd30_drive_sel_3v3; in rts5227_fill_driving()
46 drive_sel = pcr->sd30_drive_sel_1v8; in rts5227_fill_driving()
49 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CLK_DRIVE_SEL, in rts5227_fill_driving()
51 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CMD_DRIVE_SEL, in rts5227_fill_driving()
53 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_DAT_DRIVE_SEL, in rts5227_fill_driving()
57 static void rts5227_fetch_vendor_settings(struct rtsx_pcr *pcr) in rts5227_fetch_vendor_settings() argument
59 struct pci_dev *pdev = pcr in rts5227_fetch_vendor_settings()
84 rts5227_init_from_cfg(struct rtsx_pcr *pcr) rts5227_init_from_cfg() argument
102 rts5227_extra_init_hw(struct rtsx_pcr *pcr) rts5227_extra_init_hw() argument
167 rts5227_optimize_phy(struct rtsx_pcr *pcr) rts5227_optimize_phy() argument
179 rts5227_turn_on_led(struct rtsx_pcr *pcr) rts5227_turn_on_led() argument
184 rts5227_turn_off_led(struct rtsx_pcr *pcr) rts5227_turn_off_led() argument
189 rts5227_enable_auto_blink(struct rtsx_pcr *pcr) rts5227_enable_auto_blink() argument
194 rts5227_disable_auto_blink(struct rtsx_pcr *pcr) rts5227_disable_auto_blink() argument
199 rts5227_card_power_on(struct rtsx_pcr *pcr, int card) rts5227_card_power_on() argument
233 rts5227_card_power_off(struct rtsx_pcr *pcr, int card) rts5227_card_power_off() argument
245 rts5227_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rts5227_switch_output_voltage() argument
331 rts5227_init_params(struct rtsx_pcr *pcr) rts5227_init_params() argument
355 rts522a_optimize_phy(struct rtsx_pcr *pcr) rts522a_optimize_phy() argument
379 rts522a_extra_init_hw(struct rtsx_pcr *pcr) rts522a_extra_init_hw() argument
397 rts522a_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rts522a_switch_output_voltage() argument
422 rts522a_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) rts522a_force_power_down() argument
444 rts522a_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active) rts522a_set_l1off_cfg_sub_d0() argument
485 rts522a_init_params(struct rtsx_pcr *pcr) rts522a_init_params() argument
[all...]
H A Drts5260.c19 static u8 rts5260_get_ic_version(struct rtsx_pcr *pcr) in rts5260_get_ic_version() argument
23 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5260_get_ic_version()
27 static void rts5260_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5260_fill_driving() argument
45 drive_sel = pcr->sd30_drive_sel_3v3; in rts5260_fill_driving()
48 drive_sel = pcr->sd30_drive_sel_1v8; in rts5260_fill_driving()
51 rtsx_pci_write_register(pcr, SD30_CLK_DRIVE_SEL, in rts5260_fill_driving()
54 rtsx_pci_write_register(pcr, SD30_CMD_DRIVE_SEL, in rts5260_fill_driving()
57 rtsx_pci_write_register(pcr, SD30_DAT_DRIVE_SEL, in rts5260_fill_driving()
61 static void rtsx_base_fetch_vendor_settings(struct rtsx_pcr *pcr) in rtsx_base_fetch_vendor_settings() argument
63 struct pci_dev *pdev = pcr in rtsx_base_fetch_vendor_settings()
88 rtsx_base_enable_auto_blink(struct rtsx_pcr *pcr) rtsx_base_enable_auto_blink() argument
94 rtsx_base_disable_auto_blink(struct rtsx_pcr *pcr) rtsx_base_disable_auto_blink() argument
100 rts5260_turn_on_led(struct rtsx_pcr *pcr) rts5260_turn_on_led() argument
106 rts5260_turn_off_led(struct rtsx_pcr *pcr) rts5260_turn_off_led() argument
164 sd_set_sample_push_timing_sd30(struct rtsx_pcr *pcr) sd_set_sample_push_timing_sd30() argument
176 rts5260_card_power_on(struct rtsx_pcr *pcr, int card) rts5260_card_power_on() argument
220 rts5260_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rts5260_switch_output_voltage() argument
248 rts5260_stop_cmd(struct rtsx_pcr *pcr) rts5260_stop_cmd() argument
258 rts5260_card_before_power_off(struct rtsx_pcr *pcr) rts5260_card_before_power_off() argument
265 rts5260_card_power_off(struct rtsx_pcr *pcr, int card) rts5260_card_power_off() argument
280 rts5260_init_ocp(struct rtsx_pcr *pcr) rts5260_init_ocp() argument
313 rts5260_enable_ocp(struct rtsx_pcr *pcr) rts5260_enable_ocp() argument
322 rts5260_disable_ocp(struct rtsx_pcr *pcr) rts5260_disable_ocp() argument
332 rts5260_get_ocpstat(struct rtsx_pcr *pcr, u8 *val) rts5260_get_ocpstat() argument
337 rts5260_get_ocpstat2(struct rtsx_pcr *pcr, u8 *val) rts5260_get_ocpstat2() argument
342 rts5260_clear_ocpstat(struct rtsx_pcr *pcr) rts5260_clear_ocpstat() argument
360 rts5260_process_ocp(struct rtsx_pcr *pcr) rts5260_process_ocp() argument
379 rts5260_init_hw(struct rtsx_pcr *pcr) rts5260_init_hw() argument
416 rts5260_pwr_saving_setting(struct rtsx_pcr *pcr) rts5260_pwr_saving_setting() argument
481 rts5260_init_from_cfg(struct rtsx_pcr *pcr) rts5260_init_from_cfg() argument
493 rts5260_extra_init_hw(struct rtsx_pcr *pcr) rts5260_extra_init_hw() argument
530 rts5260_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active) rts5260_set_l1off_cfg_sub_d0() argument
583 rts5260_init_params(struct rtsx_pcr *pcr) rts5260_init_params() argument
[all...]
H A Drts5261.c18 static u8 rts5261_get_ic_version(struct rtsx_pcr *pcr) in rts5261_get_ic_version() argument
22 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5261_get_ic_version()
26 static void rts5261_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5261_fill_driving() argument
44 drive_sel = pcr->sd30_drive_sel_3v3; in rts5261_fill_driving()
47 drive_sel = pcr->sd30_drive_sel_1v8; in rts5261_fill_driving()
50 rtsx_pci_write_register(pcr, SD30_CLK_DRIVE_SEL, in rts5261_fill_driving()
53 rtsx_pci_write_register(pcr, SD30_CMD_DRIVE_SEL, in rts5261_fill_driving()
56 rtsx_pci_write_register(pcr, SD30_DAT_DRIVE_SEL, in rts5261_fill_driving()
60 static void rts5261_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) in rts5261_force_power_down() argument
63 rtsx_pci_write_register(pcr, AUTOLOAD_CFG_BAS in rts5261_force_power_down()
94 rts5261_enable_auto_blink(struct rtsx_pcr *pcr) rts5261_enable_auto_blink() argument
100 rts5261_disable_auto_blink(struct rtsx_pcr *pcr) rts5261_disable_auto_blink() argument
106 rts5261_turn_on_led(struct rtsx_pcr *pcr) rts5261_turn_on_led() argument
112 rts5261_turn_off_led(struct rtsx_pcr *pcr) rts5261_turn_off_led() argument
144 rts5261_sd_set_sample_push_timing_sd30(struct rtsx_pcr *pcr) rts5261_sd_set_sample_push_timing_sd30() argument
156 rts5261_card_power_on(struct rtsx_pcr *pcr, int card) rts5261_card_power_on() argument
201 rts5261_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rts5261_switch_output_voltage() argument
244 rts5261_stop_cmd(struct rtsx_pcr *pcr) rts5261_stop_cmd() argument
254 rts5261_card_before_power_off(struct rtsx_pcr *pcr) rts5261_card_before_power_off() argument
261 rts5261_enable_ocp(struct rtsx_pcr *pcr) rts5261_enable_ocp() argument
273 rts5261_disable_ocp(struct rtsx_pcr *pcr) rts5261_disable_ocp() argument
284 rts5261_card_power_off(struct rtsx_pcr *pcr, int card) rts5261_card_power_off() argument
300 rts5261_init_ocp(struct rtsx_pcr *pcr) rts5261_init_ocp() argument
329 rts5261_clear_ocpstat(struct rtsx_pcr *pcr) rts5261_clear_ocpstat() argument
344 rts5261_process_ocp(struct rtsx_pcr *pcr) rts5261_process_ocp() argument
360 rts5261_init_from_hw(struct rtsx_pcr *pcr) rts5261_init_from_hw() argument
455 rts5261_init_from_cfg(struct rtsx_pcr *pcr) rts5261_init_from_cfg() argument
465 rts5261_extra_init_hw(struct rtsx_pcr *pcr) rts5261_extra_init_hw() argument
545 rts5261_enable_aspm(struct rtsx_pcr *pcr, bool enable) rts5261_enable_aspm() argument
560 rts5261_disable_aspm(struct rtsx_pcr *pcr, bool enable) rts5261_disable_aspm() argument
576 rts5261_set_aspm(struct rtsx_pcr *pcr, bool enable) rts5261_set_aspm() argument
584 rts5261_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active) rts5261_set_l1off_cfg_sub_d0() argument
631 rts5261_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) rts5261_pci_switch_clock() argument
762 rts5261_init_params(struct rtsx_pcr *pcr) rts5261_init_params() argument
[all...]
H A Drts5229.c16 static u8 rts5229_get_ic_version(struct rtsx_pcr *pcr) in rts5229_get_ic_version() argument
20 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5229_get_ic_version()
24 static void rts5229_fetch_vendor_settings(struct rtsx_pcr *pcr) in rts5229_fetch_vendor_settings() argument
26 struct pci_dev *pdev = pcr->pci; in rts5229_fetch_vendor_settings()
30 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG1, reg); in rts5229_fetch_vendor_settings()
35 pcr->aspm_en = rtsx_reg_to_aspm(reg); in rts5229_fetch_vendor_settings()
36 pcr->sd30_drive_sel_1v8 = in rts5229_fetch_vendor_settings()
38 pcr->card_drive_sel &= 0x3F; in rts5229_fetch_vendor_settings()
39 pcr->card_drive_sel |= rtsx_reg_to_card_drive_sel(reg); in rts5229_fetch_vendor_settings()
42 pcr_dbg(pcr, "Cf in rts5229_fetch_vendor_settings()
47 rts5229_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) rts5229_force_power_down() argument
52 rts5229_extra_init_hw(struct rtsx_pcr *pcr) rts5229_extra_init_hw() argument
74 rts5229_optimize_phy(struct rtsx_pcr *pcr) rts5229_optimize_phy() argument
80 rts5229_turn_on_led(struct rtsx_pcr *pcr) rts5229_turn_on_led() argument
85 rts5229_turn_off_led(struct rtsx_pcr *pcr) rts5229_turn_off_led() argument
90 rts5229_enable_auto_blink(struct rtsx_pcr *pcr) rts5229_enable_auto_blink() argument
95 rts5229_disable_auto_blink(struct rtsx_pcr *pcr) rts5229_disable_auto_blink() argument
100 rts5229_card_power_on(struct rtsx_pcr *pcr, int card) rts5229_card_power_on() argument
124 rts5229_card_power_off(struct rtsx_pcr *pcr, int card) rts5229_card_power_off() argument
135 rts5229_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rts5229_switch_output_voltage() argument
238 rts5229_init_params(struct rtsx_pcr *pcr) rts5229_init_params() argument
[all...]
H A Drts5209.c16 static u8 rts5209_get_ic_version(struct rtsx_pcr *pcr) in rts5209_get_ic_version() argument
20 val = rtsx_pci_readb(pcr, 0x1C); in rts5209_get_ic_version()
24 static void rts5209_fetch_vendor_settings(struct rtsx_pcr *pcr) in rts5209_fetch_vendor_settings() argument
26 struct pci_dev *pdev = pcr->pci; in rts5209_fetch_vendor_settings()
30 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG1, reg); in rts5209_fetch_vendor_settings()
34 pcr->flags |= PCR_MS_PMOS; in rts5209_fetch_vendor_settings()
35 pcr->aspm_en = rts5209_reg_to_aspm(reg); in rts5209_fetch_vendor_settings()
39 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG2, reg); in rts5209_fetch_vendor_settings()
42 pcr->sd30_drive_sel_1v8 = in rts5209_fetch_vendor_settings()
44 pcr in rts5209_fetch_vendor_settings()
50 rts5209_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) rts5209_force_power_down() argument
55 rts5209_extra_init_hw(struct rtsx_pcr *pcr) rts5209_extra_init_hw() argument
74 rts5209_optimize_phy(struct rtsx_pcr *pcr) rts5209_optimize_phy() argument
79 rts5209_turn_on_led(struct rtsx_pcr *pcr) rts5209_turn_on_led() argument
84 rts5209_turn_off_led(struct rtsx_pcr *pcr) rts5209_turn_off_led() argument
89 rts5209_enable_auto_blink(struct rtsx_pcr *pcr) rts5209_enable_auto_blink() argument
94 rts5209_disable_auto_blink(struct rtsx_pcr *pcr) rts5209_disable_auto_blink() argument
99 rts5209_card_power_on(struct rtsx_pcr *pcr, int card) rts5209_card_power_on() argument
133 rts5209_card_power_off(struct rtsx_pcr *pcr, int card) rts5209_card_power_off() argument
153 rts5209_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rts5209_switch_output_voltage() argument
246 rts5209_init_params(struct rtsx_pcr *pcr) rts5209_init_params() argument
[all...]
H A Drtl8411.c18 static u8 rtl8411_get_ic_version(struct rtsx_pcr *pcr) in rtl8411_get_ic_version() argument
22 rtsx_pci_read_register(pcr, SYS_VER, &val); in rtl8411_get_ic_version()
26 static int rtl8411b_is_qfn48(struct rtsx_pcr *pcr) in rtl8411b_is_qfn48() argument
30 rtsx_pci_read_register(pcr, RTL8411B_PACKAGE_MODE, &val); in rtl8411b_is_qfn48()
38 static void rtl8411_fetch_vendor_settings(struct rtsx_pcr *pcr) in rtl8411_fetch_vendor_settings() argument
40 struct pci_dev *pdev = pcr->pci; in rtl8411_fetch_vendor_settings()
45 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG1, reg1); in rtl8411_fetch_vendor_settings()
50 pcr->aspm_en = rtsx_reg_to_aspm(reg1); in rtl8411_fetch_vendor_settings()
51 pcr->sd30_drive_sel_1v8 = in rtl8411_fetch_vendor_settings()
53 pcr in rtl8411_fetch_vendor_settings()
61 rtl8411b_fetch_vendor_settings(struct rtsx_pcr *pcr) rtl8411b_fetch_vendor_settings() argument
79 rtl8411_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) rtl8411_force_power_down() argument
84 rtl8411_extra_init_hw(struct rtsx_pcr *pcr) rtl8411_extra_init_hw() argument
96 rtl8411b_extra_init_hw(struct rtsx_pcr *pcr) rtl8411b_extra_init_hw() argument
113 rtl8411_turn_on_led(struct rtsx_pcr *pcr) rtl8411_turn_on_led() argument
118 rtl8411_turn_off_led(struct rtsx_pcr *pcr) rtl8411_turn_off_led() argument
123 rtl8411_enable_auto_blink(struct rtsx_pcr *pcr) rtl8411_enable_auto_blink() argument
128 rtl8411_disable_auto_blink(struct rtsx_pcr *pcr) rtl8411_disable_auto_blink() argument
133 rtl8411_card_power_on(struct rtsx_pcr *pcr, int card) rtl8411_card_power_on() argument
171 rtl8411_card_power_off(struct rtsx_pcr *pcr, int card) rtl8411_card_power_off() argument
184 rtl8411_do_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage, int bpp_tuned18_shift, int bpp_asic_1v8) rtl8411_do_switch_output_voltage() argument
210 rtl8411_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rtl8411_switch_output_voltage() argument
216 rtl8402_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rtl8402_switch_output_voltage() argument
222 rtl8411_cd_deglitch(struct rtsx_pcr *pcr) rtl8411_cd_deglitch() argument
462 rtl8411_init_common_params(struct rtsx_pcr *pcr) rtl8411_init_common_params() argument
477 rtl8411_init_params(struct rtsx_pcr *pcr) rtl8411_init_params() argument
484 rtl8411b_init_params(struct rtsx_pcr *pcr) rtl8411b_init_params() argument
494 rtl8402_init_params(struct rtsx_pcr *pcr) rtl8402_init_params() argument
[all...]
H A Drtsx_pcr.h61 int __rtsx_pci_write_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 val);
62 int __rtsx_pci_read_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 *val);
64 void rts5209_init_params(struct rtsx_pcr *pcr);
65 void rts5229_init_params(struct rtsx_pcr *pcr);
66 void rtl8411_init_params(struct rtsx_pcr *pcr);
67 void rtl8402_init_params(struct rtsx_pcr *pcr);
68 void rts5227_init_params(struct rtsx_pcr *pcr);
69 void rts522a_init_params(struct rtsx_pcr *pcr);
70 void rts5249_init_params(struct rtsx_pcr *pcr);
71 void rts524a_init_params(struct rtsx_pcr *pcr);
[all...]
/kernel/linux/linux-5.10/drivers/misc/cardreader/
H A Drtsx_pcr.c60 static inline void rtsx_pci_disable_aspm(struct rtsx_pcr *pcr) in rtsx_pci_disable_aspm() argument
62 pcie_capability_clear_and_set_word(pcr->pci, PCI_EXP_LNKCTL, in rtsx_pci_disable_aspm()
66 static int rtsx_comm_set_ltr_latency(struct rtsx_pcr *pcr, u32 latency) in rtsx_comm_set_ltr_latency() argument
68 rtsx_pci_write_register(pcr, MSGTXDATA0, in rtsx_comm_set_ltr_latency()
70 rtsx_pci_write_register(pcr, MSGTXDATA1, in rtsx_comm_set_ltr_latency()
72 rtsx_pci_write_register(pcr, MSGTXDATA2, in rtsx_comm_set_ltr_latency()
74 rtsx_pci_write_register(pcr, MSGTXDATA3, in rtsx_comm_set_ltr_latency()
76 rtsx_pci_write_register(pcr, LTR_CTL, LTR_TX_EN_MASK | in rtsx_comm_set_ltr_latency()
82 int rtsx_set_ltr_latency(struct rtsx_pcr *pcr, u32 latency) in rtsx_set_ltr_latency() argument
84 return rtsx_comm_set_ltr_latency(pcr, latenc in rtsx_set_ltr_latency()
87 rtsx_comm_set_aspm(struct rtsx_pcr *pcr, bool enable) rtsx_comm_set_aspm() argument
99 rtsx_disable_aspm(struct rtsx_pcr *pcr) rtsx_disable_aspm() argument
107 rtsx_set_l1off_sub(struct rtsx_pcr *pcr, u8 val) rtsx_set_l1off_sub() argument
114 rtsx_set_l1off_sub_cfg_d0(struct rtsx_pcr *pcr, int active) rtsx_set_l1off_sub_cfg_d0() argument
120 rtsx_comm_pm_full_on(struct rtsx_pcr *pcr) rtsx_comm_pm_full_on() argument
136 rtsx_pm_full_on(struct rtsx_pcr *pcr) rtsx_pm_full_on() argument
141 rtsx_pci_start_run(struct rtsx_pcr *pcr) rtsx_pci_start_run() argument
158 rtsx_pci_write_register(struct rtsx_pcr *pcr, u16 addr, u8 mask, u8 data) rtsx_pci_write_register() argument
182 rtsx_pci_read_register(struct rtsx_pcr *pcr, u16 addr, u8 *data) rtsx_pci_read_register() argument
206 __rtsx_pci_write_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 val) __rtsx_pci_write_phy_register() argument
233 rtsx_pci_write_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 val) rtsx_pci_write_phy_register() argument
242 __rtsx_pci_read_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 *val) __rtsx_pci_read_phy_register() argument
275 rtsx_pci_read_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 *val) rtsx_pci_read_phy_register() argument
284 rtsx_pci_stop_cmd(struct rtsx_pcr *pcr) rtsx_pci_stop_cmd() argument
297 rtsx_pci_add_cmd(struct rtsx_pcr *pcr, u8 cmd_type, u16 reg_addr, u8 mask, u8 data) rtsx_pci_add_cmd() argument
320 rtsx_pci_send_cmd_no_wait(struct rtsx_pcr *pcr) rtsx_pci_send_cmd_no_wait() argument
333 rtsx_pci_send_cmd(struct rtsx_pcr *pcr, int timeout) rtsx_pci_send_cmd() argument
390 rtsx_pci_add_sg_tbl(struct rtsx_pcr *pcr, dma_addr_t addr, unsigned int len, int end) rtsx_pci_add_sg_tbl() argument
415 rtsx_pci_transfer_data(struct rtsx_pcr *pcr, struct scatterlist *sglist, int num_sg, bool read, int timeout) rtsx_pci_transfer_data() argument
434 rtsx_pci_dma_map_sg(struct rtsx_pcr *pcr, struct scatterlist *sglist, int num_sg, bool read) rtsx_pci_dma_map_sg() argument
449 rtsx_pci_dma_unmap_sg(struct rtsx_pcr *pcr, struct scatterlist *sglist, int num_sg, bool read) rtsx_pci_dma_unmap_sg() argument
458 rtsx_pci_dma_transfer(struct rtsx_pcr *pcr, struct scatterlist *sglist, int count, bool read, int timeout) rtsx_pci_dma_transfer() argument
529 rtsx_pci_read_ppbuf(struct rtsx_pcr *pcr, u8 *buf, int buf_len) rtsx_pci_read_ppbuf() argument
572 rtsx_pci_write_ppbuf(struct rtsx_pcr *pcr, u8 *buf, int buf_len) rtsx_pci_write_ppbuf() argument
616 rtsx_pci_set_pull_ctl(struct rtsx_pcr *pcr, const u32 *tbl) rtsx_pci_set_pull_ctl() argument
629 rtsx_pci_card_pull_ctl_enable(struct rtsx_pcr *pcr, int card) rtsx_pci_card_pull_ctl_enable() argument
644 rtsx_pci_card_pull_ctl_disable(struct rtsx_pcr *pcr, int card) rtsx_pci_card_pull_ctl_disable() argument
659 rtsx_pci_enable_bus_int(struct rtsx_pcr *pcr) rtsx_pci_enable_bus_int() argument
692 rtsx_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) rtsx_pci_switch_clock() argument
808 rtsx_pci_card_power_on(struct rtsx_pcr *pcr, int card) rtsx_pci_card_power_on() argument
817 rtsx_pci_card_power_off(struct rtsx_pcr *pcr, int card) rtsx_pci_card_power_off() argument
826 rtsx_pci_card_exclusive_check(struct rtsx_pcr *pcr, int card) rtsx_pci_card_exclusive_check() argument
845 rtsx_pci_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rtsx_pci_switch_output_voltage() argument
854 rtsx_pci_card_exist(struct rtsx_pcr *pcr) rtsx_pci_card_exist() argument
866 rtsx_pci_complete_unfinished_transfer(struct rtsx_pcr *pcr) rtsx_pci_complete_unfinished_transfer() argument
888 struct rtsx_pcr *pcr; rtsx_pci_card_detect() local
935 rtsx_pci_process_ocp(struct rtsx_pcr *pcr) rtsx_pci_process_ocp() argument
952 rtsx_pci_process_ocp_interrupt(struct rtsx_pcr *pcr) rtsx_pci_process_ocp_interrupt() argument
962 struct rtsx_pcr *pcr = dev_id; rtsx_pci_isr() local
1026 rtsx_pci_acquire_irq(struct rtsx_pcr *pcr) rtsx_pci_acquire_irq() argument
1046 rtsx_enable_aspm(struct rtsx_pcr *pcr) rtsx_enable_aspm() argument
1054 rtsx_comm_pm_power_saving(struct rtsx_pcr *pcr) rtsx_comm_pm_power_saving() argument
1073 rtsx_pm_power_saving(struct rtsx_pcr *pcr) rtsx_pm_power_saving() argument
1081 struct rtsx_pcr *pcr = container_of(dwork, struct rtsx_pcr, idle_work); rtsx_pci_idle_work() local
1099 rtsx_base_force_power_down(struct rtsx_pcr *pcr, u8 pm_state) rtsx_base_force_power_down() argument
1113 rtsx_pci_power_off(struct rtsx_pcr *pcr, u8 pm_state) rtsx_pci_power_off() argument
1130 rtsx_pci_enable_ocp(struct rtsx_pcr *pcr) rtsx_pci_enable_ocp() argument
1143 rtsx_pci_disable_ocp(struct rtsx_pcr *pcr) rtsx_pci_disable_ocp() argument
1156 rtsx_pci_init_ocp(struct rtsx_pcr *pcr) rtsx_pci_init_ocp() argument
1178 rtsx_pci_get_ocpstat(struct rtsx_pcr *pcr, u8 *val) rtsx_pci_get_ocpstat() argument
1186 rtsx_pci_clear_ocpstat(struct rtsx_pcr *pcr) rtsx_pci_clear_ocpstat() argument
1200 rtsx_pci_enable_oobs_polling(struct rtsx_pcr *pcr) rtsx_pci_enable_oobs_polling() argument
1216 rtsx_pci_disable_oobs_polling(struct rtsx_pcr *pcr) rtsx_pci_disable_oobs_polling() argument
1230 rtsx_sd_power_off_card3v3(struct rtsx_pcr *pcr) rtsx_sd_power_off_card3v3() argument
1244 rtsx_ms_power_off_card3v3(struct rtsx_pcr *pcr) rtsx_ms_power_off_card3v3() argument
1257 rtsx_pci_init_hw(struct rtsx_pcr *pcr) rtsx_pci_init_hw() argument
1382 rtsx_pci_init_chip(struct rtsx_pcr *pcr) rtsx_pci_init_chip() argument
1477 struct rtsx_pcr *pcr; rtsx_pci_probe() local
1613 struct rtsx_pcr *pcr = handle->pcr; rtsx_pci_remove() local
1655 struct rtsx_pcr *pcr; rtsx_pci_suspend() local
1679 struct rtsx_pcr *pcr; rtsx_pci_resume() local
1709 struct rtsx_pcr *pcr; rtsx_pci_shutdown() local
[all...]
H A Drts5261.c18 static u8 rts5261_get_ic_version(struct rtsx_pcr *pcr) in rts5261_get_ic_version() argument
22 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5261_get_ic_version()
26 static void rts5261_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5261_fill_driving() argument
44 drive_sel = pcr->sd30_drive_sel_3v3; in rts5261_fill_driving()
47 drive_sel = pcr->sd30_drive_sel_1v8; in rts5261_fill_driving()
50 rtsx_pci_write_register(pcr, SD30_CLK_DRIVE_SEL, in rts5261_fill_driving()
53 rtsx_pci_write_register(pcr, SD30_CMD_DRIVE_SEL, in rts5261_fill_driving()
56 rtsx_pci_write_register(pcr, SD30_DAT_DRIVE_SEL, in rts5261_fill_driving()
60 static void rtsx5261_fetch_vendor_settings(struct rtsx_pcr *pcr) in rtsx5261_fetch_vendor_settings() argument
62 struct pci_dev *pdev = pcr in rtsx5261_fetch_vendor_settings()
89 rts5261_force_power_down(struct rtsx_pcr *pcr, u8 pm_state) rts5261_force_power_down() argument
105 rts5261_enable_auto_blink(struct rtsx_pcr *pcr) rts5261_enable_auto_blink() argument
111 rts5261_disable_auto_blink(struct rtsx_pcr *pcr) rts5261_disable_auto_blink() argument
117 rts5261_turn_on_led(struct rtsx_pcr *pcr) rts5261_turn_on_led() argument
123 rts5261_turn_off_led(struct rtsx_pcr *pcr) rts5261_turn_off_led() argument
155 rts5261_sd_set_sample_push_timing_sd30(struct rtsx_pcr *pcr) rts5261_sd_set_sample_push_timing_sd30() argument
167 rts5261_card_power_on(struct rtsx_pcr *pcr, int card) rts5261_card_power_on() argument
210 rts5261_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rts5261_switch_output_voltage() argument
253 rts5261_stop_cmd(struct rtsx_pcr *pcr) rts5261_stop_cmd() argument
263 rts5261_card_before_power_off(struct rtsx_pcr *pcr) rts5261_card_before_power_off() argument
270 rts5261_enable_ocp(struct rtsx_pcr *pcr) rts5261_enable_ocp() argument
279 rts5261_disable_ocp(struct rtsx_pcr *pcr) rts5261_disable_ocp() argument
290 rts5261_card_power_off(struct rtsx_pcr *pcr, int card) rts5261_card_power_off() argument
304 rts5261_init_ocp(struct rtsx_pcr *pcr) rts5261_init_ocp() argument
333 rts5261_clear_ocpstat(struct rtsx_pcr *pcr) rts5261_clear_ocpstat() argument
348 rts5261_process_ocp(struct rtsx_pcr *pcr) rts5261_process_ocp() argument
364 rts5261_init_from_hw(struct rtsx_pcr *pcr) rts5261_init_from_hw() argument
413 rts5261_init_from_cfg(struct rtsx_pcr *pcr) rts5261_init_from_cfg() argument
467 rts5261_extra_init_hw(struct rtsx_pcr *pcr) rts5261_extra_init_hw() argument
527 rts5261_enable_aspm(struct rtsx_pcr *pcr, bool enable) rts5261_enable_aspm() argument
538 rts5261_disable_aspm(struct rtsx_pcr *pcr, bool enable) rts5261_disable_aspm() argument
550 rts5261_set_aspm(struct rtsx_pcr *pcr, bool enable) rts5261_set_aspm() argument
558 rts5261_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active) rts5261_set_l1off_cfg_sub_d0() argument
606 rts5261_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) rts5261_pci_switch_clock() argument
737 rts5261_init_params(struct rtsx_pcr *pcr) rts5261_init_params() argument
[all...]
H A Drts5228.c19 static u8 rts5228_get_ic_version(struct rtsx_pcr *pcr) in rts5228_get_ic_version() argument
23 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5228_get_ic_version()
27 static void rts5228_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5228_fill_driving() argument
45 drive_sel = pcr->sd30_drive_sel_3v3; in rts5228_fill_driving()
48 drive_sel = pcr->sd30_drive_sel_1v8; in rts5228_fill_driving()
51 rtsx_pci_write_register(pcr, SD30_CLK_DRIVE_SEL, in rts5228_fill_driving()
54 rtsx_pci_write_register(pcr, SD30_CMD_DRIVE_SEL, in rts5228_fill_driving()
57 rtsx_pci_write_register(pcr, SD30_DAT_DRIVE_SEL, in rts5228_fill_driving()
61 static void rtsx5228_fetch_vendor_settings(struct rtsx_pcr *pcr) in rtsx5228_fetch_vendor_settings() argument
63 struct pci_dev *pdev = pcr in rtsx5228_fetch_vendor_settings()
89 rts5228_optimize_phy(struct rtsx_pcr *pcr) rts5228_optimize_phy() argument
94 rts5228_force_power_down(struct rtsx_pcr *pcr, u8 pm_state) rts5228_force_power_down() argument
109 rts5228_enable_auto_blink(struct rtsx_pcr *pcr) rts5228_enable_auto_blink() argument
115 rts5228_disable_auto_blink(struct rtsx_pcr *pcr) rts5228_disable_auto_blink() argument
121 rts5228_turn_on_led(struct rtsx_pcr *pcr) rts5228_turn_on_led() argument
127 rts5228_turn_off_led(struct rtsx_pcr *pcr) rts5228_turn_off_led() argument
159 rts5228_sd_set_sample_push_timing_sd30(struct rtsx_pcr *pcr) rts5228_sd_set_sample_push_timing_sd30() argument
171 rts5228_card_power_on(struct rtsx_pcr *pcr, int card) rts5228_card_power_on() argument
221 rts5228_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rts5228_switch_output_voltage() argument
264 rts5228_stop_cmd(struct rtsx_pcr *pcr) rts5228_stop_cmd() argument
274 rts5228_card_before_power_off(struct rtsx_pcr *pcr) rts5228_card_before_power_off() argument
280 rts5228_enable_ocp(struct rtsx_pcr *pcr) rts5228_enable_ocp() argument
291 rts5228_disable_ocp(struct rtsx_pcr *pcr) rts5228_disable_ocp() argument
301 rts5228_card_power_off(struct rtsx_pcr *pcr, int card) rts5228_card_power_off() argument
316 rts5228_init_ocp(struct rtsx_pcr *pcr) rts5228_init_ocp() argument
348 rts5228_clear_ocpstat(struct rtsx_pcr *pcr) rts5228_clear_ocpstat() argument
363 rts5228_process_ocp(struct rtsx_pcr *pcr) rts5228_process_ocp() argument
379 rts5228_init_from_cfg(struct rtsx_pcr *pcr) rts5228_init_from_cfg() argument
438 rts5228_extra_init_hw(struct rtsx_pcr *pcr) rts5228_extra_init_hw() argument
490 rts5228_enable_aspm(struct rtsx_pcr *pcr, bool enable) rts5228_enable_aspm() argument
506 rts5228_disable_aspm(struct rtsx_pcr *pcr, bool enable) rts5228_disable_aspm() argument
523 rts5228_set_aspm(struct rtsx_pcr *pcr, bool enable) rts5228_set_aspm() argument
531 rts5228_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active) rts5228_set_l1off_cfg_sub_d0() argument
581 rts5228_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) rts5228_pci_switch_clock() argument
707 rts5228_init_params(struct rtsx_pcr *pcr) rts5228_init_params() argument
[all...]
H A Drts5249.c16 static u8 rts5249_get_ic_version(struct rtsx_pcr *pcr) in rts5249_get_ic_version() argument
20 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5249_get_ic_version()
24 static void rts5249_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5249_fill_driving() argument
42 drive_sel = pcr->sd30_drive_sel_3v3; in rts5249_fill_driving()
45 drive_sel = pcr->sd30_drive_sel_1v8; in rts5249_fill_driving()
48 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CLK_DRIVE_SEL, in rts5249_fill_driving()
50 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CMD_DRIVE_SEL, in rts5249_fill_driving()
52 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_DAT_DRIVE_SEL, in rts5249_fill_driving()
56 static void rtsx_base_fetch_vendor_settings(struct rtsx_pcr *pcr) in rtsx_base_fetch_vendor_settings() argument
58 struct pci_dev *pdev = pcr in rtsx_base_fetch_vendor_settings()
83 rts5249_init_from_cfg(struct rtsx_pcr *pcr) rts5249_init_from_cfg() argument
130 rts5249_init_from_hw(struct rtsx_pcr *pcr) rts5249_init_from_hw() argument
143 rts52xa_save_content_from_efuse(struct rtsx_pcr *pcr) rts52xa_save_content_from_efuse() argument
217 rts52xa_save_content_to_autoload_space(struct rtsx_pcr *pcr) rts52xa_save_content_to_autoload_space() argument
249 rts5249_extra_init_hw(struct rtsx_pcr *pcr) rts5249_extra_init_hw() argument
311 rts5249_optimize_phy(struct rtsx_pcr *pcr) rts5249_optimize_phy() argument
377 rtsx_base_turn_on_led(struct rtsx_pcr *pcr) rtsx_base_turn_on_led() argument
382 rtsx_base_turn_off_led(struct rtsx_pcr *pcr) rtsx_base_turn_off_led() argument
387 rtsx_base_enable_auto_blink(struct rtsx_pcr *pcr) rtsx_base_enable_auto_blink() argument
392 rtsx_base_disable_auto_blink(struct rtsx_pcr *pcr) rtsx_base_disable_auto_blink() argument
397 rtsx_base_card_power_on(struct rtsx_pcr *pcr, int card) rtsx_base_card_power_on() argument
424 rtsx_base_card_power_off(struct rtsx_pcr *pcr, int card) rtsx_base_card_power_off() argument
437 rtsx_base_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rtsx_base_switch_output_voltage() argument
540 rts5249_init_params(struct rtsx_pcr *pcr) rts5249_init_params() argument
578 rts524a_write_phy(struct rtsx_pcr *pcr, u8 addr, u16 val) rts524a_write_phy() argument
585 rts524a_read_phy(struct rtsx_pcr *pcr, u8 addr, u16 *val) rts524a_read_phy() argument
592 rts524a_optimize_phy(struct rtsx_pcr *pcr) rts524a_optimize_phy() argument
635 rts524a_extra_init_hw(struct rtsx_pcr *pcr) rts524a_extra_init_hw() argument
663 rts5250_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active) rts5250_set_l1off_cfg_sub_d0() argument
713 rts524a_init_params(struct rtsx_pcr *pcr) rts524a_init_params() argument
732 rts525a_card_power_on(struct rtsx_pcr *pcr, int card) rts525a_card_power_on() argument
739 rts525a_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rts525a_switch_output_voltage() argument
762 rts525a_optimize_phy(struct rtsx_pcr *pcr) rts525a_optimize_phy() argument
788 rts525a_extra_init_hw(struct rtsx_pcr *pcr) rts525a_extra_init_hw() argument
829 rts525a_init_params(struct rtsx_pcr *pcr) rts525a_init_params() argument
[all...]
H A Drts5260.c19 static u8 rts5260_get_ic_version(struct rtsx_pcr *pcr) in rts5260_get_ic_version() argument
23 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5260_get_ic_version()
27 static void rts5260_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5260_fill_driving() argument
45 drive_sel = pcr->sd30_drive_sel_3v3; in rts5260_fill_driving()
48 drive_sel = pcr->sd30_drive_sel_1v8; in rts5260_fill_driving()
51 rtsx_pci_write_register(pcr, SD30_CLK_DRIVE_SEL, in rts5260_fill_driving()
54 rtsx_pci_write_register(pcr, SD30_CMD_DRIVE_SEL, in rts5260_fill_driving()
57 rtsx_pci_write_register(pcr, SD30_DAT_DRIVE_SEL, in rts5260_fill_driving()
61 static void rtsx_base_fetch_vendor_settings(struct rtsx_pcr *pcr) in rtsx_base_fetch_vendor_settings() argument
63 struct pci_dev *pdev = pcr in rtsx_base_fetch_vendor_settings()
88 rtsx_base_enable_auto_blink(struct rtsx_pcr *pcr) rtsx_base_enable_auto_blink() argument
94 rtsx_base_disable_auto_blink(struct rtsx_pcr *pcr) rtsx_base_disable_auto_blink() argument
100 rts5260_turn_on_led(struct rtsx_pcr *pcr) rts5260_turn_on_led() argument
106 rts5260_turn_off_led(struct rtsx_pcr *pcr) rts5260_turn_off_led() argument
164 sd_set_sample_push_timing_sd30(struct rtsx_pcr *pcr) sd_set_sample_push_timing_sd30() argument
176 rts5260_card_power_on(struct rtsx_pcr *pcr, int card) rts5260_card_power_on() argument
220 rts5260_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rts5260_switch_output_voltage() argument
248 rts5260_stop_cmd(struct rtsx_pcr *pcr) rts5260_stop_cmd() argument
258 rts5260_card_before_power_off(struct rtsx_pcr *pcr) rts5260_card_before_power_off() argument
265 rts5260_card_power_off(struct rtsx_pcr *pcr, int card) rts5260_card_power_off() argument
280 rts5260_init_ocp(struct rtsx_pcr *pcr) rts5260_init_ocp() argument
313 rts5260_enable_ocp(struct rtsx_pcr *pcr) rts5260_enable_ocp() argument
322 rts5260_disable_ocp(struct rtsx_pcr *pcr) rts5260_disable_ocp() argument
332 rts5260_get_ocpstat(struct rtsx_pcr *pcr, u8 *val) rts5260_get_ocpstat() argument
337 rts5260_get_ocpstat2(struct rtsx_pcr *pcr, u8 *val) rts5260_get_ocpstat2() argument
342 rts5260_clear_ocpstat(struct rtsx_pcr *pcr) rts5260_clear_ocpstat() argument
360 rts5260_process_ocp(struct rtsx_pcr *pcr) rts5260_process_ocp() argument
379 rts5260_init_hw(struct rtsx_pcr *pcr) rts5260_init_hw() argument
416 rts5260_pwr_saving_setting(struct rtsx_pcr *pcr) rts5260_pwr_saving_setting() argument
481 rts5260_init_from_cfg(struct rtsx_pcr *pcr) rts5260_init_from_cfg() argument
528 rts5260_extra_init_hw(struct rtsx_pcr *pcr) rts5260_extra_init_hw() argument
565 rts5260_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active) rts5260_set_l1off_cfg_sub_d0() argument
618 rts5260_init_params(struct rtsx_pcr *pcr) rts5260_init_params() argument
[all...]
H A Drts5227.c17 static u8 rts5227_get_ic_version(struct rtsx_pcr *pcr) in rts5227_get_ic_version() argument
21 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5227_get_ic_version()
25 static void rts5227_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5227_fill_driving() argument
43 drive_sel = pcr->sd30_drive_sel_3v3; in rts5227_fill_driving()
46 drive_sel = pcr->sd30_drive_sel_1v8; in rts5227_fill_driving()
49 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CLK_DRIVE_SEL, in rts5227_fill_driving()
51 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CMD_DRIVE_SEL, in rts5227_fill_driving()
53 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_DAT_DRIVE_SEL, in rts5227_fill_driving()
57 static void rts5227_fetch_vendor_settings(struct rtsx_pcr *pcr) in rts5227_fetch_vendor_settings() argument
59 struct pci_dev *pdev = pcr in rts5227_fetch_vendor_settings()
82 rts5227_init_from_cfg(struct rtsx_pcr *pcr) rts5227_init_from_cfg() argument
143 rts5227_extra_init_hw(struct rtsx_pcr *pcr) rts5227_extra_init_hw() argument
186 rts5227_optimize_phy(struct rtsx_pcr *pcr) rts5227_optimize_phy() argument
198 rts5227_turn_on_led(struct rtsx_pcr *pcr) rts5227_turn_on_led() argument
203 rts5227_turn_off_led(struct rtsx_pcr *pcr) rts5227_turn_off_led() argument
208 rts5227_enable_auto_blink(struct rtsx_pcr *pcr) rts5227_enable_auto_blink() argument
213 rts5227_disable_auto_blink(struct rtsx_pcr *pcr) rts5227_disable_auto_blink() argument
218 rts5227_card_power_on(struct rtsx_pcr *pcr, int card) rts5227_card_power_on() argument
252 rts5227_card_power_off(struct rtsx_pcr *pcr, int card) rts5227_card_power_off() argument
264 rts5227_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rts5227_switch_output_voltage() argument
350 rts5227_init_params(struct rtsx_pcr *pcr) rts5227_init_params() argument
373 rts522a_optimize_phy(struct rtsx_pcr *pcr) rts522a_optimize_phy() argument
397 rts522a_extra_init_hw(struct rtsx_pcr *pcr) rts522a_extra_init_hw() argument
415 rts522a_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rts522a_switch_output_voltage() argument
440 rts522a_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active) rts522a_set_l1off_cfg_sub_d0() argument
480 rts522a_init_params(struct rtsx_pcr *pcr) rts522a_init_params() argument
[all...]
H A Drts5229.c16 static u8 rts5229_get_ic_version(struct rtsx_pcr *pcr) in rts5229_get_ic_version() argument
20 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5229_get_ic_version()
24 static void rts5229_fetch_vendor_settings(struct rtsx_pcr *pcr) in rts5229_fetch_vendor_settings() argument
26 struct pci_dev *pdev = pcr->pci; in rts5229_fetch_vendor_settings()
30 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG1, reg); in rts5229_fetch_vendor_settings()
35 pcr->aspm_en = rtsx_reg_to_aspm(reg); in rts5229_fetch_vendor_settings()
36 pcr->sd30_drive_sel_1v8 = in rts5229_fetch_vendor_settings()
38 pcr->card_drive_sel &= 0x3F; in rts5229_fetch_vendor_settings()
39 pcr->card_drive_sel |= rtsx_reg_to_card_drive_sel(reg); in rts5229_fetch_vendor_settings()
42 pcr_dbg(pcr, "Cf in rts5229_fetch_vendor_settings()
47 rts5229_force_power_down(struct rtsx_pcr *pcr, u8 pm_state) rts5229_force_power_down() argument
52 rts5229_extra_init_hw(struct rtsx_pcr *pcr) rts5229_extra_init_hw() argument
74 rts5229_optimize_phy(struct rtsx_pcr *pcr) rts5229_optimize_phy() argument
80 rts5229_turn_on_led(struct rtsx_pcr *pcr) rts5229_turn_on_led() argument
85 rts5229_turn_off_led(struct rtsx_pcr *pcr) rts5229_turn_off_led() argument
90 rts5229_enable_auto_blink(struct rtsx_pcr *pcr) rts5229_enable_auto_blink() argument
95 rts5229_disable_auto_blink(struct rtsx_pcr *pcr) rts5229_disable_auto_blink() argument
100 rts5229_card_power_on(struct rtsx_pcr *pcr, int card) rts5229_card_power_on() argument
124 rts5229_card_power_off(struct rtsx_pcr *pcr, int card) rts5229_card_power_off() argument
135 rts5229_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rts5229_switch_output_voltage() argument
238 rts5229_init_params(struct rtsx_pcr *pcr) rts5229_init_params() argument
[all...]
H A Drts5209.c16 static u8 rts5209_get_ic_version(struct rtsx_pcr *pcr) in rts5209_get_ic_version() argument
20 val = rtsx_pci_readb(pcr, 0x1C); in rts5209_get_ic_version()
24 static void rts5209_fetch_vendor_settings(struct rtsx_pcr *pcr) in rts5209_fetch_vendor_settings() argument
26 struct pci_dev *pdev = pcr->pci; in rts5209_fetch_vendor_settings()
30 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG1, reg); in rts5209_fetch_vendor_settings()
34 pcr->flags |= PCR_MS_PMOS; in rts5209_fetch_vendor_settings()
35 pcr->aspm_en = rts5209_reg_to_aspm(reg); in rts5209_fetch_vendor_settings()
39 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG2, reg); in rts5209_fetch_vendor_settings()
42 pcr->sd30_drive_sel_1v8 = in rts5209_fetch_vendor_settings()
44 pcr in rts5209_fetch_vendor_settings()
50 rts5209_force_power_down(struct rtsx_pcr *pcr, u8 pm_state) rts5209_force_power_down() argument
55 rts5209_extra_init_hw(struct rtsx_pcr *pcr) rts5209_extra_init_hw() argument
74 rts5209_optimize_phy(struct rtsx_pcr *pcr) rts5209_optimize_phy() argument
79 rts5209_turn_on_led(struct rtsx_pcr *pcr) rts5209_turn_on_led() argument
84 rts5209_turn_off_led(struct rtsx_pcr *pcr) rts5209_turn_off_led() argument
89 rts5209_enable_auto_blink(struct rtsx_pcr *pcr) rts5209_enable_auto_blink() argument
94 rts5209_disable_auto_blink(struct rtsx_pcr *pcr) rts5209_disable_auto_blink() argument
99 rts5209_card_power_on(struct rtsx_pcr *pcr, int card) rts5209_card_power_on() argument
133 rts5209_card_power_off(struct rtsx_pcr *pcr, int card) rts5209_card_power_off() argument
153 rts5209_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rts5209_switch_output_voltage() argument
246 rts5209_init_params(struct rtsx_pcr *pcr) rts5209_init_params() argument
[all...]
H A Drtl8411.c18 static u8 rtl8411_get_ic_version(struct rtsx_pcr *pcr) in rtl8411_get_ic_version() argument
22 rtsx_pci_read_register(pcr, SYS_VER, &val); in rtl8411_get_ic_version()
26 static int rtl8411b_is_qfn48(struct rtsx_pcr *pcr) in rtl8411b_is_qfn48() argument
30 rtsx_pci_read_register(pcr, RTL8411B_PACKAGE_MODE, &val); in rtl8411b_is_qfn48()
38 static void rtl8411_fetch_vendor_settings(struct rtsx_pcr *pcr) in rtl8411_fetch_vendor_settings() argument
40 struct pci_dev *pdev = pcr->pci; in rtl8411_fetch_vendor_settings()
45 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG1, reg1); in rtl8411_fetch_vendor_settings()
50 pcr->aspm_en = rtsx_reg_to_aspm(reg1); in rtl8411_fetch_vendor_settings()
51 pcr->sd30_drive_sel_1v8 = in rtl8411_fetch_vendor_settings()
53 pcr in rtl8411_fetch_vendor_settings()
61 rtl8411b_fetch_vendor_settings(struct rtsx_pcr *pcr) rtl8411b_fetch_vendor_settings() argument
79 rtl8411_force_power_down(struct rtsx_pcr *pcr, u8 pm_state) rtl8411_force_power_down() argument
84 rtl8411_extra_init_hw(struct rtsx_pcr *pcr) rtl8411_extra_init_hw() argument
96 rtl8411b_extra_init_hw(struct rtsx_pcr *pcr) rtl8411b_extra_init_hw() argument
113 rtl8411_turn_on_led(struct rtsx_pcr *pcr) rtl8411_turn_on_led() argument
118 rtl8411_turn_off_led(struct rtsx_pcr *pcr) rtl8411_turn_off_led() argument
123 rtl8411_enable_auto_blink(struct rtsx_pcr *pcr) rtl8411_enable_auto_blink() argument
128 rtl8411_disable_auto_blink(struct rtsx_pcr *pcr) rtl8411_disable_auto_blink() argument
133 rtl8411_card_power_on(struct rtsx_pcr *pcr, int card) rtl8411_card_power_on() argument
171 rtl8411_card_power_off(struct rtsx_pcr *pcr, int card) rtl8411_card_power_off() argument
184 rtl8411_do_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage, int bpp_tuned18_shift, int bpp_asic_1v8) rtl8411_do_switch_output_voltage() argument
210 rtl8411_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rtl8411_switch_output_voltage() argument
216 rtl8402_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) rtl8402_switch_output_voltage() argument
222 rtl8411_cd_deglitch(struct rtsx_pcr *pcr) rtl8411_cd_deglitch() argument
462 rtl8411_init_common_params(struct rtsx_pcr *pcr) rtl8411_init_common_params() argument
476 rtl8411_init_params(struct rtsx_pcr *pcr) rtl8411_init_params() argument
483 rtl8411b_init_params(struct rtsx_pcr *pcr) rtl8411b_init_params() argument
493 rtl8402_init_params(struct rtsx_pcr *pcr) rtl8402_init_params() argument
[all...]
H A Drtsx_pcr.h58 int __rtsx_pci_write_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 val);
59 int __rtsx_pci_read_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 *val);
61 void rts5209_init_params(struct rtsx_pcr *pcr);
62 void rts5229_init_params(struct rtsx_pcr *pcr);
63 void rtl8411_init_params(struct rtsx_pcr *pcr);
64 void rtl8402_init_params(struct rtsx_pcr *pcr);
65 void rts5227_init_params(struct rtsx_pcr *pcr);
66 void rts522a_init_params(struct rtsx_pcr *pcr);
67 void rts5249_init_params(struct rtsx_pcr *pcr);
68 void rts524a_init_params(struct rtsx_pcr *pcr);
[all...]
/kernel/linux/linux-5.10/drivers/memstick/host/
H A Drtsx_pci_ms.c20 struct rtsx_pcr *pcr; member
40 rtsx_pci_write_register(host->pcr, CARD_STOP, in ms_clear_error()
48 struct rtsx_pcr *pcr = host->pcr; in ms_print_debug_regs() local
53 rtsx_pci_init_cmd(pcr); in ms_print_debug_regs()
55 rtsx_pci_add_cmd(pcr, READ_REG_CMD, i, 0, 0); in ms_print_debug_regs()
57 rtsx_pci_add_cmd(pcr, READ_REG_CMD, i, 0, 0); in ms_print_debug_regs()
58 rtsx_pci_send_cmd(pcr, 100); in ms_print_debug_regs()
60 ptr = rtsx_pci_get_cmd_data(pcr); in ms_print_debug_regs()
75 struct rtsx_pcr *pcr in ms_power_on() local
109 struct rtsx_pcr *pcr = host->pcr; ms_power_off() local
131 struct rtsx_pcr *pcr = host->pcr; ms_transfer_data() local
202 struct rtsx_pcr *pcr = host->pcr; ms_write_bytes() local
270 struct rtsx_pcr *pcr = host->pcr; ms_read_bytes() local
393 struct rtsx_pcr *pcr = host->pcr; rtsx_pci_ms_handle_req() local
436 struct rtsx_pcr *pcr = host->pcr; rtsx_pci_ms_set_param() local
535 struct rtsx_pcr *pcr; rtsx_pci_ms_drv_probe() local
580 struct rtsx_pcr *pcr; rtsx_pci_ms_drv_remove() local
[all...]
/kernel/linux/linux-6.6/drivers/memstick/host/
H A Drtsx_pci_ms.c20 struct rtsx_pcr *pcr; member
40 rtsx_pci_write_register(host->pcr, CARD_STOP, in ms_clear_error()
48 struct rtsx_pcr *pcr = host->pcr; in ms_print_debug_regs() local
53 rtsx_pci_init_cmd(pcr); in ms_print_debug_regs()
55 rtsx_pci_add_cmd(pcr, READ_REG_CMD, i, 0, 0); in ms_print_debug_regs()
57 rtsx_pci_add_cmd(pcr, READ_REG_CMD, i, 0, 0); in ms_print_debug_regs()
58 rtsx_pci_send_cmd(pcr, 100); in ms_print_debug_regs()
60 ptr = rtsx_pci_get_cmd_data(pcr); in ms_print_debug_regs()
75 struct rtsx_pcr *pcr in ms_power_on() local
109 struct rtsx_pcr *pcr = host->pcr; ms_power_off() local
131 struct rtsx_pcr *pcr = host->pcr; ms_transfer_data() local
202 struct rtsx_pcr *pcr = host->pcr; ms_write_bytes() local
270 struct rtsx_pcr *pcr = host->pcr; ms_read_bytes() local
393 struct rtsx_pcr *pcr = host->pcr; rtsx_pci_ms_handle_req() local
436 struct rtsx_pcr *pcr = host->pcr; rtsx_pci_ms_set_param() local
535 struct rtsx_pcr *pcr; rtsx_pci_ms_drv_probe() local
580 struct rtsx_pcr *pcr; rtsx_pci_ms_drv_remove() local
[all...]
/kernel/linux/linux-6.6/drivers/mmc/host/
H A Drtsx_pci_sdmmc.c27 struct rtsx_pcr *pcr; member
57 rtsx_pci_write_register(host->pcr, CARD_STOP, in sd_clear_error()
74 rtsx_pci_read_register(host->pcr, start + i + j, in dump_reg_range()
92 return rtsx_pci_readl(host->pcr, RTSX_BIPR) & SD_EXIST; in sd_get_cd_int()
95 static void sd_cmd_set_sd_cmd(struct rtsx_pcr *pcr, struct mmc_command *cmd) in sd_cmd_set_sd_cmd() argument
97 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_CMD0, 0xFF, in sd_cmd_set_sd_cmd()
99 rtsx_pci_write_be32(pcr, SD_CMD1, cmd->arg); in sd_cmd_set_sd_cmd()
102 static void sd_cmd_set_data_len(struct rtsx_pcr *pcr, u16 blocks, u16 blksz) in sd_cmd_set_data_len() argument
104 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BLOCK_CNT_L, 0xFF, blocks); in sd_cmd_set_data_len()
105 rtsx_pci_add_cmd(pcr, WRITE_REG_CM in sd_cmd_set_data_len()
150 struct rtsx_pcr *pcr = host->pcr; sd_pre_dma_transfer() local
201 struct rtsx_pcr *pcr = host->pcr; sdmmc_post_req() local
212 struct rtsx_pcr *pcr = host->pcr; sd_send_cmd_get_rsp() local
330 struct rtsx_pcr *pcr = host->pcr; sd_read_data() local
384 struct rtsx_pcr *pcr = host->pcr; sd_write_data() local
430 struct rtsx_pcr *pcr = host->pcr; sd_read_long_data() local
488 struct rtsx_pcr *pcr = host->pcr; sd_write_long_data() local
618 struct rtsx_pcr *pcr = host->pcr; sd_change_phase() local
705 struct rtsx_pcr *pcr = host->pcr; sd_tuning_rx_cmd() local
800 struct rtsx_pcr *pcr = host->pcr; sd_request() local
907 struct rtsx_pcr *pcr = host->pcr; sd_power_on() local
981 struct rtsx_pcr *pcr = host->pcr; sd_power_off() local
1017 struct rtsx_pcr *pcr = host->pcr; sd_set_timing() local
1090 struct rtsx_pcr *pcr = host->pcr; sdmmc_set_ios() local
1138 struct rtsx_pcr *pcr = host->pcr; sdmmc_get_ro() local
1163 struct rtsx_pcr *pcr = host->pcr; sdmmc_get_cd() local
1187 struct rtsx_pcr *pcr = host->pcr; sd_wait_voltage_stable_1() local
1220 struct rtsx_pcr *pcr = host->pcr; sd_wait_voltage_stable_2() local
1261 struct rtsx_pcr *pcr = host->pcr; sdmmc_switch_voltage() local
1313 struct rtsx_pcr *pcr = host->pcr; sdmmc_execute_tuning() local
1365 struct rtsx_pcr *pcr = host->pcr; sdmmc_init_sd_express() local
1415 struct rtsx_pcr *pcr = host->pcr; init_extra_caps() local
1438 struct rtsx_pcr *pcr = host->pcr; realtek_init_host() local
1475 struct rtsx_pcr *pcr; rtsx_pci_sdmmc_drv_probe() local
1529 struct rtsx_pcr *pcr; rtsx_pci_sdmmc_drv_remove() local
[all...]
/kernel/linux/linux-5.10/drivers/mmc/host/
H A Drtsx_pci_sdmmc.c26 struct rtsx_pcr *pcr; member
54 rtsx_pci_write_register(host->pcr, CARD_STOP, in sd_clear_error()
71 rtsx_pci_read_register(host->pcr, start + i + j, in dump_reg_range()
89 return rtsx_pci_readl(host->pcr, RTSX_BIPR) & SD_EXIST; in sd_get_cd_int()
92 static void sd_cmd_set_sd_cmd(struct rtsx_pcr *pcr, struct mmc_command *cmd) in sd_cmd_set_sd_cmd() argument
94 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_CMD0, 0xFF, in sd_cmd_set_sd_cmd()
96 rtsx_pci_write_be32(pcr, SD_CMD1, cmd->arg); in sd_cmd_set_sd_cmd()
99 static void sd_cmd_set_data_len(struct rtsx_pcr *pcr, u16 blocks, u16 blksz) in sd_cmd_set_data_len() argument
101 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BLOCK_CNT_L, 0xFF, blocks); in sd_cmd_set_data_len()
102 rtsx_pci_add_cmd(pcr, WRITE_REG_CM in sd_cmd_set_data_len()
147 struct rtsx_pcr *pcr = host->pcr; sd_pre_dma_transfer() local
198 struct rtsx_pcr *pcr = host->pcr; sdmmc_post_req() local
209 struct rtsx_pcr *pcr = host->pcr; sd_send_cmd_get_rsp() local
327 struct rtsx_pcr *pcr = host->pcr; sd_read_data() local
381 struct rtsx_pcr *pcr = host->pcr; sd_write_data() local
427 struct rtsx_pcr *pcr = host->pcr; sd_read_long_data() local
485 struct rtsx_pcr *pcr = host->pcr; sd_write_long_data() local
615 struct rtsx_pcr *pcr = host->pcr; sd_change_phase() local
702 struct rtsx_pcr *pcr = host->pcr; sd_tuning_rx_cmd() local
797 struct rtsx_pcr *pcr = host->pcr; sd_request() local
904 struct rtsx_pcr *pcr = host->pcr; sd_power_on() local
951 struct rtsx_pcr *pcr = host->pcr; sd_power_off() local
987 struct rtsx_pcr *pcr = host->pcr; sd_set_timing() local
1060 struct rtsx_pcr *pcr = host->pcr; sdmmc_set_ios() local
1108 struct rtsx_pcr *pcr = host->pcr; sdmmc_get_ro() local
1133 struct rtsx_pcr *pcr = host->pcr; sdmmc_get_cd() local
1157 struct rtsx_pcr *pcr = host->pcr; sd_wait_voltage_stable_1() local
1190 struct rtsx_pcr *pcr = host->pcr; sd_wait_voltage_stable_2() local
1231 struct rtsx_pcr *pcr = host->pcr; sdmmc_switch_voltage() local
1283 struct rtsx_pcr *pcr = host->pcr; sdmmc_execute_tuning() local
1345 struct rtsx_pcr *pcr = host->pcr; init_extra_caps() local
1399 struct rtsx_pcr *pcr; rtsx_pci_sdmmc_drv_probe() local
1439 struct rtsx_pcr *pcr; rtsx_pci_sdmmc_drv_remove() local
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Drtsx_pci.h90 #define rtsx_pci_writel(pcr, reg, value) \
91 iowrite32(value, (pcr)->remap_addr + reg)
92 #define rtsx_pci_readl(pcr, reg) \
93 ioread32((pcr)->remap_addr + reg)
94 #define rtsx_pci_writew(pcr, reg, value) \
95 iowrite16(value, (pcr)->remap_addr + reg)
96 #define rtsx_pci_readw(pcr, reg) \
97 ioread16((pcr)->remap_addr + reg)
98 #define rtsx_pci_writeb(pcr, reg, value) \
99 iowrite8(value, (pcr)
1082 struct rtsx_pcr *pcr; global() member
1328 rtsx_pci_get_cmd_data(struct rtsx_pcr *pcr) rtsx_pci_get_cmd_data() argument
1333 rtsx_pci_write_be32(struct rtsx_pcr *pcr, u16 reg, u32 val) rtsx_pci_write_be32() argument
1341 rtsx_pci_update_phy(struct rtsx_pcr *pcr, u8 addr, u16 mask, u16 append) rtsx_pci_update_phy() argument
[all...]

Completed in 18 milliseconds

12345678