Lines Matching full:sets
73 struct cf_setting sets[2]; /* Only two settings. */ member
82 static int smist_settings(device_t dev, struct cf_setting *sets,
391 sc->sets[0].freq = CPUFREQ_VAL_UNKNOWN; in smist_attach()
392 sc->sets[0].volts = CPUFREQ_VAL_UNKNOWN; in smist_attach()
393 sc->sets[0].power = CPUFREQ_VAL_UNKNOWN; in smist_attach()
394 sc->sets[0].lat = 1000; in smist_attach()
395 sc->sets[0].dev = dev; in smist_attach()
396 sc->sets[1] = sc->sets[0]; in smist_attach()
411 smist_settings(device_t dev, struct cf_setting *sets, int *count) in smist_settings() argument
417 if (sets == NULL || count == NULL) in smist_settings()
430 if (sc->sets[i].freq == CPUFREQ_VAL_UNKNOWN) { in smist_settings()
432 smist_set(dev, &sc->sets[i]); in smist_settings()
434 smist_set(dev, &sc->sets[first]); in smist_settings()
438 bcopy(sc->sets, sets, sizeof(sc->sets)); in smist_settings()
452 if (CPUFREQ_CMP(set->freq, sc->sets[0].freq)) in smist_set()
454 else if (CPUFREQ_CMP(set->freq, sc->sets[1].freq)) in smist_set()
493 if (sc->sets[state].freq == CPUFREQ_VAL_UNKNOWN) { in smist_get()
495 sc->sets[state].freq = rate / 1000000; in smist_get()
497 sc->sets[state].freq); in smist_get()
499 *set = sc->sets[state]; in smist_get()