Home | History | Annotate | Download | only in fdt

Lines Matching defs:opp

96 	struct cpufreq_dt_opp *opp = NULL;
104 opp = &sc->sc_opp[n];
107 if (opp == NULL)
112 new_uv = opp->voltage_uv;
134 const u_int latency_us = howmany(opp->latency_ns, 1000);
343 const u_int *opp;
346 opp = fdtbus_get_prop(phandle, "operating-points", &len);
352 for (i = 0; i < sc->sc_nopp; i++, opp += 2) {
353 sc->sc_opp[i].freq_khz = be32toh(opp[0]);
354 sc->sc_opp[i].voltage_uv = be32toh(opp[1]);
364 struct fdt_opp_info * const *opp;
368 __link_set_foreach(opp, fdt_opps) {
370 { .compat = (*opp)->opp_compat },
377 best_opp = *opp;
397 if (of_hasprop(opp_node, "opp-suspend"))
421 if (of_hasprop(opp_table, "opp-shared")) {
445 if (of_getprop_uint64(opp_node, "opp-hz", &opp_hz) != 0)
447 opp_uv = fdtbus_get_prop(opp_node, "opp-microvolt", &len);
541 struct cpufreq_dt_opp * const opp = &sc->sc_opp[0];
544 opp->freq_khz / 1000, opp->freq_khz % 1000, opp->voltage_uv);
545 cpufreq_dt_set_rate(sc, opp->freq_khz);