Lines Matching refs:bus_vote
603 host->bus_vote.saved_vote = vote; in ufs_qcom_update_bus_bw_vote()
730 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()
747 host->bus_vote.curr_vote = vote; in ufs_qcom_set_bus_vote()
808 vote = host->bus_vote.saved_vote; in ufs_qcom_setup_clocks()
809 if (vote == host->bus_vote.min_bw_vote) in ufs_qcom_setup_clocks()
820 vote = host->bus_vote.min_bw_vote; in ufs_qcom_setup_clocks()
840 host->bus_vote.is_max_bw_needed); in show_ufs_to_mem_max_bus_bw()
852 host->bus_vote.is_max_bw_needed = !!value; in store_ufs_to_mem_max_bus_bw()
873 host->bus_vote.min_bw_vote = ufs_qcom_get_bus_vote(host, "MIN"); in ufs_qcom_bus_register()
874 host->bus_vote.max_bw_vote = ufs_qcom_get_bus_vote(host, "MAX"); in ufs_qcom_bus_register()
876 host->bus_vote.max_bus_bw.show = show_ufs_to_mem_max_bus_bw; in ufs_qcom_bus_register()
877 host->bus_vote.max_bus_bw.store = store_ufs_to_mem_max_bus_bw; in ufs_qcom_bus_register()
878 sysfs_attr_init(&host->bus_vote.max_bus_bw.attr); in ufs_qcom_bus_register()
879 host->bus_vote.max_bus_bw.attr.name = "max_bus_bw"; in ufs_qcom_bus_register()
880 host->bus_vote.max_bus_bw.attr.mode = S_IRUGO | S_IWUSR; in ufs_qcom_bus_register()
881 err = device_create_file(dev, &host->bus_vote.max_bus_bw); in ufs_qcom_bus_register()