Home
last modified time | relevance | path

Searched refs:wf_sensor (Results 1 – 14 of 14) sorted by relevance

/linux-4.4.14/drivers/macintosh/
Dwindfarm.h98 struct wf_sensor;
101 int (*get_value)(struct wf_sensor *sr, s32 *val);
102 void (*release)(struct wf_sensor *sr);
106 struct wf_sensor { struct
116 extern int wf_register_sensor(struct wf_sensor *sr); argument
117 extern void wf_unregister_sensor(struct wf_sensor *sr);
118 extern int wf_get_sensor(struct wf_sensor *sr);
119 extern void wf_put_sensor(struct wf_sensor *sr);
121 static inline int wf_sensor_get(struct wf_sensor *sr, s32 *val) in wf_sensor_get()
Dwindfarm_smu_sensors.c55 struct wf_sensor sens;
59 static void smu_ads_release(struct wf_sensor *sr) in smu_ads_release()
88 static int smu_cputemp_get(struct wf_sensor *sr, s32 *value) in smu_cputemp_get()
111 static int smu_cpuamp_get(struct wf_sensor *sr, s32 *value) in smu_cpuamp_get()
132 static int smu_cpuvolt_get(struct wf_sensor *sr, s32 *value) in smu_cpuvolt_get()
153 static int smu_slotspow_get(struct wf_sensor *sr, s32 *value) in smu_slotspow_get()
276 struct wf_sensor *volts;
277 struct wf_sensor *amps;
280 struct wf_sensor sens;
286 static void smu_cpu_power_release(struct wf_sensor *sr) in smu_cpu_power_release()
[all …]
Dwindfarm_core.c282 struct wf_sensor *sr = container_of(kref, struct wf_sensor, ref); in wf_sensor_release()
295 struct wf_sensor *sens = container_of(attr, struct wf_sensor, attr); in wf_show_sensor()
305 int wf_register_sensor(struct wf_sensor *new_sr) in wf_register_sensor()
307 struct wf_sensor *sr; in wf_register_sensor()
340 void wf_unregister_sensor(struct wf_sensor *sr) in wf_unregister_sensor()
352 int wf_get_sensor(struct wf_sensor *sr) in wf_get_sensor()
361 void wf_put_sensor(struct wf_sensor *sr) in wf_put_sensor()
378 struct wf_sensor *sr; in wf_register_client()
Dwindfarm_pm121.c229 static struct wf_sensor *sensor_cpu_power;
230 static struct wf_sensor *sensor_cpu_temp;
231 static struct wf_sensor *sensor_cpu_voltage;
232 static struct wf_sensor *sensor_cpu_current;
233 static struct wf_sensor *sensor_gpu_temp;
234 static struct wf_sensor *sensor_north_bridge_temp;
235 static struct wf_sensor *sensor_hard_drive_temp;
236 static struct wf_sensor *sensor_optical_drive_temp;
237 static struct wf_sensor *sensor_incoming_air_temp; /* unused ! */
363 struct wf_sensor **sensor; /* use sensor_id instead ? */
[all …]
Dwindfarm_max6690_sensor.c30 struct wf_sensor sens;
35 static int wf_max6690_get(struct wf_sensor *sr, s32 *value) in wf_max6690_get()
51 static void wf_max6690_release(struct wf_sensor *sr) in wf_max6690_release()
Dwindfarm_lm75_sensor.c40 struct wf_sensor sens;
44 static int wf_lm75_get(struct wf_sensor *sr, s32 *value) in wf_lm75_get()
78 static void wf_lm75_release(struct wf_sensor *sr) in wf_lm75_release()
Dwindfarm_lm87_sensor.c38 struct wf_sensor sens;
68 static int wf_lm87_get(struct wf_sensor *sr, s32 *value) in wf_lm87_get()
87 static void wf_lm87_release(struct wf_sensor *sr) in wf_lm87_release()
Dwindfarm_ad7417_sensor.c33 struct wf_sensor sensors[5];
37 static int wf_ad7417_temp_get(struct wf_sensor *sr, s32 *value) in wf_ad7417_temp_get()
100 static int wf_ad7417_adc_get(struct wf_sensor *sr, s32 *value) in wf_ad7417_adc_get()
160 static void wf_ad7417_sensor_release(struct wf_sensor *sr) in wf_ad7417_sensor_release()
Dwindfarm_pm112.c50 static struct wf_sensor *sens_cpu_temp[NR_CORES];
51 static struct wf_sensor *sens_cpu_power[NR_CORES];
52 static struct wf_sensor *hd_temp;
53 static struct wf_sensor *slots_power;
54 static struct wf_sensor *u4_temp;
268 struct wf_sensor *sr; in cpu_fans_tick()
597 static void pm112_new_sensor(struct wf_sensor *sr) in pm112_new_sensor()
Dwindfarm_rm31.c49 static struct wf_sensor *sens_cpu_temp[NR_CHIPS];
50 static struct wf_sensor *sens_cpu_volts[NR_CHIPS];
51 static struct wf_sensor *sens_cpu_amps[NR_CHIPS];
52 static struct wf_sensor *backside_temp;
53 static struct wf_sensor *slots_temp;
54 static struct wf_sensor *dimms_temp;
606 static void rm31_new_sensor(struct wf_sensor *sr) in rm31_new_sensor()
Dwindfarm_pm91.c66 static struct wf_sensor *sensor_cpu_power;
67 static struct wf_sensor *sensor_cpu_temp;
68 static struct wf_sensor *sensor_hd_temp;
69 static struct wf_sensor *sensor_slots_power;
577 static void wf_smu_new_sensor(struct wf_sensor *sr) in wf_smu_new_sensor()
620 ((struct wf_sensor *)data)->name); in wf_smu_notify()
Dwindfarm_pm72.c49 static struct wf_sensor *sens_cpu_temp[NR_CHIPS];
50 static struct wf_sensor *sens_cpu_volts[NR_CHIPS];
51 static struct wf_sensor *sens_cpu_amps[NR_CHIPS];
52 static struct wf_sensor *backside_temp;
53 static struct wf_sensor *drives_temp;
716 static void pm72_new_sensor(struct wf_sensor *sr) in pm72_new_sensor()
Dwindfarm_pm81.c134 static struct wf_sensor *sensor_cpu_power;
135 static struct wf_sensor *sensor_cpu_temp;
136 static struct wf_sensor *sensor_hd_temp;
651 static void wf_smu_new_sensor(struct wf_sensor *sr) in wf_smu_new_sensor()
688 ((struct wf_sensor *)data)->name); in wf_smu_notify()
Dwindfarm_smu_sat.c55 struct wf_sensor sens;
147 static int wf_sat_sensor_get(struct wf_sensor *sr, s32 *value) in wf_sat_sensor_get()
189 static void wf_sat_sensor_release(struct wf_sensor *sr) in wf_sat_sensor_release()