Lines Matching defs:ch_idx
1559 int ch_idx;
1563 ch_idx = channel - 1;
1567 for (ch_idx = 0; ch_idx < n_channel; ch_idx++)
1568 if (rtw_channel_idx_5g[ch_idx] == channel)
1574 if (ch_idx >= n_channel)
1577 return ch_idx;
1586 int ch_idx;
1590 ch_idx = rtw_channel_to_idx(band, ch);
1593 rs >= RTW_RATE_SECTION_MAX || ch_idx < 0) {
1595 "wrong txpwr_lmt regd=%u, band=%u bw=%u, rs=%u, ch_idx=%u, pwr_limit=%d\n",
1596 regd, band, bw, rs, ch_idx, pwr_limit);
1601 hal->tx_pwr_limit_2g[regd][bw][rs][ch_idx] = pwr_limit;
1602 ww = hal->tx_pwr_limit_2g[RTW_REGD_WW][bw][rs][ch_idx];
1604 hal->tx_pwr_limit_2g[RTW_REGD_WW][bw][rs][ch_idx] = ww;
1606 hal->tx_pwr_limit_5g[regd][bw][rs][ch_idx] = pwr_limit;
1607 ww = hal->tx_pwr_limit_5g[RTW_REGD_WW][bw][rs][ch_idx];
1609 hal->tx_pwr_limit_5g[RTW_REGD_WW][bw][rs][ch_idx] = ww;
1616 u8 bw, u8 ch_idx, u8 rs_ht, u8 rs_vht)
1620 s8 lmt_ht = hal->tx_pwr_limit_5g[regd][bw][rs_ht][ch_idx];
1621 s8 lmt_vht = hal->tx_pwr_limit_5g[regd][bw][rs_vht][ch_idx];
1627 hal->tx_pwr_limit_5g[regd][bw][rs_ht][ch_idx] = lmt_vht;
1630 hal->tx_pwr_limit_5g[regd][bw][rs_vht][ch_idx] = lmt_ht;
1635 rtw_xref_txpwr_lmt_by_rs(struct rtw_dev *rtwdev, u8 regd, u8 bw, u8 ch_idx)
1645 rtw_xref_5g_txpwr_lmt(rtwdev, regd, bw, ch_idx, rs_ht, rs_vht);
1653 u8 ch_idx;
1655 for (ch_idx = 0; ch_idx < RTW_MAX_CHANNEL_NUM_5G; ch_idx++)
1656 rtw_xref_txpwr_lmt_by_rs(rtwdev, regd, bw, ch_idx);
2084 int ch_idx;
2106 ch_idx = rtw_channel_to_idx(band, cur_ch);
2107 if (ch_idx < 0)
2111 hal->tx_pwr_limit_2g[regd][cur_bw][rs][ch_idx] :
2112 hal->tx_pwr_limit_5g[regd][cur_bw][rs][ch_idx];