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,
393 sc->sets[0].freq = CPUFREQ_VAL_UNKNOWN; in smist_attach()
394 sc->sets[0].volts = CPUFREQ_VAL_UNKNOWN; in smist_attach()
395 sc->sets[0].power = CPUFREQ_VAL_UNKNOWN; in smist_attach()
396 sc->sets[0].lat = 1000; in smist_attach()
397 sc->sets[0].dev = dev; in smist_attach()
398 sc->sets[1] = sc->sets[0]; in smist_attach()
413 smist_settings(device_t dev, struct cf_setting *sets, int *count) in smist_settings() argument
419 if (sets == NULL || count == NULL) in smist_settings()
432 if (sc->sets[i].freq == CPUFREQ_VAL_UNKNOWN) { in smist_settings()
434 smist_set(dev, &sc->sets[i]); in smist_settings()
436 smist_set(dev, &sc->sets[first]); in smist_settings()
440 bcopy(sc->sets, sets, sizeof(sc->sets)); in smist_settings()
454 if (CPUFREQ_CMP(set->freq, sc->sets[0].freq)) in smist_set()
456 else if (CPUFREQ_CMP(set->freq, sc->sets[1].freq)) in smist_set()
495 if (sc->sets[state].freq == CPUFREQ_VAL_UNKNOWN) { in smist_get()
497 sc->sets[state].freq = rate / 1000000; in smist_get()
499 sc->sets[state].freq); in smist_get()
501 *set = sc->sets[state]; in smist_get()