Lines Matching defs:hba
69 static int ufshcd_wait_for_register(struct ufs_hba *hba, u32 reg, u32 mask, in ufshcd_wait_for_register()
93 static void ufshcd_init_pwr_info(struct ufs_hba *hba) in ufshcd_init_pwr_info()
108 static void ufshcd_print_pwr_info(struct ufs_hba *hba) in ufshcd_print_pwr_info()
132 static inline bool ufshcd_ready_for_uic_cmd(struct ufs_hba *hba) in ufshcd_ready_for_uic_cmd()
143 static inline int ufshcd_get_uic_cmd_result(struct ufs_hba *hba) in ufshcd_get_uic_cmd_result()
152 static inline u32 ufshcd_get_dme_attr_val(struct ufs_hba *hba) in ufshcd_get_dme_attr_val()
161 static inline bool ufshcd_is_device_present(struct ufs_hba *hba) in ufshcd_is_device_present()
171 static int ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_send_uic_cmd()
227 int ufshcd_dme_set_attr(struct ufs_hba *hba, u32 attr_sel, u8 attr_set, in ufshcd_dme_set_attr()
265 int ufshcd_dme_get_attr(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_get_attr()
300 static int ufshcd_disable_tx_lcc(struct ufs_hba *hba, bool peer) in ufshcd_disable_tx_lcc()
331 static inline int ufshcd_disable_device_tx_lcc(struct ufs_hba *hba) in ufshcd_disable_device_tx_lcc()
340 static int ufshcd_dme_link_startup(struct ufs_hba *hba) in ufshcd_dme_link_startup()
358 static inline void ufshcd_disable_intr_aggr(struct ufs_hba *hba) in ufshcd_disable_intr_aggr()
376 static void ufshcd_enable_run_stop_reg(struct ufs_hba *hba) in ufshcd_enable_run_stop_reg()
387 static void ufshcd_enable_intr(struct ufs_hba *hba, u32 intrs) in ufshcd_enable_intr()
414 static int ufshcd_make_hba_operational(struct ufs_hba *hba) in ufshcd_make_hba_operational()
455 static int ufshcd_link_startup(struct ufs_hba *hba) in ufshcd_link_startup()
518 static inline void ufshcd_hba_stop(struct ufs_hba *hba) in ufshcd_hba_stop()
533 static inline bool ufshcd_is_hba_active(struct ufs_hba *hba) in ufshcd_is_hba_active()
542 static inline void ufshcd_hba_start(struct ufs_hba *hba) in ufshcd_hba_start()
550 static int ufshcd_hba_enable(struct ufs_hba *hba) in ufshcd_hba_enable()
599 static void ufshcd_host_memory_configure(struct ufs_hba *hba) in ufshcd_host_memory_configure()
631 static int ufshcd_memory_alloc(struct ufs_hba *hba) in ufshcd_memory_alloc()
657 static inline u32 ufshcd_get_intr_mask(struct ufs_hba *hba) in ufshcd_get_intr_mask()
681 static inline u32 ufshcd_get_ufs_version(struct ufs_hba *hba) in ufshcd_get_ufs_version()
689 static inline u8 ufshcd_get_upmcrs(struct ufs_hba *hba) in ufshcd_get_upmcrs()
738 static void ufshcd_prepare_utp_query_req_upiu(struct ufs_hba *hba, in ufshcd_prepare_utp_query_req_upiu()
770 static inline void ufshcd_prepare_utp_nop_upiu(struct ufs_hba *hba) in ufshcd_prepare_utp_nop_upiu()
790 static int ufshcd_comp_devman_upiu(struct ufs_hba *hba, in ufshcd_comp_devman_upiu()
814 static int ufshcd_send_command(struct ufs_hba *hba, unsigned int task_tag) in ufshcd_send_command()
858 static inline int ufshcd_get_tr_ocs(struct ufs_hba *hba) in ufshcd_get_tr_ocs()
868 static int ufshcd_check_query_response(struct ufs_hba *hba) in ufshcd_check_query_response()
882 static int ufshcd_copy_query_response(struct ufs_hba *hba) in ufshcd_copy_query_response()
917 static int ufshcd_exec_dev_cmd(struct ufs_hba *hba, enum dev_cmd_type cmd_type, in ufshcd_exec_dev_cmd()
964 static inline void ufshcd_init_query(struct ufs_hba *hba, in ufshcd_init_query()
983 int ufshcd_query_flag(struct ufs_hba *hba, enum query_opcode opcode, in ufshcd_query_flag()
1035 static int ufshcd_query_flag_retry(struct ufs_hba *hba, in ufshcd_query_flag_retry()
1059 static int __ufshcd_query_descriptor(struct ufs_hba *hba, in __ufshcd_query_descriptor()
1119 int ufshcd_query_descriptor_retry(struct ufs_hba *hba, enum query_opcode opcode, in ufshcd_query_descriptor_retry()
1139 static int ufshcd_read_desc_length(struct ufs_hba *hba, enum desc_idn desc_id, in ufshcd_read_desc_length()
1169 static void ufshcd_init_desc_sizes(struct ufs_hba *hba) in ufshcd_init_desc_sizes()
1213 int ufshcd_map_desc_id_to_length(struct ufs_hba *hba, enum desc_idn desc_id, in ufshcd_map_desc_id_to_length()
1257 int ufshcd_read_desc_param(struct ufs_hba *hba, enum desc_idn desc_id, in ufshcd_read_desc_param()
1338 static int ufshcd_uic_pwr_ctrl(struct ufs_hba *hba, struct uic_command *cmd) in ufshcd_uic_pwr_ctrl()
1372 static int ufshcd_uic_change_pwr_mode(struct ufs_hba *hba, u8 mode) in ufshcd_uic_change_pwr_mode()
1386 void ufshcd_prepare_utp_scsi_cmd_upiu(struct ufs_hba *hba, in ufshcd_prepare_utp_scsi_cmd_upiu()
1419 static void prepare_prdt_table(struct ufs_hba *hba, struct scsi_cmd *pccb) in prepare_prdt_table()
1450 struct ufs_hba *hba = dev_get_uclass_priv(scsi_dev->parent); in ufs_scsi_exec() local
1495 static inline int ufshcd_read_desc(struct ufs_hba *hba, enum desc_idn desc_id, in ufshcd_read_desc()
1501 static int ufshcd_read_device_desc(struct ufs_hba *hba, u8 *buf, u32 size) in ufshcd_read_device_desc()
1510 int ufshcd_read_string_desc(struct ufs_hba *hba, int desc_index, in ufshcd_read_string_desc()
1567 static int ufs_get_device_desc(struct ufs_hba *hba, in ufs_get_device_desc()
1626 static int ufshcd_get_max_pwr_mode(struct ufs_hba *hba) in ufshcd_get_max_pwr_mode()
1683 static int ufshcd_change_power_mode(struct ufs_hba *hba, in ufshcd_change_power_mode()
1749 static int ufshcd_verify_dev_init(struct ufs_hba *hba) in ufshcd_verify_dev_init()
1772 static int ufshcd_complete_dev_init(struct ufs_hba *hba) in ufshcd_complete_dev_init()
1806 static void ufshcd_def_desc_sizes(struct ufs_hba *hba) in ufshcd_def_desc_sizes()
1817 int ufs_start(struct ufs_hba *hba) in ufs_start()
1867 struct ufs_hba *hba = dev_get_uclass_priv(ufs_dev); in ufshcd_probe() local