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

1 2 3 4 5

  /src/usr.sbin/envstat/
envstat.c 89 /* Sensor statistics */
267 /* get sensor description */
270 errx(EXIT_FAILURE, "missing sensor description");
279 /* in case we asked for a single sensor
280 * show only the sensor dictionary
392 * Send our sensor properties dictionary to the kernel then.
409 * If we matched a sensor by its description return it, otherwise
429 add_sensors(prop_dictionary_t ndict, prop_dictionary_t dict, const char *dev, const char *sensor)
478 if (sensor) {
483 if (!prop_string_equals_string(desc, sensor))
517 sensor_t sensor = NULL; local
629 sensor_t sensor = NULL; local
833 sensor_t sensor = NULL; local
898 sensor_t sensor; local
1363 sensor_t sensor; local
    [all...]
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
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...]
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_lex.l 51 SENSOR sensor[0-9]+
66 {SENSOR} { yylval.string = strdup(yytext); return SENSOR; }
  /src/sys/arch/macppc/dev/
smusat.c 133 struct smusat_sensor *sensor; local
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
304 struct smusat_sensor *sensor; local
384 struct smusat_sensor *sensor = node.sysctl_data; local
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/iccsense/
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
162 struct nvkm_iccsense_sensor *sensor; local
212 struct nvkm_iccsense_sensor *sensor; local
249 struct nvkm_iccsense_sensor *sensor; local
306 struct nvkm_iccsense_sensor *sensor; local
    [all...]
priv.h 22 struct nvkm_iccsense_sensor *sensor; member in struct:nvkm_iccsense_rail
  /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/therm/
nouveau_nvkm_subdev_therm_g84.c 61 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local
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
    [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
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
    [all...]
nouveau_nvkm_subdev_therm_nv40.c 81 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local
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_nv50.c 137 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local
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_ic.c 42 struct nvbios_therm_sensor *sensor = &therm->bios_sensor;
60 info->type, info->addr, sensor->offset_constant);
  /src/sys/dev/ic/
apple_smc_fan.c 245 uint8_t fan, sensor; local
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
421 uint8_t fan, sensor; local
    [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
361 uint32_t sensor; local
    [all...]
ug.c 347 ug_read(struct ug_softc *sc, unsigned short sensor)
351 bank = (sensor & 0xFF00) >> 8;
352 sens = sensor & 0x00FF;
366 /* Finally read the sensor */
444 if (edata->sensor < UG_VOLT_MIN - 1) /* CPU and SYS Temps */
445 edata->value_cur = ug_read(sc, UG_CPUTEMP + edata->sensor)
447 else if (edata->sensor == 2) /* PWMTEMP */
453 #define VOLT_SENSOR UG_HTV + edata->sensor - UG_VOLT_MIN
456 if ((edata->sensor >= UG_VOLT_MIN) && (edata->sensor < UG_FAN_MIN))
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/
nouveau_nvkm_subdev_bios_therm.c 74 struct nvbios_therm_sensor *sensor)
101 sensor->offset_constant = offset;
107 sensor->thrs_critical.temp = (value & 0xff0) >> 4;
108 sensor->thrs_critical.hysteresis = value & 0xf;
114 sensor->thrs_down_clock.temp = (value & 0xff0) >> 4;
115 sensor->thrs_down_clock.hysteresis = value & 0xf;
121 sensor->thrs_fan_boost.temp = (value & 0xff0) >> 4;
122 sensor->thrs_fan_boost.hysteresis = value & 0xf;
128 sensor->offset_num = value;
133 sensor->offset_den = value
    [all...]
  /src/sys/dev/acpi/wmi/
wmi_hp.c 491 int i, sensor[3]; local
500 sensor[0] = WMI_HP_SWITCH_WLAN;
501 sensor[1] = WMI_HP_SWITCH_BT;
502 sensor[2] = WMI_HP_SWITCH_WWAN;
510 if ((sc->sc_val & sensor[i]) == 0)
527 int sensor; local
539 sensor = WMI_HP_SENSOR_HDDTEMP;
540 (void)strlcpy(sc->sc_sensor[sensor].desc, "hddtemp",
542 sc->sc_sensor[sensor].state = ENVSYS_SVALID;
543 sc->sc_sensor[sensor].units = ENVSYS_STEMP
657 envsys_data_t *sensor; local
    [all...]
  /src/sys/arch/arm/sunxi/
sunxi_thermal.c 30 * Allwinner thermal sensor controller
161 a83t_to_temp(u_int sensor, uint32_t val)
193 a64_to_temp(u_int sensor, uint32_t val)
222 h3_to_temp(u_int sensor, uint32_t val)
228 h3_to_reg(u_int sensor, int val)
253 h5_to_temp(u_int sensor, uint32_t val)
261 base = sensor == 0 ? H5_TEMP_BASE_H_0 : H5_TEMP_BASE_H_1;
262 mul = sensor == 0 ? H5_TEMP_MUL_H_0 : H5_TEMP_MUL_H_1;
269 h5_to_reg(u_int sensor, int val)
277 base = sensor == 0 ? H5_TEMP_BASE_H_0 : H5_TEMP_BASE_H_1
    [all...]
  /src/sys/dev/i2c/
adm1021.c 391 aprint_normal(": %s temperature sensor", name);
396 aprint_naive(": Temperature sensor\n");
398 /* Initialize sensor data. */
408 /* Override default sensor names if the properties have been set. */
468 if (edata->sensor == ADMTEMP_INT)
481 if (edata->sensor == ADMTEMP_EXT && sc->sc_ext11) {
504 if (edata->sensor == ADMTEMP_INT)
519 if (edata->sensor == ADMTEMP_INT)
534 if (sc->sc_setdef[edata->sensor] == 0) {
535 sc->sc_setdef[edata->sensor] = 1
    [all...]
adm1026.c 109 /* Maximum number of each type of sensor */
117 /* Fan/temp/volt sensor offsets */
497 /* Set up sysmon sensor */
510 map = sc->sc_sensor[snum].sensor;
556 /* Set up sysmon sensor */
570 map = sc->sc_sensor[snum].sensor;
608 /* Set up sysmon sensor */
620 map = sc->sc_sensor[snum].sensor;
632 if (edata->sensor < sc->sc_nfans)
634 else if (edata->sensor < sc->sc_nfans + sc->sc_ntemps
    [all...]
  /src/sys/arch/x86/pci/
pchtemp.c 138 envsys_data_t *sensor = &sc->sc_sensor; local
141 sensor->units = ENVSYS_STEMP;
142 sensor->state = ENVSYS_SINVALID;
143 sensor->flags = 0;
144 (void)snprintf(sensor->desc, sizeof(sensor->desc), "%s temperature",
148 error = sysmon_envsys_sensor_attach(sme, sensor);
181 aprint_normal(": Intel PCH Temperature Sensor\n");
190 /* try to enable the sensor if it isn't already enabled */
196 "can't enable the sensor as it's locked\n")
    [all...]
  /src/sys/dev/pci/
viaenv.c 229 if (i == 0 && old_sensor == edata->sensor)
232 old_sensor = edata->sensor;
235 if (edata->sensor == 0) {
241 } else if (edata->sensor == 1) {
247 } else if (edata->sensor == 2) {
253 } else if (edata->sensor > 2 && edata->sensor < 5) {
261 VIAENV_FAN1 + edata->sensor - 3);
262 DPRINTF(("FAN%d = %d / %d\n", edata->sensor - 3, v,
263 sc->sc_fan_div[edata->sensor - 3]))
    [all...]
  /src/sys/dev/sysmon/
sysmon_envsys.c 62 * Environmental sensor framework for sysmon, exported to userland
379 sme = sysmon_envsys_find_40(tred->sensor);
383 oidx = tred->sensor;
384 tred->sensor = SME_SENSOR_IDX(sme, tred->sensor);
386 DPRINTFOBJ(("%s: sensor=%d oidx=%d dev=%s nsensors=%d\n",
387 __func__, tred->sensor, oidx, sme->sme_name,
391 if (edata->sensor == tred->sensor) {
403 if (tred->sensor < sme->sme_nsensors)
2088 envsys_data_t *sensor; local
    [all...]
  /src/sys/dev/isa/
nsclpcsio_isa.c 81 #define SIO_LDN_TMS 0x0E /* Temperature Sensor (TMS) */
316 "could not attach sensor %d", i);
473 envsys_data_t *sensor = &sc->sc_sensor[SIO_VLM_OFF]; local
478 sensor[i].units = ENVSYS_SVOLTS_DC;
483 COPYDESCR(sensor[i].desc, tmp);
486 COPYDESCR(sensor[7 ].desc, "VSB");
487 COPYDESCR(sensor[8 ].desc, "VDD");
488 COPYDESCR(sensor[9 ].desc, "VBAT");
489 COPYDESCR(sensor[10].desc, "AVDD");
490 COPYDESCR(sensor[11].desc, "TS1")
    [all...]
  /src/sys/sys/
envsys.h 50 /* sensor units */
72 /* sensor states */
74 ENVSYS_SVALID = 10, /* sensor state is valid */
75 ENVSYS_SINVALID, /* sensor state is invalid */
76 ENVSYS_SCRITICAL, /* sensor state is critical */
77 ENVSYS_SCRITUNDER, /* sensor state is critical under */
78 ENVSYS_SCRITOVER, /* sensor state is critical over */
79 ENVSYS_SWARNUNDER, /* sensor state is warn under */
80 ENVSYS_SWARNOVER /* sensor state is warn over */
83 /* sensor drive states *
132 unsigned int sensor; member in struct:envsys_tre_data
189 unsigned int sensor; \/* sensor number *\/ member in struct:envsys_basic_info
    [all...]

Completed in 337 milliseconds

1 2 3 4 5