Lines Matching refs:rate_section
893 u8 band, rfpath, txnum, rate_section; in _rtl8821ae_phy_init_tx_power_by_rate() local
898 for (rate_section = 0; in _rtl8821ae_phy_init_tx_power_by_rate()
899 rate_section < TX_PWR_BY_RATE_NUM_SECTION; in _rtl8821ae_phy_init_tx_power_by_rate()
900 ++rate_section) in _rtl8821ae_phy_init_tx_power_by_rate()
902 [rfpath][txnum][rate_section] = 0; in _rtl8821ae_phy_init_tx_power_by_rate()
907 u8 rate_section, in _rtl8821ae_phy_set_txpower_by_rate_base() argument
920 switch (rate_section) { in _rtl8821ae_phy_set_txpower_by_rate_base()
942 rate_section, path, txnum); in _rtl8821ae_phy_set_txpower_by_rate_base()
946 switch (rate_section) { in _rtl8821ae_phy_set_txpower_by_rate_base()
965 rate_section, path, txnum); in _rtl8821ae_phy_set_txpower_by_rate_base()
976 u8 txnum, u8 rate_section) in _rtl8821ae_phy_get_txpower_by_rate_base() argument
990 switch (rate_section) { in _rtl8821ae_phy_get_txpower_by_rate_base()
1012 rate_section, path, txnum); in _rtl8821ae_phy_get_txpower_by_rate_base()
1016 switch (rate_section) { in _rtl8821ae_phy_get_txpower_by_rate_base()
1035 rate_section, path, txnum); in _rtl8821ae_phy_get_txpower_by_rate_base()
1129 u8 regulation, bw, channel, rate_section; in _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit() local
1135 for (rate_section = 0; rate_section < MAX_RATE_SECTION_NUM; ++rate_section) { in _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit()
1137 [bw][rate_section][channel][RF90_PATH_A]; in _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit()
1142 1, bw, rate_section, channel, RF90_PATH_A); in _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit()
1143 if (rate_section == 2) { in _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit()
1146 } else if (rate_section == 4) { in _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit()
1149 } else if (rate_section == 3) { in _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit()
1152 } else if (rate_section == 5) { in _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit()
1298 u8 regulation, bw, channel, rate_section; in _rtl8812ae_phy_convert_txpower_limit_to_power_index() local
1312 for (rate_section = 0; rate_section < MAX_RATE_SECTION_NUM; ++rate_section) { in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1315 if (rate_section == 0) { /*CCK*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1319 } else if (rate_section == 1) { /*OFDM*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1323 } else if (rate_section == 2) { /*HT IT*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1327 } else if (rate_section == 3) { /*HT 2T*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1334 [bw][rate_section][channel][RF90_PATH_A]; in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1339 if (rate_section == 3) in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1349 [bw][rate_section][channel][rf_path] = in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1355 regulation, bw, rate_section, channel, in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1357 [rate_section][channel][rf_path], (temp_pwrlmt == 63) in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1368 for (rate_section = 0; rate_section < MAX_RATE_SECTION_NUM; ++rate_section) { in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1372 if (rate_section == 1) { /*OFDM*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1376 } else if (rate_section == 2) { /*HT 1T*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1380 } else if (rate_section == 3) { /*HT 2T*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1384 } else if (rate_section == 4) { /*VHT 1T*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1388 } else if (rate_section == 5) { /*VHT 2T*/ in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1395 [bw][rate_section][channel] in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1401 if (rate_section == 3 || rate_section == 5) in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1414 [bw][rate_section][channel] in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1420 regulation, bw, rate_section, in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1422 [bw][rate_section][channel][rf_path], in _rtl8812ae_phy_convert_txpower_limit_to_power_index()
1635 u8 regulation = 0, bandwidth = 0, rate_section = 0, channel; in _rtl8812ae_phy_set_txpower_limit() local
1660 rate_section = 0; in _rtl8812ae_phy_set_txpower_limit()
1662 rate_section = 1; in _rtl8812ae_phy_set_txpower_limit()
1665 rate_section = 2; in _rtl8812ae_phy_set_txpower_limit()
1668 rate_section = 3; in _rtl8812ae_phy_set_txpower_limit()
1671 rate_section = 4; in _rtl8812ae_phy_set_txpower_limit()
1674 rate_section = 5; in _rtl8812ae_phy_set_txpower_limit()
1696 [bandwidth][rate_section] in _rtl8812ae_phy_set_txpower_limit()
1701 [rate_section][channel_index][RF90_PATH_A] = in _rtl8812ae_phy_set_txpower_limit()
1706 regulation, bandwidth, rate_section, channel_index, in _rtl8812ae_phy_set_txpower_limit()
1708 [rate_section][channel_index][RF90_PATH_A]); in _rtl8812ae_phy_set_txpower_limit()
1720 [rate_section][channel_index] in _rtl8812ae_phy_set_txpower_limit()
1725 [rate_section][channel_index][RF90_PATH_A] = power_limit; in _rtl8812ae_phy_set_txpower_limit()
1729 regulation, bandwidth, rate_section, channel, in _rtl8812ae_phy_set_txpower_limit()
1731 [rate_section][channel_index][RF90_PATH_A]); in _rtl8812ae_phy_set_txpower_limit()
1741 const char *bandwidth, const char *rate_section, in _rtl8812ae_phy_config_bb_txpwr_lmt() argument
1746 rate_section, rf_path, channel, in _rtl8812ae_phy_config_bb_txpwr_lmt()
1961 u8 rate_section = _rtl8821ae_get_rate_section_index(regaddr); in _rtl8821ae_store_tx_power_by_rate() local
1975 rtlphy->tx_power_by_rate_offset[band][rfpath][txnum][rate_section] = data; in _rtl8821ae_store_tx_power_by_rate()
1978 band, rfpath, txnum, rate_section, in _rtl8821ae_store_tx_power_by_rate()
1979 rtlphy->tx_power_by_rate_offset[band][rfpath][txnum][rate_section]); in _rtl8821ae_store_tx_power_by_rate()
2223 s8 rate_section = 0; in _rtl8821ae_phy_get_ratesection_intxpower_byrate() local
2229 rate_section = 0; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2235 rate_section = 1; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2241 rate_section = 2; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2247 rate_section = 3; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2253 rate_section = 4; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2259 rate_section = 5; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2265 rate_section = 6; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2271 rate_section = 7; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2277 rate_section = 8; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2283 rate_section = 9; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2289 rate_section = 10; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2295 rate_section = 11; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2302 return rate_section; in _rtl8821ae_phy_get_ratesection_intxpower_byrate()
2327 rate_section = -1, channel_temp = -1; in _rtl8812ae_phy_get_txpower_limit() local
2353 rate_section = 0; in _rtl8812ae_phy_get_txpower_limit()
2363 rate_section = 1; in _rtl8812ae_phy_get_txpower_limit()
2373 rate_section = 2; in _rtl8812ae_phy_get_txpower_limit()
2383 rate_section = 3; in _rtl8812ae_phy_get_txpower_limit()
2395 rate_section = 4; in _rtl8812ae_phy_get_txpower_limit()
2407 rate_section = 5; in _rtl8812ae_phy_get_txpower_limit()
2415 if (band_temp == BAND_ON_5G && rate_section == 0) in _rtl8812ae_phy_get_txpower_limit()
2421 if (rate_section == 1) in _rtl8812ae_phy_get_txpower_limit()
2427 if ((rate_section == 2 || rate_section == 3) && band == BAND_ON_5G && in _rtl8812ae_phy_get_txpower_limit()
2442 rate_section == -1 || channel_temp == -1) { in _rtl8812ae_phy_get_txpower_limit()
2446 rate_section, channel_temp); in _rtl8812ae_phy_get_txpower_limit()
2452 sec = rate_section; in _rtl8812ae_phy_get_txpower_limit()
2491 u8 shift = 0, rate_section, tx_num; in _rtl8821ae_phy_get_txpower_by_rate() local
2495 rate_section = _rtl8821ae_phy_get_ratesection_intxpower_byrate(path, rate); in _rtl8821ae_phy_get_txpower_by_rate()
2569 [tx_num][rate_section] >> shift) & 0xff; in _rtl8821ae_phy_get_txpower_by_rate()