Lines Matching refs:ufs_hba

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 *,
341 void (*setup_xfer_req)(struct ufs_hba *, int, bool);
342 void (*setup_task_mgmt)(struct ufs_hba *, int, u8);
343 void (*hibern8_notify)(struct ufs_hba *, enum uic_cmd_dme,
345 int (*apply_dev_quirks)(struct ufs_hba *hba);
346 void (*fixup_dev_quirks)(struct ufs_hba *hba);
347 int (*suspend)(struct ufs_hba *, enum ufs_pm_op);
348 int (*resume)(struct ufs_hba *, enum ufs_pm_op);
349 void (*dbg_register_dump)(struct ufs_hba *hba);
350 int (*phy_initialization)(struct ufs_hba *);
351 int (*device_reset)(struct ufs_hba *hba);
352 void (*config_scaling_param)(struct ufs_hba *hba,
355 int (*program_key)(struct ufs_hba *hba,
357 void (*event_notify)(struct ufs_hba *hba,
787 struct ufs_hba { struct
952 static inline bool ufshcd_is_clkgating_allowed(struct ufs_hba *hba) in ufshcd_is_clkgating_allowed() argument
956 static inline bool ufshcd_can_hibern8_during_gating(struct ufs_hba *hba) in ufshcd_can_hibern8_during_gating()
960 static inline int ufshcd_is_clkscaling_supported(struct ufs_hba *hba) in ufshcd_is_clkscaling_supported()
964 static inline bool ufshcd_can_autobkops_during_suspend(struct ufs_hba *hba) in ufshcd_can_autobkops_during_suspend()
968 static inline bool ufshcd_is_rpm_autosuspend_allowed(struct ufs_hba *hba) in ufshcd_is_rpm_autosuspend_allowed()
973 static inline bool ufshcd_is_intr_aggr_allowed(struct ufs_hba *hba) in ufshcd_is_intr_aggr_allowed()
987 static inline bool ufshcd_can_aggressive_pc(struct ufs_hba *hba) in ufshcd_can_aggressive_pc()
993 static inline bool ufshcd_is_auto_hibern8_supported(struct ufs_hba *hba) in ufshcd_is_auto_hibern8_supported()
999 static inline bool ufshcd_is_auto_hibern8_enabled(struct ufs_hba *hba) in ufshcd_is_auto_hibern8_enabled()
1004 static inline bool ufshcd_is_wb_allowed(struct ufs_hba *hba) in ufshcd_is_wb_allowed()
1009 static inline bool ufshcd_is_user_access_allowed(struct ufs_hba *hba) in ufshcd_is_user_access_allowed()
1026 static inline void ufshcd_rmwl(struct ufs_hba *hba, u32 mask, u32 val, u32 reg) in ufshcd_rmwl()
1036 int ufshcd_alloc_host(struct device *, struct ufs_hba **);
1037 void ufshcd_dealloc_host(struct ufs_hba *);
1038 int ufshcd_hba_enable(struct ufs_hba *hba);
1039 int ufshcd_init(struct ufs_hba * , void __iomem * , unsigned int);
1040 int ufshcd_link_recovery(struct ufs_hba *hba);
1041 int ufshcd_make_hba_operational(struct ufs_hba *hba);
1042 void ufshcd_remove(struct ufs_hba *);
1043 int ufshcd_uic_hibern8_exit(struct ufs_hba *hba);
1045 int ufshcd_wait_for_register(struct ufs_hba *hba, u32 reg, u32 mask,
1048 void ufshcd_parse_dev_ref_clk_freq(struct ufs_hba *hba, struct clk *refclk);
1049 void ufshcd_update_evt_hist(struct ufs_hba *hba, u32 id, u32 val);
1050 void ufshcd_hba_stop(struct ufs_hba *hba);
1063 static inline void ufshcd_set_variant(struct ufs_hba *hba, void *variant) in ufshcd_set_variant()
1073 static inline void *ufshcd_get_variant(struct ufs_hba *hba) in ufshcd_get_variant()
1079 struct ufs_hba *hba) in ufshcd_keep_autobkops_enabled_except_suspend()
1084 static inline u8 ufshcd_wb_get_query_index(struct ufs_hba *hba) in ufshcd_wb_get_query_index()
1091 extern int ufshcd_runtime_suspend(struct ufs_hba *hba);
1092 extern int ufshcd_runtime_resume(struct ufs_hba *hba);
1093 extern int ufshcd_runtime_idle(struct ufs_hba *hba);
1094 extern int ufshcd_system_suspend(struct ufs_hba *hba);
1095 extern int ufshcd_system_resume(struct ufs_hba *hba);
1096 extern int ufshcd_shutdown(struct ufs_hba *hba);
1097 extern int ufshcd_dme_set_attr(struct ufs_hba *hba, u32 attr_sel,
1099 extern int ufshcd_dme_get_attr(struct ufs_hba *hba, u32 attr_sel,
1101 extern int ufshcd_config_pwr_mode(struct ufs_hba *hba,
1110 static inline int ufshcd_dme_set(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_set()
1117 static inline int ufshcd_dme_st_set(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_st_set()
1124 static inline int ufshcd_dme_peer_set(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_peer_set()
1131 static inline int ufshcd_dme_peer_st_set(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_peer_st_set()
1138 static inline int ufshcd_dme_get(struct ufs_hba *hba, in ufshcd_dme_get()
1144 static inline int ufshcd_dme_peer_get(struct ufs_hba *hba, in ufshcd_dme_peer_get()
1158 static inline int ufshcd_disable_host_tx_lcc(struct ufs_hba *hba) in ufshcd_disable_host_tx_lcc()
1164 int ufshcd_query_descriptor_retry(struct ufs_hba *hba,
1169 int ufshcd_read_desc_param(struct ufs_hba *hba,
1175 int ufshcd_query_attr(struct ufs_hba *hba, enum query_opcode opcode,
1177 int ufshcd_query_attr_retry(struct ufs_hba *hba,
1180 int ufshcd_query_flag(struct ufs_hba *hba, enum query_opcode opcode,
1182 int ufshcd_query_flag_retry(struct ufs_hba *hba,
1184 int ufshcd_bkops_ctrl(struct ufs_hba *hba, enum bkops_status status);
1186 void ufshcd_auto_hibern8_enable(struct ufs_hba *hba);
1187 void ufshcd_auto_hibern8_update(struct ufs_hba *hba, u32 ahit);
1188 void ufshcd_fixup_dev_quirks(struct ufs_hba *hba, struct ufs_dev_fix *fixups);
1191 int ufshcd_read_string_desc(struct ufs_hba *hba, u8 desc_index,
1194 int ufshcd_hold(struct ufs_hba *hba, bool async);
1195 void ufshcd_release(struct ufs_hba *hba);
1197 void ufshcd_map_desc_id_to_length(struct ufs_hba *hba, enum desc_idn desc_id,
1200 u32 ufshcd_get_local_unipro_ver(struct ufs_hba *hba);
1202 int ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd);
1204 int ufshcd_exec_raw_upiu_cmd(struct ufs_hba *hba,
1212 static inline const char *ufshcd_get_var_name(struct ufs_hba *hba) in ufshcd_get_var_name()
1219 static inline int ufshcd_vops_init(struct ufs_hba *hba) in ufshcd_vops_init()
1227 static inline void ufshcd_vops_exit(struct ufs_hba *hba) in ufshcd_vops_exit()
1233 static inline u32 ufshcd_vops_get_ufs_hci_version(struct ufs_hba *hba) in ufshcd_vops_get_ufs_hci_version()
1241 static inline bool ufshcd_has_utrlcnr(struct ufs_hba *hba) in ufshcd_has_utrlcnr()
1246 static inline int ufshcd_vops_clk_scale_notify(struct ufs_hba *hba, in ufshcd_vops_clk_scale_notify()
1254 static inline void ufshcd_vops_event_notify(struct ufs_hba *hba, in ufshcd_vops_event_notify()
1262 static inline int ufshcd_vops_setup_clocks(struct ufs_hba *hba, bool on, in ufshcd_vops_setup_clocks()
1270 static inline int ufshcd_vops_setup_regulators(struct ufs_hba *hba, bool status) in ufshcd_vops_setup_regulators()
1278 static inline int ufshcd_vops_hce_enable_notify(struct ufs_hba *hba, in ufshcd_vops_hce_enable_notify()
1286 static inline int ufshcd_vops_link_startup_notify(struct ufs_hba *hba, in ufshcd_vops_link_startup_notify()
1295 static inline int ufshcd_vops_pwr_change_notify(struct ufs_hba *hba, in ufshcd_vops_pwr_change_notify()
1307 static inline void ufshcd_vops_setup_task_mgmt(struct ufs_hba *hba, in ufshcd_vops_setup_task_mgmt()
1314 static inline void ufshcd_vops_hibern8_notify(struct ufs_hba *hba, in ufshcd_vops_hibern8_notify()
1322 static inline int ufshcd_vops_apply_dev_quirks(struct ufs_hba *hba) in ufshcd_vops_apply_dev_quirks()
1329 static inline void ufshcd_vops_fixup_dev_quirks(struct ufs_hba *hba) in ufshcd_vops_fixup_dev_quirks()
1335 static inline int ufshcd_vops_suspend(struct ufs_hba *hba, enum ufs_pm_op op) in ufshcd_vops_suspend()
1343 static inline int ufshcd_vops_resume(struct ufs_hba *hba, enum ufs_pm_op op) in ufshcd_vops_resume()
1351 static inline void ufshcd_vops_dbg_register_dump(struct ufs_hba *hba) in ufshcd_vops_dbg_register_dump()
1357 static inline void ufshcd_vops_device_reset(struct ufs_hba *hba) in ufshcd_vops_device_reset()
1374 static inline void ufshcd_vops_config_scaling_param(struct ufs_hba *hba, in ufshcd_vops_config_scaling_param()
1399 int ufshcd_dump_regs(struct ufs_hba *hba, size_t offset, size_t len,
1401 int ufshcd_uic_hibern8_enter(struct ufs_hba *hba);
1402 int ufshcd_uic_hibern8_exit(struct ufs_hba *hba);