Home
last modified time | relevance | path

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

12

/linux-5.19.10/drivers/ufs/core/
Dufshcd-priv.h9 static inline bool ufshcd_is_user_access_allowed(struct ufs_hba *hba) in ufshcd_is_user_access_allowed()
14 void ufshcd_schedule_eh_work(struct ufs_hba *hba);
17 struct ufs_hba *hba) in ufshcd_keep_autobkops_enabled_except_suspend()
22 static inline u8 ufshcd_wb_get_query_index(struct ufs_hba *hba) in ufshcd_wb_get_query_index()
30 void ufs_hwmon_probe(struct ufs_hba *hba, u8 mask);
31 void ufs_hwmon_remove(struct ufs_hba *hba);
32 void ufs_hwmon_notify_event(struct ufs_hba *hba, u8 ee_mask);
34 static inline void ufs_hwmon_probe(struct ufs_hba *hba, u8 mask) {} in ufs_hwmon_probe()
35 static inline void ufs_hwmon_remove(struct ufs_hba *hba) {} in ufs_hwmon_remove()
36 static inline void ufs_hwmon_notify_event(struct ufs_hba *hba, u8 ee_mask) {} in ufs_hwmon_notify_event()
[all …]
Dufshpb.h283 struct ufs_hba;
287 static int ufshpb_prep(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) { return 0; } in ufshpb_prep()
288 static void ufshpb_rsp_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) {} in ufshpb_rsp_upiu()
289 static void ufshpb_resume(struct ufs_hba *hba) {} in ufshpb_resume()
290 static void ufshpb_suspend(struct ufs_hba *hba) {} in ufshpb_suspend()
291 static void ufshpb_toggle_state(struct ufs_hba *hba, enum UFSHPB_STATE src, enum UFSHPB_STATE dest)… in ufshpb_toggle_state()
292 static void ufshpb_init(struct ufs_hba *hba) {} in ufshpb_init()
293 static void ufshpb_init_hpb_lu(struct ufs_hba *hba, struct scsi_device *sdev) {} in ufshpb_init_hpb_lu()
294 static void ufshpb_destroy_lu(struct ufs_hba *hba, struct scsi_device *sdev) {} in ufshpb_destroy_lu()
295 static void ufshpb_remove(struct ufs_hba *hba) {} in ufshpb_remove()
[all …]
Dufs-debugfs.h8 struct ufs_hba;
13 void ufs_debugfs_hba_init(struct ufs_hba *hba);
14 void ufs_debugfs_hba_exit(struct ufs_hba *hba);
15 void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status);
19 static inline void ufs_debugfs_hba_init(struct ufs_hba *hba) {} in ufs_debugfs_hba_init()
20 static inline void ufs_debugfs_hba_exit(struct ufs_hba *hba) {} in ufs_debugfs_hba_exit()
21 static inline void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status) {} in ufs_debugfs_exception_event()
Dufshcd-crypto.h40 bool ufshcd_crypto_enable(struct ufs_hba *hba);
42 int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba);
44 void ufshcd_init_crypto(struct ufs_hba *hba);
46 void ufshcd_crypto_register(struct ufs_hba *hba, struct request_queue *q);
57 static inline bool ufshcd_crypto_enable(struct ufs_hba *hba) in ufshcd_crypto_enable()
62 static inline int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba) in ufshcd_hba_init_crypto_capabilities()
67 static inline void ufshcd_init_crypto(struct ufs_hba *hba) { } in ufshcd_init_crypto()
69 static inline void ufshcd_crypto_register(struct ufs_hba *hba, in ufshcd_crypto_register()
Dufshcd.c111 int ufshcd_dump_regs(struct ufs_hba *hba, size_t offset, size_t len, in ufshcd_dump_regs()
249 static irqreturn_t ufshcd_tmc_handler(struct ufs_hba *hba);
251 static int ufshcd_reset_and_restore(struct ufs_hba *hba);
253 static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag);
254 static void ufshcd_hba_exit(struct ufs_hba *hba);
255 static int ufshcd_probe_hba(struct ufs_hba *hba, bool init_dev_params);
256 static int ufshcd_setup_clocks(struct ufs_hba *hba, bool on);
257 static inline void ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba);
258 static int ufshcd_host_reset_and_restore(struct ufs_hba *hba);
259 static void ufshcd_resume_clkscaling(struct ufs_hba *hba);
[all …]
Dufs-debugfs.c19 static inline struct ufs_hba *hba_from_file(const struct file *file) in hba_from_file()
36 struct ufs_hba *hba = hba_from_file(s->file); in ufs_debugfs_stats_show()
62 struct ufs_hba *hba = data; in ee_usr_mask_get()
68 static int ufs_debugfs_get_user_access(struct ufs_hba *hba) in ufs_debugfs_get_user_access()
80 static void ufs_debugfs_put_user_access(struct ufs_hba *hba) in ufs_debugfs_put_user_access()
89 struct ufs_hba *hba = data; in ee_usr_mask_set()
104 void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status) in ufs_debugfs_exception_event()
133 struct ufs_hba *hba = container_of(work, struct ufs_hba, debugfs_ee_work.work); in ufs_debugfs_restart_ee()
145 struct ufs_hba *hba = hba_from_file(s->file); in ufs_saved_err_show()
164 struct ufs_hba *hba = hba_from_file(file); in ufs_saved_err_write()
[all …]
Dufs_bsg.h8 struct ufs_hba;
11 void ufs_bsg_remove(struct ufs_hba *hba);
12 int ufs_bsg_probe(struct ufs_hba *hba);
14 static inline void ufs_bsg_remove(struct ufs_hba *hba) {} in ufs_bsg_remove()
15 static inline int ufs_bsg_probe(struct ufs_hba *hba) {return 0; } in ufs_bsg_probe()
Dufshcd-crypto.c20 static int ufshcd_program_key(struct ufs_hba *hba, in ufshcd_program_key()
55 struct ufs_hba *hba = in ufshcd_crypto_keyslot_program()
56 container_of(profile, struct ufs_hba, crypto_profile); in ufshcd_crypto_keyslot_program()
98 static int ufshcd_clear_keyslot(struct ufs_hba *hba, int slot) in ufshcd_clear_keyslot()
113 struct ufs_hba *hba = in ufshcd_crypto_keyslot_evict()
114 container_of(profile, struct ufs_hba, crypto_profile); in ufshcd_crypto_keyslot_evict()
119 bool ufshcd_crypto_enable(struct ufs_hba *hba) in ufshcd_crypto_enable()
156 int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba) in ufshcd_hba_init_crypto_capabilities()
224 void ufshcd_init_crypto(struct ufs_hba *hba) in ufshcd_init_crypto()
236 void ufshcd_crypto_register(struct ufs_hba *hba, struct request_queue *q) in ufshcd_crypto_register()
Dufs-hwmon.c14 struct ufs_hba *hba;
18 static int ufs_read_temp_enable(struct ufs_hba *hba, u8 mask, long *val) in ufs_read_temp_enable()
33 static int ufs_get_temp(struct ufs_hba *hba, enum attr_idn idn, long *val) in ufs_get_temp()
54 struct ufs_hba *hba = data->hba; in ufs_hwmon_read()
100 struct ufs_hba *hba = data->hba; in ufs_hwmon_write()
165 void ufs_hwmon_probe(struct ufs_hba *hba, u8 mask) in ufs_hwmon_probe()
188 void ufs_hwmon_remove(struct ufs_hba *hba) in ufs_hwmon_remove()
201 void ufs_hwmon_notify_event(struct ufs_hba *hba, u8 ee_mask) in ufs_hwmon_notify_event()
Dufs-sysfs.c42 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_sysfs_pm_lvl_store()
69 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_lvl_show()
83 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_target_dev_state_show()
92 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_target_link_state_show()
101 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_lvl_show()
115 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_target_dev_state_show()
124 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_target_link_state_show()
159 struct ufs_hba *hba = dev_get_drvdata(dev); in auto_hibern8_show()
187 struct ufs_hba *hba = dev_get_drvdata(dev); in auto_hibern8_store()
216 struct ufs_hba *hba = dev_get_drvdata(dev); in wb_on_show()
[all …]
Dufs_bsg.c15 static int ufs_bsg_get_query_desc_size(struct ufs_hba *hba, int *desc_len, in ufs_bsg_get_query_desc_size()
33 static int ufs_bsg_verify_query_size(struct ufs_hba *hba, in ufs_bsg_verify_query_size()
48 static int ufs_bsg_alloc_desc_buffer(struct ufs_hba *hba, struct bsg_job *job, in ufs_bsg_alloc_desc_buffer()
90 struct ufs_hba *hba = shost_priv(dev_to_shost(job->dev->parent)); in ufs_bsg_request()
176 void ufs_bsg_remove(struct ufs_hba *hba) in ufs_bsg_remove()
200 int ufs_bsg_probe(struct ufs_hba *hba) in ufs_bsg_probe()
/linux-5.19.10/include/ufs/
Dufshcd.h28 struct ufs_hba;
299 int (*init)(struct ufs_hba *);
300 void (*exit)(struct ufs_hba *);
301 u32 (*get_ufs_hci_version)(struct ufs_hba *);
302 int (*clk_scale_notify)(struct ufs_hba *, bool,
304 int (*setup_clocks)(struct ufs_hba *, bool,
306 int (*hce_enable_notify)(struct ufs_hba *,
308 int (*link_startup_notify)(struct ufs_hba *,
310 int (*pwr_change_notify)(struct ufs_hba *,
314 void (*setup_xfer_req)(struct ufs_hba *hba, int tag,
[all …]
/linux-5.19.10/drivers/ufs/host/
Dufs-mediatek.c64 static bool ufs_mtk_is_boost_crypt_enabled(struct ufs_hba *hba) in ufs_mtk_is_boost_crypt_enabled()
71 static bool ufs_mtk_is_va09_supported(struct ufs_hba *hba) in ufs_mtk_is_va09_supported()
78 static bool ufs_mtk_is_broken_vcc(struct ufs_hba *hba) in ufs_mtk_is_broken_vcc()
85 static void ufs_mtk_cfg_unipro_cg(struct ufs_hba *hba, bool enable) in ufs_mtk_cfg_unipro_cg()
121 static void ufs_mtk_crypto_enable(struct ufs_hba *hba) in ufs_mtk_crypto_enable()
133 static void ufs_mtk_host_reset(struct ufs_hba *hba) in ufs_mtk_host_reset()
148 static void ufs_mtk_init_reset_control(struct ufs_hba *hba, in ufs_mtk_init_reset_control()
160 static void ufs_mtk_init_reset(struct ufs_hba *hba) in ufs_mtk_init_reset()
172 static int ufs_mtk_hce_enable_notify(struct ufs_hba *hba, in ufs_mtk_hce_enable_notify()
199 static int ufs_mtk_bind_mphy(struct ufs_hba *hba) in ufs_mtk_bind_mphy()
[all …]
Dufshcd-pci.c24 void (*late_init)(struct ufs_hba *hba);
88 static int ufs_intel_hce_enable_notify(struct ufs_hba *hba, in ufs_intel_hce_enable_notify()
102 static int ufs_intel_disable_lcc(struct ufs_hba *hba) in ufs_intel_disable_lcc()
114 static int ufs_intel_link_startup_notify(struct ufs_hba *hba, in ufs_intel_link_startup_notify()
132 static int ufs_intel_set_lanes(struct ufs_hba *hba, u32 lanes) in ufs_intel_set_lanes()
146 static int ufs_intel_lkf_pwr_change_notify(struct ufs_hba *hba, in ufs_intel_lkf_pwr_change_notify()
176 static int ufs_intel_lkf_apply_dev_quirks(struct ufs_hba *hba) in ufs_intel_lkf_apply_dev_quirks()
216 static void intel_cache_ltr(struct ufs_hba *hba) in intel_cache_ltr()
226 struct ufs_hba *hba = dev_get_drvdata(dev); in intel_ltr_set()
280 static void intel_add_debugfs(struct ufs_hba *hba) in intel_add_debugfs()
[all …]
Dufs-qcom.c47 static int ufs_qcom_set_dme_vs_core_clk_ctrl_clear_div(struct ufs_hba *hba,
55 static void ufs_qcom_dump_regs_wrapper(struct ufs_hba *hba, int offset, int len, in ufs_qcom_dump_regs_wrapper()
61 static int ufs_qcom_get_connected_tx_lanes(struct ufs_hba *hba, u32 *tx_lanes) in ufs_qcom_get_connected_tx_lanes()
197 static int ufs_qcom_link_startup_post_change(struct ufs_hba *hba) in ufs_qcom_link_startup_post_change()
204 static int ufs_qcom_check_hibern8(struct ufs_hba *hba) in ufs_qcom_check_hibern8()
256 static int ufs_qcom_host_reset(struct ufs_hba *hba) in ufs_qcom_host_reset()
301 static int ufs_qcom_power_up_sequence(struct ufs_hba *hba) in ufs_qcom_power_up_sequence()
351 static void ufs_qcom_enable_hw_clk_gating(struct ufs_hba *hba) in ufs_qcom_enable_hw_clk_gating()
361 static int ufs_qcom_hce_enable_notify(struct ufs_hba *hba, in ufs_qcom_hce_enable_notify()
394 static int ufs_qcom_cfg_timers(struct ufs_hba *hba, u32 gear, in ufs_qcom_cfg_timers()
[all …]
Dcdns-pltfrm.c37 static void cdns_ufs_get_l4_attr(struct ufs_hba *hba) in cdns_ufs_get_l4_attr()
72 static void cdns_ufs_set_l4_attr(struct ufs_hba *hba) in cdns_ufs_set_l4_attr()
110 static int cdns_ufs_set_hclkdiv(struct ufs_hba *hba) in cdns_ufs_set_hclkdiv()
153 static int cdns_ufs_hce_enable_notify(struct ufs_hba *hba, in cdns_ufs_hce_enable_notify()
170 static void cdns_ufs_hibern8_notify(struct ufs_hba *hba, enum uic_cmd_dme cmd, in cdns_ufs_hibern8_notify()
187 static int cdns_ufs_link_startup_notify(struct ufs_hba *hba, in cdns_ufs_link_startup_notify()
217 static int cdns_ufs_init(struct ufs_hba *hba) in cdns_ufs_init()
240 static int cdns_ufs_m31_16nm_phy_initialization(struct ufs_hba *hba) in cdns_ufs_m31_16nm_phy_initialization()
315 struct ufs_hba *hba = platform_get_drvdata(pdev); in cdns_ufs_pltfrm_remove()
Dufs-hisi.c25 static int ufs_hisi_check_hibern8(struct ufs_hba *hba) in ufs_hisi_check_hibern8()
69 static void ufs_hisi_clk_init(struct ufs_hba *hba) in ufs_hisi_clk_init()
83 static void ufs_hisi_soc_init(struct ufs_hba *hba) in ufs_hisi_soc_init()
140 static int ufs_hisi_link_startup_pre_change(struct ufs_hba *hba) in ufs_hisi_link_startup_pre_change()
252 static int ufs_hisi_link_startup_post_change(struct ufs_hba *hba) in ufs_hisi_link_startup_post_change()
277 static int ufs_hisi_link_startup_notify(struct ufs_hba *hba, in ufs_hisi_link_startup_notify()
301 static void ufs_hisi_pwr_change_pre_change(struct ufs_hba *hba) in ufs_hisi_pwr_change_pre_change()
363 static int ufs_hisi_pwr_change_notify(struct ufs_hba *hba, in ufs_hisi_pwr_change_notify()
407 static int ufs_hisi_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op, in ufs_hisi_suspend()
433 static int ufs_hisi_resume(struct ufs_hba *hba, enum ufs_pm_op pm_op) in ufs_hisi_resume()
[all …]
Dufs-exynos.c220 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_post_hce_enable()
234 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_pre_link()
289 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_pre_pwr_change()
302 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_post_pwr_change()
315 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_pre_link()
345 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_post_link()
375 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_post_pwr_change()
421 struct ufs_hba *hba = ufs->hba; in exynos_ufs_get_clk_info()
488 struct ufs_hba *hba = ufs->hba; in exynos_ufs_set_pwm_clk_div()
497 struct ufs_hba *hba = ufs->hba; in exynos_ufs_calc_pwm_clk_div()
[all …]
Dufshcd-dwc.c18 int ufshcd_dwc_dme_set_attrs(struct ufs_hba *hba, in ufshcd_dwc_dme_set_attrs()
44 static void ufshcd_dwc_program_clk_div(struct ufs_hba *hba, u32 divider_val) in ufshcd_dwc_program_clk_div()
56 static int ufshcd_dwc_link_is_up(struct ufs_hba *hba) in ufshcd_dwc_link_is_up()
83 static int ufshcd_dwc_connection_setup(struct ufs_hba *hba) in ufshcd_dwc_connection_setup()
117 int ufshcd_dwc_link_startup_notify(struct ufs_hba *hba, in ufshcd_dwc_link_startup_notify()
Dtc-dwc-g210.h13 struct ufs_hba;
15 int tc_dwc_g210_config_40_bit(struct ufs_hba *hba);
16 int tc_dwc_g210_config_20_bit(struct ufs_hba *hba);
Dufs-qcom.h133 ufs_qcom_get_controller_revision(struct ufs_hba *hba, in ufs_qcom_get_controller_revision()
143 static inline void ufs_qcom_assert_reset(struct ufs_hba *hba) in ufs_qcom_assert_reset()
155 static inline void ufs_qcom_deassert_reset(struct ufs_hba *hba) in ufs_qcom_deassert_reset()
198 struct ufs_hba *hba;
252 int ufs_qcom_ice_program_key(struct ufs_hba *hba,
Dtc-dwc-g210.c26 static int tc_dwc_g210_setup_40bit_rmmi(struct ufs_hba *hba) in tc_dwc_g210_setup_40bit_rmmi()
90 static int tc_dwc_g210_setup_20bit_rmmi_lane0(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi_lane0()
143 static int tc_dwc_g210_setup_20bit_rmmi_lane1(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi_lane1()
220 static int tc_dwc_g210_setup_20bit_rmmi(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi()
261 int tc_dwc_g210_config_40_bit(struct ufs_hba *hba) in tc_dwc_g210_config_40_bit()
293 int tc_dwc_g210_config_20_bit(struct ufs_hba *hba) in tc_dwc_g210_config_20_bit()
Dufs-exynos.h193 struct ufs_hba *hba;
249 static inline void exynos_ufs_enable_ov_tm(struct ufs_hba *hba) in exynos_ufs_enable_ov_tm()
254 static inline void exynos_ufs_disable_ov_tm(struct ufs_hba *hba) in exynos_ufs_disable_ov_tm()
259 static inline void exynos_ufs_enable_dbg_mode(struct ufs_hba *hba) in exynos_ufs_enable_dbg_mode()
264 static inline void exynos_ufs_disable_dbg_mode(struct ufs_hba *hba) in exynos_ufs_disable_dbg_mode()
Dufshcd-dwc.h21 int ufshcd_dwc_link_startup_notify(struct ufs_hba *hba,
23 int ufshcd_dwc_dme_set_attrs(struct ufs_hba *hba,
Dtc-dwc-g210-pci.c41 ufshcd_shutdown((struct ufs_hba *)pci_get_drvdata(pdev)); in tc_dwc_g210_pci_shutdown()
51 struct ufs_hba *hba = pci_get_drvdata(pdev); in tc_dwc_g210_pci_remove()
68 struct ufs_hba *hba; in tc_dwc_g210_pci_probe()

12