Lines Matching defs:sensor

32 /* OCC sensor type and version definitions */
251 * If a sensor reading has expired and couldn't be refreshed,
252 * OCC returns 0xFFFF for that sensor.
296 /* sensor not ready */
341 /* sensor not ready */
876 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_temp, NULL,
889 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_temp, NULL,
896 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
902 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
909 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
921 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_freq, NULL,
926 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_freq, NULL,
933 * Special case for many-attribute power sensor. Split it into
934 * a sensor number per power type, emulating several sensors.
945 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
952 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
959 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
966 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
982 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
988 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
994 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
1000 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
1010 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL,
1015 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL,
1020 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL,
1026 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL,
1031 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL,
1036 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL,
1042 attr->sensor = OCC_INIT_ATTR(attr->name, 0644, show_caps,
1049 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
1056 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
1068 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
1073 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
1078 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
1085 sysfs_attr_init(&occ->attrs[i].sensor.dev_attr.attr);
1086 occ->group.attrs[i] = &occ->attrs[i].sensor.dev_attr.attr;
1096 struct occ_sensor *sensor;
1124 /* match sensor block type */
1126 sensor = &sensors->temp;
1128 sensor = &sensors->freq;
1130 sensor = &sensors->power;
1132 sensor = &sensors->caps;
1134 sensor = &sensors->extended;
1136 dev_warn(occ->bus_dev, "sensor not supported %.4s\n",
1141 sensor->num_sensors = block->header.num_sensors;
1142 sensor->version = block->header.sensor_format;
1143 sensor->data = &block->data;
1181 "failed to setup sensor attrs: %d\n", rc);