Lines Matching refs:ufs_hba
75 struct ufs_hba;
305 int (*init)(struct ufs_hba *);
306 void (*exit)(struct ufs_hba *);
307 u32 (*get_ufs_hci_version)(struct ufs_hba *);
308 int (*clk_scale_notify)(struct ufs_hba *, bool,
310 int (*setup_clocks)(struct ufs_hba *, bool,
312 int (*setup_regulators)(struct ufs_hba *, bool);
313 int (*hce_enable_notify)(struct ufs_hba *,
315 int (*link_startup_notify)(struct ufs_hba *,
317 int (*pwr_change_notify)(struct ufs_hba *,
321 void (*setup_xfer_req)(struct ufs_hba *, int, bool);
322 void (*setup_task_mgmt)(struct ufs_hba *, int, u8);
323 void (*hibern8_notify)(struct ufs_hba *, enum uic_cmd_dme,
325 int (*apply_dev_quirks)(struct ufs_hba *);
326 int (*suspend)(struct ufs_hba *, enum ufs_pm_op);
327 int (*resume)(struct ufs_hba *, enum ufs_pm_op);
328 void (*dbg_register_dump)(struct ufs_hba *hba);
329 int (*phy_initialization)(struct ufs_hba *);
330 void (*device_reset)(struct ufs_hba *hba);
529 struct ufs_hba { struct
736 static inline bool ufshcd_is_clkgating_allowed(struct ufs_hba *hba) in ufshcd_is_clkgating_allowed() argument
740 static inline bool ufshcd_can_hibern8_during_gating(struct ufs_hba *hba) in ufshcd_can_hibern8_during_gating()
744 static inline int ufshcd_is_clkscaling_supported(struct ufs_hba *hba) in ufshcd_is_clkscaling_supported()
748 static inline bool ufshcd_can_autobkops_during_suspend(struct ufs_hba *hba) in ufshcd_can_autobkops_during_suspend()
753 static inline bool ufshcd_is_intr_aggr_allowed(struct ufs_hba *hba) in ufshcd_is_intr_aggr_allowed()
767 static inline bool ufshcd_is_auto_hibern8_supported(struct ufs_hba *hba) in ufshcd_is_auto_hibern8_supported()
784 static inline void ufshcd_rmwl(struct ufs_hba *hba, u32 mask, u32 val, u32 reg) in ufshcd_rmwl()
794 int ufshcd_alloc_host(struct device *, struct ufs_hba **);
795 void ufshcd_dealloc_host(struct ufs_hba *);
796 int ufshcd_init(struct ufs_hba * , void __iomem * , unsigned int);
797 void ufshcd_remove(struct ufs_hba *);
798 int ufshcd_wait_for_register(struct ufs_hba *hba, u32 reg, u32 mask,
801 void ufshcd_parse_dev_ref_clk_freq(struct ufs_hba *hba, struct clk *refclk);
814 static inline void ufshcd_set_variant(struct ufs_hba *hba, void *variant) in ufshcd_set_variant()
824 static inline void *ufshcd_get_variant(struct ufs_hba *hba) in ufshcd_get_variant()
830 struct ufs_hba *hba) in ufshcd_keep_autobkops_enabled_except_suspend()
835 extern int ufshcd_runtime_suspend(struct ufs_hba *hba);
836 extern int ufshcd_runtime_resume(struct ufs_hba *hba);
837 extern int ufshcd_runtime_idle(struct ufs_hba *hba);
838 extern int ufshcd_system_suspend(struct ufs_hba *hba);
839 extern int ufshcd_system_resume(struct ufs_hba *hba);
840 extern int ufshcd_shutdown(struct ufs_hba *hba);
841 extern int ufshcd_dme_set_attr(struct ufs_hba *hba, u32 attr_sel,
843 extern int ufshcd_dme_get_attr(struct ufs_hba *hba, u32 attr_sel,
845 extern int ufshcd_config_pwr_mode(struct ufs_hba *hba,
854 static inline int ufshcd_dme_set(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_set()
861 static inline int ufshcd_dme_st_set(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_st_set()
868 static inline int ufshcd_dme_peer_set(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_peer_set()
875 static inline int ufshcd_dme_peer_st_set(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_peer_st_set()
882 static inline int ufshcd_dme_get(struct ufs_hba *hba, in ufshcd_dme_get()
888 static inline int ufshcd_dme_peer_get(struct ufs_hba *hba, in ufshcd_dme_peer_get()
903 int ufshcd_query_descriptor_retry(struct ufs_hba *hba,
908 int ufshcd_read_desc_param(struct ufs_hba *hba,
914 int ufshcd_query_attr(struct ufs_hba *hba, enum query_opcode opcode,
916 int ufshcd_query_flag(struct ufs_hba *hba, enum query_opcode opcode,
921 int ufshcd_read_string_desc(struct ufs_hba *hba, u8 desc_index,
924 int ufshcd_hold(struct ufs_hba *hba, bool async);
925 void ufshcd_release(struct ufs_hba *hba);
927 int ufshcd_map_desc_id_to_length(struct ufs_hba *hba, enum desc_idn desc_id,
930 u32 ufshcd_get_local_unipro_ver(struct ufs_hba *hba);
932 int ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd);
934 int ufshcd_exec_raw_upiu_cmd(struct ufs_hba *hba,
942 static inline const char *ufshcd_get_var_name(struct ufs_hba *hba) in ufshcd_get_var_name()
949 static inline int ufshcd_vops_init(struct ufs_hba *hba) in ufshcd_vops_init()
957 static inline void ufshcd_vops_exit(struct ufs_hba *hba) in ufshcd_vops_exit()
963 static inline u32 ufshcd_vops_get_ufs_hci_version(struct ufs_hba *hba) in ufshcd_vops_get_ufs_hci_version()
971 static inline int ufshcd_vops_clk_scale_notify(struct ufs_hba *hba, in ufshcd_vops_clk_scale_notify()
979 static inline int ufshcd_vops_setup_clocks(struct ufs_hba *hba, bool on, in ufshcd_vops_setup_clocks()
987 static inline int ufshcd_vops_setup_regulators(struct ufs_hba *hba, bool status) in ufshcd_vops_setup_regulators()
995 static inline int ufshcd_vops_hce_enable_notify(struct ufs_hba *hba, in ufshcd_vops_hce_enable_notify()
1003 static inline int ufshcd_vops_link_startup_notify(struct ufs_hba *hba, in ufshcd_vops_link_startup_notify()
1012 static inline int ufshcd_vops_pwr_change_notify(struct ufs_hba *hba, in ufshcd_vops_pwr_change_notify()
1024 static inline void ufshcd_vops_setup_xfer_req(struct ufs_hba *hba, int tag, in ufshcd_vops_setup_xfer_req()
1031 static inline void ufshcd_vops_setup_task_mgmt(struct ufs_hba *hba, in ufshcd_vops_setup_task_mgmt()
1038 static inline void ufshcd_vops_hibern8_notify(struct ufs_hba *hba, in ufshcd_vops_hibern8_notify()
1046 static inline int ufshcd_vops_apply_dev_quirks(struct ufs_hba *hba) in ufshcd_vops_apply_dev_quirks()
1053 static inline int ufshcd_vops_suspend(struct ufs_hba *hba, enum ufs_pm_op op) in ufshcd_vops_suspend()
1061 static inline int ufshcd_vops_resume(struct ufs_hba *hba, enum ufs_pm_op op) in ufshcd_vops_resume()
1069 static inline void ufshcd_vops_dbg_register_dump(struct ufs_hba *hba) in ufshcd_vops_dbg_register_dump()
1075 static inline void ufshcd_vops_device_reset(struct ufs_hba *hba) in ufshcd_vops_device_reset()
1098 int ufshcd_dump_regs(struct ufs_hba *hba, size_t offset, size_t len,