| /OK3568_Linux_fs/kernel/drivers/scsi/ufs/ |
| H A D | ufshcd.h | 55 struct ufs_hba; 325 int (*init)(struct ufs_hba *); 326 void (*exit)(struct ufs_hba *); 327 u32 (*get_ufs_hci_version)(struct ufs_hba *); 328 int (*clk_scale_notify)(struct ufs_hba *, bool, 330 int (*setup_clocks)(struct ufs_hba *, bool, 332 int (*setup_regulators)(struct ufs_hba *, bool); 333 int (*hce_enable_notify)(struct ufs_hba *, 335 int (*link_startup_notify)(struct ufs_hba *, 337 int (*pwr_change_notify)(struct ufs_hba *, [all …]
|
| H A D | ufshpb.h | 286 struct ufs_hba; 290 static int ufshpb_prep(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) { return 0; } in ufshpb_prep() 291 static void ufshpb_rsp_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) {} in ufshpb_rsp_upiu() 292 static void ufshpb_resume(struct ufs_hba *hba) {} in ufshpb_resume() 293 static void ufshpb_suspend(struct ufs_hba *hba) {} in ufshpb_suspend() 294 static void ufshpb_reset(struct ufs_hba *hba) {} in ufshpb_reset() 295 static void ufshpb_reset_host(struct ufs_hba *hba) {} in ufshpb_reset_host() 296 static void ufshpb_init(struct ufs_hba *hba) {} in ufshpb_init() 297 static void ufshpb_init_hpb_lu(struct ufs_hba *hba, struct scsi_device *sdev) {} in ufshpb_init_hpb_lu() 298 static void ufshpb_destroy_lu(struct ufs_hba *hba, struct scsi_device *sdev) {} in ufshpb_destroy_lu() [all …]
|
| H A D | ufshcd-crypto.h | 37 static inline void ufshcd_crypto_clear_prdt(struct ufs_hba *hba, in ufshcd_crypto_clear_prdt() 50 bool ufshcd_crypto_enable(struct ufs_hba *hba); 52 int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba); 54 void ufshcd_init_crypto(struct ufs_hba *hba); 56 void ufshcd_crypto_setup_rq_keyslot_manager(struct ufs_hba *hba, 68 static inline void ufshcd_crypto_clear_prdt(struct ufs_hba *hba, in ufshcd_crypto_clear_prdt() 71 static inline bool ufshcd_crypto_enable(struct ufs_hba *hba) in ufshcd_crypto_enable() 76 static inline int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba) in ufshcd_hba_init_crypto_capabilities() 81 static inline void ufshcd_init_crypto(struct ufs_hba *hba) { } in ufshcd_init_crypto() 83 static inline void ufshcd_crypto_setup_rq_keyslot_manager(struct ufs_hba *hba, in ufshcd_crypto_setup_rq_keyslot_manager()
|
| H A D | ufs-mediatek.c | 59 static bool ufs_mtk_is_boost_crypt_enabled(struct ufs_hba *hba) in ufs_mtk_is_boost_crypt_enabled() 66 static bool ufs_mtk_is_va09_supported(struct ufs_hba *hba) in ufs_mtk_is_va09_supported() 73 static bool ufs_mtk_is_broken_vcc(struct ufs_hba *hba) in ufs_mtk_is_broken_vcc() 80 static void ufs_mtk_cfg_unipro_cg(struct ufs_hba *hba, bool enable) in ufs_mtk_cfg_unipro_cg() 116 static void ufs_mtk_crypto_enable(struct ufs_hba *hba) in ufs_mtk_crypto_enable() 128 static void ufs_mtk_host_reset(struct ufs_hba *hba) in ufs_mtk_host_reset() 143 static void ufs_mtk_init_reset_control(struct ufs_hba *hba, in ufs_mtk_init_reset_control() 155 static void ufs_mtk_init_reset(struct ufs_hba *hba) in ufs_mtk_init_reset() 167 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 …]
|
| H A D | ufshcd.c | 103 int ufshcd_dump_regs(struct ufs_hba *hba, size_t offset, size_t len, in ufshcd_dump_regs() 230 static irqreturn_t ufshcd_tmc_handler(struct ufs_hba *hba); 232 static int ufshcd_reset_and_restore(struct ufs_hba *hba); 234 static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag); 235 static void ufshcd_hba_exit(struct ufs_hba *hba); 236 static int ufshcd_probe_hba(struct ufs_hba *hba, bool async); 237 static int ufshcd_setup_clocks(struct ufs_hba *hba, bool on); 238 static inline void ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba); 239 static int ufshcd_host_reset_and_restore(struct ufs_hba *hba); 240 static void ufshcd_resume_clkscaling(struct ufs_hba *hba); [all …]
|
| H A D | ufshcd-pci.c | 25 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 *hba) in ufs_intel_ehl_init() [all …]
|
| H A D | ufs-qcom.c | 43 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 *hba, u32 gear, in ufs_qcom_cfg_timers() [all …]
|
| H 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); 18 static inline void ufs_debugfs_hba_init(struct ufs_hba *hba) {} in ufs_debugfs_hba_init() 19 static inline void ufs_debugfs_hba_exit(struct ufs_hba *hba) {} in ufs_debugfs_hba_exit()
|
| H A D | ufs-sysfs.c | 42 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_sysfs_pm_lvl_store() 63 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_lvl_show() 77 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_target_dev_state_show() 86 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_target_link_state_show() 95 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_lvl_show() 109 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_target_dev_state_show() 118 struct ufs_hba *hba = dev_get_drvdata(dev); in spm_target_link_state_show() 152 struct ufs_hba *hba = dev_get_drvdata(dev); in auto_hibern8_show() 170 struct ufs_hba *hba = dev_get_drvdata(dev); in auto_hibern8_store() 213 struct ufs_hba *hba = dev_get_drvdata(dev); in monitor_enable_show() [all …]
|
| H A D | ufshcd-crypto.c | 23 static int ufshcd_program_key(struct ufs_hba *hba, in ufshcd_program_key() 58 struct ufs_hba *hba = container_of(ksm, struct ufs_hba, ksm); in ufshcd_crypto_keyslot_program() 100 static int ufshcd_clear_keyslot(struct ufs_hba *hba, int slot) in ufshcd_clear_keyslot() 115 struct ufs_hba *hba = container_of(ksm, struct ufs_hba, ksm); in ufshcd_crypto_keyslot_evict() 120 bool ufshcd_crypto_enable(struct ufs_hba *hba) in ufshcd_crypto_enable() 167 int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba) in ufshcd_hba_init_crypto_capabilities() 240 void ufshcd_init_crypto(struct ufs_hba *hba) in ufshcd_init_crypto() 252 void ufshcd_crypto_setup_rq_keyslot_manager(struct ufs_hba *hba, in ufshcd_crypto_setup_rq_keyslot_manager()
|
| H 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() 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 *hba, enum ufs_pm_op pm_op) in ufs_hisi_resume() [all …]
|
| H 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() 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 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()
|
| H A D | ufs-exynos.c | 153 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_pre_link() 183 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_post_link() 213 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_post_pwr_change() 259 struct ufs_hba *hba = ufs->hba; in exynos_ufs_get_clk_info() 326 struct ufs_hba *hba = ufs->hba; in exynos_ufs_set_pwm_clk_div() 335 struct ufs_hba *hba = ufs->hba; in exynos_ufs_calc_pwm_clk_div() 410 struct ufs_hba *hba = ufs->hba; in exynos_ufs_config_phy_time_attr() 464 struct ufs_hba *hba = ufs->hba; in exynos_ufs_config_phy_cap_attr() 533 struct ufs_hba *hba = ufs->hba; in exynos_ufs_establish_connt() 574 struct ufs_hba *hba = ufs->hba; in exynos_ufs_config_sync_pattern_mask() [all …]
|
| H 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()
|
| H 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()
|
| H A D | ufs-qcom.h | 143 ufs_qcom_get_controller_revision(struct ufs_hba *hba, in ufs_qcom_get_controller_revision() 153 static inline void ufs_qcom_assert_reset(struct ufs_hba *hba) in ufs_qcom_assert_reset() 165 static inline void ufs_qcom_deassert_reset(struct ufs_hba *hba) in ufs_qcom_deassert_reset() 208 struct ufs_hba *hba; 265 int ufs_qcom_ice_program_key(struct ufs_hba *hba,
|
| H 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()
|
| H A D | ufs-debugfs.c | 23 struct ufs_hba *hba = s->private; in ufs_debugfs_stats_show() 47 void ufs_debugfs_hba_init(struct ufs_hba *hba) in ufs_debugfs_hba_init() 53 void ufs_debugfs_hba_exit(struct ufs_hba *hba) in ufs_debugfs_hba_exit()
|
| H A D | ufs-exynos.h | 188 struct ufs_hba *hba; 241 static inline void exynos_ufs_enable_ov_tm(struct ufs_hba *hba) in exynos_ufs_enable_ov_tm() 246 static inline void exynos_ufs_disable_ov_tm(struct ufs_hba *hba) in exynos_ufs_disable_ov_tm() 251 static inline void exynos_ufs_enable_dbg_mode(struct ufs_hba *hba) in exynos_ufs_enable_dbg_mode() 256 static inline void exynos_ufs_disable_dbg_mode(struct ufs_hba *hba) in exynos_ufs_disable_dbg_mode()
|
| /OK3568_Linux_fs/kernel/include/trace/hooks/ |
| H A D | ufshcd.h | 14 struct ufs_hba; 29 TP_PROTO(struct ufs_hba *hba, struct ufshcd_lrb *lrbp, 34 TP_PROTO(struct ufs_hba *hba), 38 TP_PROTO(struct ufs_hba *hba, int *err), 42 TP_PROTO(struct ufs_hba *hba, struct request *rq, 47 TP_PROTO(struct ufs_hba *hba), 51 TP_PROTO(struct ufs_hba *hba, struct ufshcd_lrb *lrbp), 55 TP_PROTO(struct ufs_hba *hba, struct ufshcd_lrb *lrbp), 59 TP_PROTO(struct ufs_hba *hba, struct uic_command *ucmd, 64 TP_PROTO(struct ufs_hba *hba, int tag, const char *str), [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/ufs/ |
| H A D | ufs.c | 58 static inline bool ufshcd_is_hba_active(struct ufs_hba *hba); 59 static inline void ufshcd_hba_stop(struct ufs_hba *hba); 60 static int ufshcd_hba_enable(struct ufs_hba *hba); 65 static int ufshcd_wait_for_register(struct ufs_hba *hba, u32 reg, u32 mask, in ufshcd_wait_for_register() 89 static void ufshcd_init_pwr_info(struct ufs_hba *hba) in ufshcd_init_pwr_info() 104 static void ufshcd_print_pwr_info(struct ufs_hba *hba) in ufshcd_print_pwr_info() 128 static inline bool ufshcd_ready_for_uic_cmd(struct ufs_hba *hba) in ufshcd_ready_for_uic_cmd() 139 static inline int ufshcd_get_uic_cmd_result(struct ufs_hba *hba) in ufshcd_get_uic_cmd_result() 148 static inline u32 ufshcd_get_dme_attr_val(struct ufs_hba *hba) in ufshcd_get_dme_attr_val() 157 static inline bool ufshcd_is_device_present(struct ufs_hba *hba) in ufshcd_is_device_present() [all …]
|
| H A D | ufs.h | 521 struct ufs_hba; 622 int ufshcd_dme_set_attr(struct ufs_hba *hba, u32 attr_sel, 624 int ufshcd_dme_get_attr(struct ufs_hba *hba, u32 attr_sel, 627 static inline int ufshcd_dme_set(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_set() 634 static inline int ufshcd_dme_get(struct ufs_hba *hba, in ufshcd_dme_get() 640 static inline int ufshcd_dme_peer_get(struct ufs_hba *hba, in ufshcd_dme_peer_get() 646 static inline int ufshcd_dme_peer_set(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_peer_set() 696 int (*init)(struct ufs_hba *hba); 697 int (*hce_enable_notify)(struct ufs_hba *hba, 699 int (*link_startup_notify)(struct ufs_hba *hba, [all …]
|
| H 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() 79 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 D | cdns-platform.c | 23 static int cdns_ufs_link_startup_notify(struct ufs_hba *hba, in cdns_ufs_link_startup_notify() 39 static int cdns_ufs_set_hclkdiv(struct ufs_hba *hba) in cdns_ufs_set_hclkdiv() 65 static int cdns_ufs_hce_enable_notify(struct ufs_hba *hba, in cdns_ufs_hce_enable_notify() 78 static int cdns_ufs_init(struct ufs_hba *hba) in cdns_ufs_init()
|