Home
last modified time | relevance | path

Searched refs:sensors (Results 1 – 25 of 196) sorted by relevance

12345678

/netbsd-src/sys/dev/ic/
H A Dnslm7x.c2248 lmsc->sensors[i].state = ENVSYS_SINVALID; in lm_attach()
2250 &lmsc->sensors[i])) != 0) { in lm_attach()
2553 const struct lm_sensor *sensors; in wb_attach() local
2580 sensors = prod->sensors; in wb_attach()
2591 sensors = lm78_sensors; in wb_attach()
2602 if (sensors != NULL) { in wb_attach()
2603 lm_setup_sensors(sc, sensors); in wb_attach()
2645 lm_setup_sensors(struct lm_softc *sc, const struct lm_sensor *sensors) in lm_setup_sensors() argument
2649 for (i = 0; sensors[i].desc; i++) { in lm_setup_sensors()
2650 sc->sensors[i].units = sensors[i].type; in lm_setup_sensors()
[all …]
H A Dapple_smc_fan.c75 } sensors[__arraycount(fan_sensors)]; member
341 keyp = &sc->sc_fans[fan].sensors[sensor].sensor_key; in apple_smc_fan_attach_sensor()
348 edata = &sc->sc_fans[fan].sensors[sensor].sensor_data; in apple_smc_fan_attach_sensor()
394 KASSERT(edata == &sc->sc_fans[fan].sensors[sensor].sensor_data); in apple_smc_fan_refresh()
400 key = sc->sc_fans[fan].sensors[sensor].sensor_key; in apple_smc_fan_refresh()
428 &sc->sc_fans[fan].sensors[sensor].sensor_key; in apple_smc_fan_release_keys()
H A Dnslm7xvar.h163 envsys_data_t sensors[WB_MAX_SENSORS]; member
190 const struct lm_sensor *sensors; member
H A Dapple_smc_temp.c280 void *const sensors = kmem_alloc((fss.fss_sensor * in apple_smc_temp_find_sensors() local
283 (void)memcpy(sensors, sc->sc_sensors, in apple_smc_temp_find_sensors()
286 sc->sc_sensors = sensors; in apple_smc_temp_find_sensors()
/netbsd-src/sys/arch/arm/sunxi/
H A Dsunxi_thermal.c147 struct sunxi_thermal_sensor sensors[MAX_SENSORS]; member
168 .sensors = {
200 .sensors = {
235 .sensors = {
286 .sensors = {
618 if (sc->conf->sensors[i].init_alarm > 0) in sunxi_thermal_attach()
620 sc->conf->sensors[i].init_alarm); in sunxi_thermal_attach()
621 if (sc->conf->sensors[i].init_shut > 0) in sunxi_thermal_attach()
623 sc->conf->sensors[i].init_shut); in sunxi_thermal_attach()
639 strlcpy(sc->data[i].desc, sc->conf->sensors[i].desc, in sunxi_thermal_attach()
[all …]
/netbsd-src/usr.sbin/envstat/
H A Denvstat.c108 static char *mydevname, *sensors; variable
175 sensors = optarg; in main()
212 if (mydevname && sensors) in main()
227 if (mydevname || sensors) { in main()
238 if (sensors) { in main()
243 s = strdup(sensors); in main()
581 if (sensors) in parse_dictionary()
582 rval = check_sensors(sensors); in parse_dictionary()
585 if (interval && ((flags & ENVSYS_NFLAG) == 0 || sensors == NULL)) in parse_dictionary()
900 if (!sensors || (!header_passes && sensors) || in print_sensors()
[all …]
/netbsd-src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/ti/
H A Dk3-am654-industrial-thermal.dtsi8 thermal-sensors = <&wkup_vtm0 0>;
22 thermal-sensors = <&wkup_vtm0 1>;
36 thermal-sensors = <&wkup_vtm0 2>;
/netbsd-src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/
H A Dexynos5422-odroidhc1.dts32 thermal-sensors = <&tmu_cpu0 0>;
87 thermal-sensors = <&tmu_cpu1 0>;
131 thermal-sensors = <&tmu_cpu2 0>;
175 thermal-sensors = <&tmu_cpu3 0>;
219 thermal-sensors = <&tmu_gpu 0>;
H A Dqcom-ipq8064.dtsi55 thermal-sensors = <&tsens 0>;
75 thermal-sensors = <&tsens 1>;
95 thermal-sensors = <&tsens 2>;
115 thermal-sensors = <&tsens 3>;
135 thermal-sensors = <&tsens 4>;
155 thermal-sensors = <&tsens 5>;
175 thermal-sensors = <&tsens 6>;
195 thermal-sensors = <&tsens 7>;
215 thermal-sensors = <&tsens 8>;
235 thermal-sensors = <&tsens 9>;
[all …]
H A Dexynos5422-odroidxu3-common.dtsi53 thermal-sensors = <&tmu_cpu0 0>;
142 thermal-sensors = <&tmu_cpu1 0>;
215 thermal-sensors = <&tmu_cpu2 0>;
288 thermal-sensors = <&tmu_cpu3 0>;
361 thermal-sensors = <&tmu_gpu 0>;
H A Dqcom-apq8084.dtsi109 thermal-sensors = <&tsens 5>;
129 thermal-sensors = <&tsens 6>;
149 thermal-sensors = <&tsens 7>;
169 thermal-sensors = <&tsens 8>;
261 #qcom,sensors = <11>;
H A Dexynos5410.dtsi237 thermal-sensors = <&tmu_cpu0>;
241 thermal-sensors = <&tmu_cpu1>;
245 thermal-sensors = <&tmu_cpu2>;
249 thermal-sensors = <&tmu_cpu3>;
/netbsd-src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/qcom/
H A Dsm8350.dtsi771 #qcom,sensors = <15>;
782 #qcom,sensors = <14>;
1414 thermal-sensors = <&tsens0 1>;
1458 thermal-sensors = <&tsens0 2>;
1502 thermal-sensors = <&tsens0 3>;
1546 thermal-sensors = <&tsens0 4>;
1590 thermal-sensors = <&tsens0 7>;
1634 thermal-sensors = <&tsens0 8>;
1678 thermal-sensors = <&tsens0 9>;
1722 thermal-sensors = <&tsens0 10>;
[all …]
H A Dsc7280.dtsi1450 #qcom,sensors = <15>;
1461 #qcom,sensors = <12>;
1867 thermal-sensors = <&tsens0 1>;
1911 thermal-sensors = <&tsens0 2>;
1955 thermal-sensors = <&tsens0 3>;
1999 thermal-sensors = <&tsens0 4>;
2043 thermal-sensors = <&tsens0 7>;
2087 thermal-sensors = <&tsens0 8>;
2131 thermal-sensors = <&tsens0 9>;
2175 thermal-sensors = <&tsens0 10>;
[all …]
H A Dmsm8998.dtsi508 thermal-sensors = <&tsens0 1>;
529 thermal-sensors = <&tsens0 2>;
550 thermal-sensors = <&tsens0 3>;
571 thermal-sensors = <&tsens0 4>;
592 thermal-sensors = <&tsens0 7>;
613 thermal-sensors = <&tsens0 8>;
634 thermal-sensors = <&tsens0 9>;
655 thermal-sensors = <&tsens0 10>;
676 thermal-sensors = <&tsens0 12>;
691 thermal-sensors = <&tsens0 13>;
[all …]
H A Dsm8250-mtp.dts31 thermal-sensors = <&pm8150l_adc_tm 0>;
45 thermal-sensors = <&pm8150b_adc_tm 0>;
59 thermal-sensors = <&pm8150_adc_tm 2>;
73 thermal-sensors = <&pm8150l_adc_tm 2>;
87 thermal-sensors = <&pm8150l_adc_tm 1>;
101 thermal-sensors = <&pm8150_adc_tm 1>;
115 thermal-sensors = <&pm8150_adc_tm 0>;
H A Dsm8150.dtsi3184 #qcom,sensors = <16>;
3195 #qcom,sensors = <8>;
3567 thermal-sensors = <&tsens0 1>;
3611 thermal-sensors = <&tsens0 2>;
3655 thermal-sensors = <&tsens0 3>;
3699 thermal-sensors = <&tsens0 4>;
3743 thermal-sensors = <&tsens0 7>;
3787 thermal-sensors = <&tsens0 8>;
3831 thermal-sensors = <&tsens0 9>;
3875 thermal-sensors = <&tsens0 10>;
[all …]
/netbsd-src/sys/dev/i2c/
H A Dw83795g.c52 } sensors[NUM_SENSORS] = { variable
225 sensors[i].en_reg, &en_reg, 0); in w83795g_attach()
227 if ((en_reg & sensors[i].en_mask) != sensors[i].en_bits) in w83795g_attach()
230 strcpy(sc->sc_sensors[i].desc, sensors[i].desc); in w83795g_attach()
231 sc->sc_sensors[i].units = sensors[i].type; in w83795g_attach()
273 const struct w83795g_sensor *sensor = &sensors[edata->private]; in w83795g_refresh()
276 sensor = &sensors[edata->private]; in w83795g_refresh()
310 const struct w83795g_sensor *sensor = &sensors[edata->private]; in w83795g_get_limits()
H A Dsmscmon.c231 if (sysmon_envsys_sensor_attach(sc->sc_sme, &sc->sensors[i])) { in smscmon_attach()
285 strlcpy(sc->sensors[i].desc, sens[i].desc, in smscmon_sensors_setup()
286 sizeof(sc->sensors[i].desc)); in smscmon_sensors_setup()
287 sc->sensors[i].units = sens[i].type; in smscmon_sensors_setup()
288 sc->sensors[i].state = ENVSYS_SINVALID; in smscmon_sensors_setup()
/netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/iccsense/
H A Dnouveau_nvkm_subdev_iccsense_base.c142 list_for_each_entry_safe(sensor, tmps, &iccsense->sensors, head) { in nvkm_iccsense_dtor()
200 list_add_tail(&sensor->head, &iccsense->sensors); in nvkm_iccsense_create_sensor()
213 list_for_each_entry(sensor, &iccsense->sensors, head) { in nvkm_iccsense_get_sensor()
307 list_for_each_entry(sensor, &iccsense->sensors, head) in nvkm_iccsense_init()
332 INIT_LIST_HEAD(&(*iccsense)->sensors); in nvkm_iccsense_new_()
/netbsd-src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/exynos/
H A Dexynos5433-tmu.dtsi13 thermal-sensors = <&tmu_atlas0>;
101 thermal-sensors = <&tmu_atlas1>;
144 thermal-sensors = <&tmu_g3d>;
187 thermal-sensors = <&tmu_apollo>;
263 thermal-sensors = <&tmu_isp>;
/netbsd-src/sys/arch/macppc/dev/
H A Dpbms.c698 detect_pos(int *sensors, int n_sensors, int threshold, int fact, in detect_pos() argument
710 if (sensors[i] >= threshold) { in detect_pos()
711 if (i == 0 || sensors[i - 1] < threshold) in detect_pos()
713 s += sensors[i]; in detect_pos()
714 w += sensors[i] * i; in detect_pos()
H A Dpmu.c348 int devs, sensors; in pmu_attach() local
380 sensors = OF_child(devs); in pmu_attach()
381 while (sensors != 0) { in pmu_attach()
385 if (OF_getprop(sensors, "reg", &reg, 4) != 4) in pmu_attach()
387 if (OF_getprop(sensors, "location", loc, 63) <= 0) in pmu_attach()
392 sensors = OF_peer(sensors); in pmu_attach()
/netbsd-src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/marvell/
H A Darmada-ap80x.dtsi319 thermal-sensors = <&ap_thermal 0>;
336 thermal-sensors = <&ap_thermal 1>;
369 thermal-sensors = <&ap_thermal 2>;
402 thermal-sensors = <&ap_thermal 3>;
435 thermal-sensors = <&ap_thermal 4>;
/netbsd-src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/arm/
H A Djuno-base.dtsi589 scpi_sensors0: sensors {
590 compatible = "arm,scpi-sensors";
599 thermal-sensors = <&scpi_sensors0 0>;
605 thermal-sensors = <&scpi_sensors0 3>;
611 thermal-sensors = <&scpi_sensors0 21>;
618 thermal-sensors = <&scpi_sensors0 22>;
625 thermal-sensors = <&scpi_sensors0 23>;
632 thermal-sensors = <&scpi_sensors0 24>;

12345678