chspec 317 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_dbg(TRACE, "chanspec: 0x%x\n", ch_inf.chspec); chspec 318 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c return ch_inf.chspec; chspec 330 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c return ch_inf.chspec; chspec 2819 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ch.chspec = le16_to_cpu(bi->chanspec); chspec 2934 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ch.chspec = le16_to_cpu(bi->chanspec); chspec 3071 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ch_bss.chspec = le16_to_cpu(bss->chanspec); chspec 3073 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ch_bss_info_le.chspec = le16_to_cpu(bss_info_le->chanspec); chspec 5013 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ch.chspec = chanspec; chspec 5533 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ch.chspec = le16_to_cpu(bi->chanspec); chspec 6057 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ch.chspec = (u16)le32_to_cpu(list->element[i]); chspec 6066 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ch.chspec); chspec 6124 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c chaninfo = ch.chspec; chspec 6188 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c *(__le16 *)pbuf = cpu_to_le16(ch.chspec); chspec 6202 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ch.chspec = (u16)le32_to_cpu(list->element[i]); chspec 209 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h __le16 chspec; chspec 104 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c __le16 chspec; chspec 523 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c discover_state.chspec = cpu_to_le16(chanspec); chspec 935 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c ch.chspec, (u16)duration); chspec 1069 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c default_chan_list[i] = ch.chspec; chspec 1073 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c default_chan_list[0] = ch.chspec; chspec 1076 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c default_chan_list[1] = ch.chspec; chspec 1079 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c default_chan_list[2] = ch.chspec; chspec 1235 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c ch.chspec = le16_to_cpu(bi->chanspec); chspec 1358 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c ch.chspec = be16_to_cpu(rxframe->chanspec); chspec 1876 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c ch.chspec = be16_to_cpu(rxframe->chanspec); chspec 1914 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c mgmt_frame_len, e->datalen, ch.chspec, freq); chspec 1956 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c *chanspec = ch.chspec; chspec 1996 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c if_request.chspec = cpu_to_le16(chanspec); chspec 2035 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c if_request.chspec = cpu_to_le16(chanspec); chspec 604 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c brcms_c_valid_chanspec_ext(struct brcms_cm_info *wlc_cm, u16 chspec) chspec 607 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c u8 channel = CHSPEC_CHANNEL(chspec); chspec 610 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c if (brcms_c_chspec_malformed(chspec)) { chspec 612 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c wlc->pub->unit, chspec); chspec 617 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c chspec_bandunit(chspec)) chspec 623 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c bool brcms_c_valid_chanspec_db(struct brcms_cm_info *wlc_cm, u16 chspec) chspec 625 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c return brcms_c_valid_chanspec_ext(wlc_cm, chspec); chspec 39 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.h bool brcms_c_valid_chanspec_db(struct brcms_cm_info *wlc_cm, u16 chspec); chspec 5417 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c u16 chspec = ch20mhz_chspec(channel); chspec 5422 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (!brcms_c_valid_chanspec_db(wlc->cmi, chspec)) chspec 5427 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc->band->bandunit != chspec_bandunit(chspec)) chspec 5433 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->default_bss->chanspec = chspec; chspec 5436 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc->pub->up && (wlc_phy_chanspec_get(wlc->band->pi) != chspec)) { chspec 5437 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_c_set_home_chanspec(wlc, chspec); chspec 5439 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_c_set_chanspec(wlc, chspec); chspec 1262 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c u16 chspec; chspec 1280 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c chspec = channel | WL_CHANSPEC_BW_40 | chspec 1283 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c chspec |= WL_CHANSPEC_BAND_2G; chspec 1285 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c chspec |= WL_CHANSPEC_BAND_5G; chspec 1287 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c chspec = ch20mhz_chspec(channel); chspec 1295 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c return chspec; chspec 1543 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c u16 chspec; chspec 1547 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c chspec = pi->radio_chanspec; chspec 1548 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (CHSPEC_CTL_SB(chspec) == WL_CHANSPEC_CTL_SB_NONE) chspec 1549 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c target_chan = CHSPEC_CHANNEL(chspec); chspec 1550 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c else if (CHSPEC_CTL_SB(chspec) == WL_CHANSPEC_CTL_SB_UPPER) chspec 1551 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c target_chan = upper_20_sb(CHSPEC_CHANNEL(chspec)); chspec 1553 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c target_chan = lower_20_sb(CHSPEC_CHANNEL(chspec)); chspec 46 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c ch->chspec = 0; chspec 47 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_CH_MASK, chspec 49 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_D11N_SB_MASK, chspec 51 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_D11N_BW_MASK, chspec 55 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c ch->chspec |= BRCMU_CHSPEC_D11N_BND_2G; chspec 57 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c ch->chspec |= BRCMU_CHSPEC_D11N_BND_5G; chspec 82 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_CH_MASK, chspec 84 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_D11AC_SB_MASK, chspec 86 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_D11AC_BW_MASK, chspec 89 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c ch->chspec &= ~BRCMU_CHSPEC_D11AC_BND_MASK; chspec 91 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c ch->chspec |= BRCMU_CHSPEC_D11AC_BND_2G; chspec 93 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c ch->chspec |= BRCMU_CHSPEC_D11AC_BND_5G; chspec 100 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c ch->chnum = (u8)(ch->chspec & BRCMU_CHSPEC_CH_MASK); chspec 103 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c switch (ch->chspec & BRCMU_CHSPEC_D11N_BW_MASK) { chspec 110 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c val = ch->chspec & BRCMU_CHSPEC_D11N_SB_MASK; chspec 120 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec); chspec 124 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c switch (ch->chspec & BRCMU_CHSPEC_D11N_BND_MASK) { chspec 132 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec); chspec 141 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c ch->chnum = (u8)(ch->chspec & BRCMU_CHSPEC_CH_MASK); chspec 144 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c switch (ch->chspec & BRCMU_CHSPEC_D11AC_BW_MASK) { chspec 151 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c val = ch->chspec & BRCMU_CHSPEC_D11AC_SB_MASK; chspec 159 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec); chspec 164 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c ch->sb = brcmu_maskget16(ch->chspec, BRCMU_CHSPEC_D11AC_SB_MASK, chspec 180 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec); chspec 186 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c ch->sb = brcmu_maskget16(ch->chspec, BRCMU_CHSPEC_D11AC_SB_MASK, chspec 214 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec); chspec 220 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec); chspec 224 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c switch (ch->chspec & BRCMU_CHSPEC_D11AC_BND_MASK) { chspec 232 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec); chspec 131 drivers/net/wireless/broadcom/brcm80211/include/brcmu_d11.h u16 chspec; chspec 97 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h #define CHSPEC_CHANNEL(chspec) ((u8)((chspec) & WL_CHANSPEC_CHAN_MASK)) chspec 98 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h #define CHSPEC_BAND(chspec) ((chspec) & WL_CHANSPEC_BAND_MASK) chspec 100 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h #define CHSPEC_CTL_SB(chspec) ((chspec) & WL_CHANSPEC_CTL_SB_MASK) chspec 101 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h #define CHSPEC_BW(chspec) ((chspec) & WL_CHANSPEC_BW_MASK) chspec 103 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h #define CHSPEC_IS10(chspec) \ chspec 104 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h (((chspec) & WL_CHANSPEC_BW_MASK) == WL_CHANSPEC_BW_10) chspec 106 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h #define CHSPEC_IS20(chspec) \ chspec 107 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h (((chspec) & WL_CHANSPEC_BW_MASK) == WL_CHANSPEC_BW_20) chspec 109 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h #define CHSPEC_IS40(chspec) \ chspec 110 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h (((chspec) & WL_CHANSPEC_BW_MASK) == WL_CHANSPEC_BW_40) chspec 112 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h #define CHSPEC_IS80(chspec) \ chspec 113 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h (((chspec) & WL_CHANSPEC_BW_MASK) == WL_CHANSPEC_BW_80) chspec 115 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h #define CHSPEC_IS5G(chspec) \ chspec 116 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h (((chspec) & WL_CHANSPEC_BAND_MASK) == WL_CHANSPEC_BAND_5G) chspec 118 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h #define CHSPEC_IS2G(chspec) \ chspec 119 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h (((chspec) & WL_CHANSPEC_BAND_MASK) == WL_CHANSPEC_BAND_2G) chspec 121 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h #define CHSPEC_SB_NONE(chspec) \ chspec 122 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h (((chspec) & WL_CHANSPEC_CTL_SB_MASK) == WL_CHANSPEC_CTL_SB_NONE) chspec 124 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h #define CHSPEC_SB_UPPER(chspec) \ chspec 125 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h (((chspec) & WL_CHANSPEC_CTL_SB_MASK) == WL_CHANSPEC_CTL_SB_UPPER) chspec 127 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h #define CHSPEC_SB_LOWER(chspec) \ chspec 128 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h (((chspec) & WL_CHANSPEC_CTL_SB_MASK) == WL_CHANSPEC_CTL_SB_LOWER) chspec 130 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h #define CHSPEC_CTL_CHAN(chspec) \ chspec 131 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h ((CHSPEC_SB_LOWER(chspec)) ? \ chspec 132 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h (lower_20_sb(((chspec) & WL_CHANSPEC_CHAN_MASK))) : \ chspec 133 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h (upper_20_sb(((chspec) & WL_CHANSPEC_CHAN_MASK)))) chspec 135 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h #define CHSPEC2BAND(chspec) (CHSPEC_IS5G(chspec) ? BRCM_BAND_5G : BRCM_BAND_2G) chspec 150 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h static inline int chspec_bandunit(u16 chspec) chspec 152 drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h return CHSPEC_IS5G(chspec) ? BAND_5G_INDEX : BAND_2G_INDEX;