Lines Matching refs:set
102 static int acpi_thr_set(device_t dev, const struct cf_setting *set);
103 static int acpi_thr_get(device_t dev, struct cf_setting *set);
191 struct cf_setting set;
227 set.freq = 10000;
228 acpi_thr_set(dev, &set);
293 * systems use it to indicate a fractional set of features
368 acpi_thr_set(device_t dev, const struct cf_setting *set)
373 if (set == NULL)
381 speed = set->freq * CPU_MAX_SPEED / 10000;
382 if (speed * 10000 != set->freq * CPU_MAX_SPEED ||
413 acpi_thr_get(device_t dev, struct cf_setting *set)
418 if (set == NULL)
427 memset(set, CPUFREQ_VAL_UNKNOWN, sizeof(*set));
428 set->freq = CPU_SPEED_PERCENT(clk_val);
429 set->dev = dev;