Lines Matching refs:target_rate
49 unsigned long rate, target_rate; member
75 unsigned long target_volt, target_rate; in rk3399_dmcfreq_target() local
88 target_rate = dev_pm_opp_get_freq(opp); in rk3399_dmcfreq_target()
92 if (dmcfreq->rate == target_rate) in rk3399_dmcfreq_target()
114 ddrcon_mhz = target_rate / USEC_PER_SEC / 2; in rk3399_dmcfreq_target()
136 if (target_rate >= dmcfreq->sr_idle_dis_freq) in rk3399_dmcfreq_target()
139 if (target_rate >= dmcfreq->sr_mc_gate_idle_dis_freq) in rk3399_dmcfreq_target()
142 if (target_rate >= dmcfreq->standby_idle_dis_freq) in rk3399_dmcfreq_target()
145 if (target_rate >= dmcfreq->pd_idle_dis_freq) in rk3399_dmcfreq_target()
148 if (target_rate >= dmcfreq->srpd_lite_idle_dis_freq) in rk3399_dmcfreq_target()
151 if (target_rate >= dmcfreq->odt_dis_freq) in rk3399_dmcfreq_target()
168 if (old_clk_rate < target_rate) { in rk3399_dmcfreq_target()
178 err = clk_set_rate(dmcfreq->dmc_clk, target_rate); in rk3399_dmcfreq_target()
180 dev_err(dev, "Cannot set frequency %lu (%d)\n", target_rate, in rk3399_dmcfreq_target()
196 if (dmcfreq->rate != target_rate) { in rk3399_dmcfreq_target()
198 target_rate, dmcfreq->rate); in rk3399_dmcfreq_target()
202 } else if (old_clk_rate > target_rate) in rk3399_dmcfreq_target()
208 dmcfreq->rate = target_rate; in rk3399_dmcfreq_target()