Lines Matching refs:min_rate
193 unsigned long min_rate; member
211 unsigned long min_rate; member
673 unsigned long min_rate, in emc_round_rate() argument
684 min_rate = min(min_rate, emc->timings[emc->num_timings - 1].rate); in emc_round_rate()
693 if (emc->timings[i].rate < min_rate) in emc_round_rate()
697 if (emc->timings[i].rate < min_rate) in emc_round_rate()
706 rate, min_rate, max_rate); in emc_round_rate()
718 emc->requested_rate[i].min_rate = 0; in tegra_emc_rate_requests_init()
729 unsigned long min_rate = 0, max_rate = ULONG_MAX; in emc_request_rate() local
736 min_rate = max(new_min_rate, min_rate); in emc_request_rate()
739 min_rate = max(req->min_rate, min_rate); in emc_request_rate()
744 if (min_rate > max_rate) { in emc_request_rate()
746 __func__, type, min_rate, max_rate); in emc_request_rate()
754 err = dev_pm_opp_set_rate(emc->dev, min_rate); in emc_request_rate()
758 emc->requested_rate[type].min_rate = new_min_rate; in emc_request_rate()
784 ret = emc_request_rate(emc, req->min_rate, rate, type); in emc_set_max_rate()
847 *rate = emc->debugfs.min_rate; in tegra_emc_debug_min_rate_get()
864 emc->debugfs.min_rate = rate; in tegra_emc_debug_min_rate_set()
909 emc->debugfs.min_rate = ULONG_MAX; in tegra_emc_debugfs_init()
913 if (emc->timings[i].rate < emc->debugfs.min_rate) in tegra_emc_debugfs_init()
914 emc->debugfs.min_rate = emc->timings[i].rate; in tegra_emc_debugfs_init()
921 emc->debugfs.min_rate = clk_get_rate(emc->clk); in tegra_emc_debugfs_init()
922 emc->debugfs.max_rate = emc->debugfs.min_rate; in tegra_emc_debugfs_init()
925 err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate, in tegra_emc_debugfs_init()
929 emc->debugfs.min_rate, emc->debugfs.max_rate, in tegra_emc_debugfs_init()