• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/wireless/iwlwifi/

Lines Matching refs:temperature

382 	priv->_3945.accum_statistics.general.temperature =
383 priv->_3945.statistics.general.temperature;
1108 * iwl3945_hw_reg_temp_out_of_range - Keep temperature in sane range
1110 static inline int iwl3945_hw_reg_temp_out_of_range(int temperature)
1112 return ((temperature < -260) || (temperature > 25)) ? 1 : 0;
1122 * get the current temperature by reading from NIC
1127 int temperature;
1129 temperature = iwl3945_hw_get_temperature(priv);
1133 IWL_DEBUG_INFO(priv, "Temperature: %d\n", temperature + IWL_TEMP_CONVERT);
1136 if (iwl3945_hw_reg_temp_out_of_range(temperature)) {
1137 IWL_ERR(priv, "Error bad temperature value %d\n", temperature);
1142 temperature = eeprom->groups[2].temperature;
1144 temperature = priv->last_temperature;
1147 return temperature; /* raw, not "human readable" */
1150 /* Adjust Txpower only if temperature variance is greater than threshold.
1158 * records new temperature in tx_mgr->temperature.
1165 priv->temperature = iwl3945_hw_reg_txpower_get_temperature(priv);
1166 temp_diff = priv->temperature - priv->last_temperature;
1186 * update the "last temperature" value */
1187 priv->last_temperature = priv->temperature;
1397 * current "normal" temperature-compensated Tx power *index* for
1406 * management (single channel) power changes "between" temperature
1578 * iwl3945_hw_reg_comp_txpower_temp - Compensate for temperature
1580 * Compensate txpower settings of *all* channels for temperature.
1581 * This only accounts for the difference between current temperature
1598 int temperature = priv->temperature;
1610 /* Get this chnlgrp's factory calibration temperature */
1612 temperature;
1616 delta_index = iwl3945_hw_reg_adjust_power_by_temp(temperature,
1625 /* temperature compensate */
1871 * iwl3945_reg_txpower_periodic - called when time to check our temperature.
1888 * This is based *only* on current temperature,
1953 * Interpolate to get nominal (i.e. at factory calibration temperature) index
2078 * and current temperature.
2080 * Since this is based on current temperature (at init time), these values may
2099 int temperature;
2101 /* save temperature reference,
2103 temperature = iwl3945_hw_reg_txpower_get_temperature(priv);
2104 priv->last_temperature = temperature;
2123 * diff between current temperature and factory temperature */
2124 delta_index = iwl3945_hw_reg_adjust_power_by_temp(temperature,
2126 temperature);
2129 ch_info->channel, delta_index, temperature +
2145 /* get base (i.e. at factory-measured temperature)
2156 /* temperature compensate */