Home
last modified time | relevance | path

Searched refs:wf_control (Results 1 – 8 of 8) sorted by relevance

/linux-2.6.39/drivers/macintosh/
Dwindfarm.h26 struct wf_control;
29 int (*set_value)(struct wf_control *ct, s32 val);
30 int (*get_value)(struct wf_control *ct, s32 *val);
31 s32 (*get_min)(struct wf_control *ct);
32 s32 (*get_max)(struct wf_control *ct);
33 void (*release)(struct wf_control *ct);
37 struct wf_control { struct
57 extern int wf_register_control(struct wf_control *ct); argument
58 extern void wf_unregister_control(struct wf_control *ct);
59 extern struct wf_control * wf_find_control(const char *name);
[all …]
Dwindfarm_cpufreq_clamp.c17 static struct wf_control *clamp_control;
38 static int clamp_set(struct wf_control *ct, s32 value) in clamp_set()
50 static int clamp_get(struct wf_control *ct, s32 *value) in clamp_get()
56 static s32 clamp_min(struct wf_control *ct) in clamp_min()
61 static s32 clamp_max(struct wf_control *ct) in clamp_max()
76 struct wf_control *clamp; in wf_cpufreq_clamp_init()
84 clamp = kmalloc(sizeof(struct wf_control), GFP_KERNEL); in wf_cpufreq_clamp_init()
Dwindfarm_core.c153 struct wf_control *ct = container_of(kref, struct wf_control, ref); in wf_control_release()
166 struct wf_control *ctrl = container_of(attr, struct wf_control, attr); in wf_show_control()
181 struct wf_control *ctrl = container_of(attr, struct wf_control, attr); in wf_store_control()
197 int wf_register_control(struct wf_control *new_ct) in wf_register_control()
199 struct wf_control *ct; in wf_register_control()
232 void wf_unregister_control(struct wf_control *ct) in wf_unregister_control()
244 struct wf_control * wf_find_control(const char *name) in wf_find_control()
246 struct wf_control *ct; in wf_find_control()
262 int wf_get_control(struct wf_control *ct) in wf_get_control()
271 void wf_put_control(struct wf_control *ct) in wf_put_control()
[all …]
Dwindfarm_smu_controls.c51 struct wf_control ctrl;
110 static void smu_fan_release(struct wf_control *ct) in smu_fan_release()
117 static int smu_fan_set(struct wf_control *ct, s32 value) in smu_fan_set()
130 static int smu_fan_get(struct wf_control *ct, s32 *value) in smu_fan_get()
137 static s32 smu_fan_min(struct wf_control *ct) in smu_fan_min()
143 static s32 smu_fan_max(struct wf_control *ct) in smu_fan_max()
Dwindfarm_pm91.c71 static struct wf_control *fan_cpu_main;
72 static struct wf_control *fan_cpu_second;
73 static struct wf_control *fan_cpu_third;
74 static struct wf_control *fan_hd;
75 static struct wf_control *fan_slots;
76 static struct wf_control *cpufreq_clamp;
537 static void wf_smu_new_control(struct wf_control *ct) in wf_smu_new_control()
614 ((struct wf_control *)data)->name); in wf_smu_notify()
Dwindfarm_pm121.c247 static struct wf_control *controls[N_CONTROLS] = {};
521 struct wf_control *control = NULL; in pm121_create_sys_fans()
585 struct wf_control *control; in pm121_sys_fans_tick()
646 struct wf_control *fan_cpu; in pm121_create_cpu_fans()
721 struct wf_control *fan_cpu = NULL; in pm121_cpu_fans_tick()
864 static struct wf_control* pm121_register_control(struct wf_control *ct, in pm121_register_control()
875 static void pm121_new_control(struct wf_control *ct) in pm121_new_control()
943 ((struct wf_control *)data)->name); in pm121_notify()
Dwindfarm_pm112.c56 static struct wf_control *cpu_fans[NR_CPU_FANS];
65 static struct wf_control *cpufreq_clamp;
85 static struct wf_control *backside_fan;
86 static struct wf_control *slots_fan;
87 static struct wf_control *drive_bay_fan;
132 struct wf_control *main_fan = cpu_fans[0]; in create_cpu_loop()
269 struct wf_control *ct; in cpu_fans_tick()
552 static void pm112_new_control(struct wf_control *ct) in pm112_new_control()
Dwindfarm_pm81.c138 static struct wf_control *fan_cpu_main;
139 static struct wf_control *fan_hd;
140 static struct wf_control *fan_system;
141 static struct wf_control *cpufreq_clamp;
610 static void wf_smu_new_control(struct wf_control *ct) in wf_smu_new_control()
680 ((struct wf_control *)data)->name); in wf_smu_notify()