Lines Matching refs:ufs_hba

28 struct ufs_hba;
299 int (*init)(struct ufs_hba *);
300 void (*exit)(struct ufs_hba *);
301 u32 (*get_ufs_hci_version)(struct ufs_hba *);
302 int (*clk_scale_notify)(struct ufs_hba *, bool,
304 int (*setup_clocks)(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 *hba, int tag,
316 void (*setup_task_mgmt)(struct ufs_hba *, int, u8);
317 void (*hibern8_notify)(struct ufs_hba *, enum uic_cmd_dme,
319 int (*apply_dev_quirks)(struct ufs_hba *hba);
320 void (*fixup_dev_quirks)(struct ufs_hba *hba);
321 int (*suspend)(struct ufs_hba *, enum ufs_pm_op,
323 int (*resume)(struct ufs_hba *, enum ufs_pm_op);
324 void (*dbg_register_dump)(struct ufs_hba *hba);
325 int (*phy_initialization)(struct ufs_hba *);
326 int (*device_reset)(struct ufs_hba *hba);
327 void (*config_scaling_param)(struct ufs_hba *hba,
330 int (*program_key)(struct ufs_hba *hba,
332 void (*event_notify)(struct ufs_hba *hba,
822 struct ufs_hba { struct
971 static inline bool ufshcd_is_clkgating_allowed(struct ufs_hba *hba) in ufshcd_is_clkgating_allowed() argument
975 static inline bool ufshcd_can_hibern8_during_gating(struct ufs_hba *hba) in ufshcd_can_hibern8_during_gating()
979 static inline int ufshcd_is_clkscaling_supported(struct ufs_hba *hba) in ufshcd_is_clkscaling_supported()
983 static inline bool ufshcd_can_autobkops_during_suspend(struct ufs_hba *hba) in ufshcd_can_autobkops_during_suspend()
987 static inline bool ufshcd_is_rpm_autosuspend_allowed(struct ufs_hba *hba) in ufshcd_is_rpm_autosuspend_allowed()
992 static inline bool ufshcd_is_intr_aggr_allowed(struct ufs_hba *hba) in ufshcd_is_intr_aggr_allowed()
998 static inline bool ufshcd_can_aggressive_pc(struct ufs_hba *hba) in ufshcd_can_aggressive_pc()
1004 static inline bool ufshcd_is_auto_hibern8_supported(struct ufs_hba *hba) in ufshcd_is_auto_hibern8_supported()
1010 static inline bool ufshcd_is_auto_hibern8_enabled(struct ufs_hba *hba) in ufshcd_is_auto_hibern8_enabled()
1015 static inline bool ufshcd_is_wb_allowed(struct ufs_hba *hba) in ufshcd_is_wb_allowed()
1032 static inline void ufshcd_rmwl(struct ufs_hba *hba, u32 mask, u32 val, u32 reg) in ufshcd_rmwl()
1042 int ufshcd_alloc_host(struct device *, struct ufs_hba **);
1043 void ufshcd_dealloc_host(struct ufs_hba *);
1044 int ufshcd_hba_enable(struct ufs_hba *hba);
1045 int ufshcd_init(struct ufs_hba *, void __iomem *, unsigned int);
1046 int ufshcd_link_recovery(struct ufs_hba *hba);
1047 int ufshcd_make_hba_operational(struct ufs_hba *hba);
1048 void ufshcd_remove(struct ufs_hba *);
1049 int ufshcd_uic_hibern8_enter(struct ufs_hba *hba);
1050 int ufshcd_uic_hibern8_exit(struct ufs_hba *hba);
1052 void ufshcd_parse_dev_ref_clk_freq(struct ufs_hba *hba, struct clk *refclk);
1053 void ufshcd_update_evt_hist(struct ufs_hba *hba, u32 id, u32 val);
1054 void ufshcd_hba_stop(struct ufs_hba *hba);
1055 void ufshcd_schedule_eh_work(struct ufs_hba *hba);
1068 static inline void ufshcd_set_variant(struct ufs_hba *hba, void *variant) in ufshcd_set_variant()
1078 static inline void *ufshcd_get_variant(struct ufs_hba *hba) in ufshcd_get_variant()
1092 extern int ufshcd_shutdown(struct ufs_hba *hba);
1093 extern int ufshcd_dme_configure_adapt(struct ufs_hba *hba,
1096 extern int ufshcd_dme_set_attr(struct ufs_hba *hba, u32 attr_sel,
1098 extern int ufshcd_dme_get_attr(struct ufs_hba *hba, u32 attr_sel,
1100 extern int ufshcd_config_pwr_mode(struct ufs_hba *hba,
1109 static inline int ufshcd_dme_set(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_set()
1116 static inline int ufshcd_dme_st_set(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_st_set()
1123 static inline int ufshcd_dme_peer_set(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_peer_set()
1130 static inline int ufshcd_dme_peer_st_set(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_peer_st_set()
1137 static inline int ufshcd_dme_get(struct ufs_hba *hba, in ufshcd_dme_get()
1143 static inline int ufshcd_dme_peer_get(struct ufs_hba *hba, in ufshcd_dme_peer_get()
1157 static inline int ufshcd_disable_host_tx_lcc(struct ufs_hba *hba) in ufshcd_disable_host_tx_lcc()
1163 int ufshcd_query_descriptor_retry(struct ufs_hba *hba,
1168 int ufshcd_read_desc_param(struct ufs_hba *hba,
1174 int ufshcd_query_attr_retry(struct ufs_hba *hba, enum query_opcode opcode,
1177 int ufshcd_query_attr(struct ufs_hba *hba, enum query_opcode opcode,
1179 int ufshcd_query_flag(struct ufs_hba *hba, enum query_opcode opcode,
1182 void ufshcd_auto_hibern8_enable(struct ufs_hba *hba);
1183 void ufshcd_auto_hibern8_update(struct ufs_hba *hba, u32 ahit);
1184 void ufshcd_fixup_dev_quirks(struct ufs_hba *hba,
1188 int ufshcd_read_string_desc(struct ufs_hba *hba, u8 desc_index,
1191 int ufshcd_hold(struct ufs_hba *hba, bool async);
1192 void ufshcd_release(struct ufs_hba *hba);
1196 void ufshcd_map_desc_id_to_length(struct ufs_hba *hba, enum desc_idn desc_id,
1199 u32 ufshcd_get_local_unipro_ver(struct ufs_hba *hba);
1201 int ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd);
1203 int ufshcd_exec_raw_upiu_cmd(struct ufs_hba *hba,
1210 int ufshcd_wb_toggle(struct ufs_hba *hba, bool enable);
1216 static inline int ufshcd_vops_init(struct ufs_hba *hba) in ufshcd_vops_init()
1224 static inline int ufshcd_vops_phy_initialization(struct ufs_hba *hba) in ufshcd_vops_phy_initialization()
1234 int ufshcd_dump_regs(struct ufs_hba *hba, size_t offset, size_t len,
1237 int __ufshcd_write_ee_control(struct ufs_hba *hba, u32 ee_ctrl_mask);
1238 int ufshcd_write_ee_control(struct ufs_hba *hba);
1239 int ufshcd_update_ee_control(struct ufs_hba *hba, u16 *mask, u16 *other_mask,