Home
last modified time | relevance | path

Searched refs:chspec (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/include/
H A Dbrcmu_wifi.h97 #define CHSPEC_CHANNEL(chspec) ((u8)((chspec) & WL_CHANSPEC_CHAN_MASK)) argument
98 #define CHSPEC_BAND(chspec) ((chspec) & WL_CHANSPEC_BAND_MASK) argument
100 #define CHSPEC_CTL_SB(chspec) ((chspec) & WL_CHANSPEC_CTL_SB_MASK) argument
101 #define CHSPEC_BW(chspec) ((chspec) & WL_CHANSPEC_BW_MASK) argument
103 #define CHSPEC_IS10(chspec) \ argument
106 #define CHSPEC_IS20(chspec) \ argument
109 #define CHSPEC_IS40(chspec) \ argument
112 #define CHSPEC_IS80(chspec) \ argument
115 #define CHSPEC_IS5G(chspec) \ argument
118 #define CHSPEC_IS2G(chspec) \ argument
[all …]
H A Dbrcmu_d11.h131 u16 chspec; member
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmutil/
H A Dd11.c46 ch->chspec = 0; in brcmu_d11n_encchspec()
47 brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_CH_MASK, in brcmu_d11n_encchspec()
55 ch->chspec |= BRCMU_CHSPEC_D11N_BND_2G; in brcmu_d11n_encchspec()
57 ch->chspec |= BRCMU_CHSPEC_D11N_BND_5G; in brcmu_d11n_encchspec()
82 brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_CH_MASK, in brcmu_d11ac_encchspec()
89 ch->chspec &= ~BRCMU_CHSPEC_D11AC_BND_MASK; in brcmu_d11ac_encchspec()
91 ch->chspec |= BRCMU_CHSPEC_D11AC_BND_2G; in brcmu_d11ac_encchspec()
93 ch->chspec |= BRCMU_CHSPEC_D11AC_BND_5G; in brcmu_d11ac_encchspec()
103 switch (ch->chspec & BRCMU_CHSPEC_D11N_BW_MASK) { in brcmu_d11n_decchspec()
110 val = ch->chspec & BRCMU_CHSPEC_D11N_SB_MASK; in brcmu_d11n_decchspec()
[all …]
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Dchannel.c602 brcms_c_valid_chanspec_ext(struct brcms_cm_info *wlc_cm, u16 chspec) in brcms_c_valid_chanspec_ext() argument
605 u8 channel = CHSPEC_CHANNEL(chspec); in brcms_c_valid_chanspec_ext()
608 if (brcms_c_chspec_malformed(chspec)) { in brcms_c_valid_chanspec_ext()
610 wlc->pub->unit, chspec); in brcms_c_valid_chanspec_ext()
615 chspec_bandunit(chspec)) in brcms_c_valid_chanspec_ext()
621 bool brcms_c_valid_chanspec_db(struct brcms_cm_info *wlc_cm, u16 chspec) in brcms_c_valid_chanspec_db() argument
623 return brcms_c_valid_chanspec_ext(wlc_cm, chspec); in brcms_c_valid_chanspec_db()
H A Dchannel.h39 bool brcms_c_valid_chanspec_db(struct brcms_cm_info *wlc_cm, u16 chspec);
H A Dmain.c5376 u16 chspec = ch20mhz_chspec(channel); in brcms_c_set_channel() local
5381 if (!brcms_c_valid_chanspec_db(wlc->cmi, chspec)) in brcms_c_set_channel()
5386 if (wlc->band->bandunit != chspec_bandunit(chspec)) in brcms_c_set_channel()
5392 wlc->default_bss->chanspec = chspec; in brcms_c_set_channel()
5395 if (wlc->pub->up && (wlc_phy_chanspec_get(wlc->band->pi) != chspec)) { in brcms_c_set_channel()
5396 brcms_c_set_home_chanspec(wlc, chspec); in brcms_c_set_channel()
5398 brcms_c_set_chanspec(wlc, chspec); in brcms_c_set_channel()
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dp2p.c109 __le16 chspec; member
955 ch.chspec, (u16)duration); in brcmf_p2p_discover_listen()
1090 default_chan_list[i] = ch.chspec; in brcmf_p2p_act_frm_search()
1094 default_chan_list[0] = ch.chspec; in brcmf_p2p_act_frm_search()
1097 default_chan_list[1] = ch.chspec; in brcmf_p2p_act_frm_search()
1100 default_chan_list[2] = ch.chspec; in brcmf_p2p_act_frm_search()
1256 ch.chspec = le16_to_cpu(bi->chanspec); in brcmf_p2p_scan_finding_common_channel()
1410 ch.chspec = be16_to_cpu(rxframe->chanspec); in brcmf_p2p_notify_action_frame_rx()
2036 *chanspec = ch.chspec; in brcmf_p2p_get_current_chanspec()
2076 if_request.chspec = cpu_to_le16(chanspec); in brcmf_p2p_ifchange()
[all …]
H A Dcfg80211.c400 return ch_inf.chspec; in chandef_to_chanspec()
412 return ch_inf.chspec; in channel_to_chanspec()
3344 ch.chspec = le16_to_cpu(bi->chanspec); in brcmf_inform_single_bss()
3459 ch.chspec = le16_to_cpu(bi->chanspec); in brcmf_inform_ibss()
5701 ch.chspec = chanspec; in brcmf_cfg80211_get_channel()
6385 ch.chspec = le16_to_cpu(bi->chanspec); in brcmf_bss_roaming_done()
6991 ch.chspec); in brcmf_construct_chaninfo()
7049 chaninfo = ch.chspec; in brcmf_construct_chaninfo()
7113 *(__le16 *)pbuf = cpu_to_le16(ch.chspec); in brcmf_enable_bw40_2g()
8061 u16 chspec = 0; in brcmf_set_channel() local
[all …]
H A Dfwil_types.h220 __le16 chspec; member
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
H A Dphy_cmn.c1263 u16 chspec; in wlc_phy_chanspec_band_firstch() local
1281 chspec = channel | WL_CHANSPEC_BW_40 | in wlc_phy_chanspec_band_firstch()
1284 chspec |= WL_CHANSPEC_BAND_2G; in wlc_phy_chanspec_band_firstch()
1286 chspec |= WL_CHANSPEC_BAND_5G; in wlc_phy_chanspec_band_firstch()
1288 chspec = ch20mhz_chspec(channel); in wlc_phy_chanspec_band_firstch()
1296 return chspec; in wlc_phy_chanspec_band_firstch()
1542 u16 chspec; in wlc_phy_txpower_recalc_target() local
1546 chspec = pi->radio_chanspec; in wlc_phy_txpower_recalc_target()
1548 target_chan = CHSPEC_CHANNEL(chspec); in wlc_phy_txpower_recalc_target()
1550 target_chan = upper_20_sb(CHSPEC_CHANNEL(chspec)); in wlc_phy_txpower_recalc_target()
[all …]