Lines Matching defs:hba

113 static bool is_mcq_supported(struct ufs_hba *hba)  in is_mcq_supported()
155 int ufshcd_dump_regs(struct ufs_hba *hba, size_t offset, size_t len, in ufshcd_dump_regs()
261 static bool ufshcd_is_ufs_dev_busy(struct ufs_hba *hba) in ufshcd_is_ufs_dev_busy()
321 void ufshcd_enable_irq(struct ufs_hba *hba) in ufshcd_enable_irq()
330 void ufshcd_disable_irq(struct ufs_hba *hba) in ufshcd_disable_irq()
339 static void ufshcd_configure_wb(struct ufs_hba *hba) in ufshcd_configure_wb()
352 static void ufshcd_scsi_unblock_requests(struct ufs_hba *hba) in ufshcd_scsi_unblock_requests()
358 static void ufshcd_scsi_block_requests(struct ufs_hba *hba) in ufshcd_scsi_block_requests()
364 static void ufshcd_add_cmd_upiu_trace(struct ufs_hba *hba, unsigned int tag, in ufshcd_add_cmd_upiu_trace()
382 static void ufshcd_add_query_upiu_trace(struct ufs_hba *hba, in ufshcd_add_query_upiu_trace()
393 static void ufshcd_add_tm_upiu_trace(struct ufs_hba *hba, unsigned int tag, in ufshcd_add_tm_upiu_trace()
413 static void ufshcd_add_uic_command_trace(struct ufs_hba *hba, in ufshcd_add_uic_command_trace()
433 static void ufshcd_add_command_trace(struct ufs_hba *hba, unsigned int tag, in ufshcd_add_command_trace()
486 static void ufshcd_print_clk_freqs(struct ufs_hba *hba) in ufshcd_print_clk_freqs()
502 static void ufshcd_print_evt(struct ufs_hba *hba, u32 id, in ufshcd_print_evt()
530 static void ufshcd_print_evt_hist(struct ufs_hba *hba) in ufshcd_print_evt_hist()
558 void ufshcd_print_tr(struct ufs_hba *hba, int tag, bool pr_prdt) in ufshcd_print_tr()
603 struct ufs_hba *hba = shost_priv(shost); in ufshcd_print_tr_iter() local
615 static void ufshcd_print_trs_all(struct ufs_hba *hba, bool pr_prdt) in ufshcd_print_trs_all()
620 static void ufshcd_print_tmrs(struct ufs_hba *hba, unsigned long bitmap) in ufshcd_print_tmrs()
632 static void ufshcd_print_host_state(struct ufs_hba *hba) in ufshcd_print_host_state()
673 static void ufshcd_print_pwr_info(struct ufs_hba *hba) in ufshcd_print_pwr_info()
699 static void ufshcd_device_reset(struct ufs_hba *hba) in ufshcd_device_reset()
741 static int ufshcd_wait_for_register(struct ufs_hba *hba, u32 reg, u32 mask, in ufshcd_wait_for_register()
769 static inline u32 ufshcd_get_intr_mask(struct ufs_hba *hba) in ufshcd_get_intr_mask()
783 static inline u32 ufshcd_get_ufs_version(struct ufs_hba *hba) in ufshcd_get_ufs_version()
810 static inline bool ufshcd_is_device_present(struct ufs_hba *hba) in ufshcd_is_device_present()
838 static inline void ufshcd_utrl_clear(struct ufs_hba *hba, u32 mask) in ufshcd_utrl_clear()
863 static inline void ufshcd_utmrl_clear(struct ufs_hba *hba, u32 pos) in ufshcd_utmrl_clear()
890 static inline int ufshcd_get_uic_cmd_result(struct ufs_hba *hba) in ufshcd_get_uic_cmd_result()
904 static inline u32 ufshcd_get_dme_attr_val(struct ufs_hba *hba) in ufshcd_get_dme_attr_val()
940 ufshcd_reset_intr_aggr(struct ufs_hba *hba) in ufshcd_reset_intr_aggr()
954 ufshcd_config_intr_aggr(struct ufs_hba *hba, u8 cnt, u8 tmout) in ufshcd_config_intr_aggr()
966 static inline void ufshcd_disable_intr_aggr(struct ufs_hba *hba) in ufshcd_disable_intr_aggr()
977 static void ufshcd_enable_run_stop_reg(struct ufs_hba *hba) in ufshcd_enable_run_stop_reg()
989 static inline void ufshcd_hba_start(struct ufs_hba *hba) in ufshcd_hba_start()
1005 bool ufshcd_is_hba_active(struct ufs_hba *hba) in ufshcd_is_hba_active()
1015 void ufshcd_pm_qos_init(struct ufs_hba *hba) in ufshcd_pm_qos_init()
1031 void ufshcd_pm_qos_exit(struct ufs_hba *hba) in ufshcd_pm_qos_exit()
1045 static void ufshcd_pm_qos_update(struct ufs_hba *hba, bool on) in ufshcd_pm_qos_update()
1060 static int ufshcd_set_clk_freq(struct ufs_hba *hba, bool scale_up) in ufshcd_set_clk_freq()
1119 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_opp_config_clks() local
1151 static int ufshcd_opp_set_rate(struct ufs_hba *hba, unsigned long freq) in ufshcd_opp_set_rate()
1175 static int ufshcd_scale_clks(struct ufs_hba *hba, unsigned long freq, in ufshcd_scale_clks()
1219 static bool ufshcd_is_devfreq_scaling_required(struct ufs_hba *hba, in ufshcd_is_devfreq_scaling_required()
1255 static u32 ufshcd_pending_cmds(struct ufs_hba *hba) in ufshcd_pending_cmds()
1273 static int ufshcd_wait_for_doorbell_clr(struct ufs_hba *hba, in ufshcd_wait_for_doorbell_clr()
1340 static int ufshcd_scale_gear(struct ufs_hba *hba, bool scale_up) in ufshcd_scale_gear()
1382 static int ufshcd_clock_scaling_prepare(struct ufs_hba *hba, u64 timeout_us) in ufshcd_clock_scaling_prepare()
1409 static void ufshcd_clock_scaling_unprepare(struct ufs_hba *hba, int err, bool scale_up) in ufshcd_clock_scaling_unprepare()
1432 static int ufshcd_devfreq_scale(struct ufs_hba *hba, unsigned long freq, in ufshcd_devfreq_scale()
1472 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_clk_scaling_suspend_work() local
1490 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_clk_scaling_resume_work() local
1509 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_devfreq_target() local
1594 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_devfreq_get_dev_status() local
1644 static int ufshcd_devfreq_init(struct ufs_hba *hba) in ufshcd_devfreq_init()
1683 static void ufshcd_devfreq_remove(struct ufs_hba *hba) in ufshcd_devfreq_remove()
1702 static void ufshcd_suspend_clkscaling(struct ufs_hba *hba) in ufshcd_suspend_clkscaling()
1722 static void ufshcd_resume_clkscaling(struct ufs_hba *hba) in ufshcd_resume_clkscaling()
1741 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkscale_enable_show() local
1749 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkscale_enable_store() local
1788 static void ufshcd_init_clk_scaling_sysfs(struct ufs_hba *hba) in ufshcd_init_clk_scaling_sysfs()
1799 static void ufshcd_remove_clk_scaling_sysfs(struct ufs_hba *hba) in ufshcd_remove_clk_scaling_sysfs()
1805 static void ufshcd_init_clk_scaling(struct ufs_hba *hba) in ufshcd_init_clk_scaling()
1824 static void ufshcd_exit_clk_scaling(struct ufs_hba *hba) in ufshcd_exit_clk_scaling()
1839 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_ungate_work() local
1877 void ufshcd_hold(struct ufs_hba *hba) in ufshcd_hold()
1950 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_gate_work() local
2017 static void __ufshcd_release(struct ufs_hba *hba) in __ufshcd_release()
2038 void ufshcd_release(struct ufs_hba *hba) in ufshcd_release()
2051 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkgate_delay_show() local
2058 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkgate_delay_set() local
2082 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkgate_enable_show() local
2090 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkgate_enable_store() local
2114 static void ufshcd_init_clk_gating_sysfs(struct ufs_hba *hba) in ufshcd_init_clk_gating_sysfs()
2133 static void ufshcd_remove_clk_gating_sysfs(struct ufs_hba *hba) in ufshcd_remove_clk_gating_sysfs()
2141 static void ufshcd_init_clk_gating(struct ufs_hba *hba) in ufshcd_init_clk_gating()
2162 static void ufshcd_exit_clk_gating(struct ufs_hba *hba) in ufshcd_exit_clk_gating()
2177 static void ufshcd_clk_scaling_start_busy(struct ufs_hba *hba) in ufshcd_clk_scaling_start_busy()
2212 static void ufshcd_clk_scaling_update_busy(struct ufs_hba *hba) in ufshcd_clk_scaling_update_busy()
2241 static inline bool ufshcd_should_inform_monitor(struct ufs_hba *hba, in ufshcd_should_inform_monitor()
2251 static void ufshcd_start_monitor(struct ufs_hba *hba, in ufshcd_start_monitor()
2263 static void ufshcd_update_monitor(struct ufs_hba *hba, const struct ufshcd_lrb *lrbp) in ufshcd_update_monitor()
2302 void ufshcd_send_command(struct ufs_hba *hba, unsigned int task_tag, in ufshcd_send_command()
2371 int ufshcd_copy_query_response(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_copy_query_response()
2409 static inline int ufshcd_hba_capabilities(struct ufs_hba *hba) in ufshcd_hba_capabilities()
2464 static inline bool ufshcd_ready_for_uic_cmd(struct ufs_hba *hba) in ufshcd_ready_for_uic_cmd()
2481 static inline u8 ufshcd_get_upmcrs(struct ufs_hba *hba) in ufshcd_get_upmcrs()
2492 ufshcd_dispatch_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_dispatch_uic_cmd()
2520 ufshcd_wait_for_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_wait_for_uic_cmd()
2559 __ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd, in __ufshcd_send_uic_cmd()
2586 int ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_send_uic_cmd()
2614 static void ufshcd_sgl_to_prdt(struct ufs_hba *hba, struct ufshcd_lrb *lrbp, int sg_entries, in ufshcd_sgl_to_prdt()
2660 static int ufshcd_map_sg(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_map_sg()
2678 static void ufshcd_enable_intr(struct ufs_hba *hba, u32 intrs) in ufshcd_enable_intr()
2691 static void ufshcd_disable_intr(struct ufs_hba *hba, u32 intrs) in ufshcd_disable_intr()
2709 ufshcd_prepare_req_desc_hdr(struct ufs_hba *hba, struct ufshcd_lrb *lrbp, in ufshcd_prepare_req_desc_hdr()
2790 static void ufshcd_prepare_utp_query_req_upiu(struct ufs_hba *hba, in ufshcd_prepare_utp_query_req_upiu()
2845 static int ufshcd_compose_devman_upiu(struct ufs_hba *hba, in ufshcd_compose_devman_upiu()
2869 static void ufshcd_comp_scsi_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_comp_scsi_upiu()
2904 struct ufs_hba *hba = shost_priv(shost); in ufshcd_map_queues() local
2929 static void ufshcd_init_lrb(struct ufs_hba *hba, struct ufshcd_lrb *lrb, int i) in ufshcd_init_lrb()
2959 struct ufs_hba *hba = shost_priv(host); in ufshcd_queuecommand() local
3047 static void ufshcd_setup_dev_cmd(struct ufs_hba *hba, struct ufshcd_lrb *lrbp, in ufshcd_setup_dev_cmd()
3058 static int ufshcd_compose_dev_cmd(struct ufs_hba *hba, in ufshcd_compose_dev_cmd()
3083 static int ufshcd_clear_cmd(struct ufs_hba *hba, u32 task_tag) in ufshcd_clear_cmd()
3126 ufshcd_dev_cmd_completion(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_dev_cmd_completion()
3171 static int ufshcd_wait_for_dev_cmd(struct ufs_hba *hba, in ufshcd_wait_for_dev_cmd()
3259 static void ufshcd_dev_man_lock(struct ufs_hba *hba) in ufshcd_dev_man_lock()
3266 static void ufshcd_dev_man_unlock(struct ufs_hba *hba) in ufshcd_dev_man_unlock()
3273 static int ufshcd_issue_dev_cmd(struct ufs_hba *hba, struct ufshcd_lrb *lrbp, in ufshcd_issue_dev_cmd()
3303 static int ufshcd_exec_dev_cmd(struct ufs_hba *hba, in ufshcd_exec_dev_cmd()
3330 static inline void ufshcd_init_query(struct ufs_hba *hba, in ufshcd_init_query()
3344 static int ufshcd_query_flag_retry(struct ufs_hba *hba, in ufshcd_query_flag_retry()
3377 int ufshcd_query_flag(struct ufs_hba *hba, enum query_opcode opcode, in ufshcd_query_flag()
3445 int ufshcd_query_attr(struct ufs_hba *hba, enum query_opcode opcode, in ufshcd_query_attr()
3508 int ufshcd_query_attr_retry(struct ufs_hba *hba, in ufshcd_query_attr_retry()
3532 static int __ufshcd_query_descriptor(struct ufs_hba *hba, in __ufshcd_query_descriptor()
3607 int ufshcd_query_descriptor_retry(struct ufs_hba *hba, in ufshcd_query_descriptor_retry()
3637 int ufshcd_read_desc_param(struct ufs_hba *hba, in ufshcd_read_desc_param()
3738 int ufshcd_read_string_desc(struct ufs_hba *hba, u8 desc_index, in ufshcd_read_string_desc()
3817 static inline int ufshcd_read_unit_desc_param(struct ufs_hba *hba, in ufshcd_read_unit_desc_param()
3834 static int ufshcd_get_ref_clk_gating_wait(struct ufs_hba *hba) in ufshcd_get_ref_clk_gating_wait()
3872 static int ufshcd_memory_alloc(struct ufs_hba *hba) in ufshcd_memory_alloc()
3960 static void ufshcd_host_memory_configure(struct ufs_hba *hba) in ufshcd_host_memory_configure()
4019 static int ufshcd_dme_link_startup(struct ufs_hba *hba) in ufshcd_dme_link_startup()
4041 static int ufshcd_dme_reset(struct ufs_hba *hba) in ufshcd_dme_reset()
4056 int ufshcd_dme_configure_adapt(struct ufs_hba *hba, in ufshcd_dme_configure_adapt()
4080 static int ufshcd_dme_enable(struct ufs_hba *hba) in ufshcd_dme_enable()
4095 static inline void ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba) in ufshcd_add_delay_before_dme_cmd()
4141 int ufshcd_dme_set_attr(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_set_attr()
4184 int ufshcd_dme_get_attr(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_get_attr()
4264 static int ufshcd_uic_pwr_ctrl(struct ufs_hba *hba, struct uic_command *cmd) in ufshcd_uic_pwr_ctrl()
4354 int ufshcd_uic_change_pwr_mode(struct ufs_hba *hba, u8 mode) in ufshcd_uic_change_pwr_mode()
4382 int ufshcd_link_recovery(struct ufs_hba *hba) in ufshcd_link_recovery()
4411 int ufshcd_uic_hibern8_enter(struct ufs_hba *hba) in ufshcd_uic_hibern8_enter()
4436 int ufshcd_uic_hibern8_exit(struct ufs_hba *hba) in ufshcd_uic_hibern8_exit()
4464 static void ufshcd_configure_auto_hibern8(struct ufs_hba *hba) in ufshcd_configure_auto_hibern8()
4472 void ufshcd_auto_hibern8_update(struct ufs_hba *hba, u32 ahit) in ufshcd_auto_hibern8_update()
4495 static void ufshcd_init_pwr_info(struct ufs_hba *hba) in ufshcd_init_pwr_info()
4512 static int ufshcd_get_max_pwr_mode(struct ufs_hba *hba) in ufshcd_get_max_pwr_mode()
4576 static int ufshcd_change_power_mode(struct ufs_hba *hba, in ufshcd_change_power_mode()
4671 int ufshcd_config_pwr_mode(struct ufs_hba *hba, in ufshcd_config_pwr_mode()
4697 static int ufshcd_complete_dev_init(struct ufs_hba *hba) in ufshcd_complete_dev_init()
4748 int ufshcd_make_hba_operational(struct ufs_hba *hba) in ufshcd_make_hba_operational()
4792 void ufshcd_hba_stop(struct ufs_hba *hba) in ufshcd_hba_stop()
4823 static int ufshcd_hba_execute_hce(struct ufs_hba *hba) in ufshcd_hba_execute_hce()
4878 int ufshcd_hba_enable(struct ufs_hba *hba) in ufshcd_hba_enable()
4909 static int ufshcd_disable_tx_lcc(struct ufs_hba *hba, bool peer) in ufshcd_disable_tx_lcc()
4940 static inline int ufshcd_disable_device_tx_lcc(struct ufs_hba *hba) in ufshcd_disable_device_tx_lcc()
4945 void ufshcd_update_evt_hist(struct ufs_hba *hba, u32 id, u32 val) in ufshcd_update_evt_hist()
4968 static int ufshcd_link_startup(struct ufs_hba *hba) in ufshcd_link_startup()
5064 static int ufshcd_verify_dev_init(struct ufs_hba *hba) in ufshcd_verify_dev_init()
5093 static void ufshcd_setup_links(struct ufs_hba *hba, struct scsi_device *sdev) in ufshcd_setup_links()
5130 static void ufshcd_lu_init(struct ufs_hba *hba, struct scsi_device *sdev) in ufshcd_lu_init()
5191 struct ufs_hba *hba; in ufshcd_slave_alloc() local
5241 struct ufs_hba *hba = shost_priv(sdev->host); in ufshcd_device_configure() local
5272 struct ufs_hba *hba; in ufshcd_slave_destroy() local
5347 ufshcd_transfer_rsp_status(struct ufs_hba *hba, struct ufshcd_lrb *lrbp, in ufshcd_transfer_rsp_status()
5451 static bool ufshcd_is_auto_hibern8_error(struct ufs_hba *hba, in ufshcd_is_auto_hibern8_error()
5478 static irqreturn_t ufshcd_uic_cmd_compl(struct ufs_hba *hba, u32 intr_status) in ufshcd_uic_cmd_compl()
5511 void ufshcd_release_scsi_cmd(struct ufs_hba *hba, in ufshcd_release_scsi_cmd()
5528 void ufshcd_compl_one_cqe(struct ufs_hba *hba, int task_tag, in ufshcd_compl_one_cqe()
5560 static void __ufshcd_transfer_req_compl(struct ufs_hba *hba, in __ufshcd_transfer_req_compl()
5574 static void ufshcd_clear_polled(struct ufs_hba *hba, in ufshcd_clear_polled()
5595 struct ufs_hba *hba = shost_priv(shost); in ufshcd_poll() local
5636 static void ufshcd_mcq_compl_pending_transfer(struct ufs_hba *hba, in ufshcd_mcq_compl_pending_transfer()
5681 static irqreturn_t ufshcd_transfer_req_compl(struct ufs_hba *hba) in ufshcd_transfer_req_compl()
5706 int __ufshcd_write_ee_control(struct ufs_hba *hba, u32 ee_ctrl_mask) in __ufshcd_write_ee_control()
5713 int ufshcd_write_ee_control(struct ufs_hba *hba) in ufshcd_write_ee_control()
5726 int ufshcd_update_ee_control(struct ufs_hba *hba, u16 *mask, in ufshcd_update_ee_control()
5756 static inline int ufshcd_disable_ee(struct ufs_hba *hba, u16 mask) in ufshcd_disable_ee()
5771 static inline int ufshcd_enable_ee(struct ufs_hba *hba, u16 mask) in ufshcd_enable_ee()
5787 static int ufshcd_enable_auto_bkops(struct ufs_hba *hba) in ufshcd_enable_auto_bkops()
5826 static int ufshcd_disable_auto_bkops(struct ufs_hba *hba) in ufshcd_disable_auto_bkops()
5869 static void ufshcd_force_reset_auto_bkops(struct ufs_hba *hba) in ufshcd_force_reset_auto_bkops()
5884 static inline int ufshcd_get_bkops_status(struct ufs_hba *hba, u32 *status) in ufshcd_get_bkops_status()
5905 static int ufshcd_bkops_ctrl(struct ufs_hba *hba) in ufshcd_bkops_ctrl()
5931 static inline int ufshcd_get_ee_status(struct ufs_hba *hba, u32 *status) in ufshcd_get_ee_status()
5937 static void ufshcd_bkops_exception_event_handler(struct ufs_hba *hba) in ufshcd_bkops_exception_event_handler()
5974 static void ufshcd_temp_exception_event_handler(struct ufs_hba *hba, u16 status) in ufshcd_temp_exception_event_handler()
5992 static int __ufshcd_wb_toggle(struct ufs_hba *hba, bool set, enum flag_idn idn) in __ufshcd_wb_toggle()
6002 int ufshcd_wb_toggle(struct ufs_hba *hba, bool enable) in ufshcd_wb_toggle()
6024 static void ufshcd_wb_toggle_buf_flush_during_h8(struct ufs_hba *hba, in ufshcd_wb_toggle_buf_flush_during_h8()
6040 int ufshcd_wb_toggle_buf_flush(struct ufs_hba *hba, bool enable) in ufshcd_wb_toggle_buf_flush()
6062 static bool ufshcd_wb_presrv_usrspc_keep_vcc_on(struct ufs_hba *hba, in ufshcd_wb_presrv_usrspc_keep_vcc_on()
6088 static void ufshcd_wb_force_disable(struct ufs_hba *hba) in ufshcd_wb_force_disable()
6100 static bool ufshcd_is_wb_buf_lifetime_available(struct ufs_hba *hba) in ufshcd_is_wb_buf_lifetime_available()
6129 static bool ufshcd_wb_need_flush(struct ufs_hba *hba) in ufshcd_wb_need_flush()
6172 struct ufs_hba *hba = container_of(to_delayed_work(work), in ufshcd_rpm_dev_flush_recheck_work() local
6194 struct ufs_hba *hba; in ufshcd_exception_event_handler() local
6221 static void ufshcd_complete_requests(struct ufs_hba *hba, bool force_compl) in ufshcd_complete_requests()
6238 static bool ufshcd_quirk_dl_nac_errors(struct ufs_hba *hba) in ufshcd_quirk_dl_nac_errors()
6303 static inline bool ufshcd_is_saved_err_fatal(struct ufs_hba *hba) in ufshcd_is_saved_err_fatal()
6309 void ufshcd_schedule_eh_work(struct ufs_hba *hba) in ufshcd_schedule_eh_work()
6324 static void ufshcd_force_error_recovery(struct ufs_hba *hba) in ufshcd_force_error_recovery()
6332 static void ufshcd_clk_scaling_allow(struct ufs_hba *hba, bool allow) in ufshcd_clk_scaling_allow()
6341 static void ufshcd_clk_scaling_suspend(struct ufs_hba *hba, bool suspend) in ufshcd_clk_scaling_suspend()
6354 static void ufshcd_err_handling_prepare(struct ufs_hba *hba) in ufshcd_err_handling_prepare()
6389 static void ufshcd_err_handling_unprepare(struct ufs_hba *hba) in ufshcd_err_handling_unprepare()
6398 static inline bool ufshcd_err_handling_should_stop(struct ufs_hba *hba) in ufshcd_err_handling_should_stop()
6408 static void ufshcd_recover_pm_error(struct ufs_hba *hba) in ufshcd_recover_pm_error()
6441 static inline void ufshcd_recover_pm_error(struct ufs_hba *hba) in ufshcd_recover_pm_error()
6446 static bool ufshcd_is_pwr_mode_restore_needed(struct ufs_hba *hba) in ufshcd_is_pwr_mode_restore_needed()
6469 struct ufs_hba *hba = shost_priv(shost); in ufshcd_abort_one() local
6485 static bool ufshcd_abort_all(struct ufs_hba *hba) in ufshcd_abort_all()
6514 struct ufs_hba *hba; in ufshcd_err_handler() local
6696 static irqreturn_t ufshcd_update_uic_error(struct ufs_hba *hba) in ufshcd_update_uic_error()
6789 static irqreturn_t ufshcd_check_errors(struct ufs_hba *hba, u32 intr_status) in ufshcd_check_errors()
6865 static irqreturn_t ufshcd_tmc_handler(struct ufs_hba *hba) in ufshcd_tmc_handler()
6892 static irqreturn_t ufshcd_handle_mcq_cq_events(struct ufs_hba *hba) in ufshcd_handle_mcq_cq_events()
6929 static irqreturn_t ufshcd_sl_intr(struct ufs_hba *hba, u32 intr_status) in ufshcd_sl_intr()
6964 struct ufs_hba *hba = __hba; in ufshcd_intr() local
7001 static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag) in ufshcd_clear_tm_cmd()
7026 static int __ufshcd_issue_tm_cmd(struct ufs_hba *hba, in __ufshcd_issue_tm_cmd()
7102 static int ufshcd_issue_tm_cmd(struct ufs_hba *hba, int lun_id, int task_id, in ufshcd_issue_tm_cmd()
7158 static int ufshcd_issue_devman_upiu_cmd(struct ufs_hba *hba, in ufshcd_issue_devman_upiu_cmd()
7241 int ufshcd_exec_raw_upiu_cmd(struct ufs_hba *hba, in ufshcd_exec_raw_upiu_cmd()
7308 int ufshcd_advanced_rpmb_req_handler(struct ufs_hba *hba, struct utp_upiu_req *req_upiu, in ufshcd_advanced_rpmb_req_handler()
7382 struct ufs_hba *hba; in ufshcd_eh_device_reset_handler() local
7449 static void ufshcd_set_req_abort_skip(struct ufs_hba *hba, unsigned long bitmap) in ufshcd_set_req_abort_skip()
7473 int ufshcd_try_to_abort_task(struct ufs_hba *hba, int tag) in ufshcd_try_to_abort_task()
7564 struct ufs_hba *hba = shost_priv(host); in ufshcd_abort() local
7684 static int ufshcd_host_reset_and_restore(struct ufs_hba *hba) in ufshcd_host_reset_and_restore()
7721 static int ufshcd_reset_and_restore(struct ufs_hba *hba) in ufshcd_reset_and_restore()
7783 struct ufs_hba *hba; in ufshcd_eh_host_reset_handler() local
7870 static u32 ufshcd_find_max_sup_active_icc_level(struct ufs_hba *hba, in ufshcd_find_max_sup_active_icc_level()
7910 static void ufshcd_set_active_icc_lvl(struct ufs_hba *hba) in ufshcd_set_active_icc_lvl()
7982 static int ufshcd_scsi_add_wlus(struct ufs_hba *hba) in ufshcd_scsi_add_wlus()
8021 static void ufshcd_wb_probe(struct ufs_hba *hba, const u8 *desc_buf) in ufshcd_wb_probe()
8088 static void ufshcd_temp_notif_probe(struct ufs_hba *hba, const u8 *desc_buf) in ufshcd_temp_notif_probe()
8111 static void ufshcd_ext_iid_probe(struct ufs_hba *hba, u8 *desc_buf) in ufshcd_ext_iid_probe()
8136 static void ufshcd_set_rtt(struct ufs_hba *hba) in ufshcd_set_rtt()
8168 void ufshcd_fixup_dev_quirks(struct ufs_hba *hba, in ufshcd_fixup_dev_quirks()
8188 static void ufs_fixup_device_setup(struct ufs_hba *hba) in ufs_fixup_device_setup()
8197 static void ufshcd_update_rtc(struct ufs_hba *hba) in ufshcd_update_rtc()
8232 struct ufs_hba *hba; in ufshcd_rtc_work() local
8245 static void ufs_init_rtc(struct ufs_hba *hba, u8 *desc_buf) in ufs_init_rtc()
8273 static int ufs_get_device_desc(struct ufs_hba *hba) in ufs_get_device_desc()
8343 static void ufs_put_device_desc(struct ufs_hba *hba) in ufs_put_device_desc()
8362 static int ufshcd_quirk_tune_host_pa_tactivate(struct ufs_hba *hba) in ufshcd_quirk_tune_host_pa_tactivate()
8421 static void ufshcd_tune_unipro_params(struct ufs_hba *hba) in ufshcd_tune_unipro_params()
8433 static void ufshcd_clear_dbg_ufs_stats(struct ufs_hba *hba) in ufshcd_clear_dbg_ufs_stats()
8440 static int ufshcd_device_geo_params_init(struct ufs_hba *hba) in ufshcd_device_geo_params_init()
8494 void ufshcd_parse_dev_ref_clk_freq(struct ufs_hba *hba, struct clk *refclk) in ufshcd_parse_dev_ref_clk_freq()
8508 static int ufshcd_set_dev_ref_clk(struct ufs_hba *hba) in ufshcd_set_dev_ref_clk()
8542 static int ufshcd_device_params_init(struct ufs_hba *hba) in ufshcd_device_params_init()
8577 static void ufshcd_set_timestamp_attr(struct ufs_hba *hba) in ufshcd_set_timestamp_attr()
8615 static int ufshcd_add_lus(struct ufs_hba *hba) in ufshcd_add_lus()
8655 static void ufshcd_release_sdb_queue(struct ufs_hba *hba, int nutrs) in ufshcd_release_sdb_queue()
8670 static int ufshcd_alloc_mcq(struct ufs_hba *hba) in ufshcd_alloc_mcq()
8709 static void ufshcd_config_mcq(struct ufs_hba *hba) in ufshcd_config_mcq()
8730 static int ufshcd_device_init(struct ufs_hba *hba, bool init_dev_params) in ufshcd_device_init()
8835 static int ufshcd_probe_hba(struct ufs_hba *hba, bool init_dev_params) in ufshcd_probe_hba()
8904 struct ufs_hba *hba = (struct ufs_hba *)data; in ufshcd_async_scan() local
8926 struct ufs_hba *hba = shost_priv(scmd->device->host); in ufshcd_eh_timed_out() local
9013 static inline int ufshcd_config_vreg_lpm(struct ufs_hba *hba, in ufshcd_config_vreg_lpm()
9019 static inline int ufshcd_config_vreg_hpm(struct ufs_hba *hba, in ufshcd_config_vreg_hpm()
9078 static int ufshcd_setup_vreg(struct ufs_hba *hba, bool on) in ufshcd_setup_vreg()
9103 static int ufshcd_setup_hba_vreg(struct ufs_hba *hba, bool on) in ufshcd_setup_hba_vreg()
9128 static int ufshcd_init_vreg(struct ufs_hba *hba) in ufshcd_init_vreg()
9145 static int ufshcd_init_hba_vreg(struct ufs_hba *hba) in ufshcd_init_hba_vreg()
9152 static int ufshcd_setup_clocks(struct ufs_hba *hba, bool on) in ufshcd_setup_clocks()
9222 static enum ufs_ref_clk_freq ufshcd_parse_ref_clk_property(struct ufs_hba *hba) in ufshcd_parse_ref_clk_property()
9235 static int ufshcd_init_clocks(struct ufs_hba *hba) in ufshcd_init_clocks()
9293 static int ufshcd_variant_hba_init(struct ufs_hba *hba) in ufshcd_variant_hba_init()
9309 static void ufshcd_variant_hba_exit(struct ufs_hba *hba) in ufshcd_variant_hba_exit()
9317 static int ufshcd_hba_init(struct ufs_hba *hba) in ufshcd_hba_init()
9375 static void ufshcd_hba_exit(struct ufs_hba *hba) in ufshcd_hba_exit()
9428 static int ufshcd_set_dev_pwr_mode(struct ufs_hba *hba, in ufshcd_set_dev_pwr_mode()
9479 static int ufshcd_link_state_transition(struct ufs_hba *hba, in ufshcd_link_state_transition()
9537 static void ufshcd_vreg_set_lpm(struct ufs_hba *hba) in ufshcd_vreg_set_lpm()
9588 static int ufshcd_vreg_set_hpm(struct ufs_hba *hba) in ufshcd_vreg_set_hpm()
9617 static void ufshcd_hba_vreg_set_lpm(struct ufs_hba *hba) in ufshcd_hba_vreg_set_lpm()
9623 static void ufshcd_hba_vreg_set_hpm(struct ufs_hba *hba) in ufshcd_hba_vreg_set_hpm()
9629 static int __ufshcd_wl_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op) in __ufshcd_wl_suspend()
9812 static int __ufshcd_wl_resume(struct ufs_hba *hba, enum ufs_pm_op pm_op) in __ufshcd_wl_resume()
9906 struct ufs_hba *hba; in ufshcd_wl_runtime_suspend() local
9926 struct ufs_hba *hba; in ufshcd_wl_runtime_resume() local
9948 struct ufs_hba *hba; in ufshcd_wl_suspend() local
9978 struct ufs_hba *hba; in ufshcd_wl_resume() local
10011 static int ufshcd_suspend(struct ufs_hba *hba) in ufshcd_suspend()
10050 static int ufshcd_resume(struct ufs_hba *hba) in ufshcd_resume()
10093 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_system_suspend() local
10120 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_system_resume() local
10150 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_runtime_suspend() local
10177 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_runtime_resume() local
10194 struct ufs_hba *hba = shost_priv(sdev->host); in ufshcd_wl_shutdown() local
10227 void ufshcd_remove(struct ufs_hba *hba) in ufshcd_remove()
10258 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_system_restore() local
10297 void ufshcd_dealloc_host(struct ufs_hba *hba) in ufshcd_dealloc_host()
10310 static int ufshcd_set_dma_mask(struct ufs_hba *hba) in ufshcd_set_dma_mask()
10329 struct ufs_hba *hba; in ufshcd_alloc_host() local
10383 int ufshcd_init(struct ufs_hba *hba, void __iomem *mmio_base, unsigned int irq) in ufshcd_init()
10613 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_resume_complete() local
10622 static bool ufshcd_rpm_ok_for_spm(struct ufs_hba *hba) in ufshcd_rpm_ok_for_spm()
10644 struct ufs_hba *hba = dev_get_drvdata(dev); in __ufshcd_suspend_prepare() local
10684 struct ufs_hba *hba = shost_priv(sdev->host); in ufshcd_wl_poweroff() local