Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/ufs/core/
H A Dufshcd-priv.h14 void ufshcd_schedule_eh_work(struct ufs_hba *hba);
17 struct ufs_hba *hba) in ufshcd_keep_autobkops_enabled_except_suspend()
36 void ufs_hwmon_probe(struct ufs_hba *hba, u8 mask);
37 void ufs_hwmon_remove(struct ufs_hba *hba);
50 int ufshcd_read_desc_param(struct ufs_hba *hba,
66 int ufshcd_mcq_init(struct ufs_hba *hba);
67 void ufshcd_mcq_disable(struct ufs_hba *hba);
69 int ufshcd_mcq_memory_alloc(struct ufs_hba *hba);
78 void ufshcd_release_scsi_cmd(struct ufs_hba *hba,
89 int ufshcd_exec_raw_upiu_cmd(struct ufs_hba *hba,
[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()
67 bool ufshcd_crypto_enable(struct ufs_hba *hba);
69 int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba);
71 void ufshcd_init_crypto(struct ufs_hba *hba);
73 void ufshcd_crypto_register(struct ufs_hba *hba, struct request_queue *q);
84 static inline int ufshcd_crypto_fill_prdt(struct ufs_hba *hba, in ufshcd_crypto_fill_prdt()
90 static inline void ufshcd_crypto_clear_prdt(struct ufs_hba *hba, in ufshcd_crypto_clear_prdt()
93 static inline bool ufshcd_crypto_enable(struct ufs_hba *hba) in ufshcd_crypto_enable()
103 static inline void ufshcd_init_crypto(struct ufs_hba *hba) { } in ufshcd_init_crypto()
[all …]
H A Dufs_trace.h86 TP_PROTO(struct ufs_hba *hba, int state),
91 __field(struct ufs_hba *, hba)
113 __field(struct ufs_hba *, hba)
140 __field(struct ufs_hba *, hba)
160 __field(struct ufs_hba *, hba)
202 __field(struct ufs_hba *, hba)
281 __field(struct ufs_hba *, hba)
324 __field(struct ufs_hba *, hba)
355 __field(struct ufs_hba *, hba)
381 TP_PROTO(struct ufs_hba *hba, u16 status),
[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-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 Dufshcd.c1469 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_clk_scaling_suspend_work()
1487 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_clk_scaling_resume_work()
1846 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_ungate_work()
1955 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_gate_work()
5210 struct ufs_hba *hba; in ufshcd_sdev_init()
5294 struct ufs_hba *hba; in ufshcd_sdev_destroy()
6240 struct ufs_hba *hba; in ufshcd_exception_event_handler()
6566 struct ufs_hba *hba; in ufshcd_err_handler()
7430 struct ufs_hba *hba; in ufshcd_eh_device_reset_handler()
7839 struct ufs_hba *hba; in ufshcd_eh_host_reset_handler()
[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()
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()
212 void ufs_debugfs_hba_init(struct ufs_hba *hba) in ufs_debugfs_hba_init()
[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-sysfs.c89 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_sysfs_pm_lvl_store()
116 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_lvl_show()
130 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_target_dev_state_show()
139 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_target_link_state_show()
148 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_lvl_show()
162 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_target_dev_state_show()
171 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_target_link_state_show()
224 struct ufs_hba *hba = dev_get_drvdata(dev); in auto_hibern8_show()
240 struct ufs_hba *hba = dev_get_drvdata(dev); in auto_hibern8_store()
269 struct ufs_hba *hba = dev_get_drvdata(dev); in wb_on_show()
[all …]
H A Dufs-mcq.c143 int ufshcd_mcq_decide_queue_depth(struct ufs_hba *hba) in ufshcd_mcq_decide_queue_depth()
232 int ufshcd_mcq_memory_alloc(struct ufs_hba *hba) in ufshcd_mcq_memory_alloc()
264 static void __iomem *mcq_opr_base(struct ufs_hba *hba, in mcq_opr_base()
272 u32 ufshcd_mcq_read_cqis(struct ufs_hba *hba, int i) in ufshcd_mcq_read_cqis()
302 static void ufshcd_mcq_process_cqe(struct ufs_hba *hba, in ufshcd_mcq_process_cqe()
420 void ufshcd_mcq_enable(struct ufs_hba *hba) in ufshcd_mcq_enable()
427 void ufshcd_mcq_disable(struct ufs_hba *hba) in ufshcd_mcq_disable()
433 void ufshcd_mcq_enable_esi(struct ufs_hba *hba) in ufshcd_mcq_enable_esi()
447 int ufshcd_mcq_init(struct ufs_hba *hba) in ufshcd_mcq_init()
621 static bool ufshcd_mcq_sqe_search(struct ufs_hba *hba, in ufshcd_mcq_sqe_search()
[all …]
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-6.15/include/ufs/
H A Dufshcd.h34 struct ufs_hba;
344 int (*init)(struct ufs_hba *);
345 void (*exit)(struct ufs_hba *);
347 int (*set_dma_mask)(struct ufs_hba *);
372 int (*device_reset)(struct ufs_hba *hba);
382 int (*get_hba_mac)(struct ufs_hba *hba);
386 int (*config_esi)(struct ufs_hba *hba);
975 struct ufs_hba { struct
1223 static inline struct ufs_hba *
1329 void ufshcd_remove(struct ufs_hba *);
[all …]
/linux-6.15/drivers/ufs/host/
H A Dufs-mediatek.c192 static void ufs_mtk_host_reset(struct ufs_hba *hba) in ufs_mtk_host_reset()
275 static int ufs_mtk_bind_mphy(struct ufs_hba *hba) in ufs_mtk_bind_mphy()
376 static void ufs_mtk_dbg_sel(struct ufs_hba *hba) in ufs_mtk_dbg_sel()
963 static int ufs_mtk_init(struct ufs_hba *hba) in ufs_mtk_init()
1178 static int ufs_mtk_pre_link(struct ufs_hba *hba) in ufs_mtk_pre_link()
1710 struct ufs_hba *hba = mcq_intr_info->hba; in ufs_mtk_mcq_intr()
1786 struct ufs_hba *hba = shost_priv(sdev->host); in ufs_mtk_config_scsi_dev()
1889 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_mtk_system_suspend()
1907 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_mtk_system_resume()
1922 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_mtk_runtime_suspend()
[all …]
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()
55 static u32 ufs_renesas_read(struct ufs_hba *hba, u32 reg) in ufs_renesas_read()
186 static void ufs_renesas_init_step4_to_6(struct ufs_hba *hba) in ufs_renesas_init_step4_to_6()
199 static u32 ufs_renesas_init_disable_timer(struct ufs_hba *hba) in ufs_renesas_init_disable_timer()
223 static void ufs_renesas_write_phy_10ad_10af(struct ufs_hba *hba, in ufs_renesas_write_phy_10ad_10af()
337 static void ufs_renesas_r8a779f0_pre_init(struct ufs_hba *hba) in ufs_renesas_r8a779f0_pre_init()
416 static int ufs_renesas_hce_enable_notify(struct ufs_hba *hba, in ufs_renesas_hce_enable_notify()
448 static int ufs_renesas_init(struct ufs_hba *hba) in ufs_renesas_init()
508 static void ufs_renesas_exit(struct ufs_hba *hba) in ufs_renesas_exit()
[all …]
H A Dufshcd-pci.c26 void (*late_init)(struct ufs_hba *hba);
228 static void intel_cache_ltr(struct ufs_hba *hba) in intel_cache_ltr()
238 struct ufs_hba *hba = dev_get_drvdata(dev); in intel_ltr_set()
292 static void intel_add_debugfs(struct ufs_hba *hba) in intel_add_debugfs()
405 static int ufs_intel_ehl_init(struct ufs_hba *hba) in ufs_intel_ehl_init()
423 static int ufs_intel_lkf_init(struct ufs_hba *hba) in ufs_intel_lkf_init()
437 static int ufs_intel_adl_init(struct ufs_hba *hba) in ufs_intel_adl_init()
445 static int ufs_intel_mtl_init(struct ufs_hba *hba) in ufs_intel_mtl_init()
544 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_pci_restore()
560 struct ufs_hba *hba = pci_get_drvdata(pdev); in ufshcd_pci_remove()
[all …]
H A Dufs-qcom.c121 struct ufs_hba *hba = host->hba; in ufs_qcom_config_ice_allocator()
145 struct ufs_hba *hba = host->hba; in ufs_qcom_ice_init()
376 static int ufs_qcom_host_reset(struct ufs_hba *hba) in ufs_qcom_host_reset()
417 static u32 ufs_qcom_get_hs_gear(struct ufs_hba *hba) in ufs_qcom_get_hs_gear()
1058 static void ufs_qcom_set_caps(struct ufs_hba *hba) in ufs_qcom_set_caps()
1186 static int ufs_qcom_init(struct ufs_hba *hba) in ufs_qcom_init()
1283 static void ufs_qcom_exit(struct ufs_hba *hba) in ufs_qcom_exit()
1847 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_qcom_write_msi_msg()
1856 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_qcom_mcq_esi_handler()
1866 static int ufs_qcom_config_esi(struct ufs_hba *hba) in ufs_qcom_config_esi()
[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()
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()
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()
251 static int ufs_sprd_n6_init(struct ufs_hba *hba) in ufs_sprd_n6_init()
272 static int ufs_sprd_n6_phy_init(struct ufs_hba *hba) in ufs_sprd_n6_phy_init()
322 static int sprd_ufs_n6_hce_enable_notify(struct ufs_hba *hba, in sprd_ufs_n6_hce_enable_notify()
[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()
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()
458 static void ufs_hisi_set_pm_lvl(struct ufs_hba *hba) in ufs_hisi_set_pm_lvl()
468 static int ufs_hisi_init_common(struct ufs_hba *hba) in ufs_hisi_init_common()
501 static int ufs_hi3660_init(struct ufs_hba *hba) in ufs_hi3660_init()
[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 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);
H A Dufs-rockchip.c23 static int ufs_rockchip_hce_enable_notify(struct ufs_hba *hba, in ufs_rockchip_hce_enable_notify()
43 static void ufs_rockchip_set_pm_lvl(struct ufs_hba *hba) in ufs_rockchip_set_pm_lvl()
49 static int ufs_rockchip_rk3576_phy_init(struct ufs_hba *hba) in ufs_rockchip_rk3576_phy_init()
128 static int ufs_rockchip_common_init(struct ufs_hba *hba) in ufs_rockchip_common_init()
184 static int ufs_rockchip_rk3576_init(struct ufs_hba *hba) in ufs_rockchip_rk3576_init()
210 static int ufs_rockchip_device_reset(struct ufs_hba *hba) in ufs_rockchip_device_reset()
262 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_rockchip_runtime_suspend()
275 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_rockchip_runtime_resume()
296 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_rockchip_system_suspend()
321 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_rockchip_system_resume()
H A Dtc-dwc-g210.c25 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()
140 static int tc_dwc_g210_setup_20bit_rmmi_lane1(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi_lane1()
216 static int tc_dwc_g210_setup_20bit_rmmi(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi()
255 int tc_dwc_g210_config_40_bit(struct ufs_hba *hba) in tc_dwc_g210_config_40_bit()
285 int tc_dwc_g210_config_20_bit(struct ufs_hba *hba) in tc_dwc_g210_config_20_bit()

12