HomeSort by: relevance | last modified time | path
    Searched defs:sensor (Results 1 - 25 of 44) sorted by relevancy

1 2

  /src/usr.sbin/envstat/
config_yacc.y 59 %token STRING NUMBER SENSOR
61 %token <string> SENSOR STRING SENSOR_PROP DEVICE_PROP
80 props : sensor
81 | props sensor
86 sensor : SENSOR LBRACE params RBRACE label
config_yacc.y 59 %token STRING NUMBER SENSOR
61 %token <string> SENSOR STRING SENSOR_PROP DEVICE_PROP
80 props : sensor
81 | props sensor
86 sensor : SENSOR LBRACE params RBRACE label
config.c 47 * in a sensor.
84 (void)printf("'%s' is not a valid sensor in the "
117 * Marks sensor's dictionary to say that it's the last property
359 const char *sensor; local in function:config_devblock_add
372 sensor = prop_string_value(lindex);
379 * Get the correct sensor's dictionary from kernel's
392 config_errmsg(SENSOR_ERR, sensor, key);
395 config_devblock_check_sensorprops(sdict, sb->dict, sensor);
502 const char *sensor)
519 config_errmsg(VALUE_ERR, "rfact", sensor);
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/iccsense/
priv.h 22 struct nvkm_iccsense_sensor *sensor; member in struct:nvkm_iccsense_rail
priv.h 22 struct nvkm_iccsense_sensor *sensor; member in struct:nvkm_iccsense_rail
nouveau_nvkm_subdev_iccsense_base.c 75 return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr,
98 return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr,
106 struct nvkm_iccsense_sensor *sensor)
109 nvkm_trace(subdev, "write config of extdev %i: 0x%04x\n", sensor->id, sensor->config);
110 nv_wr16i2cr(sensor->i2c, sensor->addr, 0x00, sensor->config)
139 struct nvkm_iccsense_sensor *sensor, *tmps; local in function:nvkm_iccsense_dtor
162 struct nvkm_iccsense_sensor *sensor; local in function:nvkm_iccsense_create_sensor
212 struct nvkm_iccsense_sensor *sensor; local in function:nvkm_iccsense_get_sensor
249 struct nvkm_iccsense_sensor *sensor; local in function:nvkm_iccsense_oneinit
306 struct nvkm_iccsense_sensor *sensor; local in function:nvkm_iccsense_init
    [all...]
nouveau_nvkm_subdev_iccsense_base.c 75 return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr,
98 return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr,
106 struct nvkm_iccsense_sensor *sensor)
109 nvkm_trace(subdev, "write config of extdev %i: 0x%04x\n", sensor->id, sensor->config);
110 nv_wr16i2cr(sensor->i2c, sensor->addr, 0x00, sensor->config)
139 struct nvkm_iccsense_sensor *sensor, *tmps; local in function:nvkm_iccsense_dtor
162 struct nvkm_iccsense_sensor *sensor; local in function:nvkm_iccsense_create_sensor
212 struct nvkm_iccsense_sensor *sensor; local in function:nvkm_iccsense_get_sensor
249 struct nvkm_iccsense_sensor *sensor; local in function:nvkm_iccsense_oneinit
306 struct nvkm_iccsense_sensor *sensor; local in function:nvkm_iccsense_init
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/therm/
nouveau_nvkm_subdev_therm_nv50.c 137 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local in function:nv50_temp_get
142 /* if the slope or the offset is unset, do no use the sensor */
143 if (!sensor->slope_div || !sensor->slope_mult ||
144 !sensor->offset_num || !sensor->offset_den)
147 core_temp = core_temp * sensor->slope_mult / sensor->slope_div;
148 core_temp = core_temp + sensor->offset_num / sensor->offset_den
    [all...]
nouveau_nvkm_subdev_therm_nv50.c 137 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local in function:nv50_temp_get
142 /* if the slope or the offset is unset, do no use the sensor */
143 if (!sensor->slope_div || !sensor->slope_mult ||
144 !sensor->offset_num || !sensor->offset_den)
147 core_temp = core_temp * sensor->slope_mult / sensor->slope_div;
148 core_temp = core_temp + sensor->offset_num / sensor->offset_den
    [all...]
nouveau_nvkm_subdev_therm_g84.c 61 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local in function:g84_therm_program_alarms
66 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags);
72 nvkm_wr32(device, 0x20484, sensor->thrs_shutdown.hysteresis);
73 nvkm_wr32(device, 0x20480, sensor->thrs_shutdown.temp);
76 nvkm_wr32(device, 0x204c4, sensor->thrs_fan_boost.temp);
79 nvkm_wr32(device, 0x204c0, sensor->thrs_critical.temp);
82 nvkm_wr32(device, 0x20414, sensor->thrs_down_clock.temp);
83 spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags);
87 sensor->thrs_fan_boost.temp,
88 sensor->thrs_fan_boost.hysteresis
148 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local in function:g84_therm_intr
    [all...]
nouveau_nvkm_subdev_therm_nv40.c 81 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local in function:nv40_temp_get
94 /* if the slope or the offset is unset, do no use the sensor */
95 if (!sensor->slope_div || !sensor->slope_mult ||
96 !sensor->offset_num || !sensor->offset_den)
99 core_temp = core_temp * sensor->slope_mult / sensor->slope_div;
100 core_temp = core_temp + sensor->offset_num / sensor->offset_den
    [all...]
nouveau_nvkm_subdev_therm_g84.c 61 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local in function:g84_therm_program_alarms
66 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags);
72 nvkm_wr32(device, 0x20484, sensor->thrs_shutdown.hysteresis);
73 nvkm_wr32(device, 0x20480, sensor->thrs_shutdown.temp);
76 nvkm_wr32(device, 0x204c4, sensor->thrs_fan_boost.temp);
79 nvkm_wr32(device, 0x204c0, sensor->thrs_critical.temp);
82 nvkm_wr32(device, 0x20414, sensor->thrs_down_clock.temp);
83 spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags);
87 sensor->thrs_fan_boost.temp,
88 sensor->thrs_fan_boost.hysteresis
148 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local in function:g84_therm_intr
    [all...]
nouveau_nvkm_subdev_therm_nv40.c 81 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local in function:nv40_temp_get
94 /* if the slope or the offset is unset, do no use the sensor */
95 if (!sensor->slope_div || !sensor->slope_mult ||
96 !sensor->offset_num || !sensor->offset_den)
99 core_temp = core_temp * sensor->slope_mult / sensor->slope_div;
100 core_temp = core_temp + sensor->offset_num / sensor->offset_den
    [all...]
nouveau_nvkm_subdev_therm_temp.c 67 therm->sensor.alarm_state[thrs] = st;
75 return therm->sensor.alarm_state[thrs];
170 container_of(alarm, struct nvkm_therm, sensor.therm_poll_alarm);
171 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local in function:alarm_timer_callback
175 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags);
177 nvkm_therm_threshold_hyst_polling(therm, &sensor->thrs_fan_boost,
181 &sensor->thrs_down_clock,
184 nvkm_therm_threshold_hyst_polling(therm, &sensor->thrs_critical,
187 nvkm_therm_threshold_hyst_polling(therm, &sensor->thrs_shutdown,
190 spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags)
200 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local in function:nvkm_therm_program_alarms_polling
    [all...]
nouveau_nvkm_subdev_therm_temp.c 67 therm->sensor.alarm_state[thrs] = st;
75 return therm->sensor.alarm_state[thrs];
170 container_of(alarm, struct nvkm_therm, sensor.therm_poll_alarm);
171 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local in function:alarm_timer_callback
175 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags);
177 nvkm_therm_threshold_hyst_polling(therm, &sensor->thrs_fan_boost,
181 &sensor->thrs_down_clock,
184 nvkm_therm_threshold_hyst_polling(therm, &sensor->thrs_critical,
187 nvkm_therm_threshold_hyst_polling(therm, &sensor->thrs_shutdown,
190 spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags)
200 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local in function:nvkm_therm_program_alarms_polling
    [all...]
  /src/sys/dev/ic/
apple_smc_temp.c 160 /* Release the keys and free the memory for sensor records. */
181 /* Sanity-check the sensor number out of paranoia. */
182 if (edata->sensor >= sc->sc_nsensors) {
183 aprint_error_dev(sc->sc_dev, "unknown sensor %"PRIu32"\n",
184 edata->sensor);
188 /* Read the raw temperature sensor value. */
189 key = sc->sc_sensors[edata->sensor].sensor_key;
194 "failed to read temperature sensor %"PRIu32" (%s): %d\n",
195 edata->sensor, apple_smc_key_name(key), error);
325 const uint32_t sensor = fss->fss_sensor local in function:apple_smc_temp_find_sensors_scanner
361 uint32_t sensor; local in function:apple_smc_temp_release_keys
    [all...]
apple_smc_temp.c 160 /* Release the keys and free the memory for sensor records. */
181 /* Sanity-check the sensor number out of paranoia. */
182 if (edata->sensor >= sc->sc_nsensors) {
183 aprint_error_dev(sc->sc_dev, "unknown sensor %"PRIu32"\n",
184 edata->sensor);
188 /* Read the raw temperature sensor value. */
189 key = sc->sc_sensors[edata->sensor].sensor_key;
194 "failed to read temperature sensor %"PRIu32" (%s): %d\n",
195 edata->sensor, apple_smc_key_name(key), error);
325 const uint32_t sensor = fss->fss_sensor local in function:apple_smc_temp_find_sensors_scanner
361 uint32_t sensor; local in function:apple_smc_temp_release_keys
    [all...]
apple_smc_fan.c 245 uint8_t fan, sensor; local in function:apple_smc_fan_attach_sensors
258 /* Create an array of fan sensor records. */
300 for (sensor = 0; sensor < __arraycount(fan_sensors); sensor++)
301 apple_smc_fan_attach_sensor(sc, fan, name, sensor);
325 const char *name, uint8_t sensor)
333 KASSERT(sensor < __arraycount(fan_sensors));
335 /* Format the name of the key for this fan sensor. */
337 (int)sensor, fan_sensors[sensor].fs_key_suffix)
374 uint8_t fan, sensor; local in function:apple_smc_fan_refresh
421 uint8_t fan, sensor; local in function:apple_smc_fan_release_keys
    [all...]
apple_smc_fan.c 245 uint8_t fan, sensor; local in function:apple_smc_fan_attach_sensors
258 /* Create an array of fan sensor records. */
300 for (sensor = 0; sensor < __arraycount(fan_sensors); sensor++)
301 apple_smc_fan_attach_sensor(sc, fan, name, sensor);
325 const char *name, uint8_t sensor)
333 KASSERT(sensor < __arraycount(fan_sensors));
335 /* Format the name of the key for this fan sensor. */
337 (int)sensor, fan_sensors[sensor].fs_key_suffix)
374 uint8_t fan, sensor; local in function:apple_smc_fan_refresh
421 uint8_t fan, sensor; local in function:apple_smc_fan_release_keys
    [all...]
  /src/sys/dev/sysmon/
sysmon_envsys_events.c 139 * 2. Capacity limits are permitted only if the sensor has the
145 * Note that it permissible for a sensor to have value limits
181 * We found an existing event for this sensor. Make
186 DPRINTF(("%s: dev %s sensor %s: event type %d exists\n",
233 DPRINTF(("%s: dev %s sensor %s: new event\n",
240 /* Initialize sensor type and previously-sent state */
291 DPRINTF(("%s: (%s) event [sensor=%s type=%d] "
306 DPRINTF(("%s: (%s) event registered (sensor=%s snum=%d type=%d "
310 edata->sensor, see->see_type, edata->limits.sel_critmin,
398 sme_event_unregister(struct sysmon_envsys *sme, const char *sensor, int type
1067 bool dev = false, sensor = false; local in function:sme_acadapter_check
    [all...]
sysmon_envsys_events.c 139 * 2. Capacity limits are permitted only if the sensor has the
145 * Note that it permissible for a sensor to have value limits
181 * We found an existing event for this sensor. Make
186 DPRINTF(("%s: dev %s sensor %s: event type %d exists\n",
233 DPRINTF(("%s: dev %s sensor %s: new event\n",
240 /* Initialize sensor type and previously-sent state */
291 DPRINTF(("%s: (%s) event [sensor=%s type=%d] "
306 DPRINTF(("%s: (%s) event registered (sensor=%s snum=%d type=%d "
310 edata->sensor, see->see_type, edata->limits.sel_critmin,
398 sme_event_unregister(struct sysmon_envsys *sme, const char *sensor, int type
1067 bool dev = false, sensor = false; local in function:sme_acadapter_check
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/subdev/
therm.h 84 } sensor; member in struct:nvkm_therm
therm.h 84 } sensor; member in struct:nvkm_therm
  /src/sys/dev/i2c/
w83795g.c 273 const struct w83795g_sensor *sensor = &sensors[edata->private]; local in function:w83795g_refresh
276 sensor = &sensors[edata->private];
280 iic_smbus_read_byte(sc->sc_tag, sc->sc_addr, sensor->msb, &msb, 0);
286 if (sensor->msb == W83795G_3VDD ||
287 sensor->msb == W83795G_3VSB ||
288 sensor->msb == W83795G_VBAT)
310 const struct w83795g_sensor *sensor = &sensors[edata->private]; local in function:w83795g_get_limits
320 if (sensor->msb == W83795G_TR5)
322 else if (sensor->msb == W83795G_TR6)
324 else if (sensor->msb >= W83795G_DTS1
    [all...]
  /src/sys/arch/macppc/dev/
smusat.c 133 struct smusat_sensor *sensor; local in function:smusat_attach
152 sensor = &sc->sc_sensors[sc->sc_num_sensors];
153 sensor->sc = sc;
155 memset(sensor->location, 0, sizeof(sensor->location));
156 OF_getprop(node, "location", sensor->location,
157 sizeof(sensor->location));
159 if (OF_getprop(node, "reg", &sensor->reg,
160 sizeof(sensor->reg)) <= 0)
163 if ((sensor->reg < 0x30) || (sensor->reg > 0x37)
252 struct smusat_sensor *sensor; local in function:smusat_setup_sme
304 struct smusat_sensor *sensor; local in function:smusat_sme_refresh
384 struct smusat_sensor *sensor = node.sysctl_data; local in function:smusat_sysctl_sensor_value
    [all...]

Completed in 30 milliseconds

1 2