Home
last modified time | relevance | path

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

12

/linux/include/ufs/
H A Dufshcd.h34 struct ufs_hba;
338 int (*init)(struct ufs_hba *);
339 void (*exit)(struct ufs_hba *);
340 u32 (*get_ufs_hci_version)(struct ufs_hba *);
341 int (*set_dma_mask)(struct ufs_hba *);
342 int (*clk_scale_notify)(struct ufs_hba *, bool, unsigned long,
344 int (*setup_clocks)(struct ufs_hba *, bool,
346 int (*hce_enable_notify)(struct ufs_hba *,
348 int (*link_startup_notify)(struct ufs_hba *,
350 int (*pwr_change_notify)(struct ufs_hba *,
[all …]
/linux/drivers/ufs/core/
H A Dufshcd-priv.h9 void ufshcd_enable_intr(struct ufs_hba *hba, u32 intrs);
11 static inline bool ufshcd_is_user_access_allowed(struct ufs_hba *hba) in ufshcd_is_user_access_allowed()
16 void ufshcd_schedule_eh_work(struct ufs_hba *hba);
19 struct ufs_hba *hba) in ufshcd_keep_autobkops_enabled_except_suspend()
24 static inline u8 ufshcd_wb_get_query_index(struct ufs_hba *hba) in ufshcd_wb_get_query_index()
31 static inline bool ufshcd_is_wb_buf_flush_allowed(struct ufs_hba *hba) in ufshcd_is_wb_buf_flush_allowed()
38 void ufs_hwmon_probe(struct ufs_hba *hba, u8 mask);
39 void ufs_hwmon_remove(struct ufs_hba *hba);
40 void ufs_hwmon_notify_event(struct ufs_hba *hba, u8 ee_mask);
42 static inline void ufs_hwmon_probe(struct ufs_hba *hba, u8 mask) {} in ufs_hwmon_probe()
[all …]
H A Dufshcd-crypto.h40 static inline int ufshcd_crypto_fill_prdt(struct ufs_hba *hba, in ufshcd_crypto_fill_prdt()
53 static inline void ufshcd_crypto_clear_prdt(struct ufs_hba *hba, in ufshcd_crypto_clear_prdt()
69 bool ufshcd_crypto_enable(struct ufs_hba *hba);
71 int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba);
73 void ufshcd_init_crypto(struct ufs_hba *hba);
75 void ufshcd_crypto_register(struct ufs_hba *hba, struct request_queue *q);
86 static inline int ufshcd_crypto_fill_prdt(struct ufs_hba *hba, in ufshcd_crypto_fill_prdt()
92 static inline void ufshcd_crypto_clear_prdt(struct ufs_hba *hba, in ufshcd_crypto_clear_prdt()
97 static inline bool ufshcd_crypto_enable(struct ufs_hba *hba) in ufshcd_crypto_enable()
102 static inline int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba) in ufshcd_hba_init_crypto_capabilities()
[all …]
H A Dufs_trace.h86 TP_PROTO(struct ufs_hba *hba, int state),
91 __field(struct ufs_hba *, hba)
107 TP_PROTO(struct ufs_hba *hba, const char *state, const char *clk,
113 __field(struct ufs_hba *, hba)
135 TP_PROTO(struct ufs_hba *hba, const char *state),
140 __field(struct ufs_hba *, hba)
154 TP_PROTO(struct ufs_hba *hba, const char *profile_info, s64 time_us,
160 __field(struct ufs_hba *, hba)
179 TP_PROTO(struct ufs_hba *hba, const char *profile_info, s64 time_us,
184 TP_PROTO(struct ufs_hba *hba, const char *profile_info, s64 time_us,
[all …]
H A Dufshcd.c115 static bool is_mcq_supported(struct ufs_hba *hba) in is_mcq_supported()
174 int ufshcd_dump_regs(struct ufs_hba *hba, size_t offset, size_t len, in ufshcd_dump_regs()
280 static bool ufshcd_has_pending_tasks(struct ufs_hba *hba) in ufshcd_has_pending_tasks()
286 static bool ufshcd_is_ufs_dev_busy(struct ufs_hba *hba) in ufshcd_is_ufs_dev_busy()
324 static irqreturn_t ufshcd_tmc_handler(struct ufs_hba *hba);
326 static int ufshcd_reset_and_restore(struct ufs_hba *hba);
328 static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag);
329 static void ufshcd_hba_exit(struct ufs_hba *hba);
330 static int ufshcd_device_init(struct ufs_hba *hba, bool init_dev_params);
331 static int ufshcd_probe_hba(struct ufs_hba *hba, bool init_dev_params);
[all …]
H A 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()
H A Dufs-sysfs.c137 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_sysfs_pm_lvl_store()
164 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_lvl_show()
178 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_target_dev_state_show()
187 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_target_link_state_show()
196 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_lvl_show()
210 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_target_dev_state_show()
219 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_target_link_state_show()
250 static int ufshcd_read_hci_reg(struct ufs_hba *hba, u32 *val, unsigned int reg) in ufshcd_read_hci_reg()
273 struct ufs_hba *hba = dev_get_drvdata(dev); in auto_hibern8_show()
289 struct ufs_hba *hba = dev_get_drvdata(dev); in auto_hibern8_store()
[all …]
H A 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 …]
H A Dufs-fault-injection.h10 void ufs_fault_inject_hba_init(struct ufs_hba *hba);
11 bool ufs_trigger_eh(struct ufs_hba *hba);
12 bool ufs_fail_completion(struct ufs_hba *hba);
14 static inline void ufs_fault_inject_hba_init(struct ufs_hba *hba) in ufs_fault_inject_hba_init()
18 static inline bool ufs_trigger_eh(struct ufs_hba *hba) in ufs_trigger_eh()
23 static inline bool ufs_fail_completion(struct ufs_hba *hba) in ufs_fail_completion()
H A Dufs-mcq.c95 void ufshcd_mcq_config_mac(struct ufs_hba *hba, u32 max_active_cmds) in ufshcd_mcq_config_mac()
115 struct ufs_hw_queue *ufshcd_mcq_req_to_hwq(struct ufs_hba *hba, in ufshcd_mcq_req_to_hwq()
130 unsigned int ufshcd_mcq_queue_cfg_addr(struct ufs_hba *hba) in ufshcd_mcq_queue_cfg_addr()
145 int ufshcd_get_hba_mac(struct ufs_hba *hba) in ufshcd_get_hba_mac()
167 static int ufshcd_mcq_config_nr_queues(struct ufs_hba *hba) in ufshcd_mcq_config_nr_queues()
223 int ufshcd_mcq_memory_alloc(struct ufs_hba *hba) in ufshcd_mcq_memory_alloc()
255 static void __iomem *mcq_opr_base(struct ufs_hba *hba, in mcq_opr_base()
263 u32 ufshcd_mcq_read_cqis(struct ufs_hba *hba, int i) in ufshcd_mcq_read_cqis()
269 void ufshcd_mcq_write_cqis(struct ufs_hba *hba, u32 val, int i) in ufshcd_mcq_write_cqis()
279 static int ufshcd_mcq_get_tag(struct ufs_hba *hba, struct cq_entry *cqe) in ufshcd_mcq_get_tag()
[all …]
H A 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()
H A 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()
166 void ufs_hwmon_probe(struct ufs_hba *hba, u8 mask) in ufs_hwmon_probe()
189 void ufs_hwmon_remove(struct ufs_hba *hba) in ufs_hwmon_remove()
202 void ufs_hwmon_notify_event(struct ufs_hba *hba, u8 ee_mask) in ufs_hwmon_notify_event()
H A Dufshcd-crypto.c20 static void ufshcd_program_key(struct ufs_hba *hba, in ufshcd_program_key()
47 struct ufs_hba *hba = ufs_hba_from_crypto_profile(profile); in ufshcd_crypto_keyslot_program()
92 struct ufs_hba *hba = ufs_hba_from_crypto_profile(profile); in ufshcd_crypto_keyslot_evict()
107 bool ufshcd_crypto_enable(struct ufs_hba *hba) in ufshcd_crypto_enable()
148 int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba) in ufshcd_hba_init_crypto_capabilities()
220 void ufshcd_init_crypto(struct ufs_hba *hba) in ufshcd_init_crypto()
233 void ufshcd_crypto_register(struct ufs_hba *hba, struct request_queue *q) in ufshcd_crypto_register()
/linux/drivers/ufs/host/
H A Dufs-renesas.c29 void (*pre_init)(struct ufs_hba *hba);
37 static void ufs_renesas_dbg_register_dump(struct ufs_hba *hba) in ufs_renesas_dbg_register_dump()
42 static void ufs_renesas_poll(struct ufs_hba *hba, u32 reg, u32 expected, u32 mask) in ufs_renesas_poll()
55 static u32 ufs_renesas_read(struct ufs_hba *hba, u32 reg) in ufs_renesas_read()
60 static void ufs_renesas_write(struct ufs_hba *hba, u32 reg, u32 value) in ufs_renesas_write()
65 static void ufs_renesas_write_d0_d4(struct ufs_hba *hba, u32 data_d0, u32 data_d4) in ufs_renesas_write_d0_d4()
71 static void ufs_renesas_write_800_80c_poll(struct ufs_hba *hba, u32 addr, in ufs_renesas_write_800_80c_poll()
80 static void ufs_renesas_write_804_80c_poll(struct ufs_hba *hba, u32 addr, u32 data_804) in ufs_renesas_write_804_80c_poll()
88 static void ufs_renesas_write_828_82c_poll(struct ufs_hba *hba, u32 data_828) in ufs_renesas_write_828_82c_poll()
96 static void ufs_renesas_write_phy(struct ufs_hba *hba, u32 addr16, u32 data16) in ufs_renesas_write_phy()
[all …]
H A Dufs-mediatek.c31 static int ufs_mtk_config_mcq(struct ufs_hba *hba, bool irq);
32 static void _ufs_mtk_clk_scale(struct ufs_hba *hba, bool scale_up);
96 static bool ufs_mtk_is_boost_crypt_enabled(struct ufs_hba *hba) in ufs_mtk_is_boost_crypt_enabled()
103 static bool ufs_mtk_is_va09_supported(struct ufs_hba *hba) in ufs_mtk_is_va09_supported()
110 static bool ufs_mtk_is_broken_vcc(struct ufs_hba *hba) in ufs_mtk_is_broken_vcc()
117 static bool ufs_mtk_is_pmc_via_fastauto(struct ufs_hba *hba) in ufs_mtk_is_pmc_via_fastauto()
124 static bool ufs_mtk_is_tx_skew_fix(struct ufs_hba *hba) in ufs_mtk_is_tx_skew_fix()
131 static bool ufs_mtk_is_rtff_mtcmos(struct ufs_hba *hba) in ufs_mtk_is_rtff_mtcmos()
138 static bool ufs_mtk_is_allow_vccqx_lpm(struct ufs_hba *hba) in ufs_mtk_is_allow_vccqx_lpm()
145 static bool ufs_mtk_is_clk_scale_ready(struct ufs_hba *hba) in ufs_mtk_is_clk_scale_ready()
[all …]
H A Dufshcd-pci.c97 static int ufs_intel_hce_enable_notify(struct ufs_hba *hba, in ufs_intel_hce_enable_notify()
111 static int ufs_intel_disable_lcc(struct ufs_hba *hba) in ufs_intel_disable_lcc()
123 static int ufs_intel_link_startup_notify(struct ufs_hba *hba, in ufs_intel_link_startup_notify()
141 static int ufs_intel_set_lanes(struct ufs_hba *hba, u32 lanes) in ufs_intel_set_lanes()
155 static int ufs_intel_lkf_pwr_change_notify(struct ufs_hba *hba, in ufs_intel_lkf_pwr_change_notify()
185 static int ufs_intel_lkf_apply_dev_quirks(struct ufs_hba *hba) in ufs_intel_lkf_apply_dev_quirks()
225 static void intel_cache_ltr(struct ufs_hba *hba) in intel_cache_ltr()
235 struct ufs_hba *hba = dev_get_drvdata(dev); in intel_ltr_set()
289 static void intel_add_debugfs(struct ufs_hba *hba) in intel_add_debugfs()
301 static void intel_remove_debugfs(struct ufs_hba *hba) in intel_remove_debugfs()
[all …]
H A Dufs-qcom.c129 static unsigned long ufs_qcom_opp_freq_to_clk_freq(struct ufs_hba *hba,
131 static int ufs_qcom_set_core_clk_ctrl(struct ufs_hba *hba, bool is_scale_up, unsigned long freq);
146 struct ufs_hba *hba = host->hba; in ufs_qcom_config_ice_allocator()
170 struct ufs_hba *hba = host->hba; in ufs_qcom_ice_init()
245 struct ufs_hba *hba = ufs_hba_from_crypto_profile(profile); in ufs_qcom_ice_keyslot_program()
259 struct ufs_hba *hba = ufs_hba_from_crypto_profile(profile); in ufs_qcom_ice_keyslot_evict()
273 struct ufs_hba *hba = ufs_hba_from_crypto_profile(profile); in ufs_qcom_ice_derive_sw_secret()
284 struct ufs_hba *hba = ufs_hba_from_crypto_profile(profile); in ufs_qcom_ice_import_key()
293 struct ufs_hba *hba = ufs_hba_from_crypto_profile(profile); in ufs_qcom_ice_generate_key()
303 struct ufs_hba *hba = ufs_hba_from_crypto_profile(profile); in ufs_qcom_ice_prepare_key()
[all …]
H A Dufs-sprd.c23 static struct ufs_sprd_priv *ufs_sprd_get_priv_data(struct ufs_hba *hba) in ufs_sprd_get_priv_data()
43 static void ufs_sprd_get_unipro_ver(struct ufs_hba *hba) in ufs_sprd_get_unipro_ver()
51 static void ufs_sprd_ctrl_uic_compl(struct ufs_hba *hba, bool enable) in ufs_sprd_ctrl_uic_compl()
95 static int ufs_sprd_parse_dt(struct device *dev, struct ufs_hba *hba, struct ufs_sprd_host *host) in ufs_sprd_parse_dt()
132 static int ufs_sprd_common_init(struct ufs_hba *hba) in ufs_sprd_common_init()
162 static int sprd_ufs_pwr_change_notify(struct ufs_hba *hba, in sprd_ufs_pwr_change_notify()
180 static int ufs_sprd_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op, in ufs_sprd_suspend()
196 static void ufs_sprd_n6_host_reset(struct ufs_hba *hba) in ufs_sprd_n6_host_reset()
207 static int ufs_sprd_n6_device_reset(struct ufs_hba *hba) in ufs_sprd_n6_device_reset()
220 static void ufs_sprd_n6_key_acc_enable(struct ufs_hba *hba) in ufs_sprd_n6_key_acc_enable()
[all …]
H A Dufs-exynos.c226 struct ufs_hba *hba = ufs->hba; in gs101_ufs_drv_init()
249 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_post_hce_enable()
263 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_pre_link()
318 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_pre_pwr_change()
331 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_post_pwr_change()
346 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_pre_link()
376 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_post_link()
406 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_post_pwr_change()
452 struct ufs_hba *hba = ufs->hba; in exynos_ufs_get_clk_info()
519 struct ufs_hba *hba = ufs->hba; in exynos_ufs_set_pwm_clk_div()
[all …]
H A 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()
406 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 …]
H A 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()
109 static int cdns_ufs_set_hclkdiv(struct ufs_hba *hba) in cdns_ufs_set_hclkdiv()
151 static int cdns_ufs_hce_enable_notify(struct ufs_hba *hba, in cdns_ufs_hce_enable_notify()
166 static void cdns_ufs_hibern8_notify(struct ufs_hba *hba, enum uic_cmd_dme cmd, in cdns_ufs_hibern8_notify()
182 static int cdns_ufs_link_startup_notify(struct ufs_hba *hba, in cdns_ufs_link_startup_notify()
212 static int cdns_ufs_init(struct ufs_hba *hba) in cdns_ufs_init()
235 static int cdns_ufs_m31_16nm_phy_initialization(struct ufs_hba *hba) in cdns_ufs_m31_16nm_phy_initialization()
H A Dufshcd-dwc.c18 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()
53 static int ufshcd_dwc_link_is_up(struct ufs_hba *hba) in ufshcd_dwc_link_is_up()
80 static int ufshcd_dwc_connection_setup(struct ufs_hba *hba) in ufshcd_dwc_connection_setup()
113 int ufshcd_dwc_link_startup_notify(struct ufs_hba *hba, in ufshcd_dwc_link_startup_notify()
H A Dufs-rockchip.c31 static int ufs_rockchip_hce_enable_notify(struct ufs_hba *hba, in ufs_rockchip_hce_enable_notify()
55 static void ufs_rockchip_set_pm_lvl(struct ufs_hba *hba) in ufs_rockchip_set_pm_lvl()
61 static int ufs_rockchip_rk3576_phy_init(struct ufs_hba *hba) in ufs_rockchip_rk3576_phy_init()
140 static int ufs_rockchip_common_init(struct ufs_hba *hba) in ufs_rockchip_common_init()
194 static int ufs_rockchip_rk3576_init(struct ufs_hba *hba) in ufs_rockchip_rk3576_init()
220 static int ufs_rockchip_device_reset(struct ufs_hba *hba) in ufs_rockchip_device_reset()
272 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_rockchip_runtime_suspend()
285 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_rockchip_runtime_resume()
304 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_rockchip_system_suspend()
329 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_rockchip_system_resume()
H A Dufs-amd-versal2.c35 struct ufs_hba *hba;
46 static int ufs_versal2_phy_reg_write(struct ufs_hba *hba, u32 addr, u32 val) in ufs_versal2_phy_reg_write()
65 static int ufs_versal2_phy_reg_read(struct ufs_hba *hba, u32 addr, u32 *val) in ufs_versal2_phy_reg_read()
97 static int ufs_versal2_enable_phy(struct ufs_hba *hba) in ufs_versal2_enable_phy()
158 static int ufs_versal2_setup_phy(struct ufs_hba *hba) in ufs_versal2_setup_phy()
225 static int ufs_versal2_phy_init(struct ufs_hba *hba) in ufs_versal2_phy_init()
293 static int ufs_versal2_init(struct ufs_hba *hba) in ufs_versal2_init()
365 static int ufs_versal2_hce_enable_notify(struct ufs_hba *hba, in ufs_versal2_hce_enable_notify()
379 static int ufs_versal2_link_startup_notify(struct ufs_hba *hba, in ufs_versal2_link_startup_notify()
402 static int ufs_versal2_phy_ratesel(struct ufs_hba *hba, u32 activelanes, u32 rx_req) in ufs_versal2_phy_ratesel()
[all …]
H A 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);

12