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

1234

/linux-master/drivers/misc/cardreader/
H A Drts5227.c17 static u8 rts5227_get_ic_version(struct rtsx_pcr *pcr) argument
21 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val);
25 static void rts5227_fill_driving(struct rtsx_pcr *pcr, u8 voltage) argument
43 drive_sel = pcr->sd30_drive_sel_3v3;
46 drive_sel = pcr->sd30_drive_sel_1v8;
49 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CLK_DRIVE_SEL,
51 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CMD_DRIVE_SEL,
53 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_DAT_DRIVE_SEL,
57 static void rts5227_fetch_vendor_settings(struct rtsx_pcr *pcr) argument
59 struct pci_dev *pdev = pcr
84 rts5227_init_from_cfg(struct rtsx_pcr *pcr) argument
102 rts5227_extra_init_hw(struct rtsx_pcr *pcr) argument
167 rts5227_optimize_phy(struct rtsx_pcr *pcr) argument
179 rts5227_turn_on_led(struct rtsx_pcr *pcr) argument
184 rts5227_turn_off_led(struct rtsx_pcr *pcr) argument
189 rts5227_enable_auto_blink(struct rtsx_pcr *pcr) argument
194 rts5227_disable_auto_blink(struct rtsx_pcr *pcr) argument
199 rts5227_card_power_on(struct rtsx_pcr *pcr, int card) argument
233 rts5227_card_power_off(struct rtsx_pcr *pcr, int card) argument
245 rts5227_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument
331 rts5227_init_params(struct rtsx_pcr *pcr) argument
355 rts522a_optimize_phy(struct rtsx_pcr *pcr) argument
379 rts522a_extra_init_hw(struct rtsx_pcr *pcr) argument
397 rts522a_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument
422 rts522a_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) argument
444 rts522a_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active) argument
485 rts522a_init_params(struct rtsx_pcr *pcr) argument
[all...]
H A Drtsx_pcr.c64 static int rtsx_comm_set_ltr_latency(struct rtsx_pcr *pcr, u32 latency) argument
66 rtsx_pci_write_register(pcr, MSGTXDATA0,
68 rtsx_pci_write_register(pcr, MSGTXDATA1,
70 rtsx_pci_write_register(pcr, MSGTXDATA2,
72 rtsx_pci_write_register(pcr, MSGTXDATA3,
74 rtsx_pci_write_register(pcr, LTR_CTL, LTR_TX_EN_MASK |
80 int rtsx_set_ltr_latency(struct rtsx_pcr *pcr, u32 latency) argument
82 return rtsx_comm_set_ltr_latency(pcr, latency);
85 static void rtsx_comm_set_aspm(struct rtsx_pcr *pcr, bool enable) argument
87 if (pcr
109 rtsx_disable_aspm(struct rtsx_pcr *pcr) argument
117 rtsx_set_l1off_sub(struct rtsx_pcr *pcr, u8 val) argument
124 rtsx_set_l1off_sub_cfg_d0(struct rtsx_pcr *pcr, int active) argument
130 rtsx_comm_pm_full_on(struct rtsx_pcr *pcr) argument
146 rtsx_pm_full_on(struct rtsx_pcr *pcr) argument
151 rtsx_pci_start_run(struct rtsx_pcr *pcr) argument
166 rtsx_pci_write_register(struct rtsx_pcr *pcr, u16 addr, u8 mask, u8 data) argument
190 rtsx_pci_read_register(struct rtsx_pcr *pcr, u16 addr, u8 *data) argument
214 __rtsx_pci_write_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 val) argument
241 rtsx_pci_write_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 val) argument
250 __rtsx_pci_read_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 *val) argument
283 rtsx_pci_read_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 *val) argument
292 rtsx_pci_stop_cmd(struct rtsx_pcr *pcr) argument
305 rtsx_pci_add_cmd(struct rtsx_pcr *pcr, u8 cmd_type, u16 reg_addr, u8 mask, u8 data) argument
328 rtsx_pci_send_cmd_no_wait(struct rtsx_pcr *pcr) argument
341 rtsx_pci_send_cmd(struct rtsx_pcr *pcr, int timeout) argument
398 rtsx_pci_add_sg_tbl(struct rtsx_pcr *pcr, dma_addr_t addr, unsigned int len, int end) argument
423 rtsx_pci_transfer_data(struct rtsx_pcr *pcr, struct scatterlist *sglist, int num_sg, bool read, int timeout) argument
442 rtsx_pci_dma_map_sg(struct rtsx_pcr *pcr, struct scatterlist *sglist, int num_sg, bool read) argument
457 rtsx_pci_dma_unmap_sg(struct rtsx_pcr *pcr, struct scatterlist *sglist, int num_sg, bool read) argument
466 rtsx_pci_dma_transfer(struct rtsx_pcr *pcr, struct scatterlist *sglist, int count, bool read, int timeout) argument
537 rtsx_pci_read_ppbuf(struct rtsx_pcr *pcr, u8 *buf, int buf_len) argument
580 rtsx_pci_write_ppbuf(struct rtsx_pcr *pcr, u8 *buf, int buf_len) argument
624 rtsx_pci_set_pull_ctl(struct rtsx_pcr *pcr, const u32 *tbl) argument
637 rtsx_pci_card_pull_ctl_enable(struct rtsx_pcr *pcr, int card) argument
652 rtsx_pci_card_pull_ctl_disable(struct rtsx_pcr *pcr, int card) argument
667 rtsx_pci_enable_bus_int(struct rtsx_pcr *pcr) argument
700 rtsx_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) argument
819 rtsx_pci_card_power_on(struct rtsx_pcr *pcr, int card) argument
828 rtsx_pci_card_power_off(struct rtsx_pcr *pcr, int card) argument
837 rtsx_pci_card_exclusive_check(struct rtsx_pcr *pcr, int card) argument
856 rtsx_pci_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument
865 rtsx_pci_card_exist(struct rtsx_pcr *pcr) argument
877 rtsx_pci_complete_unfinished_transfer(struct rtsx_pcr *pcr) argument
899 struct rtsx_pcr *pcr; local
946 rtsx_pci_process_ocp(struct rtsx_pcr *pcr) argument
963 rtsx_pci_process_ocp_interrupt(struct rtsx_pcr *pcr) argument
973 struct rtsx_pcr *pcr = dev_id; local
1043 rtsx_pci_acquire_irq(struct rtsx_pcr *pcr) argument
1063 rtsx_base_force_power_down(struct rtsx_pcr *pcr) argument
1077 rtsx_pci_power_off(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) argument
1094 rtsx_pci_enable_ocp(struct rtsx_pcr *pcr) argument
1107 rtsx_pci_disable_ocp(struct rtsx_pcr *pcr) argument
1120 rtsx_pci_init_ocp(struct rtsx_pcr *pcr) argument
1142 rtsx_pci_get_ocpstat(struct rtsx_pcr *pcr, u8 *val) argument
1150 rtsx_pci_clear_ocpstat(struct rtsx_pcr *pcr) argument
1164 rtsx_pci_enable_oobs_polling(struct rtsx_pcr *pcr) argument
1182 rtsx_pci_disable_oobs_polling(struct rtsx_pcr *pcr) argument
1198 rtsx_sd_power_off_card3v3(struct rtsx_pcr *pcr) argument
1212 rtsx_ms_power_off_card3v3(struct rtsx_pcr *pcr) argument
1225 rtsx_pci_init_hw(struct rtsx_pcr *pcr) argument
1359 rtsx_pci_init_chip(struct rtsx_pcr *pcr) argument
1519 struct rtsx_pcr *pcr; local
1656 struct rtsx_pcr *pcr = handle->pcr; local
1700 struct rtsx_pcr *pcr = handle->pcr; local
1718 struct rtsx_pcr *pcr = handle->pcr; local
1740 rtsx_enable_aspm(struct rtsx_pcr *pcr) argument
1748 rtsx_comm_pm_power_saving(struct rtsx_pcr *pcr) argument
1767 rtsx_pm_power_saving(struct rtsx_pcr *pcr) argument
1775 struct rtsx_pcr *pcr = handle->pcr; local
1791 struct rtsx_pcr *pcr = handle->pcr; local
1818 struct rtsx_pcr *pcr = handle->pcr; local
1836 struct rtsx_pcr *pcr = handle->pcr; local
[all...]
H A Drts5228.c19 static u8 rts5228_get_ic_version(struct rtsx_pcr *pcr) argument
23 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val);
27 static void rts5228_fill_driving(struct rtsx_pcr *pcr, u8 voltage) argument
45 drive_sel = pcr->sd30_drive_sel_3v3;
48 drive_sel = pcr->sd30_drive_sel_1v8;
51 rtsx_pci_write_register(pcr, SD30_CLK_DRIVE_SEL,
54 rtsx_pci_write_register(pcr, SD30_CMD_DRIVE_SEL,
57 rtsx_pci_write_register(pcr, SD30_DAT_DRIVE_SEL,
61 static void rtsx5228_fetch_vendor_settings(struct rtsx_pcr *pcr) argument
63 struct pci_dev *pdev = pcr
89 rts5228_optimize_phy(struct rtsx_pcr *pcr) argument
94 rts5228_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) argument
117 rts5228_enable_auto_blink(struct rtsx_pcr *pcr) argument
123 rts5228_disable_auto_blink(struct rtsx_pcr *pcr) argument
129 rts5228_turn_on_led(struct rtsx_pcr *pcr) argument
135 rts5228_turn_off_led(struct rtsx_pcr *pcr) argument
167 rts5228_sd_set_sample_push_timing_sd30(struct rtsx_pcr *pcr) argument
179 rts5228_card_power_on(struct rtsx_pcr *pcr, int card) argument
229 rts5228_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument
272 rts5228_stop_cmd(struct rtsx_pcr *pcr) argument
282 rts5228_card_before_power_off(struct rtsx_pcr *pcr) argument
288 rts5228_enable_ocp(struct rtsx_pcr *pcr) argument
299 rts5228_disable_ocp(struct rtsx_pcr *pcr) argument
309 rts5228_card_power_off(struct rtsx_pcr *pcr, int card) argument
324 rts5228_init_ocp(struct rtsx_pcr *pcr) argument
356 rts5228_clear_ocpstat(struct rtsx_pcr *pcr) argument
371 rts5228_process_ocp(struct rtsx_pcr *pcr) argument
387 rts5228_init_from_cfg(struct rtsx_pcr *pcr) argument
405 rts5228_extra_init_hw(struct rtsx_pcr *pcr) argument
466 rts5228_enable_aspm(struct rtsx_pcr *pcr, bool enable) argument
482 rts5228_disable_aspm(struct rtsx_pcr *pcr, bool enable) argument
499 rts5228_set_aspm(struct rtsx_pcr *pcr, bool enable) argument
507 rts5228_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active) 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) argument
683 rts5228_init_params(struct rtsx_pcr *pcr) argument
[all...]
H A Drts5260.c19 static u8 rts5260_get_ic_version(struct rtsx_pcr *pcr) argument
23 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val);
27 static void rts5260_fill_driving(struct rtsx_pcr *pcr, u8 voltage) argument
45 drive_sel = pcr->sd30_drive_sel_3v3;
48 drive_sel = pcr->sd30_drive_sel_1v8;
51 rtsx_pci_write_register(pcr, SD30_CLK_DRIVE_SEL,
54 rtsx_pci_write_register(pcr, SD30_CMD_DRIVE_SEL,
57 rtsx_pci_write_register(pcr, SD30_DAT_DRIVE_SEL,
61 static void rtsx_base_fetch_vendor_settings(struct rtsx_pcr *pcr) argument
63 struct pci_dev *pdev = pcr
88 rtsx_base_enable_auto_blink(struct rtsx_pcr *pcr) argument
94 rtsx_base_disable_auto_blink(struct rtsx_pcr *pcr) argument
100 rts5260_turn_on_led(struct rtsx_pcr *pcr) argument
106 rts5260_turn_off_led(struct rtsx_pcr *pcr) argument
164 sd_set_sample_push_timing_sd30(struct rtsx_pcr *pcr) argument
176 rts5260_card_power_on(struct rtsx_pcr *pcr, int card) argument
220 rts5260_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument
248 rts5260_stop_cmd(struct rtsx_pcr *pcr) argument
258 rts5260_card_before_power_off(struct rtsx_pcr *pcr) argument
265 rts5260_card_power_off(struct rtsx_pcr *pcr, int card) argument
280 rts5260_init_ocp(struct rtsx_pcr *pcr) argument
313 rts5260_enable_ocp(struct rtsx_pcr *pcr) argument
322 rts5260_disable_ocp(struct rtsx_pcr *pcr) argument
332 rts5260_get_ocpstat(struct rtsx_pcr *pcr, u8 *val) argument
337 rts5260_get_ocpstat2(struct rtsx_pcr *pcr, u8 *val) argument
342 rts5260_clear_ocpstat(struct rtsx_pcr *pcr) argument
360 rts5260_process_ocp(struct rtsx_pcr *pcr) argument
379 rts5260_init_hw(struct rtsx_pcr *pcr) argument
416 rts5260_pwr_saving_setting(struct rtsx_pcr *pcr) argument
481 rts5260_init_from_cfg(struct rtsx_pcr *pcr) argument
493 rts5260_extra_init_hw(struct rtsx_pcr *pcr) argument
530 rts5260_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active) argument
583 rts5260_init_params(struct rtsx_pcr *pcr) argument
[all...]
H A Drts5229.c16 static u8 rts5229_get_ic_version(struct rtsx_pcr *pcr) argument
20 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val);
24 static void rts5229_fetch_vendor_settings(struct rtsx_pcr *pcr) argument
26 struct pci_dev *pdev = pcr->pci;
30 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG1, reg);
35 pcr->aspm_en = rtsx_reg_to_aspm(reg);
36 pcr->sd30_drive_sel_1v8 =
38 pcr->card_drive_sel &= 0x3F;
39 pcr->card_drive_sel |= rtsx_reg_to_card_drive_sel(reg);
42 pcr_dbg(pcr, "Cf
47 rts5229_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) argument
52 rts5229_extra_init_hw(struct rtsx_pcr *pcr) argument
74 rts5229_optimize_phy(struct rtsx_pcr *pcr) argument
80 rts5229_turn_on_led(struct rtsx_pcr *pcr) argument
85 rts5229_turn_off_led(struct rtsx_pcr *pcr) argument
90 rts5229_enable_auto_blink(struct rtsx_pcr *pcr) argument
95 rts5229_disable_auto_blink(struct rtsx_pcr *pcr) argument
100 rts5229_card_power_on(struct rtsx_pcr *pcr, int card) argument
124 rts5229_card_power_off(struct rtsx_pcr *pcr, int card) argument
135 rts5229_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument
238 rts5229_init_params(struct rtsx_pcr *pcr) argument
[all...]
H A Drts5209.c16 static u8 rts5209_get_ic_version(struct rtsx_pcr *pcr) argument
20 val = rtsx_pci_readb(pcr, 0x1C);
24 static void rts5209_fetch_vendor_settings(struct rtsx_pcr *pcr) argument
26 struct pci_dev *pdev = pcr->pci;
30 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG1, reg);
34 pcr->flags |= PCR_MS_PMOS;
35 pcr->aspm_en = rts5209_reg_to_aspm(reg);
39 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG2, reg);
42 pcr->sd30_drive_sel_1v8 =
44 pcr
50 rts5209_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) argument
55 rts5209_extra_init_hw(struct rtsx_pcr *pcr) argument
74 rts5209_optimize_phy(struct rtsx_pcr *pcr) argument
79 rts5209_turn_on_led(struct rtsx_pcr *pcr) argument
84 rts5209_turn_off_led(struct rtsx_pcr *pcr) argument
89 rts5209_enable_auto_blink(struct rtsx_pcr *pcr) argument
94 rts5209_disable_auto_blink(struct rtsx_pcr *pcr) argument
99 rts5209_card_power_on(struct rtsx_pcr *pcr, int card) argument
133 rts5209_card_power_off(struct rtsx_pcr *pcr, int card) argument
153 rts5209_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument
246 rts5209_init_params(struct rtsx_pcr *pcr) argument
[all...]
H A Drts5264.c17 static u8 rts5264_get_ic_version(struct rtsx_pcr *pcr) argument
21 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val);
25 static void rts5264_fill_driving(struct rtsx_pcr *pcr, u8 voltage) argument
43 drive_sel = pcr->sd30_drive_sel_3v3;
46 drive_sel = pcr->sd30_drive_sel_1v8;
49 rtsx_pci_write_register(pcr, SD30_CLK_DRIVE_SEL,
51 rtsx_pci_write_register(pcr, SD30_CMD_DRIVE_SEL,
53 rtsx_pci_write_register(pcr, SD30_DAT_DRIVE_SEL,
57 static void rts5264_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) argument
60 rtsx_pci_write_register(pcr, AUTOLOAD_CFG_BAS
91 rts5264_enable_auto_blink(struct rtsx_pcr *pcr) argument
97 rts5264_disable_auto_blink(struct rtsx_pcr *pcr) argument
103 rts5264_turn_on_led(struct rtsx_pcr *pcr) argument
109 rts5264_turn_off_led(struct rtsx_pcr *pcr) argument
141 rts5264_sd_set_sample_push_timing_sd30(struct rtsx_pcr *pcr) argument
153 rts5264_card_power_on(struct rtsx_pcr *pcr, int card) argument
196 rts5264_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument
228 rts5264_stop_cmd(struct rtsx_pcr *pcr) argument
236 rts5264_card_before_power_off(struct rtsx_pcr *pcr) argument
242 rts5264_card_power_off(struct rtsx_pcr *pcr, int card) argument
258 rts5264_enable_ocp(struct rtsx_pcr *pcr) argument
289 rts5264_disable_ocp(struct rtsx_pcr *pcr) argument
312 rts5264_init_ocp(struct rtsx_pcr *pcr) argument
356 rts5264_get_ocpstat2(struct rtsx_pcr *pcr, u8 *val) argument
361 rts5264_get_ovpstat(struct rtsx_pcr *pcr, u8 *val) argument
366 rts5264_clear_ocpstat(struct rtsx_pcr *pcr) argument
391 rts5264_process_ocp(struct rtsx_pcr *pcr) argument
412 rts5264_init_from_hw(struct rtsx_pcr *pcr) argument
502 rts5264_init_from_cfg(struct rtsx_pcr *pcr) argument
520 rts5264_extra_init_hw(struct rtsx_pcr *pcr) argument
608 rts5264_enable_aspm(struct rtsx_pcr *pcr, bool enable) argument
623 rts5264_disable_aspm(struct rtsx_pcr *pcr, bool enable) argument
639 rts5264_set_aspm(struct rtsx_pcr *pcr, bool enable) argument
647 rts5264_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active) argument
706 rts5264_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) argument
841 rts5264_init_params(struct rtsx_pcr *pcr) argument
[all...]
H A Drts5249.c16 static u8 rts5249_get_ic_version(struct rtsx_pcr *pcr) argument
20 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val);
24 static void rts5249_fill_driving(struct rtsx_pcr *pcr, u8 voltage) argument
42 drive_sel = pcr->sd30_drive_sel_3v3;
45 drive_sel = pcr->sd30_drive_sel_1v8;
48 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CLK_DRIVE_SEL,
50 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CMD_DRIVE_SEL,
52 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_DAT_DRIVE_SEL,
56 static void rtsx_base_fetch_vendor_settings(struct rtsx_pcr *pcr) argument
58 struct pci_dev *pdev = pcr
87 rts5249_init_from_cfg(struct rtsx_pcr *pcr) argument
105 rts52xa_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) argument
126 rts52xa_save_content_from_efuse(struct rtsx_pcr *pcr) argument
200 rts52xa_save_content_to_autoload_space(struct rtsx_pcr *pcr) argument
232 rts5249_extra_init_hw(struct rtsx_pcr *pcr) argument
309 rts5249_optimize_phy(struct rtsx_pcr *pcr) argument
375 rtsx_base_turn_on_led(struct rtsx_pcr *pcr) argument
380 rtsx_base_turn_off_led(struct rtsx_pcr *pcr) argument
385 rtsx_base_enable_auto_blink(struct rtsx_pcr *pcr) argument
390 rtsx_base_disable_auto_blink(struct rtsx_pcr *pcr) argument
395 rtsx_base_card_power_on(struct rtsx_pcr *pcr, int card) argument
422 rtsx_base_card_power_off(struct rtsx_pcr *pcr, int card) argument
435 rtsx_base_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument
538 rts5249_init_params(struct rtsx_pcr *pcr) argument
577 rts524a_write_phy(struct rtsx_pcr *pcr, u8 addr, u16 val) argument
584 rts524a_read_phy(struct rtsx_pcr *pcr, u8 addr, u16 *val) argument
591 rts524a_optimize_phy(struct rtsx_pcr *pcr) argument
634 rts524a_extra_init_hw(struct rtsx_pcr *pcr) argument
662 rts5250_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active) argument
713 rts524a_init_params(struct rtsx_pcr *pcr) argument
733 rts525a_card_power_on(struct rtsx_pcr *pcr, int card) argument
740 rts525a_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument
763 rts525a_optimize_phy(struct rtsx_pcr *pcr) argument
789 rts525a_extra_init_hw(struct rtsx_pcr *pcr) argument
831 rts525a_init_params(struct rtsx_pcr *pcr) argument
[all...]
H A Drts5261.c18 static u8 rts5261_get_ic_version(struct rtsx_pcr *pcr) argument
22 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val);
26 static void rts5261_fill_driving(struct rtsx_pcr *pcr, u8 voltage) argument
44 drive_sel = pcr->sd30_drive_sel_3v3;
47 drive_sel = pcr->sd30_drive_sel_1v8;
50 rtsx_pci_write_register(pcr, SD30_CLK_DRIVE_SEL,
53 rtsx_pci_write_register(pcr, SD30_CMD_DRIVE_SEL,
56 rtsx_pci_write_register(pcr, SD30_DAT_DRIVE_SEL,
60 static void rts5261_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) argument
63 rtsx_pci_write_register(pcr, AUTOLOAD_CFG_BAS
94 rts5261_enable_auto_blink(struct rtsx_pcr *pcr) argument
100 rts5261_disable_auto_blink(struct rtsx_pcr *pcr) argument
106 rts5261_turn_on_led(struct rtsx_pcr *pcr) argument
112 rts5261_turn_off_led(struct rtsx_pcr *pcr) argument
144 rts5261_sd_set_sample_push_timing_sd30(struct rtsx_pcr *pcr) argument
156 rts5261_card_power_on(struct rtsx_pcr *pcr, int card) argument
201 rts5261_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument
244 rts5261_stop_cmd(struct rtsx_pcr *pcr) argument
254 rts5261_card_before_power_off(struct rtsx_pcr *pcr) argument
261 rts5261_enable_ocp(struct rtsx_pcr *pcr) argument
273 rts5261_disable_ocp(struct rtsx_pcr *pcr) argument
284 rts5261_card_power_off(struct rtsx_pcr *pcr, int card) argument
300 rts5261_init_ocp(struct rtsx_pcr *pcr) argument
329 rts5261_clear_ocpstat(struct rtsx_pcr *pcr) argument
344 rts5261_process_ocp(struct rtsx_pcr *pcr) argument
360 rts5261_init_from_hw(struct rtsx_pcr *pcr) argument
455 rts5261_init_from_cfg(struct rtsx_pcr *pcr) argument
465 rts5261_extra_init_hw(struct rtsx_pcr *pcr) argument
545 rts5261_enable_aspm(struct rtsx_pcr *pcr, bool enable) argument
560 rts5261_disable_aspm(struct rtsx_pcr *pcr, bool enable) argument
576 rts5261_set_aspm(struct rtsx_pcr *pcr, bool enable) argument
584 rts5261_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active) 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) argument
762 rts5261_init_params(struct rtsx_pcr *pcr) argument
[all...]
H A Drtl8411.c18 static u8 rtl8411_get_ic_version(struct rtsx_pcr *pcr) argument
22 rtsx_pci_read_register(pcr, SYS_VER, &val);
26 static int rtl8411b_is_qfn48(struct rtsx_pcr *pcr) argument
30 rtsx_pci_read_register(pcr, RTL8411B_PACKAGE_MODE, &val);
38 static void rtl8411_fetch_vendor_settings(struct rtsx_pcr *pcr) argument
40 struct pci_dev *pdev = pcr->pci;
45 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG1, reg1);
50 pcr->aspm_en = rtsx_reg_to_aspm(reg1);
51 pcr->sd30_drive_sel_1v8 =
53 pcr
61 rtl8411b_fetch_vendor_settings(struct rtsx_pcr *pcr) argument
79 rtl8411_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) argument
84 rtl8411_extra_init_hw(struct rtsx_pcr *pcr) argument
96 rtl8411b_extra_init_hw(struct rtsx_pcr *pcr) argument
113 rtl8411_turn_on_led(struct rtsx_pcr *pcr) argument
118 rtl8411_turn_off_led(struct rtsx_pcr *pcr) argument
123 rtl8411_enable_auto_blink(struct rtsx_pcr *pcr) argument
128 rtl8411_disable_auto_blink(struct rtsx_pcr *pcr) argument
133 rtl8411_card_power_on(struct rtsx_pcr *pcr, int card) argument
171 rtl8411_card_power_off(struct rtsx_pcr *pcr, int card) argument
184 rtl8411_do_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage, int bpp_tuned18_shift, int bpp_asic_1v8) argument
210 rtl8411_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument
216 rtl8402_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument
222 rtl8411_cd_deglitch(struct rtsx_pcr *pcr) argument
462 rtl8411_init_common_params(struct rtsx_pcr *pcr) argument
477 rtl8411_init_params(struct rtsx_pcr *pcr) argument
484 rtl8411b_init_params(struct rtsx_pcr *pcr) argument
494 rtl8402_init_params(struct rtsx_pcr *pcr) 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...]
/linux-master/drivers/memstick/host/
H A Drtsx_pci_ms.c20 struct rtsx_pcr *pcr; member in struct:realtek_pci_ms
40 rtsx_pci_write_register(host->pcr, CARD_STOP,
48 struct rtsx_pcr *pcr = host->pcr; local
53 rtsx_pci_init_cmd(pcr);
55 rtsx_pci_add_cmd(pcr, READ_REG_CMD, i, 0, 0);
57 rtsx_pci_add_cmd(pcr, READ_REG_CMD, i, 0, 0);
58 rtsx_pci_send_cmd(pcr, 100);
60 ptr = rtsx_pci_get_cmd_data(pcr);
75 struct rtsx_pcr *pcr local
109 struct rtsx_pcr *pcr = host->pcr; local
131 struct rtsx_pcr *pcr = host->pcr; local
202 struct rtsx_pcr *pcr = host->pcr; local
270 struct rtsx_pcr *pcr = host->pcr; local
393 struct rtsx_pcr *pcr = host->pcr; local
436 struct rtsx_pcr *pcr = host->pcr; local
535 struct rtsx_pcr *pcr; local
580 struct rtsx_pcr *pcr; local
[all...]
/linux-master/drivers/mmc/host/
H A Drtsx_pci_sdmmc.c28 struct rtsx_pcr *pcr; member in struct:realtek_pci_sdmmc
58 rtsx_pci_write_register(host->pcr, CARD_STOP,
75 rtsx_pci_read_register(host->pcr, start + i + j,
93 return rtsx_pci_readl(host->pcr, RTSX_BIPR) & SD_EXIST;
96 static void sd_cmd_set_sd_cmd(struct rtsx_pcr *pcr, struct mmc_command *cmd) argument
98 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_CMD0, 0xFF,
100 rtsx_pci_write_be32(pcr, SD_CMD1, cmd->arg);
103 static void sd_cmd_set_data_len(struct rtsx_pcr *pcr, u16 blocks, u16 blksz) argument
105 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BLOCK_CNT_L, 0xFF, blocks);
106 rtsx_pci_add_cmd(pcr, WRITE_REG_CM
151 struct rtsx_pcr *pcr = host->pcr; local
202 struct rtsx_pcr *pcr = host->pcr; local
213 struct rtsx_pcr *pcr = host->pcr; local
331 struct rtsx_pcr *pcr = host->pcr; local
385 struct rtsx_pcr *pcr = host->pcr; local
431 struct rtsx_pcr *pcr = host->pcr; local
489 struct rtsx_pcr *pcr = host->pcr; local
619 struct rtsx_pcr *pcr = host->pcr; local
706 struct rtsx_pcr *pcr = host->pcr; local
801 struct rtsx_pcr *pcr = host->pcr; local
908 struct rtsx_pcr *pcr = host->pcr; local
982 struct rtsx_pcr *pcr = host->pcr; local
1018 struct rtsx_pcr *pcr = host->pcr; local
1091 struct rtsx_pcr *pcr = host->pcr; local
1139 struct rtsx_pcr *pcr = host->pcr; local
1164 struct rtsx_pcr *pcr = host->pcr; local
1188 struct rtsx_pcr *pcr = host->pcr; local
1221 struct rtsx_pcr *pcr = host->pcr; local
1262 struct rtsx_pcr *pcr = host->pcr; local
1314 struct rtsx_pcr *pcr = host->pcr; local
1366 struct rtsx_pcr *pcr = host->pcr; local
1430 struct rtsx_pcr *pcr = host->pcr; local
1453 struct rtsx_pcr *pcr = host->pcr; local
1490 struct rtsx_pcr *pcr; local
1544 struct rtsx_pcr *pcr; local
[all...]
/linux-master/sound/soc/fsl/
H A Dimx-audmux.h7 int imx_audmux_v1_configure_port(unsigned int port, unsigned int pcr);
/linux-master/include/linux/
H A Drtsx_pci.h92 #define rtsx_pci_writel(pcr, reg, value) \
93 iowrite32(value, (pcr)->remap_addr + reg)
94 #define rtsx_pci_readl(pcr, reg) \
95 ioread32((pcr)->remap_addr + reg)
96 #define rtsx_pci_writew(pcr, reg, value) \
97 iowrite16(value, (pcr)->remap_addr + reg)
98 #define rtsx_pci_readw(pcr, reg) \
99 ioread16((pcr)->remap_addr + reg)
100 #define rtsx_pci_writeb(pcr, reg, value) \
101 iowrite8(value, (pcr)
1088 struct rtsx_pcr *pcr; member in struct:pcr_handle
1336 rtsx_pci_get_cmd_data(struct rtsx_pcr *pcr) argument
1341 rtsx_pci_write_be32(struct rtsx_pcr *pcr, u16 reg, u32 val) argument
1349 rtsx_pci_update_phy(struct rtsx_pcr *pcr, u8 addr, u16 mask, u16 append) argument
[all...]
/linux-master/include/uapi/linux/
H A Datmsvc.h52 #define SELECT_TOP_PCR(tp) ((tp).pcr ? (tp).pcr : \
/linux-master/net/atm/
H A Datm_misc.c57 * min max pcr result min max pcr result
70 * if pcr == z then z-
71 * else if min == x && pcr == - then x+
78 if (tp->pcr && tp->pcr != ATM_MAX_PCR)
79 return -tp->pcr;
80 if (tp->min_pcr && !tp->pcr)
/linux-master/arch/powerpc/platforms/86xx/
H A Dmpc86xx_smp.c38 unsigned long pcr; local
48 pcr = in_be32(mcm_vaddr + (MCM_PORT_CONFIG_OFFSET >> 2));
49 pcr |= 1 << (nr + 24);
50 out_be32(mcm_vaddr + (MCM_PORT_CONFIG_OFFSET >> 2), pcr);
/linux-master/security/integrity/ima/
H A Dima_queue.c49 int pcr)
60 if ((rc == 0) && (qe->entry->pcr == pcr)) {
78 size += sizeof(u32); /* pcr */
138 static int ima_pcr_extend(struct tpm_digest *digests_arg, int pcr) argument
145 result = tpm_pcr_extend(ima_tpm_chip, pcr, digests_arg);
153 * extend the pcr.
172 if (ima_lookup_digest_entry(digest, entry->pcr)) {
187 if (violation) /* invalidate pcr */
190 tpmresult = ima_pcr_extend(digests_arg, entry->pcr);
48 ima_lookup_digest_entry(u8 *digest_value, int pcr) argument
[all...]
H A Dima_api.c104 const unsigned char *filename, int pcr)
121 entry->pcr = pcr;
172 * @pcr: pointer filled in if matched measure policy sets pcr=
191 enum ima_hooks func, int *pcr,
200 flags, pcr, template_desc, func_data,
345 int xattr_len, const struct modsig *modsig, int pcr,
367 if (iint->measured_pcrs & (0x1 << pcr) && !modsig)
377 result = ima_store_template(entry, violation, inode, filename, pcr);
102 ima_store_template(struct ima_template_entry *entry, int violation, struct inode *inode, const unsigned char *filename, int pcr) argument
189 ima_get_action(struct mnt_idmap *idmap, struct inode *inode, const struct cred *cred, u32 secid, int mask, enum ima_hooks func, int *pcr, struct ima_template_desc **template_desc, const char *func_data, unsigned int *allowed_algos) argument
342 ima_store_measurement(struct ima_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, const struct modsig *modsig, int pcr, struct ima_template_desc *template_desc) argument
[all...]
/linux-master/drivers/media/test-drivers/vidtv/
H A Dvidtv_pes.h119 * @pcr: counter driven by a 27Mhz clock.
129 u64 pcr; member in struct:pes_ts_header_write_args
150 * @pcr: counter driven by a 27Mhz clock.
174 u64 pcr; member in struct:pes_write_args
H A Dvidtv_ts.c20 static u32 vidtv_ts_write_pcr_bits(u8 *to, u32 to_offset, u64 pcr) argument
29 div = div64_u64_rem(pcr, 300, &rem);
31 pcr_low = rem; /* pcr_low = pcr % 300 */
32 pcr_high = div; /* pcr_high = pcr / 300 */
121 args.pcr);
/linux-master/sound/soc/ti/
H A Ddavinci-i2s.c136 u32 pcr; member in struct:davinci_mcbsp_dev
183 davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_PCR_REG, dev->pcr ^ m);
184 davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_PCR_REG, dev->pcr);
198 if (dev->pcr & (DAVINCI_MCBSP_PCR_FSXM | DAVINCI_MCBSP_PCR_FSRM)) {
223 unsigned int pcr; local
236 pcr = DAVINCI_MCBSP_PCR_FSXM |
242 pcr = DAVINCI_MCBSP_PCR_FSRM | DAVINCI_MCBSP_PCR_FSXM;
251 pcr |= DAVINCI_MCBSP_PCR_CLKXM |
255 pcr |= DAVINCI_MCBSP_PCR_SCLKME;
265 pcr
[all...]
/linux-master/sound/firewire/
H A Dcmp.c75 int (*check)(struct cmp_connection *c, __be32 pcr),
162 __be32 pcr; local
167 pcr_address(c), &pcr, 4, 0);
169 *used = !!(pcr & cpu_to_be32(PCR_BCAST_CONN |
278 static int pcr_set_check(struct cmp_connection *c, __be32 pcr) argument
280 if (pcr & cpu_to_be32(PCR_BCAST_CONN |
285 if (!(pcr & cpu_to_be32(PCR_ONLINE))) {
383 static __be32 pcr_break_modify(struct cmp_connection *c, __be32 pcr) argument
385 return pcr & ~cpu_to_be32(PCR_BCAST_CONN | PCR_P2P_CONN_MASK);
73 pcr_modify(struct cmp_connection *c, __be32 (*modify)(struct cmp_connection *c, __be32 old), int (*check)(struct cmp_connection *c, __be32 pcr), enum bus_reset_handling bus_reset_handling) argument
/linux-master/drivers/video/fbdev/
H A Dimxfb.c44 u32 pcr; member in struct:imx_fb_videomode
181 u_int pcr; member in struct:imxfb_info
377 u32 pcr = 0; local
413 pcr = (unsigned int)tmp;
415 if (--pcr > PCR_PCD_MASK) {
416 pcr = PCR_PCD_MASK;
418 lcd_clk / pcr);
423 pcr |= FIELD_PREP(PCR_BPIX_MASK, PCR_BPIX_18);
429 pcr |= FIELD_PREP(PCR_BPIX_MASK, PCR_BPIX_12);
431 pcr |
749 u32 pcr; local
[all...]

Completed in 253 milliseconds

1234