Lines Matching refs:rate_section
752 u8 band, rfpath, txnum, rate_section; in _rtl8821ae_phy_init_tx_power_by_rate() local
757 for (rate_section = 0; in _rtl8821ae_phy_init_tx_power_by_rate()
758 rate_section < TX_PWR_BY_RATE_NUM_SECTION; in _rtl8821ae_phy_init_tx_power_by_rate()
759 ++rate_section) in _rtl8821ae_phy_init_tx_power_by_rate()
761 [rfpath][txnum][rate_section] = 0; in _rtl8821ae_phy_init_tx_power_by_rate()
766 u8 rate_section, in _rtl8821ae_phy_set_txpower_by_rate_base() argument
779 switch (rate_section) { in _rtl8821ae_phy_set_txpower_by_rate_base()
801 rate_section, path, txnum); in _rtl8821ae_phy_set_txpower_by_rate_base()
805 switch (rate_section) { in _rtl8821ae_phy_set_txpower_by_rate_base()
824 rate_section, path, txnum); in _rtl8821ae_phy_set_txpower_by_rate_base()
835 u8 txnum, u8 rate_section) in _rtl8821ae_phy_get_txpower_by_rate_base() argument
849 switch (rate_section) { in _rtl8821ae_phy_get_txpower_by_rate_base()
871 rate_section, path, txnum); in _rtl8821ae_phy_get_txpower_by_rate_base()
875 switch (rate_section) { in _rtl8821ae_phy_get_txpower_by_rate_base()
894 rate_section, path, txnum); in _rtl8821ae_phy_get_txpower_by_rate_base()
988 u8 regulation, bw, channel, rate_section; in _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit() local
994 for (rate_section = 0; rate_section < MAX_RATE_SECTION_NUM; ++rate_section) { in _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit()
996 [bw][rate_section][channel][RF90_PATH_A]; in _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit()
1001 1, bw, rate_section, channel, RF90_PATH_A); in _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit()
1002 if (rate_section == 2) { in _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit()
1005 } else if (rate_section == 4) { in _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit()
1008 } else if (rate_section == 3) { in _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit()
1011 } else if (rate_section == 5) { in _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit()
1155 u8 regulation, bw, channel, rate_section; in _rtl8812ae_phy_convert_txpower_limit_to_power_index() local
1169 for (rate_section = 0; rate_section < MAX_RATE_SECTION_NUM; ++rate_section) { in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1172 if (rate_section == 0) { /*CCK*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1176 } else if (rate_section == 1) { /*OFDM*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1180 } else if (rate_section == 2) { /*HT IT*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1184 } else if (rate_section == 3) { /*HT 2T*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1191 [bw][rate_section][channel][RF90_PATH_A]; in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1196 if (rate_section == 3) in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1206 [bw][rate_section][channel][rf_path] = in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1212 regulation, bw, rate_section, channel, in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1214 [rate_section][channel][rf_path], (temp_pwrlmt == 63) in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1225 for (rate_section = 0; rate_section < MAX_RATE_SECTION_NUM; ++rate_section) { in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1229 if (rate_section == 1) { /*OFDM*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1233 } else if (rate_section == 2) { /*HT 1T*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1237 } else if (rate_section == 3) { /*HT 2T*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1241 } else if (rate_section == 4) { /*VHT 1T*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1245 } else if (rate_section == 5) { /*VHT 2T*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1252 [bw][rate_section][channel] in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1258 if (rate_section == 3 || rate_section == 5) in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1271 [bw][rate_section][channel] in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1277 regulation, bw, rate_section, in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1279 [bw][rate_section][channel][rf_path], in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1508 u8 regulation = 0, bandwidth = 0, rate_section = 0, channel; in _rtl8812ae_phy_set_txpower_limit() local
1533 rate_section = 0; in _rtl8812ae_phy_set_txpower_limit()
1535 rate_section = 1; in _rtl8812ae_phy_set_txpower_limit()
1538 rate_section = 2; in _rtl8812ae_phy_set_txpower_limit()
1541 rate_section = 3; in _rtl8812ae_phy_set_txpower_limit()
1544 rate_section = 4; in _rtl8812ae_phy_set_txpower_limit()
1547 rate_section = 5; in _rtl8812ae_phy_set_txpower_limit()
1569 [bandwidth][rate_section] in _rtl8812ae_phy_set_txpower_limit()
1574 [rate_section][channel_index][RF90_PATH_A] = in _rtl8812ae_phy_set_txpower_limit()
1579 regulation, bandwidth, rate_section, channel_index, in _rtl8812ae_phy_set_txpower_limit()
1581 [rate_section][channel_index][RF90_PATH_A]); in _rtl8812ae_phy_set_txpower_limit()
1593 [rate_section][channel_index] in _rtl8812ae_phy_set_txpower_limit()
1598 [rate_section][channel_index][RF90_PATH_A] = power_limit; in _rtl8812ae_phy_set_txpower_limit()
1602 regulation, bandwidth, rate_section, channel, in _rtl8812ae_phy_set_txpower_limit()
1604 [rate_section][channel_index][RF90_PATH_A]); in _rtl8812ae_phy_set_txpower_limit()
1614 u8 *bandwidth, u8 *rate_section, in _rtl8812ae_phy_config_bb_txpwr_lmt() argument
1619 rate_section, rf_path, channel, in _rtl8812ae_phy_config_bb_txpwr_lmt()
1890 u8 rate_section = _rtl8821ae_get_rate_section_index(regaddr); in _rtl8821ae_store_tx_power_by_rate() local
1904 rtlphy->tx_power_by_rate_offset[band][rfpath][txnum][rate_section] = data; in _rtl8821ae_store_tx_power_by_rate()
1907 band, rfpath, txnum, rate_section, in _rtl8821ae_store_tx_power_by_rate()
1908 rtlphy->tx_power_by_rate_offset[band][rfpath][txnum][rate_section]); in _rtl8821ae_store_tx_power_by_rate()
2271 char rate_section = 0; in _rtl8821ae_phy_get_ratesection_intxpower_byrate() local
2277 rate_section = 0; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2283 rate_section = 1; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2289 rate_section = 2; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2295 rate_section = 3; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2301 rate_section = 4; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2307 rate_section = 5; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2313 rate_section = 6; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2319 rate_section = 7; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2325 rate_section = 8; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2331 rate_section = 9; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2337 rate_section = 10; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2343 rate_section = 11; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2350 return rate_section; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2375 rate_section = -1, channel_temp = -1; in _rtl8812ae_phy_get_txpower_limit() local
2401 rate_section = 0; in _rtl8812ae_phy_get_txpower_limit()
2411 rate_section = 1; in _rtl8812ae_phy_get_txpower_limit()
2421 rate_section = 2; in _rtl8812ae_phy_get_txpower_limit()
2431 rate_section = 3; in _rtl8812ae_phy_get_txpower_limit()
2443 rate_section = 4; in _rtl8812ae_phy_get_txpower_limit()
2455 rate_section = 5; in _rtl8812ae_phy_get_txpower_limit()
2463 if (band_temp == BAND_ON_5G && rate_section == 0) in _rtl8812ae_phy_get_txpower_limit()
2469 if (rate_section == 1) in _rtl8812ae_phy_get_txpower_limit()
2475 if ((rate_section == 2 || rate_section == 3) && band == BAND_ON_5G && in _rtl8812ae_phy_get_txpower_limit()
2489 rate_section == -1 || channel_temp == -1) { in _rtl8812ae_phy_get_txpower_limit()
2493 rate_section, channel_temp); in _rtl8812ae_phy_get_txpower_limit()
2500 sec = rate_section; in _rtl8812ae_phy_get_txpower_limit()
2539 u8 shift = 0, rate_section, tx_num; in _rtl8821ae_phy_get_txpower_by_rate() local
2543 rate_section = _rtl8821ae_phy_get_ratesection_intxpower_byrate(path, rate); in _rtl8821ae_phy_get_txpower_by_rate()
2617 [tx_num][rate_section] >> shift) & 0xff; in _rtl8821ae_phy_get_txpower_by_rate()