Home
last modified time | relevance | path

Searched refs:ch_idx (Results 1 – 11 of 11) sorted by relevance

/freebsd-14-stable/sys/contrib/dev/ath/ath_hal/ar9300/
HDar9300_reset.c3596 int32_t ch_idx, j, cl_tab_reg; in ar9300_init_cal_internal() local
3875 for (ch_idx = 0; ch_idx < AR9300_MAX_CHAINS; ch_idx++) { in ar9300_init_cal_internal()
3876 if ((ahp->ah_tx_cal_chainmask & (1 << ch_idx)) == 0) { in ar9300_init_cal_internal()
3879 cl_tab_reg = BB_cl_tab_b[ch_idx]; in ar9300_init_cal_internal()
3881 OS_REG_WRITE(ah, cl_tab_reg, ichan->tx_clcal[ch_idx][j]); in ar9300_init_cal_internal()
3890 for (ch_idx = 0; ch_idx < AR9300_MAX_CHAINS; ch_idx++) { in ar9300_init_cal_internal()
3891 if ((ahp->ah_tx_cal_chainmask & (1 << ch_idx)) == 0) { in ar9300_init_cal_internal()
3894 cl_tab_reg = BB_cl_tab_b[ch_idx]; in ar9300_init_cal_internal()
3896 ichan->tx_clcal[ch_idx][j] = OS_REG_READ(ah, cl_tab_reg); in ar9300_init_cal_internal()
5784 int nmeasurement, ch_idx, im; in ar9300_tx_iq_cal_outlier_detection() local
[all …]
/freebsd-14-stable/sys/contrib/dev/iwlwifi/
HDiwl-nvm-parse.c332 static u32 iwl_get_channel_flags(u8 ch_num, int ch_idx, enum nl80211_band band, in iwl_get_channel_flags() argument
343 if ((ch_idx - NUM_2GHZ_CHANNELS) % 2 == 0) in iwl_get_channel_flags()
383 static enum nl80211_band iwl_nl80211_band_from_channel_idx(int ch_idx) in iwl_nl80211_band_from_channel_idx() argument
385 if (ch_idx >= NUM_2GHZ_CHANNELS + NUM_5GHZ_CHANNELS) { in iwl_nl80211_band_from_channel_idx()
389 if (ch_idx >= NUM_2GHZ_CHANNELS) in iwl_nl80211_band_from_channel_idx()
402 int ch_idx; in iwl_init_channel_map() local
420 for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { in iwl_init_channel_map()
422 iwl_nl80211_band_from_channel_idx(ch_idx); in iwl_init_channel_map()
426 __le32_to_cpup((const __le32 *)nvm_ch_flags + ch_idx); in iwl_init_channel_map()
429 __le16_to_cpup((const __le16 *)nvm_ch_flags + ch_idx); in iwl_init_channel_map()
[all …]
/freebsd-14-stable/sys/contrib/dev/rtw88/
HDphy.c1559 int ch_idx; in rtw_channel_to_idx() local
1563 ch_idx = channel - 1; in rtw_channel_to_idx()
1567 for (ch_idx = 0; ch_idx < n_channel; ch_idx++) in rtw_channel_to_idx()
1568 if (rtw_channel_idx_5g[ch_idx] == channel) in rtw_channel_to_idx()
1574 if (ch_idx >= n_channel) in rtw_channel_to_idx()
1577 return ch_idx; in rtw_channel_to_idx()
1586 int ch_idx; in rtw_phy_set_tx_power_limit() local
1590 ch_idx = rtw_channel_to_idx(band, ch); in rtw_phy_set_tx_power_limit()
1593 rs >= RTW_RATE_SECTION_MAX || ch_idx < 0) { in rtw_phy_set_tx_power_limit()
1596 regd, band, bw, rs, ch_idx, pwr_limit); in rtw_phy_set_tx_power_limit()
[all …]
/freebsd-14-stable/sys/contrib/dev/rtw89/
HDrtw8852b_rfk.c3585 u8 ch_idx = _tssi_ch_to_idx(rtwdev, channel); in _tssi_alimentk() local
3600 if (tssi_info->check_backup_aligmk[path][ch_idx]) { in _tssi_alimentk()
3602 tssi_info->alignment_backup_by_ch[path][ch_idx][0]); in _tssi_alimentk()
3604 tssi_info->alignment_backup_by_ch[path][ch_idx][1]); in _tssi_alimentk()
3606 tssi_info->alignment_backup_by_ch[path][ch_idx][2]); in _tssi_alimentk()
3608 tssi_info->alignment_backup_by_ch[path][ch_idx][3]); in _tssi_alimentk()
3709 tssi_info->check_backup_aligmk[path][ch_idx] = true; in _tssi_alimentk()
3710 tssi_info->alignment_backup_by_ch[path][ch_idx][0] = in _tssi_alimentk()
3712 tssi_info->alignment_backup_by_ch[path][ch_idx][1] = in _tssi_alimentk()
3714 tssi_info->alignment_backup_by_ch[path][ch_idx][2] = in _tssi_alimentk()
[all …]
HDphy.c2260 u8 ch_idx = rtw89_channel_to_idx(rtwdev, band, ch); in rtw89_phy_read_txpwr_limit() local
2268 lmt = (*rule_2ghz->lmt)[bw][ntx][rs][bf][regd][ch_idx]; in rtw89_phy_read_txpwr_limit()
2272 lmt = (*rule_2ghz->lmt)[bw][ntx][rs][bf][RTW89_WW][ch_idx]; in rtw89_phy_read_txpwr_limit()
2275 lmt = (*rule_5ghz->lmt)[bw][ntx][rs][bf][regd][ch_idx]; in rtw89_phy_read_txpwr_limit()
2279 lmt = (*rule_5ghz->lmt)[bw][ntx][rs][bf][RTW89_WW][ch_idx]; in rtw89_phy_read_txpwr_limit()
2282 lmt = (*rule_6ghz->lmt)[bw][ntx][rs][bf][regd][reg6][ch_idx]; in rtw89_phy_read_txpwr_limit()
2288 [ch_idx]; in rtw89_phy_read_txpwr_limit()
2520 u8 ch_idx = rtw89_channel_to_idx(rtwdev, band, ch); in rtw89_phy_read_txpwr_limit_ru() local
2528 lmt_ru = (*rule_2ghz->lmt_ru)[ru][ntx][regd][ch_idx]; in rtw89_phy_read_txpwr_limit_ru()
2532 lmt_ru = (*rule_2ghz->lmt_ru)[ru][ntx][RTW89_WW][ch_idx]; in rtw89_phy_read_txpwr_limit_ru()
[all …]
HDfw.c8626 if (e->ch_idx >= RTW89_2G_CH_NUM) in fw_txpwr_lmt_2ghz_entry_valid()
8648 [entry.ch_idx] = entry.v; in rtw89_fw_load_txpwr_lmt_2ghz()
8670 if (e->ch_idx >= RTW89_5G_CH_NUM) in fw_txpwr_lmt_5ghz_entry_valid()
8692 [entry.ch_idx] = entry.v; in rtw89_fw_load_txpwr_lmt_5ghz()
8716 if (e->ch_idx >= RTW89_6G_CH_NUM) in fw_txpwr_lmt_6ghz_entry_valid()
8738 [entry.reg_6ghz_power][entry.ch_idx] = entry.v; in rtw89_fw_load_txpwr_lmt_6ghz()
8756 if (e->ch_idx >= RTW89_2G_CH_NUM) in fw_txpwr_lmt_ru_2ghz_entry_valid()
8777 data->v[entry.ru][entry.nt][entry.regd][entry.ch_idx] = entry.v; in rtw89_fw_load_txpwr_lmt_ru_2ghz()
8795 if (e->ch_idx >= RTW89_5G_CH_NUM) in fw_txpwr_lmt_ru_5ghz_entry_valid()
8816 data->v[entry.ru][entry.nt][entry.regd][entry.ch_idx] = entry.v; in rtw89_fw_load_txpwr_lmt_ru_5ghz()
[all …]
HDfw.h4904 u8 ch_idx; member
4915 u8 ch_idx; member
4927 u8 ch_idx; member
4936 u8 ch_idx; member
4945 u8 ch_idx; member
4955 u8 ch_idx; member
HDrtw8852bt_rfk.c3663 u8 ch_idx = _tssi_ch_to_idx(rtwdev, channel); in _tssi_alimentk() local
3772 tssi_info->check_backup_aligmk[path][ch_idx] = true; in _tssi_alimentk()
3773 tssi_info->alignment_backup_by_ch[path][ch_idx][0] = in _tssi_alimentk()
3775 tssi_info->alignment_backup_by_ch[path][ch_idx][1] = in _tssi_alimentk()
3777 tssi_info->alignment_backup_by_ch[path][ch_idx][2] = in _tssi_alimentk()
3779 tssi_info->alignment_backup_by_ch[path][ch_idx][3] = in _tssi_alimentk()
HDpci.c960 #define DEF_TXCHADDRS_TYPE2(gen, ch_idx, txch, v...) \ argument
961 [RTW89_TXCH_##ch_idx] = { \
987 #define DEF_RXCHADDRS(gen, ch_idx, rxch, v...) \ argument
988 [RTW89_RXCH_##ch_idx] = { \
/freebsd-14-stable/sys/contrib/dev/iwlwifi/mvm/
HDscan.c1544 int ch_idx, bitmap_idx; in iwl_mvm_scan_ch_add_n_aps_override() local
1546 ch_idx = iwl_mvm_scan_ch_and_band_to_idx(ch_id, band); in iwl_mvm_scan_ch_add_n_aps_override()
1547 if (ch_idx < 0) in iwl_mvm_scan_ch_add_n_aps_override()
1550 bitmap_idx = ch_idx / 8; in iwl_mvm_scan_ch_add_n_aps_override()
1554 ch_idx = ch_idx % 8; in iwl_mvm_scan_ch_add_n_aps_override()
1555 ch_bitmap[bitmap_idx] |= BIT(ch_idx); in iwl_mvm_scan_ch_add_n_aps_override()
/freebsd-14-stable/sys/dev/iwm/
HDif_iwm.c1939 int maxchans, int *nchans, int ch_idx, size_t ch_num, in iwm_add_channel_band() argument
1948 for (; ch_idx < ch_num; ch_idx++) { in iwm_add_channel_band()
1949 ch_flags = le16_to_cpup(nvm_ch_flags + ch_idx); in iwm_add_channel_band()
1951 ieee = iwm_nvm_channels[ch_idx]; in iwm_add_channel_band()
1953 ieee = iwm_nvm_channels_8000[ch_idx]; in iwm_add_channel_band()
1959 (ch_idx >= IWM_NUM_2GHZ_CHANNELS) ? in iwm_add_channel_band()
1973 (ch_idx >= IWM_NUM_2GHZ_CHANNELS) ? in iwm_add_channel_band()