/drivers/hwmon/ |
H A D | hih6130.c | 1 /* Honeywell HIH-6130/HIH-6131 humidity and temperature sensor driver 44 * @temperature: cached temperature measurement value 53 int temperature; member in struct:hih6130 59 * hih6130_temp_ticks_to_millicelsius() - convert raw temperature ticks to 61 * @ticks: temperature ticks value received from sensor 117 * and temperature at 30s under specified conditions. 154 hih6130->temperature = hih6130_temp_ticks_to_millicelsius(t); 166 * hih6130_show_temperature() - show temperature measurement value in sysfs 184 return sprintf(buf, "%d\n", hih6130->temperature); [all...] |
H A D | htu21.c | 2 * Measurement Specialties HTU21D humidity and temperature sensor driver 38 int temperature; member in struct:htu21 76 htu21->temperature = htu21_temp_ticks_to_millicelsius(ret); 100 return sprintf(buf, "%d\n", htu21->temperature); 173 MODULE_DESCRIPTION("MEAS HTU21D humidity and temperature sensor driver");
|
H A D | sht21.c | 1 /* Sensirion SHT21 humidity and temperature sensor driver 44 * @temperature: cached temperature measurement value 52 int temperature; member in struct:sht21 57 * sht21_temp_ticks_to_millicelsius() - convert raw temperature ticks to 59 * @ticks: temperature ticks value received from sensor 109 sht21->temperature = sht21_temp_ticks_to_millicelsius(ret); 125 * sht21_show_temperature() - show temperature measurement value in sysfs 143 return sprintf(buf, "%d\n", sht21->temperature); 225 MODULE_DESCRIPTION("Sensirion SHT21 humidity and temperature senso [all...] |
H A D | shtc1.c | 1 /* Sensirion SHTC1 humidity and temperature sensor driver 61 int temperature; /* 1000 * temperature in dgr C */ member in struct:shtc1_data 118 data->temperature = ((21875 * val) >> 13) - 45000; 140 return sprintf(buf, "%d\n", data->temperature); 250 MODULE_DESCRIPTION("Sensirion SHTC1 humidity and temperature sensor driver");
|
H A D | emc2103.c | 52 * 2103-2 and 2103-4's 3rd temperature sensor can be connected to two diodes 54 * independently (so we have 4 temperature inputs). The device can't 63 struct temperature { struct 76 struct temperature temp[4]; /* internal + 3 external */ 99 struct temperature *temp) 546 /* extra temperature sensors only present on 2103-2 and 2103-4 */ 557 /* extra temperature sensors only present on 2103-2 and 2103-4 in APD mode */
|
/drivers/gpu/drm/nouveau/core/subdev/therm/ |
H A D | temp.c | 100 int temperature = therm->temp_get(therm); local 106 nv_info(therm, "temperature (%i C) went below the '%s' threshold\n", 107 temperature, thresolds[thrs]); 109 nv_info(therm, "temperature (%i C) hit the '%s' threshold\n", 110 temperature, thresolds[thrs]);
|
/drivers/thermal/st/ |
H A D | st_thermal.c | 113 /* Callback to get temperature from HW*/ 115 unsigned long *temperature) 136 dev_dbg(dev, "temperature: %d\n", temp); 138 *temperature = temp; 114 st_thermal_get_temp(struct thermal_zone_device *th, unsigned long *temperature) argument
|
/drivers/thermal/ |
H A D | thermal_hwmon.c | 49 /* one temperature input for each thermal zone */ 72 long temperature; local 81 ret = thermal_zone_get_temp(tz, &temperature); 86 return sprintf(buf, "%ld\n", temperature); 98 long temperature; local 101 ret = tz->ops->get_trip_temp(tz, 0, &temperature); 105 return sprintf(buf, "%ld\n", temperature); 125 /* Find the temperature input matching a given thermal zone */ 251 dev_dbg(&tz->device, "temperature input lookup failed!\n");
|
H A D | of-thermal.c | 39 * struct __thermal_trip - representation of a point in temperature domain 41 * @temperature: temperature value in miliCelsius 48 unsigned long int temperature; member in struct:__thermal_trip 79 * @sensor_data: sensor private data used while reading temperature and trend 80 * @get_temp: sensor callback to read temperature 81 * @get_trend: sensor callback to read temperature trend 246 *temp = data->trips[trip].temperature; 260 data->trips[trip].temperature = temp; 300 *temp = data->trips[i].temperature; [all...] |
/drivers/iio/humidity/ |
H A D | dht11.c | 62 int temperature; member in struct:dht11 125 dht11->temperature = (((temp_int & 0x7f) << 8) + temp_dec) * 129 dht11->temperature = temp_int * 1000; 181 *val = dht11->temperature; 292 MODULE_DESCRIPTION("DHT11 humidity/temperature sensor driver");
|
/drivers/net/wireless/iwlwifi/mvm/ |
H A D | tt.c | 85 * the temperature will not change unless we manually set it 152 IWL_ERR(mvm, "Failed to get the temperature (err=%d)\n", ret); 160 IWL_ERR(mvm, "Getting the temperature timed out\n"); 199 IWL_DEBUG_TEMP(mvm, "NIC temperature: %d\n", temp); 281 s32 temperature = mvm->temperature; local 286 IWL_DEBUG_TEMP(mvm, "NIC temperature: %d\n", mvm->temperature); 288 if (params->support_ct_kill && temperature >= params->ct_kill_entry) { 294 temperature < [all...] |
/drivers/power/ |
H A D | ipaq_micro_battery.c | 48 u16 temperature; member in struct:micro_battery 89 mb->temperature = msg_sensor.rx_data[1] << 8 | msg_sensor.rx_data[0]; 167 val->intval = mb->temperature;
|
H A D | ds2780_battery.c | 192 int *temperature) 198 * The temperature value is located in 10 bits across the temperature 200 * Sign bit of the temperature value is in bit 7 of the temperature 202 * Bits 9 - 3 of the temperature value are in bits 6 - 0 of the 203 * temperature MSB register 204 * Bits 2 - 0 of the temperature value are in bits 7 - 5 of the 205 * temperature LSB register 214 * power_supply class measures temperature i 191 ds2780_get_temperature(struct ds2780_device_info *dev_info, int *temperature) argument [all...] |
/drivers/watchdog/ |
H A D | wdt.c | 238 * Reports the temperature in degrees Fahrenheit. The API is in 459 * Temp_read reports the temperature in degrees Fahrenheit. The API is in 466 int temperature = wdt_get_temperature(); local 468 if (copy_to_user(buf, &temperature, 1)) 479 * The temperature device has been opened. 492 * The temperature device has been closed. 550 .name = "temperature",
|
H A D | wdrtas.c | 188 * wdrtas_get_temperature - returns current temperature 190 * returns temperature or <0 on failures 192 * wdrtas_get_temperature returns the current temperature in Fahrenheit. It 198 int temperature = 0; local 200 result = rtas_get_sensor(WDRTAS_THERMAL_SENSOR, 0, &temperature); 205 temperature = ((temperature * 9) / 5) + 32; /* fahrenheit */ 207 return temperature; 407 * wdrtas_temp_read - gives back the temperature in fahrenheit 416 * wdrtas_temp_read gives the temperature t 422 int temperature = 0; local [all...] |
H A D | wdt_pci.c | 274 * Reports the temperature in degrees Fahrenheit. The API is in 278 static int wdtpci_get_temperature(int *temperature) argument 286 *temperature = (c * 11 / 15) + 7; 499 * Read reports the temperature in degrees Fahrenheit. The API is in 506 int temperature; local 508 if (wdtpci_get_temperature(&temperature)) 511 if (copy_to_user(buf, &temperature, 1)) 522 * The temperature device has been opened. 535 * The temperature device has been closed. 593 .name = "temperature", [all...] |
H A D | pcwd_pci.c | 121 /* Wether or not the card has a temperature device */ 394 static int pcipcwd_get_temperature(int *temperature) argument 396 *temperature = 0; 401 *temperature = inb_p(pcipcwd_private.io_addr); 408 *temperature = (*temperature * 9 / 5) + 32; 411 pr_debug("temperature is: %d F\n", *temperature); 498 int temperature; local 500 if (pcipcwd_get_temperature(&temperature)) 607 int temperature; local [all...] |
H A D | pcwd_usb.c | 331 int *temperature) 341 *temperature = (lsb * 9 / 5) + 32; 416 int temperature; local 418 if (usb_pcwd_get_temperature(usb_pcwd_device, &temperature)) 421 return put_user(temperature, p); 509 * /dev/temperature handling 515 int temperature; local 517 if (usb_pcwd_get_temperature(usb_pcwd_device, &temperature)) 520 if (copy_to_user(data, &temperature, 1)) 578 .name = "temperature", 330 usb_pcwd_get_temperature(struct usb_pcwd_private *usb_pcwd, int *temperature) argument [all...] |
/drivers/misc/ |
H A D | bmp085.c | 6 * and temperature sensors from Bosch Sensortec. The datasheets 16 * The temperature can be read from temp0_input. Values range from 17 * -400 to 850 representing the ambient temperature in degree celsius 20 * Because ambient pressure is temperature dependent, a temperature 22 * from pressure0_input. This happens if the last temperature measurement 87 s32 b6; /* calculated temperature correction coefficient */ 138 "Error while requesting temperature measurement.\n"); 148 "Error while reading temperature measurement result\n"); 199 * This function starts the temperature measuremen 202 bmp085_get_temperature(struct bmp085_data *data, int *temperature) argument 339 int temperature; local [all...] |
/drivers/net/wireless/iwlwifi/dvm/ |
H A D | devices.c | 45 * For 1000, use advance thermal throttling critical temperature threshold, 48 * but not implement ct_kill_exit based on ct_kill exit temperature 180 .temperature = iwlagn_temperature, 241 .temperature = iwlagn_temperature, 254 .temperature = iwlagn_temperature, 278 .temperature = iwlagn_temperature, 349 u16 temperature, voltage; local 351 temperature = le16_to_cpu(priv->nvm_data->kelvin_temperature); 355 return (s32)(temperature - 395 vt = le32_to_cpu(priv->statistics.common.temperature); [all...] |
/drivers/platform/x86/ |
H A D | acerhdf.c | 2 * acerhdf - A driver which monitors the temperature 46 * temperature of the cpu and a userspace tool may take over control of the fan. 58 * CPU's optimal operating limits denoted in junction temperature as 60 * assume 89°C is critical temperature. 73 * Maximum interval between two temperature checks is 15 seconds, as the die 100 MODULE_PARM_DESC(interval, "Polling interval of temperature check"); 102 MODULE_PARM_DESC(fanon, "Turn the fan on above this temperature"); 104 MODULE_PARM_DESC(fanoff, "Turn the fan off below this temperature"); 115 * the fan speed depending on the temperature 283 pr_err("fanon temperature to 417 acerhdf_get_crit_temp(struct thermal_zone_device *thermal, unsigned long *temperature) argument [all...] |
/drivers/thermal/ti-soc-thermal/ |
H A D | ti-bandgap.c | 2 * TI Bandgap temperature sensor driver 122 * ti_bandgap_read_temp() - helper function to read sensor temperature 126 * Function to concentrate the steps to read sensor temperature register. 131 * Return: temperature in ADC values. 150 /* read temperature */ 217 /* report temperature to whom may concern */ 239 pr_emerg("%s: TSHUT temperature reached. Needs shut down...\n", 253 * @t: address where to write the resulting temperature in mCelsius 268 /* look up for temperature in the table and return the temperature */ 845 ti_bandgap_read_temperature(struct ti_bandgap *bgp, int id, int *temperature) argument [all...] |
/drivers/acpi/ |
H A D | thermal.c | 144 unsigned long temperature; member in struct:acpi_thermal_critical 149 unsigned long temperature; member in struct:acpi_thermal_hot 154 unsigned long temperature; member in struct:acpi_thermal_passive 163 unsigned long temperature; member in struct:acpi_thermal_active 183 unsigned long temperature; member in struct:acpi_thermal 209 tz->last_temperature = tz->temperature; 215 tz->temperature = tmp; 217 tz->temperature)); 297 tz->trips.critical.temperature = tmp; 316 tz->trips.critical.temperature)); 692 thermal_get_crit_temp(struct thermal_zone_device *thermal, unsigned long *temperature) argument [all...] |
/drivers/iio/imu/inv_mpu6050/ |
H A D | inv_mpu_iio.h | 37 * @temperature: temperature register 53 u8 temperature; member in struct:inv_mpu6050_reg_map
|
/drivers/memory/ |
H A D | emif.c | 38 * @temperature_level: Maximum temperature of LPDDR2 devices attached 41 * value is the maximum of the two temperature 833 * Get the temperature level of the EMIF instance: 834 * Reads the MR4 register of attached SDRAM parts to find out the temperature 835 * level. If there are two parts attached(one on each CS), then the temperature 869 * Program EMIF shadow registers that are not dependent on temperature 914 * setup_temperature_sensitive_regs() - set the timings for temperature 916 * on the temperature at boot time and subsequently based on the temperature 917 * alert interrupt. Temperature alert can happen when the temperature 926 u32 temperature; local [all...] |