Lines Matching defs:ch_idx
1592 int ch_idx;
1596 ch_idx = channel - 1;
1600 for (ch_idx = 0; ch_idx < n_channel; ch_idx++)
1601 if (rtw_channel_idx_5g[ch_idx] == channel)
1607 if (ch_idx >= n_channel)
1610 return ch_idx;
1619 int ch_idx;
1623 ch_idx = rtw_channel_to_idx(band, ch);
1626 rs >= RTW_RATE_SECTION_NUM || ch_idx < 0) {
1628 "wrong txpwr_lmt regd=%u, band=%u bw=%u, rs=%u, ch_idx=%u, pwr_limit=%d\n",
1629 regd, band, bw, rs, ch_idx, pwr_limit);
1634 hal->tx_pwr_limit_2g[regd][bw][rs][ch_idx] = pwr_limit;
1635 ww = hal->tx_pwr_limit_2g[RTW_REGD_WW][bw][rs][ch_idx];
1637 hal->tx_pwr_limit_2g[RTW_REGD_WW][bw][rs][ch_idx] = ww;
1639 hal->tx_pwr_limit_5g[regd][bw][rs][ch_idx] = pwr_limit;
1640 ww = hal->tx_pwr_limit_5g[RTW_REGD_WW][bw][rs][ch_idx];
1642 hal->tx_pwr_limit_5g[RTW_REGD_WW][bw][rs][ch_idx] = ww;
1649 u8 bw, u8 ch_idx, u8 rs_ht, u8 rs_vht)
1653 s8 lmt_ht = hal->tx_pwr_limit_5g[regd][bw][rs_ht][ch_idx];
1654 s8 lmt_vht = hal->tx_pwr_limit_5g[regd][bw][rs_vht][ch_idx];
1660 hal->tx_pwr_limit_5g[regd][bw][rs_ht][ch_idx] = lmt_vht;
1663 hal->tx_pwr_limit_5g[regd][bw][rs_vht][ch_idx] = lmt_ht;
1668 rtw_xref_txpwr_lmt_by_rs(struct rtw_dev *rtwdev, u8 regd, u8 bw, u8 ch_idx)
1682 rtw_xref_5g_txpwr_lmt(rtwdev, regd, bw, ch_idx, rs_ht, rs_vht);
1690 u8 ch_idx;
1692 for (ch_idx = 0; ch_idx < RTW_MAX_CHANNEL_NUM_5G; ch_idx++)
1693 rtw_xref_txpwr_lmt_by_rs(rtwdev, regd, bw, ch_idx);
2157 int ch_idx;
2179 ch_idx = rtw_channel_to_idx(band, cur_ch);
2180 if (ch_idx < 0)
2184 hal->tx_pwr_limit_2g[regd][cur_bw][rs][ch_idx] :
2185 hal->tx_pwr_limit_5g[regd][cur_bw][rs][ch_idx];