Lines Matching refs:cck_power
374 u8 cck_power, ofdm_power; in rtl8225_rf_set_tx_power() local
379 cck_power = priv->channels[channel - 1].hw_value & 0xF; in rtl8225_rf_set_tx_power()
382 cck_power = min(cck_power, (u8)11); in rtl8225_rf_set_tx_power()
389 rtl8225_tx_gain_cck_ofdm[cck_power / 6] >> 1); in rtl8225_rf_set_tx_power()
392 tmp = &rtl8225_tx_power_cck_ch14[(cck_power % 6) * 8]; in rtl8225_rf_set_tx_power()
394 tmp = &rtl8225_tx_power_cck[(cck_power % 6) * 8]; in rtl8225_rf_set_tx_power()
621 u8 cck_power, ofdm_power; in rtl8225z2_rf_set_tx_power() local
626 cck_power = priv->channels[channel - 1].hw_value & 0xF; in rtl8225z2_rf_set_tx_power()
629 cck_power = min(cck_power, (u8)15); in rtl8225z2_rf_set_tx_power()
630 cck_power += priv->txpwr_base & 0xF; in rtl8225z2_rf_set_tx_power()
631 cck_power = min(cck_power, (u8)35); in rtl8225z2_rf_set_tx_power()
649 rtl8225z2_tx_gain_cck_ofdm[cck_power]); in rtl8225z2_rf_set_tx_power()
677 u8 cck_power, ofdm_power; in rtl8225z2_b_rf_set_tx_power() local
681 cck_power = priv->channels[channel - 1].hw_value & 0xF; in rtl8225z2_b_rf_set_tx_power()
684 cck_power += (priv->hw_rev == RTL8187BvB) ? 0 : 7; in rtl8225z2_b_rf_set_tx_power()
685 cck_power += priv->txpwr_base & 0xF; in rtl8225z2_b_rf_set_tx_power()
686 cck_power = min(cck_power, (u8)35); in rtl8225z2_b_rf_set_tx_power()
701 if (cck_power <= 6) in rtl8225z2_b_rf_set_tx_power()
703 else if (cck_power <= 11) in rtl8225z2_b_rf_set_tx_power()
708 if (cck_power <= 5) in rtl8225z2_b_rf_set_tx_power()
710 else if (cck_power <= 11) in rtl8225z2_b_rf_set_tx_power()
712 else if (cck_power <= 17) in rtl8225z2_b_rf_set_tx_power()
722 rtl8225z2_tx_gain_cck_ofdm[cck_power] << 1); in rtl8225z2_b_rf_set_tx_power()