/linux/drivers/scsi/ufs/ |
A D | ufshcd.h | 54 struct ufs_hba; 326 int (*init)(struct ufs_hba *); 327 void (*exit)(struct ufs_hba *); 333 int (*hce_enable_notify)(struct ufs_hba *, 337 int (*pwr_change_notify)(struct ufs_hba *, 352 int (*device_reset)(struct ufs_hba *hba); 356 int (*program_key)(struct ufs_hba *hba, 358 void (*event_notify)(struct ufs_hba *hba, 790 struct ufs_hba { struct 1028 void ufshcd_remove(struct ufs_hba *); [all …]
|
A D | ufshpb.h | 283 struct ufs_hba; 291 static void ufshpb_reset(struct ufs_hba *hba) {} in ufshpb_reset() 293 static void ufshpb_init(struct ufs_hba *hba) {} in ufshpb_init() 304 void ufshpb_resume(struct ufs_hba *hba); 305 void ufshpb_suspend(struct ufs_hba *hba); 306 void ufshpb_reset(struct ufs_hba *hba); 307 void ufshpb_reset_host(struct ufs_hba *hba); 308 void ufshpb_init(struct ufs_hba *hba); 311 void ufshpb_remove(struct ufs_hba *hba); 312 bool ufshpb_is_allowed(struct ufs_hba *hba); [all …]
|
A D | ufs-mediatek.c | 74 static bool ufs_mtk_is_broken_vcc(struct ufs_hba *hba) in ufs_mtk_is_broken_vcc() 117 static void ufs_mtk_crypto_enable(struct ufs_hba *hba) in ufs_mtk_crypto_enable() 129 static void ufs_mtk_host_reset(struct ufs_hba *hba) in ufs_mtk_host_reset() 156 static void ufs_mtk_init_reset(struct ufs_hba *hba) in ufs_mtk_init_reset() 200 static int ufs_mtk_bind_mphy(struct ufs_hba *hba) in ufs_mtk_bind_mphy() 300 static void ufs_mtk_dbg_sel(struct ufs_hba *hba) in ufs_mtk_dbg_sel() 689 static int ufs_mtk_init(struct ufs_hba *hba) in ufs_mtk_init() 829 static int ufs_mtk_pre_link(struct ufs_hba *hba) in ufs_mtk_pre_link() 878 static int ufs_mtk_post_link(struct ufs_hba *hba) in ufs_mtk_post_link() 913 static int ufs_mtk_device_reset(struct ufs_hba *hba) in ufs_mtk_device_reset() [all …]
|
A D | ufshcd.c | 1265 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_clk_scaling_suspend_work() 1282 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_clk_scaling_resume_work() 1622 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_ungate_work() 1750 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_gate_work() 4800 struct ufs_hba *hba; in ufshcd_set_queue_depth() 4926 struct ufs_hba *hba; in ufshcd_slave_alloc() 5024 struct ufs_hba *hba; in ufshcd_slave_destroy() 5811 struct ufs_hba *hba; in ufshcd_exception_event_handler() 6074 struct ufs_hba *hba; in ufshcd_err_handler() 6892 struct ufs_hba *hba; in ufshcd_eh_device_reset_handler() [all …]
|
A D | ufs-debugfs.h | 8 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()
|
A D | ufshcd-crypto.h | 37 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_register(struct ufs_hba *hba, struct request_queue *q); 54 static inline bool ufshcd_crypto_enable(struct ufs_hba *hba) in ufshcd_crypto_enable() 59 static inline int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba) in ufshcd_hba_init_crypto_capabilities() 64 static inline void ufshcd_init_crypto(struct ufs_hba *hba) { } in ufshcd_init_crypto() 66 static inline void ufshcd_crypto_register(struct ufs_hba *hba, in ufshcd_crypto_register()
|
A D | ufshcd-pci.c | 23 void (*late_init)(struct ufs_hba *hba); 101 static int ufs_intel_disable_lcc(struct ufs_hba *hba) in ufs_intel_disable_lcc() 215 static void intel_cache_ltr(struct ufs_hba *hba) in intel_cache_ltr() 225 struct ufs_hba *hba = dev_get_drvdata(dev); in intel_ltr_set() 279 static void intel_add_debugfs(struct ufs_hba *hba) in intel_add_debugfs() 392 static int ufs_intel_ehl_init(struct ufs_hba *hba) in ufs_intel_ehl_init() 410 static int ufs_intel_lkf_init(struct ufs_hba *hba) in ufs_intel_lkf_init() 424 static int ufs_intel_adl_init(struct ufs_hba *hba) in ufs_intel_adl_init() 471 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_pci_restore() 496 struct ufs_hba *hba = pci_get_drvdata(pdev); in ufshcd_pci_remove() [all …]
|
A D | ufs-debugfs.c | 18 static inline struct ufs_hba *hba_from_file(const struct file *file) in hba_from_file() 35 struct ufs_hba *hba = hba_from_file(s->file); in ufs_debugfs_stats_show() 61 struct ufs_hba *hba = data; in ee_usr_mask_get() 67 static int ufs_debugfs_get_user_access(struct ufs_hba *hba) in ufs_debugfs_get_user_access() 79 static void ufs_debugfs_put_user_access(struct ufs_hba *hba) in ufs_debugfs_put_user_access() 88 struct ufs_hba *hba = data; in ee_usr_mask_set() 132 struct ufs_hba *hba = container_of(work, struct ufs_hba, debugfs_ee_work.work); in ufs_debugfs_restart_ee() 144 struct ufs_hba *hba = hba_from_file(s->file); in ufs_saved_err_show() 163 struct ufs_hba *hba = hba_from_file(file); in ufs_saved_err_write() 211 void ufs_debugfs_hba_init(struct ufs_hba *hba) in ufs_debugfs_hba_init() [all …]
|
A D | ufs-qcom.c | 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() 358 static int ufs_qcom_hce_enable_notify(struct ufs_hba *hba, in ufs_qcom_hce_enable_notify() 866 static void ufs_qcom_set_caps(struct ufs_hba *hba) in ufs_qcom_set_caps() 982 static int ufs_qcom_init(struct ufs_hba *hba) in ufs_qcom_init() 1121 static void ufs_qcom_exit(struct ufs_hba *hba) in ufs_qcom_exit() 1254 void *priv, void (*print_fn)(struct ufs_hba *hba, in ufs_qcom_print_hw_debug_reg_all() 1430 static void ufs_qcom_dump_dbg_regs(struct ufs_hba *hba) in ufs_qcom_dump_dbg_regs() 1444 static int ufs_qcom_device_reset(struct ufs_hba *hba) in ufs_qcom_device_reset() [all …]
|
A D | ufshcd-crypto.c | 20 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()
|
A D | ufs-sysfs.c | 41 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_sysfs_pm_lvl_store() 68 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_lvl_show() 82 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_target_dev_state_show() 91 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_target_link_state_show() 100 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_lvl_show() 114 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_target_dev_state_show() 123 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_target_link_state_show() 158 struct ufs_hba *hba = dev_get_drvdata(dev); in auto_hibern8_show() 186 struct ufs_hba *hba = dev_get_drvdata(dev); in auto_hibern8_store() 215 struct ufs_hba *hba = dev_get_drvdata(dev); in wb_on_show() [all …]
|
A D | ufs-hwmon.c | 13 struct ufs_hba *hba; 17 static int ufs_read_temp_enable(struct ufs_hba *hba, u8 mask, long *val) in ufs_read_temp_enable() 32 static int ufs_get_temp(struct ufs_hba *hba, enum attr_idn idn, long *val) in ufs_get_temp() 53 struct ufs_hba *hba = data->hba; in ufs_hwmon_read() 99 struct ufs_hba *hba = data->hba; in ufs_hwmon_write() 164 void ufs_hwmon_probe(struct ufs_hba *hba, u8 mask) in ufs_hwmon_probe() 187 void ufs_hwmon_remove(struct ufs_hba *hba) in ufs_hwmon_remove() 200 void ufs_hwmon_notify_event(struct ufs_hba *hba, u8 ee_mask) in ufs_hwmon_notify_event()
|
A D | ufs-hisi.c | 23 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() 275 static int ufs_hisi_link_startup_notify(struct ufs_hba *hba, in ufs_hisi_link_startup_notify() 361 static int ufs_hisi_pwr_change_notify(struct ufs_hba *hba, in ufs_hisi_pwr_change_notify() 451 static void ufs_hisi_set_pm_lvl(struct ufs_hba *hba) in ufs_hisi_set_pm_lvl() 461 static int ufs_hisi_init_common(struct ufs_hba *hba) in ufs_hisi_init_common() 494 static int ufs_hi3660_init(struct ufs_hba *hba) in ufs_hi3660_init() 512 static int ufs_hi3670_init(struct ufs_hba *hba) in ufs_hi3670_init() [all …]
|
A D | ufs-exynos.c | 219 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_post_hce_enable() 233 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_pre_link() 288 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_pre_pwr_change() 301 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_post_pwr_change() 314 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_pre_link() 344 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_post_link() 374 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_post_pwr_change() 420 struct ufs_hba *hba = ufs->hba; in exynos_ufs_get_clk_info() 487 struct ufs_hba *hba = ufs->hba; in exynos_ufs_set_pwm_clk_div() 496 struct ufs_hba *hba = ufs->hba; in exynos_ufs_calc_pwm_clk_div() [all …]
|
A D | cdns-pltfrm.c | 36 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() 109 static int cdns_ufs_set_hclkdiv(struct ufs_hba *hba) in cdns_ufs_set_hclkdiv() 152 static int cdns_ufs_hce_enable_notify(struct ufs_hba *hba, in cdns_ufs_hce_enable_notify() 169 static void cdns_ufs_hibern8_notify(struct ufs_hba *hba, enum uic_cmd_dme cmd, in cdns_ufs_hibern8_notify() 186 static int cdns_ufs_link_startup_notify(struct ufs_hba *hba, in cdns_ufs_link_startup_notify() 216 static int cdns_ufs_init(struct ufs_hba *hba) in cdns_ufs_init() 239 static int cdns_ufs_m31_16nm_phy_initialization(struct ufs_hba *hba) in cdns_ufs_m31_16nm_phy_initialization() 314 struct ufs_hba *hba = platform_get_drvdata(pdev); in cdns_ufs_pltfrm_remove()
|
A D | ufs_bsg.h | 16 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()
|
A D | ufshcd-dwc.c | 16 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()
|
A D | ufs_bsg.c | 9 static int ufs_bsg_get_query_desc_size(struct ufs_hba *hba, int *desc_len, in ufs_bsg_get_query_desc_size() 27 static int ufs_bsg_verify_query_size(struct ufs_hba *hba, in ufs_bsg_verify_query_size() 42 static int ufs_bsg_alloc_desc_buffer(struct ufs_hba *hba, struct bsg_job *job, in ufs_bsg_alloc_desc_buffer() 84 struct ufs_hba *hba = shost_priv(dev_to_shost(job->dev->parent)); in ufs_bsg_request() 170 void ufs_bsg_remove(struct ufs_hba *hba) in ufs_bsg_remove() 194 int ufs_bsg_probe(struct ufs_hba *hba) in ufs_bsg_probe()
|
A D | ufs-qcom.h | 132 ufs_qcom_get_controller_revision(struct ufs_hba *hba, in ufs_qcom_get_controller_revision() 142 static inline void ufs_qcom_assert_reset(struct ufs_hba *hba) in ufs_qcom_assert_reset() 154 static inline void ufs_qcom_deassert_reset(struct ufs_hba *hba) in ufs_qcom_deassert_reset() 197 struct ufs_hba *hba; 254 int ufs_qcom_ice_program_key(struct ufs_hba *hba,
|
A D | tc-dwc-g210.c | 24 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()
|
A D | ufs-exynos.h | 193 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()
|
A D | tc-dwc-g210-pci.c | 40 ufshcd_shutdown((struct ufs_hba *)pci_get_drvdata(pdev)); in tc_dwc_g210_pci_shutdown() 50 struct ufs_hba *hba = pci_get_drvdata(pdev); in tc_dwc_g210_pci_remove() 67 struct ufs_hba *hba; in tc_dwc_g210_pci_probe()
|
A D | tc-dwc-g210.h | 13 int tc_dwc_g210_config_40_bit(struct ufs_hba *hba); 14 int tc_dwc_g210_config_20_bit(struct ufs_hba *hba);
|
A D | ufshcd-dwc.h | 19 int ufshcd_dwc_link_startup_notify(struct ufs_hba *hba, 21 int ufshcd_dwc_dme_set_attrs(struct ufs_hba *hba,
|
A D | ufshcd-pltfrm.c | 21 static int ufshcd_parse_clock_info(struct ufs_hba *hba) in ufshcd_parse_clock_info() 150 static int ufshcd_parse_regulator_info(struct ufs_hba *hba) in ufshcd_parse_regulator_info() 175 ufshcd_shutdown((struct ufs_hba *)platform_get_drvdata(pdev)); in ufshcd_pltfrm_shutdown() 179 static void ufshcd_init_lanes_per_dir(struct ufs_hba *hba) in ufshcd_init_lanes_per_dir() 318 struct ufs_hba *hba; in ufshcd_pltfrm_init()
|