Lines Matching refs:bus_vote
702 if (host->bus_vote.is_max_bw_needed && !!strcmp(speed_mode, "MIN")) in ufs_qcom_get_bus_vote()
746 if (vote != host->bus_vote.curr_vote) { in ufs_qcom_set_bus_vote()
748 host->bus_vote.client_handle, vote); in ufs_qcom_set_bus_vote()
752 __func__, host->bus_vote.client_handle, in ufs_qcom_set_bus_vote()
757 host->bus_vote.curr_vote = vote; in ufs_qcom_set_bus_vote()
780 host->bus_vote.saved_vote = vote; in ufs_qcom_update_bus_bw_vote()
792 host->bus_vote.is_max_bw_needed); in show_ufs_to_mem_max_bus_bw()
804 host->bus_vote.is_max_bw_needed = !!value; in store_ufs_to_mem_max_bus_bw()
833 host->bus_vote.client_handle = msm_bus_scale_register_client(bus_pdata); in ufs_qcom_bus_register()
834 if (!host->bus_vote.client_handle) { in ufs_qcom_bus_register()
842 host->bus_vote.min_bw_vote = ufs_qcom_get_bus_vote(host, "MIN"); in ufs_qcom_bus_register()
843 host->bus_vote.max_bw_vote = ufs_qcom_get_bus_vote(host, "MAX"); in ufs_qcom_bus_register()
845 host->bus_vote.max_bus_bw.show = show_ufs_to_mem_max_bus_bw; in ufs_qcom_bus_register()
846 host->bus_vote.max_bus_bw.store = store_ufs_to_mem_max_bus_bw; in ufs_qcom_bus_register()
847 sysfs_attr_init(&host->bus_vote.max_bus_bw.attr); in ufs_qcom_bus_register()
848 host->bus_vote.max_bus_bw.attr.name = "max_bus_bw"; in ufs_qcom_bus_register()
849 host->bus_vote.max_bus_bw.attr.mode = S_IRUGO | S_IWUSR; in ufs_qcom_bus_register()
850 err = device_create_file(dev, &host->bus_vote.max_bus_bw); in ufs_qcom_bus_register()
1093 vote = host->bus_vote.saved_vote; in ufs_qcom_setup_clocks()
1094 if (vote == host->bus_vote.min_bw_vote) in ufs_qcom_setup_clocks()
1105 vote = host->bus_vote.min_bw_vote; in ufs_qcom_setup_clocks()