Home
last modified time | relevance | path

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

/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-eeprom-parse.c
H A Diwl-nvm-parse.c332 static u32 iwl_get_channel_flags(u8 ch_num, int ch_idx, enum nl80211_band band, in iwl_get_channel_flags()
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_init_channel_map()
385 if (ch_idx >= NUM_2GHZ_CHANNELS + NUM_5GHZ_CHANNELS) { in iwl_init_channel_map()
389 if (ch_idx >= NUM_2GHZ_CHANNELS) in iwl_init_channel_map()
402 int ch_idx; in iwl_init_channel_map()
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()
329 iwl_get_channel_flags(u8 ch_num,int ch_idx,enum nl80211_band band,u32 nvm_flags,const struct iwl_cfg * cfg) iwl_get_channel_flags() argument
372 iwl_nl80211_band_from_channel_idx(int ch_idx) iwl_nl80211_band_from_channel_idx() argument
388 int ch_idx; iwl_init_channel_map() local
1530 iwl_nvm_get_regdom_bw_flags(const u16 * nvm_chan,int ch_idx,u16 nvm_flags,struct iwl_reg_capa reg_capa,const struct iwl_cfg * cfg) iwl_nvm_get_regdom_bw_flags() argument
1626 int ch_idx; iwl_parse_nvm_mcc_info() local
[all...]
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_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/sys/contrib/dev/rtw88/
H A Dphy.c1508 int ch_idx; in rtw_channel_to_idx() local
1512 ch_idx = channel - 1; in rtw_channel_to_idx()
1516 for (ch_idx = 0; ch_idx < n_channel; ch_idx++) in rtw_channel_to_idx()
1517 if (rtw_channel_idx_5g[ch_idx] == channel) in rtw_channel_to_idx()
1523 if (ch_idx >= n_channel) in rtw_channel_to_idx()
1526 return ch_idx; in rtw_channel_to_idx()
1535 int ch_idx; in rtw_phy_set_tx_power_limit() local
1539 ch_idx in rtw_phy_set_tx_power_limit()
1565 rtw_xref_5g_txpwr_lmt(struct rtw_dev * rtwdev,u8 regd,u8 bw,u8 ch_idx,u8 rs_ht,u8 rs_vht) rtw_xref_5g_txpwr_lmt() argument
1584 rtw_xref_txpwr_lmt_by_rs(struct rtw_dev * rtwdev,u8 regd,u8 bw,u8 ch_idx) rtw_xref_txpwr_lmt_by_rs() argument
1602 u8 ch_idx; rtw_xref_5g_txpwr_lmt_by_ch() local
2030 int ch_idx; rtw_phy_get_tx_power_limit() local
[all...]
/freebsd/sys/dev/firmware/arm/
H A Dscmi.c402 scmi_req_alloc(struct scmi_softc *sc, enum scmi_chan ch_idx) in scmi_req_alloc() argument
407 rp = sc->trs->chans[ch_idx]; in scmi_req_alloc()
425 scmi_req_free_unlocked(struct scmi_softc *sc, enum scmi_chan ch_idx, in scmi_req_free_unlocked() argument
430 rp = sc->trs->chans[ch_idx]; in scmi_req_free_unlocked()
/freebsd/sys/contrib/dev/rtw89/
H A Dphy.c1962 u8 ch_idx = rtw89_channel_to_idx(rtwdev, band, ch); in rtw89_phy_fill_txpwr_limit_ru_20m()
1970 lmt = (*rule_2ghz->lmt)[bw][ntx][rs][bf][regd][ch_idx]; in rtw89_phy_fill_txpwr_limit_ru_20m()
1974 lmt = (*rule_2ghz->lmt)[bw][ntx][rs][bf][RTW89_WW][ch_idx]; in rtw89_phy_fill_txpwr_limit_ru_40m()
1977 lmt = (*rule_5ghz->lmt)[bw][ntx][rs][bf][regd][ch_idx]; in rtw89_phy_fill_txpwr_limit_ru_40m()
1981 lmt = (*rule_5ghz->lmt)[bw][ntx][rs][bf][RTW89_WW][ch_idx]; in rtw89_phy_fill_txpwr_limit_ru_40m()
1984 lmt = (*rule_6ghz->lmt)[bw][ntx][rs][bf][regd][reg6][ch_idx]; in rtw89_phy_fill_txpwr_limit_ru_40m()
1990 [ch_idx]; in rtw89_phy_fill_txpwr_limit_ru_40m()
2221 u8 ch_idx = rtw89_channel_to_idx(rtwdev, band, ch);
2229 lmt_ru = (*rule_2ghz->lmt_ru)[ru][ntx][regd][ch_idx]; in rtw89_phy_set_txpwr_limit_ru()
2233 lmt_ru = (*rule_2ghz->lmt_ru)[ru][ntx][RTW89_WW][ch_idx]; in rtw89_phy_set_txpwr_limit_ru()
1661 u8 ch_idx = rtw89_channel_to_idx(rtwdev, band, ch); rtw89_phy_read_txpwr_limit() local
1916 u8 ch_idx = rtw89_channel_to_idx(rtwdev, band, ch); rtw89_phy_read_txpwr_limit_ru() local
[all...]
H A Drtw8852b_rfk.c3581 u8 ch_idx = _tssi_ch_to_idx(rtwdev, channel); in _tssi_alimentk()
3596 if (tssi_info->check_backup_aligmk[path][ch_idx]) { in _tssi_alimentk()
3598 tssi_info->alignment_backup_by_ch[path][ch_idx][0]); in _tssi_alimentk()
3600 tssi_info->alignment_backup_by_ch[path][ch_idx][1]); in _tssi_alimentk()
3602 tssi_info->alignment_backup_by_ch[path][ch_idx][2]); in _tssi_alimentk()
3604 tssi_info->alignment_backup_by_ch[path][ch_idx][3]); in _tssi_alimentk()
3705 tssi_info->check_backup_aligmk[path][ch_idx] = true; in _tssi_alimentk()
3706 tssi_info->alignment_backup_by_ch[path][ch_idx][0] = in _tssi_alimentk()
3708 tssi_info->alignment_backup_by_ch[path][ch_idx][1] = in _tssi_alimentk()
3710 tssi_info->alignment_backup_by_ch[path][ch_idx][ in _tssi_alimentk()
3580 u8 ch_idx = _tssi_ch_to_idx(rtwdev, channel); _tssi_alimentk() local
[all...]
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Dscan.c1544 int ch_idx, bitmap_idx; in iwl_mvm_scan_ch_add_n_aps_override()
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_n_aps_flag()
1554 ch_idx = ch_idx % 8; in iwl_mvm_scan_ch_n_aps_flag()
1555 ch_bitmap[bitmap_idx] |= BIT(ch_idx); in iwl_mvm_scan_ch_n_aps_flag()
1532 int ch_idx, bitmap_idx; iwl_mvm_scan_ch_add_n_aps_override() local
/freebsd/sys/dev/iwm/
H A Dif_iwm.c1967 int maxchans, int *nchans, int ch_idx, size_t ch_num, in iwm_add_channel_band() argument
1976 for (; ch_idx < ch_num; ch_idx++) { in iwm_add_channel_band()
1977 ch_flags = le16_to_cpup(nvm_ch_flags + ch_idx); in iwm_add_channel_band()
1979 ieee = iwm_nvm_channels[ch_idx]; in iwm_add_channel_band()
1981 ieee = iwm_nvm_channels_8000[ch_idx]; in iwm_add_channel_band()
1987 (ch_idx >= IWM_NUM_2GHZ_CHANNELS) ? in iwm_add_channel_band()
2001 (ch_idx >= IWM_NUM_2GHZ_CHANNELS) ? in iwm_add_channel_band()