Lines Matching refs:cf
247 static int pn_set(device_t dev, const struct cf_setting *cf);
248 static int pn_get(device_t dev, struct cf_setting *cf);
444 pn_set(device_t dev, const struct cf_setting *cf)
451 if (cf == NULL)
459 if (CPUFREQ_CMP(sc->powernow_states[i].freq / 1000, cf->freq))
480 pn_get(device_t dev, struct cf_setting *cf)
487 if (cf == NULL)
511 cf->freq = sc->powernow_states[i].freq / 1000;
512 cf->power = sc->powernow_states[i].power;
513 cf->lat = 200;
514 cf->volts = sc->vid_to_volts[cvid];
515 cf->dev = dev;
517 memset(cf, CPUFREQ_VAL_UNKNOWN, sizeof(*cf));
518 cf->dev = NULL;