Lines Matching refs:ufs_hba

108 int ufshcd_dump_regs(struct ufs_hba *hba, size_t offset, size_t len,  in ufshcd_dump_regs()
240 static void ufshcd_tmc_handler(struct ufs_hba *hba);
242 static int ufshcd_reset_and_restore(struct ufs_hba *hba);
244 static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag);
245 static void ufshcd_hba_exit(struct ufs_hba *hba);
246 static int ufshcd_probe_hba(struct ufs_hba *hba);
247 static int __ufshcd_setup_clocks(struct ufs_hba *hba, bool on,
249 static int ufshcd_setup_clocks(struct ufs_hba *hba, bool on);
250 static int ufshcd_uic_hibern8_exit(struct ufs_hba *hba);
251 static int ufshcd_uic_hibern8_enter(struct ufs_hba *hba);
252 static inline void ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba);
253 static int ufshcd_host_reset_and_restore(struct ufs_hba *hba);
254 static void ufshcd_resume_clkscaling(struct ufs_hba *hba);
255 static void ufshcd_suspend_clkscaling(struct ufs_hba *hba);
256 static void __ufshcd_suspend_clkscaling(struct ufs_hba *hba);
257 static int ufshcd_scale_clks(struct ufs_hba *hba, bool scale_up);
259 static int ufshcd_change_power_mode(struct ufs_hba *hba,
261 static inline bool ufshcd_valid_tag(struct ufs_hba *hba, int tag) in ufshcd_valid_tag()
266 static inline int ufshcd_enable_irq(struct ufs_hba *hba) in ufshcd_enable_irq()
282 static inline void ufshcd_disable_irq(struct ufs_hba *hba) in ufshcd_disable_irq()
290 static void ufshcd_scsi_unblock_requests(struct ufs_hba *hba) in ufshcd_scsi_unblock_requests()
296 static void ufshcd_scsi_block_requests(struct ufs_hba *hba) in ufshcd_scsi_block_requests()
302 static void ufshcd_add_cmd_upiu_trace(struct ufs_hba *hba, unsigned int tag, in ufshcd_add_cmd_upiu_trace()
310 static void ufshcd_add_query_upiu_trace(struct ufs_hba *hba, unsigned int tag, in ufshcd_add_query_upiu_trace()
318 static void ufshcd_add_tm_upiu_trace(struct ufs_hba *hba, unsigned int tag, in ufshcd_add_tm_upiu_trace()
328 static void ufshcd_add_command_trace(struct ufs_hba *hba, in ufshcd_add_command_trace()
367 static void ufshcd_print_clk_freqs(struct ufs_hba *hba) in ufshcd_print_clk_freqs()
383 static void ufshcd_print_err_hist(struct ufs_hba *hba, in ufshcd_print_err_hist()
404 static void ufshcd_print_host_regs(struct ufs_hba *hba) in ufshcd_print_host_regs()
441 void ufshcd_print_trs(struct ufs_hba *hba, unsigned long bitmap, bool pr_prdt) in ufshcd_print_trs()
482 static void ufshcd_print_tmrs(struct ufs_hba *hba, unsigned long bitmap) in ufshcd_print_tmrs()
494 static void ufshcd_print_host_state(struct ufs_hba *hba) in ufshcd_print_host_state()
521 static void ufshcd_print_pwr_info(struct ufs_hba *hba) in ufshcd_print_pwr_info()
554 int ufshcd_wait_for_register(struct ufs_hba *hba, u32 reg, u32 mask, in ufshcd_wait_for_register()
585 static inline u32 ufshcd_get_intr_mask(struct ufs_hba *hba) in ufshcd_get_intr_mask()
612 static inline u32 ufshcd_get_ufs_version(struct ufs_hba *hba) in ufshcd_get_ufs_version()
627 static inline bool ufshcd_is_device_present(struct ufs_hba *hba) in ufshcd_is_device_present()
654 static bool ufshcd_get_tm_free_slot(struct ufs_hba *hba, int *free_slot) in ufshcd_get_tm_free_slot()
674 static inline void ufshcd_put_tm_slot(struct ufs_hba *hba, int slot) in ufshcd_put_tm_slot()
684 static inline void ufshcd_utrl_clear(struct ufs_hba *hba, u32 pos) in ufshcd_utrl_clear()
698 static inline void ufshcd_utmrl_clear(struct ufs_hba *hba, u32 pos) in ufshcd_utmrl_clear()
711 static inline void ufshcd_outstanding_req_clear(struct ufs_hba *hba, int tag) in ufshcd_outstanding_req_clear()
734 static inline int ufshcd_get_uic_cmd_result(struct ufs_hba *hba) in ufshcd_get_uic_cmd_result()
747 static inline u32 ufshcd_get_dme_attr_val(struct ufs_hba *hba) in ufshcd_get_dme_attr_val()
809 ufshcd_reset_intr_aggr(struct ufs_hba *hba) in ufshcd_reset_intr_aggr()
823 ufshcd_config_intr_aggr(struct ufs_hba *hba, u8 cnt, u8 tmout) in ufshcd_config_intr_aggr()
835 static inline void ufshcd_disable_intr_aggr(struct ufs_hba *hba) in ufshcd_disable_intr_aggr()
846 static void ufshcd_enable_run_stop_reg(struct ufs_hba *hba) in ufshcd_enable_run_stop_reg()
858 static inline void ufshcd_hba_start(struct ufs_hba *hba) in ufshcd_hba_start()
869 static inline bool ufshcd_is_hba_active(struct ufs_hba *hba) in ufshcd_is_hba_active()
875 u32 ufshcd_get_local_unipro_ver(struct ufs_hba *hba) in ufshcd_get_local_unipro_ver()
886 static bool ufshcd_is_unipro_pa_params_tuning_req(struct ufs_hba *hba) in ufshcd_is_unipro_pa_params_tuning_req()
903 static int ufshcd_scale_clks(struct ufs_hba *hba, bool scale_up) in ufshcd_scale_clks()
979 static bool ufshcd_is_devfreq_scaling_required(struct ufs_hba *hba, in ufshcd_is_devfreq_scaling_required()
1005 static int ufshcd_wait_for_doorbell_clr(struct ufs_hba *hba, in ufshcd_wait_for_doorbell_clr()
1073 static int ufshcd_scale_gear(struct ufs_hba *hba, bool scale_up) in ufshcd_scale_gear()
1111 static int ufshcd_clock_scaling_prepare(struct ufs_hba *hba) in ufshcd_clock_scaling_prepare()
1130 static void ufshcd_clock_scaling_unprepare(struct ufs_hba *hba) in ufshcd_clock_scaling_unprepare()
1145 static int ufshcd_devfreq_scale(struct ufs_hba *hba, bool scale_up) in ufshcd_devfreq_scale()
1189 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_clk_scaling_suspend_work()
1206 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_clk_scaling_resume_work()
1225 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_devfreq_target()
1277 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_devfreq_get_dev_status()
1318 static int ufshcd_devfreq_init(struct ufs_hba *hba) in ufshcd_devfreq_init()
1351 static void ufshcd_devfreq_remove(struct ufs_hba *hba) in ufshcd_devfreq_remove()
1367 static void __ufshcd_suspend_clkscaling(struct ufs_hba *hba) in __ufshcd_suspend_clkscaling()
1377 static void ufshcd_suspend_clkscaling(struct ufs_hba *hba) in ufshcd_suspend_clkscaling()
1396 static void ufshcd_resume_clkscaling(struct ufs_hba *hba) in ufshcd_resume_clkscaling()
1418 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkscale_enable_show()
1426 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkscale_enable_store()
1461 static void ufshcd_clkscaling_init_sysfs(struct ufs_hba *hba) in ufshcd_clkscaling_init_sysfs()
1476 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_ungate_work()
1514 int ufshcd_hold(struct ufs_hba *hba, bool async) in ufshcd_hold()
1598 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_gate_work()
1664 static void __ufshcd_release(struct ufs_hba *hba) in __ufshcd_release()
1685 void ufshcd_release(struct ufs_hba *hba) in ufshcd_release()
1698 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkgate_delay_show()
1706 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkgate_delay_store()
1721 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkgate_enable_show()
1729 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkgate_enable_store()
1753 static void ufshcd_init_clk_scaling(struct ufs_hba *hba) in ufshcd_init_clk_scaling()
1772 static void ufshcd_exit_clk_scaling(struct ufs_hba *hba) in ufshcd_exit_clk_scaling()
1781 static void ufshcd_init_clk_gating(struct ufs_hba *hba) in ufshcd_init_clk_gating()
1816 static void ufshcd_exit_clk_gating(struct ufs_hba *hba) in ufshcd_exit_clk_gating()
1828 static void ufshcd_clk_scaling_start_busy(struct ufs_hba *hba) in ufshcd_clk_scaling_start_busy()
1857 static void ufshcd_clk_scaling_update_busy(struct ufs_hba *hba) in ufshcd_clk_scaling_update_busy()
1877 void ufshcd_send_command(struct ufs_hba *hba, unsigned int task_tag) in ufshcd_send_command()
1915 int ufshcd_copy_query_response(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_copy_query_response()
1951 static inline void ufshcd_hba_capabilities(struct ufs_hba *hba) in ufshcd_hba_capabilities()
1967 static inline bool ufshcd_ready_for_uic_cmd(struct ufs_hba *hba) in ufshcd_ready_for_uic_cmd()
1982 static inline u8 ufshcd_get_upmcrs(struct ufs_hba *hba) in ufshcd_get_upmcrs()
1995 ufshcd_dispatch_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_dispatch_uic_cmd()
2020 ufshcd_wait_for_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_wait_for_uic_cmd()
2049 __ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd, in __ufshcd_send_uic_cmd()
2073 int ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_send_uic_cmd()
2101 static int ufshcd_map_sg(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_map_sg()
2146 static void ufshcd_enable_intr(struct ufs_hba *hba, u32 intrs) in ufshcd_enable_intr()
2166 static void ufshcd_disable_intr(struct ufs_hba *hba, u32 intrs) in ufshcd_disable_intr()
2269 static void ufshcd_prepare_utp_query_req_upiu(struct ufs_hba *hba, in ufshcd_prepare_utp_query_req_upiu()
2324 static int ufshcd_comp_devman_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_comp_devman_upiu()
2352 static int ufshcd_comp_scsi_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_comp_scsi_upiu()
2395 struct ufs_hba *hba; in ufshcd_queuecommand()
2496 static int ufshcd_compose_dev_cmd(struct ufs_hba *hba, in ufshcd_compose_dev_cmd()
2511 ufshcd_clear_cmd(struct ufs_hba *hba, int tag) in ufshcd_clear_cmd()
2534 ufshcd_check_query_response(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_check_query_response()
2550 ufshcd_dev_cmd_completion(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_dev_cmd_completion()
2587 static int ufshcd_wait_for_dev_cmd(struct ufs_hba *hba, in ufshcd_wait_for_dev_cmd()
2637 static bool ufshcd_get_dev_cmd_tag(struct ufs_hba *hba, int *tag_out) in ufshcd_get_dev_cmd_tag()
2659 static inline void ufshcd_put_dev_cmd_tag(struct ufs_hba *hba, int tag) in ufshcd_put_dev_cmd_tag()
2673 static int ufshcd_exec_dev_cmd(struct ufs_hba *hba, in ufshcd_exec_dev_cmd()
2730 static inline void ufshcd_init_query(struct ufs_hba *hba, in ufshcd_init_query()
2744 static int ufshcd_query_flag_retry(struct ufs_hba *hba, in ufshcd_query_flag_retry()
2776 int ufshcd_query_flag(struct ufs_hba *hba, enum query_opcode opcode, in ufshcd_query_flag()
2845 int ufshcd_query_attr(struct ufs_hba *hba, enum query_opcode opcode, in ufshcd_query_attr()
2911 static int ufshcd_query_attr_retry(struct ufs_hba *hba, in ufshcd_query_attr_retry()
2935 static int __ufshcd_query_descriptor(struct ufs_hba *hba, in __ufshcd_query_descriptor()
3013 int ufshcd_query_descriptor_retry(struct ufs_hba *hba, in ufshcd_query_descriptor_retry()
3041 static int ufshcd_read_desc_length(struct ufs_hba *hba, in ufshcd_read_desc_length()
3081 int ufshcd_map_desc_id_to_length(struct ufs_hba *hba, in ufshcd_map_desc_id_to_length()
3132 int ufshcd_read_desc_param(struct ufs_hba *hba, in ufshcd_read_desc_param()
3201 static inline int ufshcd_read_desc(struct ufs_hba *hba, in ufshcd_read_desc()
3210 static inline int ufshcd_read_power_desc(struct ufs_hba *hba, in ufshcd_read_power_desc()
3217 static int ufshcd_read_device_desc(struct ufs_hba *hba, u8 *buf, u32 size) in ufshcd_read_device_desc()
3255 int ufshcd_read_string_desc(struct ufs_hba *hba, u8 desc_index, in ufshcd_read_string_desc()
3335 static inline int ufshcd_read_unit_desc_param(struct ufs_hba *hba, in ufshcd_read_unit_desc_param()
3365 static int ufshcd_memory_alloc(struct ufs_hba *hba) in ufshcd_memory_alloc()
3447 static void ufshcd_host_memory_configure(struct ufs_hba *hba) in ufshcd_host_memory_configure()
3523 static int ufshcd_dme_link_startup(struct ufs_hba *hba) in ufshcd_dme_link_startup()
3545 static int ufshcd_dme_reset(struct ufs_hba *hba) in ufshcd_dme_reset()
3568 static int ufshcd_dme_enable(struct ufs_hba *hba) in ufshcd_dme_enable()
3583 static inline void ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba) in ufshcd_add_delay_before_dme_cmd()
3624 int ufshcd_dme_set_attr(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_set_attr()
3668 int ufshcd_dme_get_attr(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_get_attr()
3749 static int ufshcd_uic_pwr_ctrl(struct ufs_hba *hba, struct uic_command *cmd) in ufshcd_uic_pwr_ctrl()
3823 static int ufshcd_uic_change_pwr_mode(struct ufs_hba *hba, u8 mode) in ufshcd_uic_change_pwr_mode()
3849 static int ufshcd_link_recovery(struct ufs_hba *hba) in ufshcd_link_recovery()
3874 static int __ufshcd_uic_hibern8_enter(struct ufs_hba *hba) in __ufshcd_uic_hibern8_enter()
3904 static int ufshcd_uic_hibern8_enter(struct ufs_hba *hba) in ufshcd_uic_hibern8_enter()
3917 static int ufshcd_uic_hibern8_exit(struct ufs_hba *hba) in ufshcd_uic_hibern8_exit()
3944 static void ufshcd_auto_hibern8_enable(struct ufs_hba *hba) in ufshcd_auto_hibern8_enable()
3961 static void ufshcd_init_pwr_info(struct ufs_hba *hba) in ufshcd_init_pwr_info()
3976 static int ufshcd_get_max_pwr_mode(struct ufs_hba *hba) in ufshcd_get_max_pwr_mode()
4035 static int ufshcd_change_power_mode(struct ufs_hba *hba, in ufshcd_change_power_mode()
4105 int ufshcd_config_pwr_mode(struct ufs_hba *hba, in ufshcd_config_pwr_mode()
4131 static int ufshcd_complete_dev_init(struct ufs_hba *hba) in ufshcd_complete_dev_init()
4176 static int ufshcd_make_hba_operational(struct ufs_hba *hba) in ufshcd_make_hba_operational()
4228 static inline void ufshcd_hba_stop(struct ufs_hba *hba, bool can_sleep) in ufshcd_hba_stop()
4250 static int ufshcd_hba_execute_hce(struct ufs_hba *hba) in ufshcd_hba_execute_hce()
4299 static int ufshcd_hba_enable(struct ufs_hba *hba) in ufshcd_hba_enable()
4324 static int ufshcd_disable_tx_lcc(struct ufs_hba *hba, bool peer) in ufshcd_disable_tx_lcc()
4355 static inline int ufshcd_disable_device_tx_lcc(struct ufs_hba *hba) in ufshcd_disable_device_tx_lcc()
4374 static int ufshcd_link_startup(struct ufs_hba *hba) in ufshcd_link_startup()
4463 static int ufshcd_verify_dev_init(struct ufs_hba *hba) in ufshcd_verify_dev_init()
4500 struct ufs_hba *hba; in ufshcd_set_queue_depth()
4536 static int ufshcd_get_lu_wp(struct ufs_hba *hba, in ufshcd_get_lu_wp()
4567 static inline void ufshcd_get_lu_power_on_wp_status(struct ufs_hba *hba, in ufshcd_get_lu_power_on_wp_status()
4589 struct ufs_hba *hba; in ufshcd_slave_alloc()
4621 struct ufs_hba *hba = shost_priv(sdev->host); in ufshcd_change_queue_depth()
4646 struct ufs_hba *hba; in ufshcd_slave_destroy()
4702 ufshcd_transfer_rsp_status(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_transfer_rsp_status()
4792 static void ufshcd_uic_cmd_compl(struct ufs_hba *hba, u32 intr_status) in ufshcd_uic_cmd_compl()
4811 static void __ufshcd_transfer_req_compl(struct ufs_hba *hba, in __ufshcd_transfer_req_compl()
4860 static void ufshcd_transfer_req_compl(struct ufs_hba *hba) in ufshcd_transfer_req_compl()
4892 static int ufshcd_disable_ee(struct ufs_hba *hba, u16 mask) in ufshcd_disable_ee()
4920 static int ufshcd_enable_ee(struct ufs_hba *hba, u16 mask) in ufshcd_enable_ee()
4949 static int ufshcd_enable_auto_bkops(struct ufs_hba *hba) in ufshcd_enable_auto_bkops()
4988 static int ufshcd_disable_auto_bkops(struct ufs_hba *hba) in ufshcd_disable_auto_bkops()
5030 static void ufshcd_force_reset_auto_bkops(struct ufs_hba *hba) in ufshcd_force_reset_auto_bkops()
5043 static inline int ufshcd_get_bkops_status(struct ufs_hba *hba, u32 *status) in ufshcd_get_bkops_status()
5065 static int ufshcd_bkops_ctrl(struct ufs_hba *hba, in ufshcd_bkops_ctrl()
5101 static int ufshcd_urgent_bkops(struct ufs_hba *hba) in ufshcd_urgent_bkops()
5106 static inline int ufshcd_get_ee_status(struct ufs_hba *hba, u32 *status) in ufshcd_get_ee_status()
5112 static void ufshcd_bkops_exception_event_handler(struct ufs_hba *hba) in ufshcd_bkops_exception_event_handler()
5158 struct ufs_hba *hba; in ufshcd_exception_event_handler()
5161 hba = container_of(work, struct ufs_hba, eeh_work); in ufshcd_exception_event_handler()
5184 static void ufshcd_complete_requests(struct ufs_hba *hba) in ufshcd_complete_requests()
5197 static bool ufshcd_quirk_dl_nac_errors(struct ufs_hba *hba) in ufshcd_quirk_dl_nac_errors()
5269 struct ufs_hba *hba; in ufshcd_err_handler()
5277 hba = container_of(work, struct ufs_hba, eh_work); in ufshcd_err_handler()
5399 static void ufshcd_update_uic_error(struct ufs_hba *hba) in ufshcd_update_uic_error()
5455 static bool ufshcd_is_auto_hibern8_error(struct ufs_hba *hba, in ufshcd_is_auto_hibern8_error()
5476 static void ufshcd_check_errors(struct ufs_hba *hba) in ufshcd_check_errors()
5548 static void ufshcd_tmc_handler(struct ufs_hba *hba) in ufshcd_tmc_handler()
5562 static void ufshcd_sl_intr(struct ufs_hba *hba, u32 intr_status) in ufshcd_sl_intr()
5594 struct ufs_hba *hba = __hba; in ufshcd_intr()
5623 static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag) in ufshcd_clear_tm_cmd()
5644 static int __ufshcd_issue_tm_cmd(struct ufs_hba *hba, in __ufshcd_issue_tm_cmd()
5722 static int ufshcd_issue_tm_cmd(struct ufs_hba *hba, int lun_id, int task_id, in ufshcd_issue_tm_cmd()
5775 static int ufshcd_issue_devman_upiu_cmd(struct ufs_hba *hba, in ufshcd_issue_devman_upiu_cmd()
5886 int ufshcd_exec_raw_upiu_cmd(struct ufs_hba *hba, in ufshcd_exec_raw_upiu_cmd()
5952 struct ufs_hba *hba; in ufshcd_eh_device_reset_handler()
5996 static void ufshcd_set_req_abort_skip(struct ufs_hba *hba, unsigned long bitmap) in ufshcd_set_req_abort_skip()
6022 struct ufs_hba *hba; in ufshcd_abort()
6191 static int ufshcd_host_reset_and_restore(struct ufs_hba *hba) in ufshcd_host_reset_and_restore()
6229 static int ufshcd_reset_and_restore(struct ufs_hba *hba) in ufshcd_reset_and_restore()
6264 struct ufs_hba *hba; in ufshcd_eh_host_reset_handler()
6361 static u32 ufshcd_find_max_sup_active_icc_level(struct ufs_hba *hba, in ufshcd_find_max_sup_active_icc_level()
6395 static void ufshcd_init_icc_levels(struct ufs_hba *hba) in ufshcd_init_icc_levels()
6458 static int ufshcd_scsi_add_wlus(struct ufs_hba *hba) in ufshcd_scsi_add_wlus()
6495 static int ufs_get_device_desc(struct ufs_hba *hba, in ufs_get_device_desc()
6554 static void ufs_fixup_device_setup(struct ufs_hba *hba, in ufs_fixup_device_setup()
6580 static int ufshcd_tune_pa_tactivate(struct ufs_hba *hba) in ufshcd_tune_pa_tactivate()
6615 static int ufshcd_tune_pa_hibern8time(struct ufs_hba *hba) in ufshcd_tune_pa_hibern8time()
6657 static int ufshcd_quirk_tune_host_pa_tactivate(struct ufs_hba *hba) in ufshcd_quirk_tune_host_pa_tactivate()
6716 static void ufshcd_tune_unipro_params(struct ufs_hba *hba) in ufshcd_tune_unipro_params()
6733 static void ufshcd_clear_dbg_ufs_stats(struct ufs_hba *hba) in ufshcd_clear_dbg_ufs_stats()
6740 static void ufshcd_init_desc_sizes(struct ufs_hba *hba) in ufshcd_init_desc_sizes()
6779 static void ufshcd_def_desc_sizes(struct ufs_hba *hba) in ufshcd_def_desc_sizes()
6810 void ufshcd_parse_dev_ref_clk_freq(struct ufs_hba *hba, struct clk *refclk) in ufshcd_parse_dev_ref_clk_freq()
6824 static int ufshcd_set_dev_ref_clk(struct ufs_hba *hba) in ufshcd_set_dev_ref_clk()
6864 static int ufshcd_probe_hba(struct ufs_hba *hba) in ufshcd_probe_hba()
7004 struct ufs_hba *hba = (struct ufs_hba *)data; in ufshcd_async_scan()
7013 struct ufs_hba *hba; in ufshcd_eh_timed_out()
7100 static inline int ufshcd_config_vreg_lpm(struct ufs_hba *hba, in ufshcd_config_vreg_lpm()
7106 static inline int ufshcd_config_vreg_hpm(struct ufs_hba *hba, in ufshcd_config_vreg_hpm()
7190 static int ufshcd_setup_vreg(struct ufs_hba *hba, bool on) in ufshcd_setup_vreg()
7217 static int ufshcd_setup_hba_vreg(struct ufs_hba *hba, bool on) in ufshcd_setup_hba_vreg()
7241 static int ufshcd_init_vreg(struct ufs_hba *hba) in ufshcd_init_vreg()
7260 static int ufshcd_init_hba_vreg(struct ufs_hba *hba) in ufshcd_init_hba_vreg()
7270 static int __ufshcd_setup_clocks(struct ufs_hba *hba, bool on, in __ufshcd_setup_clocks()
7348 static int ufshcd_setup_clocks(struct ufs_hba *hba, bool on) in ufshcd_setup_clocks()
7353 static int ufshcd_init_clocks(struct ufs_hba *hba) in ufshcd_init_clocks()
7400 static int ufshcd_variant_hba_init(struct ufs_hba *hba) in ufshcd_variant_hba_init()
7426 static void ufshcd_variant_hba_exit(struct ufs_hba *hba) in ufshcd_variant_hba_exit()
7436 static int ufshcd_hba_init(struct ufs_hba *hba) in ufshcd_hba_init()
7488 static void ufshcd_hba_exit(struct ufs_hba *hba) in ufshcd_hba_exit()
7504 ufshcd_send_request_sense(struct ufs_hba *hba, struct scsi_device *sdp) in ufshcd_send_request_sense()
7541 static int ufshcd_set_dev_pwr_mode(struct ufs_hba *hba, in ufshcd_set_dev_pwr_mode()
7606 static int ufshcd_link_state_transition(struct ufs_hba *hba, in ufshcd_link_state_transition()
7655 static void ufshcd_vreg_set_lpm(struct ufs_hba *hba) in ufshcd_vreg_set_lpm()
7691 static int ufshcd_vreg_set_hpm(struct ufs_hba *hba) in ufshcd_vreg_set_hpm()
7719 static void ufshcd_hba_vreg_set_lpm(struct ufs_hba *hba) in ufshcd_hba_vreg_set_lpm()
7725 static void ufshcd_hba_vreg_set_hpm(struct ufs_hba *hba) in ufshcd_hba_vreg_set_hpm()
7747 static int ufshcd_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op) in ufshcd_suspend()
7885 static int ufshcd_resume(struct ufs_hba *hba, enum ufs_pm_op pm_op) in ufshcd_resume()
7987 int ufshcd_system_suspend(struct ufs_hba *hba) in ufshcd_system_suspend()
8033 int ufshcd_system_resume(struct ufs_hba *hba) in ufshcd_system_resume()
8067 int ufshcd_runtime_suspend(struct ufs_hba *hba) in ufshcd_runtime_suspend()
8108 int ufshcd_runtime_resume(struct ufs_hba *hba) in ufshcd_runtime_resume()
8128 int ufshcd_runtime_idle(struct ufs_hba *hba) in ufshcd_runtime_idle()
8142 int ufshcd_shutdown(struct ufs_hba *hba) in ufshcd_shutdown()
8172 void ufshcd_remove(struct ufs_hba *hba) in ufshcd_remove()
8193 void ufshcd_dealloc_host(struct ufs_hba *hba) in ufshcd_dealloc_host()
8206 static int ufshcd_set_dma_mask(struct ufs_hba *hba) in ufshcd_set_dma_mask()
8221 int ufshcd_alloc_host(struct device *dev, struct ufs_hba **hba_handle) in ufshcd_alloc_host()
8224 struct ufs_hba *hba; in ufshcd_alloc_host()
8235 sizeof(struct ufs_hba)); in ufshcd_alloc_host()
8261 int ufshcd_init(struct ufs_hba *hba, void __iomem *mmio_base, unsigned int irq) in ufshcd_init()