Searched refs:sensor (Results 1 - 25 of 84) sorted by relevance

1234

/netbsd-current/sys/arch/macppc/dev/
H A Dsmusat.c133 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
252 struct smusat_sensor *sensor; local
304 struct smusat_sensor *sensor; local
357 smusat_sensor_read(struct smusat_sensor *sensor, int *value) argument
384 struct smusat_sensor *sensor = node.sysctl_data; local
[all...]
/netbsd-current/usr.sbin/envstat/
H A Denvstat.c254 /* get sensor description */
257 errx(EXIT_FAILURE, "missing sensor description");
266 /* in case we asked for a single sensor
267 * show only the sensor dictionary
377 * Send our sensor properties dictionary to the kernel then.
394 * If we matched a sensor by its description return it, otherwise
414 add_sensors(prop_dictionary_t ndict, prop_dictionary_t dict, const char *dev, const char *sensor) argument
463 if (sensor) {
468 if (!prop_string_equals_string(desc, sensor))
502 sensor_t sensor local
605 sensor_t sensor = NULL; local
797 sensor_t sensor = NULL; local
858 sensor_t sensor; local
[all...]
H A Dconfig.c47 * 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);
500 config_devblock_check_sensorprops(prop_dictionary_t ksdict, prop_dictionary_t csdict, const char *sensor) argument
707 convert_val_to_pnumber(prop_dictionary_t kdict, const char *prop, const char *sensor, const char *value) argument
[all...]
H A Dconfig_yacc.y80 props : sensor
81 | props sensor
86 sensor : SENSOR LBRACE params RBRACE label
H A Dconfig_lex.l51 SENSOR sensor[0-9]+
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/iccsense/
H A Dnouveau_nvkm_subdev_iccsense_base.c75 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
105 nvkm_iccsense_sensor_config(struct nvkm_iccsense *iccsense, struct nvkm_iccsense_sensor *sensor) argument
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...]
H A Dpriv.h22 struct nvkm_iccsense_sensor *sensor; member in struct:nvkm_iccsense_rail
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/therm/
H A Dnouveau_nvkm_subdev_therm_g84.c61 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
148 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local
[all...]
H A Dnouveau_nvkm_subdev_therm_temp.c67 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
200 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; local
[all...]
H A Dnouveau_nvkm_subdev_therm_nv40.c81 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
[all...]
H A Dnouveau_nvkm_subdev_therm_nv50.c137 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
[all...]
H A Dnouveau_nvkm_subdev_therm_ic.c42 struct nvbios_therm_sensor *sensor = &therm->bios_sensor;
60 info->type, info->addr, sensor->offset_constant);
/netbsd-current/sys/dev/ic/
H A Dapple_smc_fan.c245 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_sensor
324 apple_smc_fan_attach_sensor(struct apple_smc_fan_softc *sc, uint8_t fan, const char *name, uint8_t sensor) argument
374 uint8_t fan, sensor; local
421 uint8_t fan, sensor; local
[all...]
H A Dapple_smc_temp.c160 /* 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 local
361 uint32_t sensor; local
[all...]
H A Dug.c347 ug_read(struct ug_softc *sc, unsigned short sensor) argument
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_MI
[all...]
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/
H A Dnouveau_nvkm_subdev_bios_therm.c74 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
72 nvbios_therm_sensor_parse(struct nvkm_bios *bios, enum nvbios_therm_domain domain, struct nvbios_therm_sensor *sensor) argument
[all...]
/netbsd-current/sys/dev/acpi/wmi/
H A Dwmi_hp.c491 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]
643 wmi_hp_sensor_read(struct wmi_hp_softc *sc, envsys_data_t *sensor, int cmd) argument
657 envsys_data_t *sensor; local
[all...]
/netbsd-current/sys/arch/arm/sunxi/
H A Dsunxi_thermal.c30 * Allwinner thermal sensor controller
161 a83t_to_temp(u_int sensor, uint32_t val) argument
193 a64_to_temp(u_int sensor, uint32_t val) argument
222 h3_to_temp(u_int sensor, uint32_t val) argument
228 h3_to_reg(u_int sensor, int val) argument
253 h5_to_temp(u_int sensor, uint32_t val) argument
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) argument
277 base = sensor
384 sunxi_thermal_gettemp(struct sunxi_thermal_softc *sc, int sensor) argument
394 sunxi_thermal_getshut(struct sunxi_thermal_softc *sc, int sensor) argument
405 sunxi_thermal_setshut(struct sunxi_thermal_softc *sc, int sensor, int temp) argument
416 sunxi_thermal_gethyst(struct sunxi_thermal_softc *sc, int sensor) argument
427 sunxi_thermal_getalarm(struct sunxi_thermal_softc *sc, int sensor) argument
438 sunxi_thermal_setalarm(struct sunxi_thermal_softc *sc, int sensor, int temp) argument
[all...]
/netbsd-current/sys/dev/i2c/
H A Dadm1021.c395 aprint_normal(": %s temperature sensor", name);
400 aprint_naive(": Temperature sensor\n");
402 /* Initialize sensor data. */
476 if (edata->sensor == ADMTEMP_INT)
489 if (edata->sensor == ADMTEMP_EXT && sc->sc_ext11) {
512 if (edata->sensor == ADMTEMP_INT)
527 if (edata->sensor == ADMTEMP_INT)
542 if (sc->sc_setdef[edata->sensor] == 0) {
543 sc->sc_setdef[edata->sensor] = 1;
544 sc->sc_highlim[edata->sensor]
[all...]
H A Dw83795g.c273 const struct w83795g_sensor *sensor = &sensors[edata->private]; local
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
320 if (sensor->msb == W83795G_TR5)
322 else if (sensor->msb == W83795G_TR6)
324 else if (sensor
[all...]
/netbsd-current/sys/dev/pci/
H A Dviaenv.c229 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
[all...]
/netbsd-current/sys/dev/sysmon/
H A Dsysmon_envsys.c62 * 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 < sm
2088 envsys_data_t *sensor; local
[all...]
/netbsd-current/sys/dev/isa/
H A Dnsclpcsio_isa.c316 "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");
491 COPYDESCR(sensor[1
[all...]
/netbsd-current/sys/sys/
H A Denvsys.h50 /* 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 driv
132 unsigned int sensor; member in struct:envsys_tre_data
189 unsigned int sensor; /* sensor number */ member in struct:envsys_basic_info
[all...]
/netbsd-current/sys/arch/sparc64/dev/
H A Dpcf8591_envctrl.c127 envsys_data_t *sensor; local
174 sensor = &sc->sc_channels[sc->sc_nchan].chan_sensor;
175 sensor->units = ENVSYS_STEMP;
176 sensor->flags |= ENVSYS_FMONLIMITS;
177 sensor->state = ENVSYS_SINVALID;
178 strlcpy(sensor->desc, desc, sizeof(sensor->desc));
184 "added %s sensor (chan %d) with cpu_xlate\n",
190 "added %s sensor (chan %d) with ps_xlate\n",
196 "added %s sensor (cha
319 ecadc_refresh(struct sysmon_envsys *sme, envsys_data_t *sensor) argument
[all...]

Completed in 308 milliseconds

1234