Lines Matching full:sensors

4  * temperature/power/energy sensors and capping functionality.
138 /* Function and buffer to update sensors */
143 * AEM 1.x sensors:
144 * Available sensors:
148 * AEM 2.x sensors:
151 * Two temperature sensors
156 struct sensor_device_attribute sensors[AEM_NUM_SENSORS]; member
210 /* These are used to query sensors */
441 /* Update all AEM1 sensors */
454 /* Update all AEM2 sensors */
580 /* Find sensors */ in aem_init_aem1_inst()
720 /* Find sensors */ in aem_init_aem2_inst()
907 /* Discover sensors on an AEM device */
913 struct sensor_device_attribute *sensors = data->sensors; in aem_register_sensors() local
916 /* Set up read-only sensors */ in aem_register_sensors()
918 sysfs_attr_init(&sensors->dev_attr.attr); in aem_register_sensors()
919 sensors->dev_attr.attr.name = ro->label; in aem_register_sensors()
920 sensors->dev_attr.attr.mode = 0444; in aem_register_sensors()
921 sensors->dev_attr.show = ro->show; in aem_register_sensors()
922 sensors->index = ro->index; in aem_register_sensors()
924 err = device_create_file(dev, &sensors->dev_attr); in aem_register_sensors()
926 sensors->dev_attr.attr.name = NULL; in aem_register_sensors()
929 sensors++; in aem_register_sensors()
933 /* Set up read-write sensors */ in aem_register_sensors()
935 sysfs_attr_init(&sensors->dev_attr.attr); in aem_register_sensors()
936 sensors->dev_attr.attr.name = rw->label; in aem_register_sensors()
937 sensors->dev_attr.attr.mode = 0644; in aem_register_sensors()
938 sensors->dev_attr.show = rw->show; in aem_register_sensors()
939 sensors->dev_attr.store = rw->set; in aem_register_sensors()
940 sensors->index = rw->index; in aem_register_sensors()
942 err = device_create_file(dev, &sensors->dev_attr); in aem_register_sensors()
944 sensors->dev_attr.attr.name = NULL; in aem_register_sensors()
947 sensors++; in aem_register_sensors()
962 /* sysfs support functions for AEM2 sensors */
988 /* Remove sensors attached to an AEM device */
994 if (!data->sensors[i].dev_attr.attr.name) in aem_remove_sensors()
997 &data->sensors[i].dev_attr); in aem_remove_sensors()
1008 /* Description of AEM1 sensors */
1020 /* Description of AEM2 sensors */