Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/scsi/ufs/
Dufshcd.h75 struct ufs_hba;
305 int (*init)(struct ufs_hba *);
306 void (*exit)(struct ufs_hba *);
307 u32 (*get_ufs_hci_version)(struct ufs_hba *);
308 int (*clk_scale_notify)(struct ufs_hba *, bool,
310 int (*setup_clocks)(struct ufs_hba *, bool,
312 int (*setup_regulators)(struct ufs_hba *, bool);
313 int (*hce_enable_notify)(struct ufs_hba *,
315 int (*link_startup_notify)(struct ufs_hba *,
317 int (*pwr_change_notify)(struct ufs_hba *,
[all …]
Dufshcd.c108 int ufshcd_dump_regs(struct ufs_hba *hba, size_t offset, size_t len, in ufshcd_dump_regs()
240 static void ufshcd_tmc_handler(struct ufs_hba *hba);
242 static int ufshcd_reset_and_restore(struct ufs_hba *hba);
244 static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag);
245 static void ufshcd_hba_exit(struct ufs_hba *hba);
246 static int ufshcd_probe_hba(struct ufs_hba *hba);
247 static int __ufshcd_setup_clocks(struct ufs_hba *hba, bool on,
249 static int ufshcd_setup_clocks(struct ufs_hba *hba, bool on);
250 static int ufshcd_uic_hibern8_exit(struct ufs_hba *hba);
251 static int ufshcd_uic_hibern8_enter(struct ufs_hba *hba);
[all …]
Dufs-mediatek.c19 static void ufs_mtk_cfg_unipro_cg(struct ufs_hba *hba, bool enable) in ufs_mtk_cfg_unipro_cg()
55 static int ufs_mtk_bind_mphy(struct ufs_hba *hba) in ufs_mtk_bind_mphy()
92 static int ufs_mtk_setup_clocks(struct ufs_hba *hba, bool on, in ufs_mtk_setup_clocks()
130 static int ufs_mtk_init(struct ufs_hba *hba) in ufs_mtk_init()
167 static int ufs_mtk_pre_pwr_change(struct ufs_hba *hba, in ufs_mtk_pre_pwr_change()
199 static int ufs_mtk_pwr_change_notify(struct ufs_hba *hba, in ufs_mtk_pwr_change_notify()
221 static int ufs_mtk_pre_link(struct ufs_hba *hba) in ufs_mtk_pre_link()
238 static int ufs_mtk_post_link(struct ufs_hba *hba) in ufs_mtk_post_link()
249 static int ufs_mtk_link_startup_notify(struct ufs_hba *hba, in ufs_mtk_link_startup_notify()
269 static int ufs_mtk_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op) in ufs_mtk_suspend()
[all …]
Dufs_bsg.h16 void ufs_bsg_remove(struct ufs_hba *hba);
17 int ufs_bsg_probe(struct ufs_hba *hba);
19 static inline void ufs_bsg_remove(struct ufs_hba *hba) {} in ufs_bsg_remove()
20 static inline int ufs_bsg_probe(struct ufs_hba *hba) {return 0; } in ufs_bsg_probe()
Dufs-qcom.c43 static int ufs_qcom_set_dme_vs_core_clk_ctrl_clear_div(struct ufs_hba *hba,
51 static void ufs_qcom_dump_regs_wrapper(struct ufs_hba *hba, int offset, int len, in ufs_qcom_dump_regs_wrapper()
57 static int ufs_qcom_get_connected_tx_lanes(struct ufs_hba *hba, u32 *tx_lanes) in ufs_qcom_get_connected_tx_lanes()
193 static int ufs_qcom_link_startup_post_change(struct ufs_hba *hba) in ufs_qcom_link_startup_post_change()
200 static int ufs_qcom_check_hibern8(struct ufs_hba *hba) in ufs_qcom_check_hibern8()
249 static int ufs_qcom_power_up_sequence(struct ufs_hba *hba) in ufs_qcom_power_up_sequence()
294 static void ufs_qcom_enable_hw_clk_gating(struct ufs_hba *hba) in ufs_qcom_enable_hw_clk_gating()
304 static int ufs_qcom_hce_enable_notify(struct ufs_hba *hba, in ufs_qcom_hce_enable_notify()
337 static int ufs_qcom_cfg_timers(struct ufs_hba *hba, u32 gear, in ufs_qcom_cfg_timers()
481 static int ufs_qcom_link_startup_notify(struct ufs_hba *hba, in ufs_qcom_link_startup_notify()
[all …]
Dcdns-pltfrm.c29 static int cdns_ufs_set_hclkdiv(struct ufs_hba *hba) in cdns_ufs_set_hclkdiv()
71 static int cdns_ufs_hce_enable_notify(struct ufs_hba *hba, in cdns_ufs_hce_enable_notify()
87 static int cdns_ufs_link_startup_notify(struct ufs_hba *hba, in cdns_ufs_link_startup_notify()
111 static int cdns_ufs_init(struct ufs_hba *hba) in cdns_ufs_init()
127 static int cdns_ufs_m31_16nm_phy_initialization(struct ufs_hba *hba) in cdns_ufs_m31_16nm_phy_initialization()
199 struct ufs_hba *hba = platform_get_drvdata(pdev); in cdns_ufs_pltfrm_remove()
Dufs-hisi.c23 static int ufs_hisi_check_hibern8(struct ufs_hba *hba) in ufs_hisi_check_hibern8()
67 static void ufs_hisi_clk_init(struct ufs_hba *hba) in ufs_hisi_clk_init()
81 static void ufs_hisi_soc_init(struct ufs_hba *hba) in ufs_hisi_soc_init()
138 static int ufs_hisi_link_startup_pre_change(struct ufs_hba *hba) in ufs_hisi_link_startup_pre_change()
250 static int ufs_hisi_link_startup_post_change(struct ufs_hba *hba) in ufs_hisi_link_startup_post_change()
275 static int ufs_hisi_link_startup_notify(struct ufs_hba *hba, in ufs_hisi_link_startup_notify()
310 static void ufs_hisi_pwr_change_pre_change(struct ufs_hba *hba) in ufs_hisi_pwr_change_pre_change()
372 static int ufs_hisi_pwr_change_notify(struct ufs_hba *hba, in ufs_hisi_pwr_change_notify()
410 static int ufs_hisi_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op) in ufs_hisi_suspend()
432 static int ufs_hisi_resume(struct ufs_hba *hba, enum ufs_pm_op pm_op) in ufs_hisi_resume()
[all …]
Dufshcd-dwc.c16 int ufshcd_dwc_dme_set_attrs(struct ufs_hba *hba, in ufshcd_dwc_dme_set_attrs()
42 static void ufshcd_dwc_program_clk_div(struct ufs_hba *hba, u32 divider_val) in ufshcd_dwc_program_clk_div()
54 static int ufshcd_dwc_link_is_up(struct ufs_hba *hba) in ufshcd_dwc_link_is_up()
81 static int ufshcd_dwc_connection_setup(struct ufs_hba *hba) in ufshcd_dwc_connection_setup()
115 int ufshcd_dwc_link_startup_notify(struct ufs_hba *hba, in ufshcd_dwc_link_startup_notify()
Dufshcd-pci.c40 static int ufs_intel_disable_lcc(struct ufs_hba *hba) in ufs_intel_disable_lcc()
52 static int ufs_intel_link_startup_notify(struct ufs_hba *hba, in ufs_intel_link_startup_notify()
122 ufshcd_shutdown((struct ufs_hba *)pci_get_drvdata(pdev)); in ufshcd_pci_shutdown()
132 struct ufs_hba *hba = pci_get_drvdata(pdev); in ufshcd_pci_remove()
150 struct ufs_hba *hba; in ufshcd_pci_probe()
Dufs_bsg.c9 static int ufs_bsg_get_query_desc_size(struct ufs_hba *hba, int *desc_len, in ufs_bsg_get_query_desc_size()
28 static int ufs_bsg_verify_query_size(struct ufs_hba *hba, in ufs_bsg_verify_query_size()
43 static int ufs_bsg_alloc_desc_buffer(struct ufs_hba *hba, struct bsg_job *job, in ufs_bsg_alloc_desc_buffer()
85 struct ufs_hba *hba = shost_priv(dev_to_shost(job->dev->parent)); in ufs_bsg_request()
168 void ufs_bsg_remove(struct ufs_hba *hba) in ufs_bsg_remove()
192 int ufs_bsg_probe(struct ufs_hba *hba) in ufs_bsg_probe()
Dufs-sysfs.c39 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_sysfs_pm_lvl_store()
60 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_lvl_show()
74 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_target_dev_state_show()
83 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_target_link_state_show()
92 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_lvl_show()
106 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_target_dev_state_show()
115 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_target_link_state_show()
121 static void ufshcd_auto_hibern8_update(struct ufs_hba *hba, u32 ahit) in ufshcd_auto_hibern8_update()
165 struct ufs_hba *hba = dev_get_drvdata(dev); in auto_hibern8_show()
177 struct ufs_hba *hba = dev_get_drvdata(dev); in auto_hibern8_store()
[all …]
Dtc-dwc-g210.c24 static int tc_dwc_g210_setup_40bit_rmmi(struct ufs_hba *hba) in tc_dwc_g210_setup_40bit_rmmi()
88 static int tc_dwc_g210_setup_20bit_rmmi_lane0(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi_lane0()
141 static int tc_dwc_g210_setup_20bit_rmmi_lane1(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi_lane1()
218 static int tc_dwc_g210_setup_20bit_rmmi(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi()
259 int tc_dwc_g210_config_40_bit(struct ufs_hba *hba) in tc_dwc_g210_config_40_bit()
291 int tc_dwc_g210_config_20_bit(struct ufs_hba *hba) in tc_dwc_g210_config_20_bit()
Dtc-dwc-g210.h13 int tc_dwc_g210_config_40_bit(struct ufs_hba *hba);
14 int tc_dwc_g210_config_20_bit(struct ufs_hba *hba);
Dufs-qcom.h142 ufs_qcom_get_controller_revision(struct ufs_hba *hba, in ufs_qcom_get_controller_revision()
152 static inline void ufs_qcom_assert_reset(struct ufs_hba *hba) in ufs_qcom_assert_reset()
164 static inline void ufs_qcom_deassert_reset(struct ufs_hba *hba) in ufs_qcom_deassert_reset()
217 struct ufs_hba *hba;
Dufshcd-dwc.h19 int ufshcd_dwc_link_startup_notify(struct ufs_hba *hba,
21 int ufshcd_dwc_dme_set_attrs(struct ufs_hba *hba,
Dtc-dwc-g210-pci.c65 ufshcd_shutdown((struct ufs_hba *)pci_get_drvdata(pdev)); in tc_dwc_g210_pci_shutdown()
75 struct ufs_hba *hba = pci_get_drvdata(pdev); in tc_dwc_g210_pci_remove()
92 struct ufs_hba *hba; in tc_dwc_g210_pci_probe()
Dufshcd-pltfrm.c46 static int ufshcd_parse_clock_info(struct ufs_hba *hba) in ufshcd_parse_clock_info()
194 static int ufshcd_parse_regulator_info(struct ufs_hba *hba) in ufshcd_parse_regulator_info()
266 ufshcd_shutdown((struct ufs_hba *)platform_get_drvdata(pdev)); in ufshcd_pltfrm_shutdown()
270 static void ufshcd_init_lanes_per_dir(struct ufs_hba *hba) in ufshcd_init_lanes_per_dir()
392 struct ufs_hba *hba; in ufshcd_pltfrm_init()
Dufs-mediatek.h49 struct ufs_hba *hba;
Dtc-dwc-g210-pltfrm.c78 struct ufs_hba *hba = platform_get_drvdata(pdev); in tc_dwc_g210_pltfm_remove()
Dufs-hisi.h96 struct ufs_hba *hba;