Lines Matching refs:ufs_hba

111 int ufshcd_dump_regs(struct ufs_hba *hba, size_t offset, size_t len,  in ufshcd_dump_regs()
249 static irqreturn_t ufshcd_tmc_handler(struct ufs_hba *hba);
251 static int ufshcd_reset_and_restore(struct ufs_hba *hba);
253 static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag);
254 static void ufshcd_hba_exit(struct ufs_hba *hba);
255 static int ufshcd_probe_hba(struct ufs_hba *hba, bool init_dev_params);
256 static int ufshcd_setup_clocks(struct ufs_hba *hba, bool on);
257 static inline void ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba);
258 static int ufshcd_host_reset_and_restore(struct ufs_hba *hba);
259 static void ufshcd_resume_clkscaling(struct ufs_hba *hba);
260 static void ufshcd_suspend_clkscaling(struct ufs_hba *hba);
261 static void __ufshcd_suspend_clkscaling(struct ufs_hba *hba);
262 static int ufshcd_scale_clks(struct ufs_hba *hba, bool scale_up);
264 static int ufshcd_change_power_mode(struct ufs_hba *hba,
266 static int ufshcd_setup_hba_vreg(struct ufs_hba *hba, bool on);
267 static int ufshcd_setup_vreg(struct ufs_hba *hba, bool on);
268 static inline int ufshcd_config_vreg_hpm(struct ufs_hba *hba,
270 static int ufshcd_try_to_abort_task(struct ufs_hba *hba, int tag);
271 static void ufshcd_wb_toggle_flush_during_h8(struct ufs_hba *hba, bool set);
272 static inline void ufshcd_wb_toggle_flush(struct ufs_hba *hba, bool enable);
273 static void ufshcd_hba_vreg_set_lpm(struct ufs_hba *hba);
274 static void ufshcd_hba_vreg_set_hpm(struct ufs_hba *hba);
276 static inline void ufshcd_enable_irq(struct ufs_hba *hba) in ufshcd_enable_irq()
284 static inline void ufshcd_disable_irq(struct ufs_hba *hba) in ufshcd_disable_irq()
292 static inline void ufshcd_wb_config(struct ufs_hba *hba) in ufshcd_wb_config()
304 static void ufshcd_scsi_unblock_requests(struct ufs_hba *hba) in ufshcd_scsi_unblock_requests()
310 static void ufshcd_scsi_block_requests(struct ufs_hba *hba) in ufshcd_scsi_block_requests()
316 static void ufshcd_add_cmd_upiu_trace(struct ufs_hba *hba, unsigned int tag, in ufshcd_add_cmd_upiu_trace()
334 static void ufshcd_add_query_upiu_trace(struct ufs_hba *hba, in ufshcd_add_query_upiu_trace()
345 static void ufshcd_add_tm_upiu_trace(struct ufs_hba *hba, unsigned int tag, in ufshcd_add_tm_upiu_trace()
365 static void ufshcd_add_uic_command_trace(struct ufs_hba *hba, in ufshcd_add_uic_command_trace()
385 static void ufshcd_add_command_trace(struct ufs_hba *hba, unsigned int tag, in ufshcd_add_command_trace()
429 static void ufshcd_print_clk_freqs(struct ufs_hba *hba) in ufshcd_print_clk_freqs()
445 static void ufshcd_print_evt(struct ufs_hba *hba, u32 id, in ufshcd_print_evt()
473 static void ufshcd_print_evt_hist(struct ufs_hba *hba) in ufshcd_print_evt_hist()
498 void ufshcd_print_trs(struct ufs_hba *hba, unsigned long bitmap, bool pr_prdt) in ufshcd_print_trs()
542 static void ufshcd_print_tmrs(struct ufs_hba *hba, unsigned long bitmap) in ufshcd_print_tmrs()
554 static void ufshcd_print_host_state(struct ufs_hba *hba) in ufshcd_print_host_state()
595 static void ufshcd_print_pwr_info(struct ufs_hba *hba) in ufshcd_print_pwr_info()
621 static void ufshcd_device_reset(struct ufs_hba *hba) in ufshcd_device_reset()
662 static int ufshcd_wait_for_register(struct ufs_hba *hba, u32 reg, u32 mask, in ufshcd_wait_for_register()
690 static inline u32 ufshcd_get_intr_mask(struct ufs_hba *hba) in ufshcd_get_intr_mask()
706 static inline u32 ufshcd_get_ufs_version(struct ufs_hba *hba) in ufshcd_get_ufs_version()
733 static inline bool ufshcd_is_device_present(struct ufs_hba *hba) in ufshcd_is_device_present()
755 static inline void ufshcd_utrl_clear(struct ufs_hba *hba, u32 mask) in ufshcd_utrl_clear()
780 static inline void ufshcd_utmrl_clear(struct ufs_hba *hba, u32 pos) in ufshcd_utmrl_clear()
806 static inline int ufshcd_get_uic_cmd_result(struct ufs_hba *hba) in ufshcd_get_uic_cmd_result()
819 static inline u32 ufshcd_get_dme_attr_val(struct ufs_hba *hba) in ufshcd_get_dme_attr_val()
881 ufshcd_reset_intr_aggr(struct ufs_hba *hba) in ufshcd_reset_intr_aggr()
895 ufshcd_config_intr_aggr(struct ufs_hba *hba, u8 cnt, u8 tmout) in ufshcd_config_intr_aggr()
907 static inline void ufshcd_disable_intr_aggr(struct ufs_hba *hba) in ufshcd_disable_intr_aggr()
918 static void ufshcd_enable_run_stop_reg(struct ufs_hba *hba) in ufshcd_enable_run_stop_reg()
930 static inline void ufshcd_hba_start(struct ufs_hba *hba) in ufshcd_hba_start()
946 static inline bool ufshcd_is_hba_active(struct ufs_hba *hba) in ufshcd_is_hba_active()
951 u32 ufshcd_get_local_unipro_ver(struct ufs_hba *hba) in ufshcd_get_local_unipro_ver()
961 static bool ufshcd_is_unipro_pa_params_tuning_req(struct ufs_hba *hba) in ufshcd_is_unipro_pa_params_tuning_req()
983 static int ufshcd_set_clk_freq(struct ufs_hba *hba, bool scale_up) in ufshcd_set_clk_freq()
1046 static int ufshcd_scale_clks(struct ufs_hba *hba, bool scale_up) in ufshcd_scale_clks()
1077 static bool ufshcd_is_devfreq_scaling_required(struct ufs_hba *hba, in ufshcd_is_devfreq_scaling_required()
1110 static u32 ufshcd_pending_cmds(struct ufs_hba *hba) in ufshcd_pending_cmds()
1122 static int ufshcd_wait_for_doorbell_clr(struct ufs_hba *hba, in ufshcd_wait_for_doorbell_clr()
1190 static int ufshcd_scale_gear(struct ufs_hba *hba, bool scale_up) in ufshcd_scale_gear()
1226 static int ufshcd_clock_scaling_prepare(struct ufs_hba *hba) in ufshcd_clock_scaling_prepare()
1252 static void ufshcd_clock_scaling_unprepare(struct ufs_hba *hba, bool writelock) in ufshcd_clock_scaling_unprepare()
1271 static int ufshcd_devfreq_scale(struct ufs_hba *hba, bool scale_up) in ufshcd_devfreq_scale()
1315 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_clk_scaling_suspend_work()
1332 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_clk_scaling_resume_work()
1351 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_devfreq_target()
1408 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_devfreq_get_dev_status()
1453 static int ufshcd_devfreq_init(struct ufs_hba *hba) in ufshcd_devfreq_init()
1488 static void ufshcd_devfreq_remove(struct ufs_hba *hba) in ufshcd_devfreq_remove()
1504 static void __ufshcd_suspend_clkscaling(struct ufs_hba *hba) in __ufshcd_suspend_clkscaling()
1514 static void ufshcd_suspend_clkscaling(struct ufs_hba *hba) in ufshcd_suspend_clkscaling()
1533 static void ufshcd_resume_clkscaling(struct ufs_hba *hba) in ufshcd_resume_clkscaling()
1552 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkscale_enable_show()
1560 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkscale_enable_store()
1599 static void ufshcd_init_clk_scaling_sysfs(struct ufs_hba *hba) in ufshcd_init_clk_scaling_sysfs()
1610 static void ufshcd_remove_clk_scaling_sysfs(struct ufs_hba *hba) in ufshcd_remove_clk_scaling_sysfs()
1616 static void ufshcd_init_clk_scaling(struct ufs_hba *hba) in ufshcd_init_clk_scaling()
1638 static void ufshcd_exit_clk_scaling(struct ufs_hba *hba) in ufshcd_exit_clk_scaling()
1653 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_ungate_work()
1694 int ufshcd_hold(struct ufs_hba *hba, bool async) in ufshcd_hold()
1782 struct ufs_hba *hba = container_of(work, struct ufs_hba, in ufshcd_gate_work()
1852 static void __ufshcd_release(struct ufs_hba *hba) in __ufshcd_release()
1873 void ufshcd_release(struct ufs_hba *hba) in ufshcd_release()
1886 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkgate_delay_show()
1893 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkgate_delay_set()
1917 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkgate_enable_show()
1925 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_clkgate_enable_store()
1949 static void ufshcd_init_clk_gating_sysfs(struct ufs_hba *hba) in ufshcd_init_clk_gating_sysfs()
1968 static void ufshcd_remove_clk_gating_sysfs(struct ufs_hba *hba) in ufshcd_remove_clk_gating_sysfs()
1976 static void ufshcd_init_clk_gating(struct ufs_hba *hba) in ufshcd_init_clk_gating()
2000 static void ufshcd_exit_clk_gating(struct ufs_hba *hba) in ufshcd_exit_clk_gating()
2016 static void ufshcd_clk_scaling_start_busy(struct ufs_hba *hba) in ufshcd_clk_scaling_start_busy()
2051 static void ufshcd_clk_scaling_update_busy(struct ufs_hba *hba) in ufshcd_clk_scaling_update_busy()
2080 static inline bool ufshcd_should_inform_monitor(struct ufs_hba *hba, in ufshcd_should_inform_monitor()
2090 static void ufshcd_start_monitor(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_start_monitor()
2101 static void ufshcd_update_monitor(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_update_monitor()
2139 void ufshcd_send_command(struct ufs_hba *hba, unsigned int task_tag) in ufshcd_send_command()
2187 int ufshcd_copy_query_response(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_copy_query_response()
2225 static inline int ufshcd_hba_capabilities(struct ufs_hba *hba) in ufshcd_hba_capabilities()
2253 static inline bool ufshcd_ready_for_uic_cmd(struct ufs_hba *hba) in ufshcd_ready_for_uic_cmd()
2265 static inline u8 ufshcd_get_upmcrs(struct ufs_hba *hba) in ufshcd_get_upmcrs()
2276 ufshcd_dispatch_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_dispatch_uic_cmd()
2304 ufshcd_wait_for_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_wait_for_uic_cmd()
2343 __ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd, in __ufshcd_send_uic_cmd()
2371 int ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_send_uic_cmd()
2402 static int ufshcd_map_sg(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_map_sg()
2455 static void ufshcd_enable_intr(struct ufs_hba *hba, u32 intrs) in ufshcd_enable_intr()
2475 static void ufshcd_disable_intr(struct ufs_hba *hba, u32 intrs) in ufshcd_disable_intr()
2581 static void ufshcd_prepare_utp_query_req_upiu(struct ufs_hba *hba, in ufshcd_prepare_utp_query_req_upiu()
2636 static int ufshcd_compose_devman_upiu(struct ufs_hba *hba, in ufshcd_compose_devman_upiu()
2664 static int ufshcd_comp_scsi_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_comp_scsi_upiu()
2732 static void ufshcd_init_lrb(struct ufs_hba *hba, struct ufshcd_lrb *lrb, int i) in ufshcd_init_lrb()
2762 struct ufs_hba *hba = shost_priv(host); in ufshcd_queuecommand()
2866 static int ufshcd_compose_dev_cmd(struct ufs_hba *hba, in ufshcd_compose_dev_cmd()
2884 static int ufshcd_clear_cmds(struct ufs_hba *hba, u32 mask) in ufshcd_clear_cmds()
2902 ufshcd_check_query_response(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_check_query_response()
2918 ufshcd_dev_cmd_completion(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_dev_cmd_completion()
2955 static int ufshcd_wait_for_dev_cmd(struct ufs_hba *hba, in ufshcd_wait_for_dev_cmd()
3025 static int ufshcd_exec_dev_cmd(struct ufs_hba *hba, in ufshcd_exec_dev_cmd()
3068 static inline void ufshcd_init_query(struct ufs_hba *hba, in ufshcd_init_query()
3082 static int ufshcd_query_flag_retry(struct ufs_hba *hba, in ufshcd_query_flag_retry()
3115 int ufshcd_query_flag(struct ufs_hba *hba, enum query_opcode opcode, in ufshcd_query_flag()
3184 int ufshcd_query_attr(struct ufs_hba *hba, enum query_opcode opcode, in ufshcd_query_attr()
3249 int ufshcd_query_attr_retry(struct ufs_hba *hba, in ufshcd_query_attr_retry()
3273 static int __ufshcd_query_descriptor(struct ufs_hba *hba, in __ufshcd_query_descriptor()
3349 int ufshcd_query_descriptor_retry(struct ufs_hba *hba, in ufshcd_query_descriptor_retry()
3374 void ufshcd_map_desc_id_to_length(struct ufs_hba *hba, enum desc_idn desc_id, in ufshcd_map_desc_id_to_length()
3385 static void ufshcd_update_desc_length(struct ufs_hba *hba, in ufshcd_update_desc_length()
3410 int ufshcd_read_desc_param(struct ufs_hba *hba, in ufshcd_read_desc_param()
3519 int ufshcd_read_string_desc(struct ufs_hba *hba, u8 desc_index, in ufshcd_read_string_desc()
3598 static inline int ufshcd_read_unit_desc_param(struct ufs_hba *hba, in ufshcd_read_unit_desc_param()
3615 static int ufshcd_get_ref_clk_gating_wait(struct ufs_hba *hba) in ufshcd_get_ref_clk_gating_wait()
3653 static int ufshcd_memory_alloc(struct ufs_hba *hba) in ufshcd_memory_alloc()
3735 static void ufshcd_host_memory_configure(struct ufs_hba *hba) in ufshcd_host_memory_configure()
3796 static int ufshcd_dme_link_startup(struct ufs_hba *hba) in ufshcd_dme_link_startup()
3818 static int ufshcd_dme_reset(struct ufs_hba *hba) in ufshcd_dme_reset()
3833 int ufshcd_dme_configure_adapt(struct ufs_hba *hba, in ufshcd_dme_configure_adapt()
3857 static int ufshcd_dme_enable(struct ufs_hba *hba) in ufshcd_dme_enable()
3872 static inline void ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba) in ufshcd_add_delay_before_dme_cmd()
3913 int ufshcd_dme_set_attr(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_set_attr()
3957 int ufshcd_dme_get_attr(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_get_attr()
4038 static int ufshcd_uic_pwr_ctrl(struct ufs_hba *hba, struct uic_command *cmd) in ufshcd_uic_pwr_ctrl()
4128 static int ufshcd_uic_change_pwr_mode(struct ufs_hba *hba, u8 mode) in ufshcd_uic_change_pwr_mode()
4154 int ufshcd_link_recovery(struct ufs_hba *hba) in ufshcd_link_recovery()
4183 int ufshcd_uic_hibern8_enter(struct ufs_hba *hba) in ufshcd_uic_hibern8_enter()
4207 int ufshcd_uic_hibern8_exit(struct ufs_hba *hba) in ufshcd_uic_hibern8_exit()
4234 void ufshcd_auto_hibern8_update(struct ufs_hba *hba, u32 ahit) in ufshcd_auto_hibern8_update()
4260 void ufshcd_auto_hibern8_enable(struct ufs_hba *hba) in ufshcd_auto_hibern8_enable()
4273 static void ufshcd_init_pwr_info(struct ufs_hba *hba) in ufshcd_init_pwr_info()
4288 static int ufshcd_get_max_pwr_mode(struct ufs_hba *hba) in ufshcd_get_max_pwr_mode()
4352 static int ufshcd_change_power_mode(struct ufs_hba *hba, in ufshcd_change_power_mode()
4445 int ufshcd_config_pwr_mode(struct ufs_hba *hba, in ufshcd_config_pwr_mode()
4469 static int ufshcd_complete_dev_init(struct ufs_hba *hba) in ufshcd_complete_dev_init()
4520 int ufshcd_make_hba_operational(struct ufs_hba *hba) in ufshcd_make_hba_operational()
4570 void ufshcd_hba_stop(struct ufs_hba *hba) in ufshcd_hba_stop()
4601 static int ufshcd_hba_execute_hce(struct ufs_hba *hba) in ufshcd_hba_execute_hce()
4656 int ufshcd_hba_enable(struct ufs_hba *hba) in ufshcd_hba_enable()
4683 static int ufshcd_disable_tx_lcc(struct ufs_hba *hba, bool peer) in ufshcd_disable_tx_lcc()
4714 static inline int ufshcd_disable_device_tx_lcc(struct ufs_hba *hba) in ufshcd_disable_device_tx_lcc()
4719 void ufshcd_update_evt_hist(struct ufs_hba *hba, u32 id, u32 val) in ufshcd_update_evt_hist()
4742 static int ufshcd_link_startup(struct ufs_hba *hba) in ufshcd_link_startup()
4836 static int ufshcd_verify_dev_init(struct ufs_hba *hba) in ufshcd_verify_dev_init()
4873 struct ufs_hba *hba; in ufshcd_set_queue_depth()
4909 static int ufshcd_get_lu_wp(struct ufs_hba *hba, in ufshcd_get_lu_wp()
4940 static inline void ufshcd_get_lu_power_on_wp_status(struct ufs_hba *hba, in ufshcd_get_lu_power_on_wp_status()
4959 static void ufshcd_setup_links(struct ufs_hba *hba, struct scsi_device *sdev) in ufshcd_setup_links()
4999 struct ufs_hba *hba; in ufshcd_slave_alloc()
5039 static void ufshcd_hpb_destroy(struct ufs_hba *hba, struct scsi_device *sdev) in ufshcd_hpb_destroy()
5049 static void ufshcd_hpb_configure(struct ufs_hba *hba, struct scsi_device *sdev) in ufshcd_hpb_configure()
5065 struct ufs_hba *hba = shost_priv(sdev->host); in ufshcd_slave_configure()
5099 struct ufs_hba *hba; in ufshcd_slave_destroy()
5175 ufshcd_transfer_rsp_status(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshcd_transfer_rsp_status()
5275 static bool ufshcd_is_auto_hibern8_error(struct ufs_hba *hba, in ufshcd_is_auto_hibern8_error()
5302 static irqreturn_t ufshcd_uic_cmd_compl(struct ufs_hba *hba, u32 intr_status) in ufshcd_uic_cmd_compl()
5335 static void ufshcd_release_scsi_cmd(struct ufs_hba *hba, in ufshcd_release_scsi_cmd()
5351 static void __ufshcd_transfer_req_compl(struct ufs_hba *hba, in __ufshcd_transfer_req_compl()
5388 struct ufs_hba *hba = shost_priv(shost); in ufshcd_poll()
5415 static irqreturn_t ufshcd_transfer_req_compl(struct ufs_hba *hba) in ufshcd_transfer_req_compl()
5440 int __ufshcd_write_ee_control(struct ufs_hba *hba, u32 ee_ctrl_mask) in __ufshcd_write_ee_control()
5447 int ufshcd_write_ee_control(struct ufs_hba *hba) in ufshcd_write_ee_control()
5460 int ufshcd_update_ee_control(struct ufs_hba *hba, u16 *mask, u16 *other_mask, in ufshcd_update_ee_control()
5490 static inline int ufshcd_disable_ee(struct ufs_hba *hba, u16 mask) in ufshcd_disable_ee()
5505 static inline int ufshcd_enable_ee(struct ufs_hba *hba, u16 mask) in ufshcd_enable_ee()
5521 static int ufshcd_enable_auto_bkops(struct ufs_hba *hba) in ufshcd_enable_auto_bkops()
5560 static int ufshcd_disable_auto_bkops(struct ufs_hba *hba) in ufshcd_disable_auto_bkops()
5603 static void ufshcd_force_reset_auto_bkops(struct ufs_hba *hba) in ufshcd_force_reset_auto_bkops()
5618 static inline int ufshcd_get_bkops_status(struct ufs_hba *hba, u32 *status) in ufshcd_get_bkops_status()
5640 static int ufshcd_bkops_ctrl(struct ufs_hba *hba, in ufshcd_bkops_ctrl()
5676 static int ufshcd_urgent_bkops(struct ufs_hba *hba) in ufshcd_urgent_bkops()
5681 static inline int ufshcd_get_ee_status(struct ufs_hba *hba, u32 *status) in ufshcd_get_ee_status()
5687 static void ufshcd_bkops_exception_event_handler(struct ufs_hba *hba) in ufshcd_bkops_exception_event_handler()
5724 static void ufshcd_temp_exception_event_handler(struct ufs_hba *hba, u16 status) in ufshcd_temp_exception_event_handler()
5742 static int __ufshcd_wb_toggle(struct ufs_hba *hba, bool set, enum flag_idn idn) in __ufshcd_wb_toggle()
5752 int ufshcd_wb_toggle(struct ufs_hba *hba, bool enable) in ufshcd_wb_toggle()
5776 static void ufshcd_wb_toggle_flush_during_h8(struct ufs_hba *hba, bool set) in ufshcd_wb_toggle_flush_during_h8()
5791 static inline void ufshcd_wb_toggle_flush(struct ufs_hba *hba, bool enable) in ufshcd_wb_toggle_flush()
5812 static bool ufshcd_wb_presrv_usrspc_keep_vcc_on(struct ufs_hba *hba, in ufshcd_wb_presrv_usrspc_keep_vcc_on()
5838 static void ufshcd_wb_force_disable(struct ufs_hba *hba) in ufshcd_wb_force_disable()
5850 static bool ufshcd_is_wb_buf_lifetime_available(struct ufs_hba *hba) in ufshcd_is_wb_buf_lifetime_available()
5879 static bool ufshcd_wb_need_flush(struct ufs_hba *hba) in ufshcd_wb_need_flush()
5922 struct ufs_hba *hba = container_of(to_delayed_work(work), in ufshcd_rpm_dev_flush_recheck_work()
5923 struct ufs_hba, in ufshcd_rpm_dev_flush_recheck_work()
5944 struct ufs_hba *hba; in ufshcd_exception_event_handler()
5947 hba = container_of(work, struct ufs_hba, eeh_work); in ufshcd_exception_event_handler()
5971 static void ufshcd_complete_requests(struct ufs_hba *hba) in ufshcd_complete_requests()
5984 static bool ufshcd_quirk_dl_nac_errors(struct ufs_hba *hba) in ufshcd_quirk_dl_nac_errors()
6049 static inline bool ufshcd_is_saved_err_fatal(struct ufs_hba *hba) in ufshcd_is_saved_err_fatal()
6055 void ufshcd_schedule_eh_work(struct ufs_hba *hba) in ufshcd_schedule_eh_work()
6070 static void ufshcd_clk_scaling_allow(struct ufs_hba *hba, bool allow) in ufshcd_clk_scaling_allow()
6077 static void ufshcd_clk_scaling_suspend(struct ufs_hba *hba, bool suspend) in ufshcd_clk_scaling_suspend()
6090 static void ufshcd_err_handling_prepare(struct ufs_hba *hba) in ufshcd_err_handling_prepare()
6126 static void ufshcd_err_handling_unprepare(struct ufs_hba *hba) in ufshcd_err_handling_unprepare()
6135 static inline bool ufshcd_err_handling_should_stop(struct ufs_hba *hba) in ufshcd_err_handling_should_stop()
6145 static void ufshcd_recover_pm_error(struct ufs_hba *hba) in ufshcd_recover_pm_error()
6178 static inline void ufshcd_recover_pm_error(struct ufs_hba *hba) in ufshcd_recover_pm_error()
6183 static bool ufshcd_is_pwr_mode_restore_needed(struct ufs_hba *hba) in ufshcd_is_pwr_mode_restore_needed()
6206 struct ufs_hba *hba; in ufshcd_err_handler()
6215 hba = container_of(work, struct ufs_hba, eh_work); in ufshcd_err_handler()
6413 static irqreturn_t ufshcd_update_uic_error(struct ufs_hba *hba) in ufshcd_update_uic_error()
6506 static irqreturn_t ufshcd_check_errors(struct ufs_hba *hba, u32 intr_status) in ufshcd_check_errors()
6582 static irqreturn_t ufshcd_tmc_handler(struct ufs_hba *hba) in ufshcd_tmc_handler()
6612 static irqreturn_t ufshcd_sl_intr(struct ufs_hba *hba, u32 intr_status) in ufshcd_sl_intr()
6644 struct ufs_hba *hba = __hba; in ufshcd_intr()
6681 static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag) in ufshcd_clear_tm_cmd()
6706 static int __ufshcd_issue_tm_cmd(struct ufs_hba *hba, in __ufshcd_issue_tm_cmd()
6787 static int ufshcd_issue_tm_cmd(struct ufs_hba *hba, int lun_id, int task_id, in ufshcd_issue_tm_cmd()
6841 static int ufshcd_issue_devman_upiu_cmd(struct ufs_hba *hba, in ufshcd_issue_devman_upiu_cmd()
6943 int ufshcd_exec_raw_upiu_cmd(struct ufs_hba *hba, in ufshcd_exec_raw_upiu_cmd()
7009 struct ufs_hba *hba; in ufshcd_eh_device_reset_handler()
7057 static void ufshcd_set_req_abort_skip(struct ufs_hba *hba, unsigned long bitmap) in ufshcd_set_req_abort_skip()
7081 static int ufshcd_try_to_abort_task(struct ufs_hba *hba, int tag) in ufshcd_try_to_abort_task()
7158 struct ufs_hba *hba = shost_priv(host); in ufshcd_abort()
7270 static int ufshcd_host_reset_and_restore(struct ufs_hba *hba) in ufshcd_host_reset_and_restore()
7308 static int ufshcd_reset_and_restore(struct ufs_hba *hba) in ufshcd_reset_and_restore()
7370 struct ufs_hba *hba; in ufshcd_eh_host_reset_handler()
7444 static u32 ufshcd_find_max_sup_active_icc_level(struct ufs_hba *hba, in ufshcd_find_max_sup_active_icc_level()
7484 static void ufshcd_set_active_icc_lvl(struct ufs_hba *hba) in ufshcd_set_active_icc_lvl()
7556 static int ufshcd_scsi_add_wlus(struct ufs_hba *hba) in ufshcd_scsi_add_wlus()
7595 static void ufshcd_wb_probe(struct ufs_hba *hba, u8 *desc_buf) in ufshcd_wb_probe()
7666 static void ufshcd_temp_notif_probe(struct ufs_hba *hba, u8 *desc_buf) in ufshcd_temp_notif_probe()
7689 void ufshcd_fixup_dev_quirks(struct ufs_hba *hba, in ufshcd_fixup_dev_quirks()
7709 static void ufs_fixup_device_setup(struct ufs_hba *hba) in ufs_fixup_device_setup()
7718 static int ufs_get_device_desc(struct ufs_hba *hba) in ufs_get_device_desc()
7798 static void ufs_put_device_desc(struct ufs_hba *hba) in ufs_put_device_desc()
7817 static int ufshcd_tune_pa_tactivate(struct ufs_hba *hba) in ufshcd_tune_pa_tactivate()
7852 static int ufshcd_tune_pa_hibern8time(struct ufs_hba *hba) in ufshcd_tune_pa_hibern8time()
7894 static int ufshcd_quirk_tune_host_pa_tactivate(struct ufs_hba *hba) in ufshcd_quirk_tune_host_pa_tactivate()
7953 static void ufshcd_tune_unipro_params(struct ufs_hba *hba) in ufshcd_tune_unipro_params()
7970 static void ufshcd_clear_dbg_ufs_stats(struct ufs_hba *hba) in ufshcd_clear_dbg_ufs_stats()
7977 static int ufshcd_device_geo_params_init(struct ufs_hba *hba) in ufshcd_device_geo_params_init()
8037 void ufshcd_parse_dev_ref_clk_freq(struct ufs_hba *hba, struct clk *refclk) in ufshcd_parse_dev_ref_clk_freq()
8051 static int ufshcd_set_dev_ref_clk(struct ufs_hba *hba) in ufshcd_set_dev_ref_clk()
8085 static int ufshcd_device_params_init(struct ufs_hba *hba) in ufshcd_device_params_init()
8126 static int ufshcd_add_lus(struct ufs_hba *hba) in ufshcd_add_lus()
8167 static int ufshcd_probe_hba(struct ufs_hba *hba, bool init_dev_params) in ufshcd_probe_hba()
8267 struct ufs_hba *hba = (struct ufs_hba *)data; in ufshcd_async_scan()
8362 static inline int ufshcd_config_vreg_lpm(struct ufs_hba *hba, in ufshcd_config_vreg_lpm()
8368 static inline int ufshcd_config_vreg_hpm(struct ufs_hba *hba, in ufshcd_config_vreg_hpm()
8427 static int ufshcd_setup_vreg(struct ufs_hba *hba, bool on) in ufshcd_setup_vreg()
8452 static int ufshcd_setup_hba_vreg(struct ufs_hba *hba, bool on) in ufshcd_setup_hba_vreg()
8476 static int ufshcd_init_vreg(struct ufs_hba *hba) in ufshcd_init_vreg()
8493 static int ufshcd_init_hba_vreg(struct ufs_hba *hba) in ufshcd_init_hba_vreg()
8500 static int ufshcd_setup_clocks(struct ufs_hba *hba, bool on) in ufshcd_setup_clocks()
8568 static int ufshcd_init_clocks(struct ufs_hba *hba) in ufshcd_init_clocks()
8615 static int ufshcd_variant_hba_init(struct ufs_hba *hba) in ufshcd_variant_hba_init()
8630 static void ufshcd_variant_hba_exit(struct ufs_hba *hba) in ufshcd_variant_hba_exit()
8638 static int ufshcd_hba_init(struct ufs_hba *hba) in ufshcd_hba_init()
8692 static void ufshcd_hba_exit(struct ufs_hba *hba) in ufshcd_hba_exit()
8718 static int ufshcd_set_dev_pwr_mode(struct ufs_hba *hba, in ufshcd_set_dev_pwr_mode()
8792 static int ufshcd_link_state_transition(struct ufs_hba *hba, in ufshcd_link_state_transition()
8850 static void ufshcd_vreg_set_lpm(struct ufs_hba *hba) in ufshcd_vreg_set_lpm()
8901 static int ufshcd_vreg_set_hpm(struct ufs_hba *hba) in ufshcd_vreg_set_hpm()
8930 static void ufshcd_hba_vreg_set_lpm(struct ufs_hba *hba) in ufshcd_hba_vreg_set_lpm()
8936 static void ufshcd_hba_vreg_set_hpm(struct ufs_hba *hba) in ufshcd_hba_vreg_set_hpm()
8942 static int __ufshcd_wl_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op) in __ufshcd_wl_suspend()
9097 static int __ufshcd_wl_resume(struct ufs_hba *hba, enum ufs_pm_op pm_op) in __ufshcd_wl_resume()
9190 struct ufs_hba *hba; in ufshcd_wl_runtime_suspend()
9210 struct ufs_hba *hba; in ufshcd_wl_runtime_resume()
9232 struct ufs_hba *hba; in ufshcd_wl_suspend()
9261 struct ufs_hba *hba; in ufshcd_wl_resume()
9287 struct ufs_hba *hba; in ufshcd_wl_shutdown()
9313 static int ufshcd_suspend(struct ufs_hba *hba) in ufshcd_suspend()
9351 static int ufshcd_resume(struct ufs_hba *hba) in ufshcd_resume()
9393 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_system_suspend()
9420 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_system_resume()
9450 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_runtime_suspend()
9475 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_runtime_resume()
9498 int ufshcd_shutdown(struct ufs_hba *hba) in ufshcd_shutdown()
9514 void ufshcd_remove(struct ufs_hba *hba) in ufshcd_remove()
9536 void ufshcd_dealloc_host(struct ufs_hba *hba) in ufshcd_dealloc_host()
9549 static int ufshcd_set_dma_mask(struct ufs_hba *hba) in ufshcd_set_dma_mask()
9564 int ufshcd_alloc_host(struct device *dev, struct ufs_hba **hba_handle) in ufshcd_alloc_host()
9567 struct ufs_hba *hba; in ufshcd_alloc_host()
9578 sizeof(struct ufs_hba)); in ufshcd_alloc_host()
9619 int ufshcd_init(struct ufs_hba *hba, void __iomem *mmio_base, unsigned int irq) in ufshcd_init()
9833 struct ufs_hba *hba = dev_get_drvdata(dev); in ufshcd_resume_complete()
9842 static bool ufshcd_rpm_ok_for_spm(struct ufs_hba *hba) in ufshcd_rpm_ok_for_spm()
9864 struct ufs_hba *hba = dev_get_drvdata(dev); in __ufshcd_suspend_prepare()
9904 struct ufs_hba *hba = shost_priv(sdev->host); in ufshcd_wl_poweroff()