Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/macintosh/
Dwindfarm.h25 struct wf_control;
28 int (*set_value)(struct wf_control *ct, s32 val);
29 int (*get_value)(struct wf_control *ct, s32 *val);
30 s32 (*get_min)(struct wf_control *ct);
31 s32 (*get_max)(struct wf_control *ct);
32 void (*release)(struct wf_control *ct);
36 struct wf_control { struct
56 extern int wf_register_control(struct wf_control *ct); argument
57 extern void wf_unregister_control(struct wf_control *ct);
58 extern int wf_get_control(struct wf_control *ct);
[all …]
Dwindfarm_cpufreq_clamp.c18 static struct wf_control *clamp_control;
22 static int clamp_set(struct wf_control *ct, s32 value) in clamp_set()
39 static int clamp_get(struct wf_control *ct, s32 *value) in clamp_get()
45 static s32 clamp_min(struct wf_control *ct) in clamp_min()
50 static s32 clamp_max(struct wf_control *ct) in clamp_max()
66 struct wf_control *clamp; in wf_cpufreq_clamp_init()
97 clamp = kmalloc(sizeof(struct wf_control), GFP_KERNEL); in wf_cpufreq_clamp_init()
Dwindfarm_core.c149 struct wf_control *ct = container_of(kref, struct wf_control, ref); in wf_control_release()
162 struct wf_control *ctrl = container_of(attr, struct wf_control, attr); in wf_show_control()
191 struct wf_control *ctrl = container_of(attr, struct wf_control, attr); in wf_store_control()
207 int wf_register_control(struct wf_control *new_ct) in wf_register_control()
209 struct wf_control *ct; in wf_register_control()
242 void wf_unregister_control(struct wf_control *ct) in wf_unregister_control()
254 int wf_get_control(struct wf_control *ct) in wf_get_control()
263 void wf_put_control(struct wf_control *ct) in wf_put_control()
374 struct wf_control *ct; in wf_register_client()
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;
538 static void wf_smu_new_control(struct wf_control *ct) in wf_smu_new_control()
615 ((struct wf_control *)data)->name); in wf_smu_notify()
Dwindfarm_pm121.c236 static struct wf_control *controls[N_CONTROLS] = {};
512 struct wf_control *control = NULL; in pm121_create_sys_fans()
586 struct wf_control *control; in pm121_sys_fans_tick()
647 struct wf_control *fan_cpu; in pm121_create_cpu_fans()
722 struct wf_control *fan_cpu = NULL; in pm121_cpu_fans_tick()
868 static struct wf_control* pm121_register_control(struct wf_control *ct, in pm121_register_control()
879 static void pm121_new_control(struct wf_control *ct) in pm121_new_control()
947 ((struct wf_control *)data)->name); in pm121_notify()
Dwindfarm_fcu_controls.c68 struct wf_control ctrl;
78 static void wf_fcu_fan_release(struct wf_control *ct) in wf_fcu_fan_release()
144 static int wf_fcu_fan_set_rpm(struct wf_control *ct, s32 value) in wf_fcu_fan_set_rpm()
166 static int wf_fcu_fan_get_rpm(struct wf_control *ct, s32 *value) in wf_fcu_fan_get_rpm()
201 static int wf_fcu_fan_set_pwm(struct wf_control *ct, s32 value) in wf_fcu_fan_set_pwm()
223 static int wf_fcu_fan_get_pwm(struct wf_control *ct, s32 *value) in wf_fcu_fan_get_pwm()
252 static s32 wf_fcu_fan_min(struct wf_control *ct) in wf_fcu_fan_min()
259 static s32 wf_fcu_fan_max(struct wf_control *ct) in wf_fcu_fan_max()
Dwindfarm_pm72.c54 static struct wf_control *cpu_front_fans[NR_CHIPS];
55 static struct wf_control *cpu_rear_fans[NR_CHIPS];
56 static struct wf_control *cpu_pumps[NR_CHIPS];
57 static struct wf_control *backside_fan;
58 static struct wf_control *drives_fan;
59 static struct wf_control *slots_fan;
60 static struct wf_control *cpufreq_clamp;
311 struct wf_control *pump0, *pump1; in cpu_fans_tick_combined()
669 static void pm72_new_control(struct wf_control *ct) in pm72_new_control()
Dwindfarm_pm112.c57 static struct wf_control *cpu_fans[NR_CPU_FANS];
66 static struct wf_control *cpufreq_clamp;
86 static struct wf_control *backside_fan;
87 static struct wf_control *slots_fan;
88 static struct wf_control *drive_bay_fan;
133 struct wf_control *main_fan = cpu_fans[0]; in create_cpu_loop()
275 struct wf_control *ct; in cpu_fans_tick()
558 static void pm112_new_control(struct wf_control *ct) in pm112_new_control()
Dwindfarm_pm81.c136 static struct wf_control *fan_cpu_main;
137 static struct wf_control *fan_hd;
138 static struct wf_control *fan_system;
139 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.c55 static struct wf_control *cpu_fans[NR_CHIPS][3];
56 static struct wf_control *backside_fan;
57 static struct wf_control *slots_fan;
58 static struct wf_control *cpufreq_clamp;
567 static void rm31_new_control(struct wf_control *ct) in rm31_new_control()