Home
last modified time | relevance | path

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

/linux-4.1.27/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
58 extern int wf_register_control(struct wf_control *ct); argument
59 extern void wf_unregister_control(struct wf_control *ct);
60 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()
78 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()
195 struct wf_control *ctrl = container_of(attr, struct wf_control, attr); in wf_store_control()
211 int wf_register_control(struct wf_control *new_ct) in wf_register_control()
213 struct wf_control *ct; in wf_register_control()
246 void wf_unregister_control(struct wf_control *ct) in wf_unregister_control()
258 struct wf_control * wf_find_control(const char *name) in wf_find_control()
260 struct wf_control *ct; in wf_find_control()
276 int wf_get_control(struct wf_control *ct) in wf_get_control()
285 void wf_put_control(struct wf_control *ct) in wf_put_control()
[all …]
Dwindfarm_smu_controls.c50 struct wf_control ctrl;
109 static void smu_fan_release(struct wf_control *ct) in smu_fan_release()
116 static int smu_fan_set(struct wf_control *ct, s32 value) in smu_fan_set()
129 static int smu_fan_get(struct wf_control *ct, s32 *value) in smu_fan_get()
136 static s32 smu_fan_min(struct wf_control *ct) in smu_fan_min()
142 static s32 smu_fan_max(struct wf_control *ct) in smu_fan_max()
Dwindfarm_pm91.c70 static struct wf_control *fan_cpu_main;
71 static struct wf_control *fan_cpu_second;
72 static struct wf_control *fan_cpu_third;
73 static struct wf_control *fan_hd;
74 static struct wf_control *fan_slots;
75 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.c246 static struct wf_control *controls[N_CONTROLS] = {};
521 struct wf_control *control = NULL; in pm121_create_sys_fans()
595 struct wf_control *control; in pm121_sys_fans_tick()
656 struct wf_control *fan_cpu; in pm121_create_cpu_fans()
731 struct wf_control *fan_cpu = NULL; in pm121_cpu_fans_tick()
877 static struct wf_control* pm121_register_control(struct wf_control *ct, in pm121_register_control()
888 static void pm121_new_control(struct wf_control *ct) in pm121_new_control()
956 ((struct wf_control *)data)->name); in pm121_notify()
Dwindfarm_fcu_controls.c69 struct wf_control ctrl;
79 static void wf_fcu_fan_release(struct wf_control *ct) in wf_fcu_fan_release()
145 static int wf_fcu_fan_set_rpm(struct wf_control *ct, s32 value) in wf_fcu_fan_set_rpm()
167 static int wf_fcu_fan_get_rpm(struct wf_control *ct, s32 *value) in wf_fcu_fan_get_rpm()
202 static int wf_fcu_fan_set_pwm(struct wf_control *ct, s32 value) in wf_fcu_fan_set_pwm()
224 static int wf_fcu_fan_get_pwm(struct wf_control *ct, s32 *value) in wf_fcu_fan_get_pwm()
253 static s32 wf_fcu_fan_min(struct wf_control *ct) in wf_fcu_fan_min()
260 static s32 wf_fcu_fan_max(struct wf_control *ct) in wf_fcu_fan_max()
Dwindfarm_pm72.c55 static struct wf_control *cpu_front_fans[NR_CHIPS];
56 static struct wf_control *cpu_rear_fans[NR_CHIPS];
57 static struct wf_control *cpu_pumps[NR_CHIPS];
58 static struct wf_control *backside_fan;
59 static struct wf_control *drives_fan;
60 static struct wf_control *slots_fan;
61 static struct wf_control *cpufreq_clamp;
312 struct wf_control *pump0, *pump1; in cpu_fans_tick_combined()
670 static void pm72_new_control(struct wf_control *ct) in pm72_new_control()
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.c137 static struct wf_control *fan_cpu_main;
138 static struct wf_control *fan_hd;
139 static struct wf_control *fan_system;
140 static struct wf_control *cpufreq_clamp;
612 static void wf_smu_new_control(struct wf_control *ct) in wf_smu_new_control()
682 ((struct wf_control *)data)->name); in wf_smu_notify()
Dwindfarm_rm31.c56 static struct wf_control *cpu_fans[NR_CHIPS][3];
57 static struct wf_control *backside_fan;
58 static struct wf_control *slots_fan;
59 static struct wf_control *cpufreq_clamp;
568 static void rm31_new_control(struct wf_control *ct) in rm31_new_control()