Lines Matching refs:sens
56 struct wf_sensor sens; member
58 #define to_smu_ads(c) container_of(c, struct smu_ad_sensor, sens)
221 ads->sens.ops = &smu_cputemp_ops; in smu_ads_create()
222 ads->sens.name = "cpu-temp"; in smu_ads_create()
230 ads->sens.ops = &smu_cpuamp_ops; in smu_ads_create()
231 ads->sens.name = "cpu-current"; in smu_ads_create()
239 ads->sens.ops = &smu_cpuvolt_ops; in smu_ads_create()
240 ads->sens.name = "cpu-voltage"; in smu_ads_create()
248 ads->sens.ops = &smu_slotspow_ops; in smu_ads_create()
249 ads->sens.name = "slots-power"; in smu_ads_create()
263 if (wf_register_sensor(&ads->sens)) in smu_ads_create()
281 struct wf_sensor sens; member
283 #define to_smu_cpu_power(c) container_of(c, struct smu_cpu_power_sensor, sens)
346 pow->sens.ops = &smu_cpu_power_ops; in smu_cpu_power_create()
347 pow->sens.name = "cpu-power"; in smu_cpu_power_create()
375 if (wf_register_sensor(&pow->sens)) in smu_cpu_power_create()
444 if (!strcmp(ads->sens.name, "cpu-voltage")) in smu_sensors_init()
446 else if (!strcmp(ads->sens.name, "cpu-current")) in smu_sensors_init()
454 smu_cpu_power = smu_cpu_power_create(&volt_sensor->sens, in smu_sensors_init()
455 &curr_sensor->sens); in smu_sensors_init()
466 wf_unregister_sensor(&smu_cpu_power->sens); in smu_sensors_exit()
472 wf_unregister_sensor(&ads->sens); in smu_sensors_exit()