Lines Matching defs:sensor
31 /* OCC sensor type and version definitions */
245 * If a sensor reading has expired and couldn't be refreshed,
246 * OCC returns 0xFFFF for that sensor.
290 /* sensor not ready */
818 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_temp, NULL,
831 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_temp, NULL,
838 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
844 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
854 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_freq, NULL,
859 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_freq, NULL,
866 * Special case for many-attribute power sensor. Split it into
867 * a sensor number per power type, emulating several sensors.
878 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
885 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
892 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
899 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
915 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
921 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
927 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
933 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
943 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL,
948 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL,
953 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL,
959 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL,
964 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL,
969 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL,
975 attr->sensor = OCC_INIT_ATTR(attr->name, 0644, show_caps,
982 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
992 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
997 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
1002 attr->sensor = OCC_INIT_ATTR(attr->name, 0444,
1009 sysfs_attr_init(&occ->attrs[i].sensor.dev_attr.attr);
1010 occ->group.attrs[i] = &occ->attrs[i].sensor.dev_attr.attr;
1020 struct occ_sensor *sensor;
1048 /* match sensor block type */
1050 sensor = &sensors->temp;
1052 sensor = &sensors->freq;
1054 sensor = &sensors->power;
1056 sensor = &sensors->caps;
1058 sensor = &sensors->extended;
1060 dev_warn(occ->bus_dev, "sensor not supported %.4s\n",
1065 sensor->num_sensors = block->header.num_sensors;
1066 sensor->version = block->header.sensor_format;
1067 sensor->data = &block->data;
1097 dev_err(occ->bus_dev, "failed to setup sensor attrs: %d\n",