Lines Matching refs:cck_power
258 u8 cck_power, ofdm_power; in rtl8225_rf_set_tx_power() local
263 cck_power = priv->channels[channel - 1].hw_value & 0xFF; in rtl8225_rf_set_tx_power()
266 cck_power = min(cck_power, (u8)35); in rtl8225_rf_set_tx_power()
270 rtl8225_tx_gain_cck_ofdm[cck_power / 6] >> 1); in rtl8225_rf_set_tx_power()
273 tmp = &rtl8225_tx_power_cck_ch14[(cck_power % 6) * 8]; in rtl8225_rf_set_tx_power()
275 tmp = &rtl8225_tx_power_cck[(cck_power % 6) * 8]; in rtl8225_rf_set_tx_power()
475 u8 cck_power, ofdm_power; in rtl8225z2_rf_set_tx_power() local
479 cck_power = priv->channels[channel - 1].hw_value & 0xFF; in rtl8225z2_rf_set_tx_power()
484 else if (cck_power == 12) in rtl8225z2_rf_set_tx_power()
486 else if (cck_power == 13) in rtl8225z2_rf_set_tx_power()
494 cck_power = min(cck_power, (u8)35); in rtl8225z2_rf_set_tx_power()
495 if (cck_power == 13 || cck_power == 14) in rtl8225z2_rf_set_tx_power()
496 cck_power = 12; in rtl8225z2_rf_set_tx_power()
497 if (cck_power >= 15) in rtl8225z2_rf_set_tx_power()
498 cck_power -= 2; in rtl8225z2_rf_set_tx_power()
500 rtl818x_iowrite8(priv, &priv->map->TX_GAIN_CCK, cck_power); in rtl8225z2_rf_set_tx_power()