Lines Matching defs:ufs_hba

54 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 *,
314 void (*setup_xfer_req)(struct ufs_hba *, int, bool);
315 void (*setup_task_mgmt)(struct ufs_hba *, int, u8);
316 void (*hibern8_notify)(struct ufs_hba *, enum uic_cmd_dme,
318 int (*apply_dev_quirks)(struct ufs_hba *hba);
319 void (*fixup_dev_quirks)(struct ufs_hba *hba);
320 int (*suspend)(struct ufs_hba *, enum ufs_pm_op);
321 int (*resume)(struct ufs_hba *, enum ufs_pm_op);
322 void (*dbg_register_dump)(struct ufs_hba *hba);
323 int (*phy_initialization)(struct ufs_hba *);
324 int (*device_reset)(struct ufs_hba *hba);
325 void (*config_scaling_param)(struct ufs_hba *hba,
328 int (*program_key)(struct ufs_hba *hba,
620 * struct ufs_hba - per adapter private structure
678 struct ufs_hba {
814 static inline bool ufshcd_is_clkgating_allowed(struct ufs_hba *hba)
818 static inline bool ufshcd_can_hibern8_during_gating(struct ufs_hba *hba)
822 static inline int ufshcd_is_clkscaling_supported(struct ufs_hba *hba)
826 static inline bool ufshcd_can_autobkops_during_suspend(struct ufs_hba *hba)
830 static inline bool ufshcd_is_rpm_autosuspend_allowed(struct ufs_hba *hba)
835 static inline bool ufshcd_is_intr_aggr_allowed(struct ufs_hba *hba)
849 static inline bool ufshcd_is_auto_hibern8_supported(struct ufs_hba *hba)
855 static inline bool ufshcd_is_auto_hibern8_enabled(struct ufs_hba *hba)
860 static inline bool ufshcd_is_wb_allowed(struct ufs_hba *hba)
877 static inline void ufshcd_rmwl(struct ufs_hba *hba, u32 mask, u32 val, u32 reg)
887 int ufshcd_alloc_host(struct device *, struct ufs_hba **);
888 void ufshcd_dealloc_host(struct ufs_hba *);
889 int ufshcd_hba_enable(struct ufs_hba *hba);
890 int ufshcd_init(struct ufs_hba * , void __iomem * , unsigned int);
891 int ufshcd_link_recovery(struct ufs_hba *hba);
892 int ufshcd_make_hba_operational(struct ufs_hba *hba);
893 void ufshcd_remove(struct ufs_hba *);
894 int ufshcd_uic_hibern8_exit(struct ufs_hba *hba);
896 int ufshcd_wait_for_register(struct ufs_hba *hba, u32 reg, u32 mask,
899 void ufshcd_parse_dev_ref_clk_freq(struct ufs_hba *hba, struct clk *refclk);
914 static inline void ufshcd_set_variant(struct ufs_hba *hba, void *variant)
924 static inline void *ufshcd_get_variant(struct ufs_hba *hba)
930 struct ufs_hba *hba)
935 static inline u8 ufshcd_wb_get_query_index(struct ufs_hba *hba)
942 extern int ufshcd_runtime_suspend(struct ufs_hba *hba);
943 extern int ufshcd_runtime_resume(struct ufs_hba *hba);
944 extern int ufshcd_runtime_idle(struct ufs_hba *hba);
945 extern int ufshcd_system_suspend(struct ufs_hba *hba);
946 extern int ufshcd_system_resume(struct ufs_hba *hba);
947 extern int ufshcd_shutdown(struct ufs_hba *hba);
948 extern int ufshcd_dme_set_attr(struct ufs_hba *hba, u32 attr_sel,
950 extern int ufshcd_dme_get_attr(struct ufs_hba *hba, u32 attr_sel,
952 extern int ufshcd_config_pwr_mode(struct ufs_hba *hba,
961 static inline int ufshcd_dme_set(struct ufs_hba *hba, u32 attr_sel,
968 static inline int ufshcd_dme_st_set(struct ufs_hba *hba, u32 attr_sel,
975 static inline int ufshcd_dme_peer_set(struct ufs_hba *hba, u32 attr_sel,
982 static inline int ufshcd_dme_peer_st_set(struct ufs_hba *hba, u32 attr_sel,
989 static inline int ufshcd_dme_get(struct ufs_hba *hba,
995 static inline int ufshcd_dme_peer_get(struct ufs_hba *hba,
1009 static inline int ufshcd_disable_host_tx_lcc(struct ufs_hba *hba)
1015 int ufshcd_query_descriptor_retry(struct ufs_hba *hba,
1020 int ufshcd_read_desc_param(struct ufs_hba *hba,
1026 int ufshcd_query_attr(struct ufs_hba *hba, enum query_opcode opcode,
1028 int ufshcd_query_flag(struct ufs_hba *hba, enum query_opcode opcode,
1031 void ufshcd_auto_hibern8_enable(struct ufs_hba *hba);
1032 void ufshcd_auto_hibern8_update(struct ufs_hba *hba, u32 ahit);
1033 void ufshcd_fixup_dev_quirks(struct ufs_hba *hba, struct ufs_dev_fix *fixups);
1036 int ufshcd_read_string_desc(struct ufs_hba *hba, u8 desc_index,
1039 int ufshcd_hold(struct ufs_hba *hba, bool async);
1040 void ufshcd_release(struct ufs_hba *hba);
1042 void ufshcd_map_desc_id_to_length(struct ufs_hba *hba, enum desc_idn desc_id,
1045 u32 ufshcd_get_local_unipro_ver(struct ufs_hba *hba);
1047 int ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd);
1049 int ufshcd_exec_raw_upiu_cmd(struct ufs_hba *hba,
1057 static inline const char *ufshcd_get_var_name(struct ufs_hba *hba)
1064 static inline int ufshcd_vops_init(struct ufs_hba *hba)
1072 static inline void ufshcd_vops_exit(struct ufs_hba *hba)
1078 static inline u32 ufshcd_vops_get_ufs_hci_version(struct ufs_hba *hba)
1086 static inline int ufshcd_vops_clk_scale_notify(struct ufs_hba *hba,
1094 static inline int ufshcd_vops_setup_clocks(struct ufs_hba *hba, bool on,
1102 static inline int ufshcd_vops_setup_regulators(struct ufs_hba *hba, bool status)
1110 static inline int ufshcd_vops_hce_enable_notify(struct ufs_hba *hba,
1118 static inline int ufshcd_vops_link_startup_notify(struct ufs_hba *hba,
1127 static inline int ufshcd_vops_pwr_change_notify(struct ufs_hba *hba,
1139 static inline void ufshcd_vops_setup_xfer_req(struct ufs_hba *hba, int tag,
1146 static inline void ufshcd_vops_setup_task_mgmt(struct ufs_hba *hba,
1153 static inline void ufshcd_vops_hibern8_notify(struct ufs_hba *hba,
1161 static inline int ufshcd_vops_apply_dev_quirks(struct ufs_hba *hba)
1168 static inline void ufshcd_vops_fixup_dev_quirks(struct ufs_hba *hba)
1174 static inline int ufshcd_vops_suspend(struct ufs_hba *hba, enum ufs_pm_op op)
1182 static inline int ufshcd_vops_resume(struct ufs_hba *hba, enum ufs_pm_op op)
1190 static inline void ufshcd_vops_dbg_register_dump(struct ufs_hba *hba)
1196 static inline void ufshcd_vops_device_reset(struct ufs_hba *hba)
1213 static inline void ufshcd_vops_config_scaling_param(struct ufs_hba *hba,
1238 int ufshcd_dump_regs(struct ufs_hba *hba, size_t offset, size_t len,