Lines Matching full:freq

61 	uint64_t	freq;
86 cpufreq_dt_notify(device_t dev, uint64_t freq)
97 pc->pc_clock = freq;
103 cpufreq_dt_find_opp(device_t dev, uint64_t freq)
113 DPRINTF(dev, "Looking for freq %ju\n", freq);
115 diff = abs64((int64_t)sc->opp[n].freq - (int64_t)freq);
116 DPRINTF(dev, "Testing %ju, diff is %ju\n", sc->opp[n].freq, diff);
120 DPRINTF(dev, "%ju is best for now\n", sc->opp[n].freq);
124 DPRINTF(dev, "Will use %ju\n", sc->opp[best_n].freq);
134 set->freq = opp->freq / 1000000;
146 uint64_t freq;
151 if (clk_get_freq(sc->clk, &freq) != 0)
154 opp = cpufreq_dt_find_opp(dev, freq);
156 device_printf(dev, "Can't find the current freq in opp\n");
162 DPRINTF(dev, "Current freq %dMhz\n", set->freq);
171 uint64_t freq;
183 if (clk_get_freq(sc->clk, &freq) != 0) {
184 device_printf(dev, "Can't get current clk freq\n");
202 copp = cpufreq_dt_find_opp(sc->dev, freq);
205 "Can't find the current freq in opp\n");
213 opp = cpufreq_dt_find_opp(sc->dev, set->freq * 1000000);
215 device_printf(dev, "Couldn't find an opp for this freq\n");
218 DPRINTF(sc->dev, "Current freq %ju, uvolt: %d\n", freq, uvolt);
219 DPRINTF(sc->dev, "Target freq %ju, , uvolt: %d\n",
220 opp->freq, opp->uvolt_target);
234 DPRINTF(dev, "Setting clk to %ju\n", opp->freq);
235 error = clk_set_freq(sc->clk, opp->freq, CLK_SET_ROUND_DOWN);
256 (void)clk_set_freq(sc->clk, copp->freq, 0);
261 if (clk_get_freq(sc->clk, &freq) == 0)
262 cpufreq_dt_notify(dev, freq);
365 sc->opp[n].freq = opp[n * 2 + 0] * 1000;
373 sc->opp[n].freq / 1000000,
374 sc->opp[n].freq % 1000000,
421 sc->opp[i].freq = cell[0];
422 sc->opp[i].freq <<= 32;
423 sc->opp[i].freq |= cell[1];
464 sc->opp[i].freq / 1000000,
465 sc->opp[i].freq % 1000000,
478 uint64_t freq;
593 if (clk_get_freq(sc->clk, &freq) == 0)
594 cpufreq_dt_notify(dev, freq);