Lines Matching defs:power

526 		device_printf(dev, "chip is in D%d power mode "
627 | IEEE80211_C_TXPMGT /* tx power management */
2176 /* read the power level calibration info for each group */
2477 /* configuration has changed, set Tx power accordingly */
2479 device_printf(sc->sc_dev, "could not set Tx power\n");
2789 struct wpi_power power;
2794 /* set power mode */
2795 memset(&power, 0, sizeof power);
2796 power.flags = htole32(WPI_POWER_CAM|0x8);
2797 error = wpi_cmd(sc, WPI_CMD_SET_POWER_MODE, &power, sizeof power, 0);
2799 device_printf(sc->sc_dev, "could not set power mode\n");
2860 /* configuration has changed, set Tx power accordingly */
2862 device_printf(sc->sc_dev, "could not set Tx power\n");
2930 "timeout waiting for NIC to power up\n");
3260 * power to temperature changes.
3279 /* adjust Tx power if need be */
3287 device_printf(sc->sc_dev,"could not adjust Tx power\n");
3354 /* save maximum allowed power for this channel */
3382 /* save power group information */
3388 DPRINTF(("power group %d: chan=%d maxpwr=%d temp=%d\n", n,
3393 group->samples[i].power = rgroup.samples[i].power;
3395 DPRINTF(("\tsample %d: index=%d power=%d\n", i,
3396 group->samples[i].index, group->samples[i].power));
3401 * Update Tx power to match what is defined for channel `c'.
3416 /* find the power group to which this channel belongs */
3428 /* set Tx power for all OFDM and CCK rates */
3430 /* retrieve Tx power for this channel/rate combination */
3443 DPRINTFN(WPI_DEBUG_TEMP,("chan %d/rate %d: power index %d\n",
3451 * Determine Tx power index for a given channel/rate combination.
3476 /* default power is group's maximum power - 3dB */
3479 /* decrease power for highest OFDM rates to reduce distortion */
3492 /* never exceed channel's maximum allowed Tx power */
3495 /* retrieve power index into gain tables from samples */
3497 if (pwr > sample[1].power)
3500 idx = interpolate(pwr, sample[0].power, sample[0].index,
3501 sample[1].power, sample[1].index, 19);
3504 * Adjust power index based on current temperature
3505 * - if colder than factory-calibrated: decreate output power
3506 * - if warmer than factory-calibrated: increase output power
3510 /* decrease power for CCK rates (-5dB) */
3514 /* keep power index in a valid range */