Home
last modified time | relevance | path

Searched refs:ufs_hba (Results 1 - 25 of 57) sorted by relevance

123

/kernel/linux/linux-6.6/drivers/ufs/core/
H A 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()
29 static inline bool ufshcd_is_wb_buf_flush_allowed(struct ufs_hba *hba) in ufshcd_is_wb_buf_flush_allowed()
36 void ufs_hwmon_probe(struct ufs_hba *hba, u8 mask);
37 void ufs_hwmon_remove(struct ufs_hba *hba);
38 void ufs_hwmon_notify_event(struct ufs_hba *hba, u8 ee_mask);
40 static inline void ufs_hwmon_probe(struct ufs_hba *hba, u8 mask) {} in ufs_hwmon_probe()
41 static inline void ufs_hwmon_remove(struct ufs_hba *hb in ufs_hwmon_probe()
[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 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()
H A Dufshcd.c104 static bool is_mcq_supported(struct ufs_hba *hba) in is_mcq_supported()
129 int ufshcd_dump_regs(struct ufs_hba *hba, size_t offset, size_t len, in ufshcd_dump_regs()
265 static irqreturn_t ufshcd_tmc_handler(struct ufs_hba *hba);
267 static int ufshcd_reset_and_restore(struct ufs_hba *hba);
269 static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag);
270 static void ufshcd_hba_exit(struct ufs_hba *hba);
271 static int ufshcd_probe_hba(struct ufs_hba *hba, bool init_dev_params);
272 static int ufshcd_setup_clocks(struct ufs_hba *hba, bool on);
273 static inline void ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba);
274 static int ufshcd_host_reset_and_restore(struct ufs_hba *hb
[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)
80 static void ufs_debugfs_put_user_access(struct ufs_hba *hba)
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 *hb in ufs_saved_err_show()
[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.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 *hb in wb_on_show()
[all...]
H A 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 *hb
[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 Dufs-mcq.c91 void ufshcd_mcq_config_mac(struct ufs_hba *hba, u32 max_active_cmds) in ufshcd_mcq_config_mac()
111 struct ufs_hw_queue *ufshcd_mcq_req_to_hwq(struct ufs_hba *hba, in ufshcd_mcq_req_to_hwq()
132 int ufshcd_mcq_decide_queue_depth(struct ufs_hba *hba) in ufshcd_mcq_decide_queue_depth()
152 static int ufshcd_mcq_config_nr_queues(struct ufs_hba *hba) in ufshcd_mcq_config_nr_queues()
199 int ufshcd_mcq_memory_alloc(struct ufs_hba *hba) in ufshcd_mcq_memory_alloc()
237 static void __iomem *mcq_opr_base(struct ufs_hba *hba, in mcq_opr_base()
245 u32 ufshcd_mcq_read_cqis(struct ufs_hba *hba, int i) in ufshcd_mcq_read_cqis()
251 void ufshcd_mcq_write_cqis(struct ufs_hba *hba, u32 val, int i) in ufshcd_mcq_write_cqis()
261 static int ufshcd_mcq_get_tag(struct ufs_hba *hba, in ufshcd_mcq_get_tag()
277 static void ufshcd_mcq_process_cqe(struct ufs_hba *hb
[all...]
/kernel/linux/linux-5.10/drivers/scsi/ufs/
H A Dufshcd.h54 struct ufs_hba;
298 int (*init)(struct ufs_hba *);
299 void (*exit)(struct ufs_hba *);
300 u32 (*get_ufs_hci_version)(struct ufs_hba *);
301 int (*clk_scale_notify)(struct ufs_hba *, bool,
303 int (*setup_clocks)(struct ufs_hba *, bool,
305 int (*setup_regulators)(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 *,
678 struct ufs_hba { global() struct
[all...]
H A Dufshcd-crypto.h37 bool ufshcd_crypto_enable(struct ufs_hba *hba);
39 int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba);
41 void ufshcd_init_crypto(struct ufs_hba *hba);
43 void ufshcd_crypto_setup_rq_keyslot_manager(struct ufs_hba *hba,
46 void ufshcd_crypto_destroy_keyslot_manager(struct ufs_hba *hba);
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_setup_rq_keyslot_manager(struct ufs_hba *hba, in ufshcd_crypto_setup_rq_keyslot_manager()
72 static inline void ufshcd_crypto_destroy_keyslot_manager(struct ufs_hba *hb
[all...]
H A Dufs-mediatek.c63 static bool ufs_mtk_is_boost_crypt_enabled(struct ufs_hba *hba) in ufs_mtk_is_boost_crypt_enabled()
70 static void ufs_mtk_cfg_unipro_cg(struct ufs_hba *hba, bool enable) in ufs_mtk_cfg_unipro_cg()
106 static void ufs_mtk_crypto_enable(struct ufs_hba *hba) in ufs_mtk_crypto_enable()
118 static void ufs_mtk_host_reset(struct ufs_hba *hba) in ufs_mtk_host_reset()
133 static void ufs_mtk_init_reset_control(struct ufs_hba *hba, in ufs_mtk_init_reset_control()
145 static void ufs_mtk_init_reset(struct ufs_hba *hba) in ufs_mtk_init_reset()
157 static int ufs_mtk_hce_enable_notify(struct ufs_hba *hba, in ufs_mtk_hce_enable_notify()
177 static int ufs_mtk_bind_mphy(struct ufs_hba *hba) in ufs_mtk_bind_mphy()
215 static int ufs_mtk_setup_ref_clk(struct ufs_hba *hba, bool on) in ufs_mtk_setup_ref_clk()
262 static void ufs_mtk_setup_ref_clk_wait_us(struct ufs_hba *hb
[all...]
H A Dufshcd.c97 int ufshcd_dump_regs(struct ufs_hba *hba, size_t offset, size_t len, in ufshcd_dump_regs()
222 static irqreturn_t ufshcd_tmc_handler(struct ufs_hba *hba);
224 static int ufshcd_reset_and_restore(struct ufs_hba *hba);
226 static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag);
227 static void ufshcd_hba_exit(struct ufs_hba *hba);
228 static int ufshcd_probe_hba(struct ufs_hba *hba, bool async);
229 static int ufshcd_setup_clocks(struct ufs_hba *hba, bool on);
230 static int ufshcd_uic_hibern8_enter(struct ufs_hba *hba);
231 static inline void ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba);
232 static int ufshcd_host_reset_and_restore(struct ufs_hba *hb
[all...]
H A Dufshcd-crypto.c20 static int ufshcd_program_key(struct ufs_hba *hba, in ufshcd_program_key()
55 struct ufs_hba *hba = container_of(ksm, struct ufs_hba, ksm); in ufshcd_crypto_keyslot_program()
97 static int ufshcd_clear_keyslot(struct ufs_hba *hba, int slot) in ufshcd_clear_keyslot()
112 struct ufs_hba *hba = container_of(ksm, struct ufs_hba, ksm); in ufshcd_crypto_keyslot_evict()
117 bool ufshcd_crypto_enable(struct ufs_hba *hba) in ufshcd_crypto_enable()
154 int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba) in ufshcd_hba_init_crypto_capabilities()
223 void ufshcd_init_crypto(struct ufs_hba *hba) in ufshcd_init_crypto()
235 void ufshcd_crypto_setup_rq_keyslot_manager(struct ufs_hba *hb
[all...]
H A Dufshcd-pci.c25 static int ufs_intel_disable_lcc(struct ufs_hba *hba) in ufs_intel_disable_lcc()
37 static int ufs_intel_link_startup_notify(struct ufs_hba *hba, in ufs_intel_link_startup_notify()
64 static void intel_cache_ltr(struct ufs_hba *hba) in intel_cache_ltr()
74 struct ufs_hba *hba = dev_get_drvdata(dev); in intel_ltr_set()
128 static void intel_add_debugfs(struct ufs_hba *hba) in intel_add_debugfs()
140 static void intel_remove_debugfs(struct ufs_hba *hba) in intel_remove_debugfs()
147 static int ufs_intel_common_init(struct ufs_hba *hba) in ufs_intel_common_init()
162 static void ufs_intel_common_exit(struct ufs_hba *hba) in ufs_intel_common_exit()
168 static int ufs_intel_resume(struct ufs_hba *hba, enum ufs_pm_op op) in ufs_intel_resume()
203 static int ufs_intel_ehl_init(struct ufs_hba *hb
[all...]
H A 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()
H A Dcdns-pltfrm.c36 static void cdns_ufs_get_l4_attr(struct ufs_hba *hba) in cdns_ufs_get_l4_attr()
71 static void cdns_ufs_set_l4_attr(struct ufs_hba *hba) in cdns_ufs_set_l4_attr()
108 static int cdns_ufs_set_hclkdiv(struct ufs_hba *hba) in cdns_ufs_set_hclkdiv()
150 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()
236 static int cdns_ufs_m31_16nm_phy_initialization(struct ufs_hba *hba) in cdns_ufs_m31_16nm_phy_initialization()
311 struct ufs_hba *hba = platform_get_drvdata(pdev); in cdns_ufs_pltfrm_remove()
H A 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()
252 static int ufs_qcom_host_reset(struct ufs_hba *hba) in ufs_qcom_host_reset()
297 static int ufs_qcom_power_up_sequence(struct ufs_hba *hba) in ufs_qcom_power_up_sequence()
348 static void ufs_qcom_enable_hw_clk_gating(struct ufs_hba *hba) in ufs_qcom_enable_hw_clk_gating()
358 static int ufs_qcom_hce_enable_notify(struct ufs_hba *hba, in ufs_qcom_hce_enable_notify()
391 static int ufs_qcom_cfg_timers(struct ufs_hba *hb
[all...]
H A 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 *hb
[all...]
/kernel/linux/linux-6.6/include/ufs/
H A Dufshcd.h31 struct ufs_hba;
332 int (*init)(struct ufs_hba *);
333 void (*exit)(struct ufs_hba *);
334 u32 (*get_ufs_hci_version)(struct ufs_hba *);
335 int (*clk_scale_notify)(struct ufs_hba *, bool,
337 int (*setup_clocks)(struct ufs_hba *, bool,
339 int (*hce_enable_notify)(struct ufs_hba *,
341 int (*link_startup_notify)(struct ufs_hba *,
343 int (*pwr_change_notify)(struct ufs_hba *,
347 void (*setup_xfer_req)(struct ufs_hba *hb
915 struct ufs_hba { global() struct
[all...]
/kernel/linux/linux-6.6/drivers/ufs/host/
H A Dufs-mediatek.c31 static int ufs_mtk_config_mcq(struct ufs_hba *hba, bool irq);
94 static bool ufs_mtk_is_boost_crypt_enabled(struct ufs_hba *hba) in ufs_mtk_is_boost_crypt_enabled()
101 static bool ufs_mtk_is_va09_supported(struct ufs_hba *hba) in ufs_mtk_is_va09_supported()
108 static bool ufs_mtk_is_broken_vcc(struct ufs_hba *hba) in ufs_mtk_is_broken_vcc()
115 static bool ufs_mtk_is_pmc_via_fastauto(struct ufs_hba *hba) in ufs_mtk_is_pmc_via_fastauto()
122 static void ufs_mtk_cfg_unipro_cg(struct ufs_hba *hba, bool enable) in ufs_mtk_cfg_unipro_cg()
158 static void ufs_mtk_crypto_enable(struct ufs_hba *hba) in ufs_mtk_crypto_enable()
170 static void ufs_mtk_host_reset(struct ufs_hba *hba) in ufs_mtk_host_reset()
185 static void ufs_mtk_init_reset_control(struct ufs_hba *hba, in ufs_mtk_init_reset_control()
197 static void ufs_mtk_init_reset(struct ufs_hba *hb
[all...]
H A Dufshcd-pci.c24 void (*late_init)(struct ufs_hba *hba);
97 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 *hb
[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()
310 struct ufs_hba *hba = platform_get_drvdata(pdev); in cdns_ufs_pltfrm_remove()
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 *hb
[all...]

Completed in 24 milliseconds

123