Lines Matching refs:bw

1530 				       u8 bw, u8 rs, u8 ch, s8 pwr_limit)  in rtw_phy_set_tx_power_limit()  argument
1541 if (regd >= RTW_REGD_MAX || bw >= RTW_CHANNEL_WIDTH_MAX || in rtw_phy_set_tx_power_limit()
1545 regd, band, bw, rs, ch_idx, pwr_limit); in rtw_phy_set_tx_power_limit()
1550 hal->tx_pwr_limit_2g[regd][bw][rs][ch_idx] = pwr_limit; in rtw_phy_set_tx_power_limit()
1551 ww = hal->tx_pwr_limit_2g[RTW_REGD_WW][bw][rs][ch_idx]; in rtw_phy_set_tx_power_limit()
1553 hal->tx_pwr_limit_2g[RTW_REGD_WW][bw][rs][ch_idx] = ww; in rtw_phy_set_tx_power_limit()
1555 hal->tx_pwr_limit_5g[regd][bw][rs][ch_idx] = pwr_limit; in rtw_phy_set_tx_power_limit()
1556 ww = hal->tx_pwr_limit_5g[RTW_REGD_WW][bw][rs][ch_idx]; in rtw_phy_set_tx_power_limit()
1558 hal->tx_pwr_limit_5g[RTW_REGD_WW][bw][rs][ch_idx] = ww; in rtw_phy_set_tx_power_limit()
1565 u8 bw, u8 ch_idx, u8 rs_ht, u8 rs_vht) in rtw_xref_5g_txpwr_lmt() argument
1569 s8 lmt_ht = hal->tx_pwr_limit_5g[regd][bw][rs_ht][ch_idx]; in rtw_xref_5g_txpwr_lmt()
1570 s8 lmt_vht = hal->tx_pwr_limit_5g[regd][bw][rs_vht][ch_idx]; in rtw_xref_5g_txpwr_lmt()
1576 hal->tx_pwr_limit_5g[regd][bw][rs_ht][ch_idx] = lmt_vht; in rtw_xref_5g_txpwr_lmt()
1579 hal->tx_pwr_limit_5g[regd][bw][rs_vht][ch_idx] = lmt_ht; in rtw_xref_5g_txpwr_lmt()
1584 rtw_xref_txpwr_lmt_by_rs(struct rtw_dev *rtwdev, u8 regd, u8 bw, u8 ch_idx) in rtw_xref_txpwr_lmt_by_rs() argument
1594 rtw_xref_5g_txpwr_lmt(rtwdev, regd, bw, ch_idx, rs_ht, rs_vht); in rtw_xref_txpwr_lmt_by_rs()
1600 rtw_xref_5g_txpwr_lmt_by_ch(struct rtw_dev *rtwdev, u8 regd, u8 bw) in rtw_xref_5g_txpwr_lmt_by_ch() argument
1605 rtw_xref_txpwr_lmt_by_rs(rtwdev, regd, bw, ch_idx); in rtw_xref_5g_txpwr_lmt_by_ch()
1612 u8 bw; in rtw_xref_txpwr_lmt_by_bw() local
1614 for (bw = RTW_CHANNEL_WIDTH_20; bw <= RTW_CHANNEL_WIDTH_40; bw++) in rtw_xref_txpwr_lmt_by_bw()
1615 rtw_xref_5g_txpwr_lmt_by_ch(rtwdev, regd, bw); in rtw_xref_txpwr_lmt_by_bw()
1628 __cfg_txpwr_lmt_by_alt(struct rtw_hal *hal, u8 regd, u8 regd_alt, u8 bw, u8 rs) in __cfg_txpwr_lmt_by_alt() argument
1633 hal->tx_pwr_limit_2g[regd][bw][rs][ch] = in __cfg_txpwr_lmt_by_alt()
1634 hal->tx_pwr_limit_2g[regd_alt][bw][rs][ch]; in __cfg_txpwr_lmt_by_alt()
1637 hal->tx_pwr_limit_5g[regd][bw][rs][ch] = in __cfg_txpwr_lmt_by_alt()
1638 hal->tx_pwr_limit_5g[regd_alt][bw][rs][ch]; in __cfg_txpwr_lmt_by_alt()
1644 u8 bw, rs; in rtw_cfg_txpwr_lmt_by_alt() local
1646 for (bw = 0; bw < RTW_CHANNEL_WIDTH_MAX; bw++) in rtw_cfg_txpwr_lmt_by_alt()
1649 bw, rs); in rtw_cfg_txpwr_lmt_by_alt()
1664 p->bw, p->rs, p->ch, p->txpwr_lmt); in rtw_parse_tbl_txpwr_lmt()
2023 enum rtw_bandwidth bw, u8 rf_path, in rtw_phy_get_tx_power_limit() argument
2042 bw = RTW_CHANNEL_WIDTH_20; in rtw_phy_get_tx_power_limit()
2046 bw = min_t(u8, bw, RTW_CHANNEL_WIDTH_40); in rtw_phy_get_tx_power_limit()
2049 for (cur_bw = RTW_CHANNEL_WIDTH_20; cur_bw <= bw; cur_bw++) { in rtw_phy_get_tx_power_limit()
2067 band, bw, rf_path, rate, channel); in rtw_phy_get_tx_power_limit()
2092 void rtw_get_tx_power_params(struct rtw_dev *rtwdev, u8 path, u8 rate, u8 bw, in rtw_get_tx_power_params() argument
2113 bw, rate, group); in rtw_get_tx_power_params()
2119 bw, rate, group); in rtw_get_tx_power_params()
2123 *limit = rtw_phy_get_tx_power_limit(rtwdev, band, bw, path, in rtw_get_tx_power_params()
2167 u8 bw; in rtw_phy_set_tx_power_index_by_rs() local
2175 bw = hal->current_band_width; in rtw_phy_set_tx_power_index_by_rs()
2179 bw, ch, regd); in rtw_phy_set_tx_power_index_by_rs()
2271 __rtw_phy_tx_power_limit_config(struct rtw_hal *hal, u8 regd, u8 bw, u8 rs) in __rtw_phy_tx_power_limit_config() argument
2278 hal->tx_pwr_limit_2g[regd][bw][rs][ch] -= base; in __rtw_phy_tx_power_limit_config()
2283 hal->tx_pwr_limit_5g[regd][bw][rs][ch] -= base; in __rtw_phy_tx_power_limit_config()
2289 u8 regd, bw, rs; in rtw_phy_tx_power_limit_config() local
2295 for (bw = 0; bw < RTW_CHANNEL_WIDTH_MAX; bw++) in rtw_phy_tx_power_limit_config()
2297 __rtw_phy_tx_power_limit_config(hal, regd, bw, rs); in rtw_phy_tx_power_limit_config()
2301 u8 regd, u8 bw, u8 rs) in rtw_phy_init_tx_power_limit() argument
2309 hal->tx_pwr_limit_2g[regd][bw][rs][ch] = max_power_index; in rtw_phy_init_tx_power_limit()
2313 hal->tx_pwr_limit_5g[regd][bw][rs][ch] = max_power_index; in rtw_phy_init_tx_power_limit()
2319 u8 regd, path, rate, rs, bw; in rtw_phy_init_tx_power() local
2331 for (bw = 0; bw < RTW_CHANNEL_WIDTH_MAX; bw++) in rtw_phy_init_tx_power()
2333 rtw_phy_init_tx_power_limit(rtwdev, regd, bw, in rtw_phy_init_tx_power()