Lines Matching refs:set
85 int info_only; /* Can we set new states? */
103 struct cf_setting *set);
109 static int acpi_px_set(device_t dev, const struct cf_setting *set);
110 static int acpi_px_get(device_t dev, struct cf_setting *set);
336 * info, we can't get or set new settings.
426 struct cf_setting set;
430 /* If the old state is too high, set current state to the new max. */
435 &sc->px_states[sc->px_max_avail], &set);
436 acpi_px_set(sc->dev, &set);
443 acpi_px_to_set(device_t dev, struct acpi_px *px, struct cf_setting *set)
446 if (px == NULL || set == NULL)
449 set->freq = px->core_freq;
450 set->power = px->power;
452 set->lat = px->trans_lat;
453 set->volts = CPUFREQ_VAL_UNKNOWN;
454 set->dev = dev;
455 set->spec[PX_SPEC_CONTROL] = px->ctrl_val;
456 set->spec[PX_SPEC_STATUS] = px->sts_val;
483 acpi_px_set(device_t dev, const struct cf_setting *set)
488 if (set == NULL)
492 /* If we can't set new states, return immediately. */
498 if (CPUFREQ_CMP(set->freq, sc->px_states[i].core_freq))
538 acpi_px_get(device_t dev, struct cf_setting *set)
545 if (set == NULL)
553 /* If we've set the rate before, use the cached value. */
555 acpi_px_to_set(dev, &sc->px_states[sc->px_curr_state], set);
568 acpi_px_to_set(dev, &sc->px_states[i], set);
576 set->freq = CPUFREQ_VAL_UNKNOWN;