Lines Matching refs:chspec
46 ch->chspec = 0; in brcmu_d11n_encchspec()
47 brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_CH_MASK, in brcmu_d11n_encchspec()
49 brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_D11N_SB_MASK, in brcmu_d11n_encchspec()
51 brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_D11N_BW_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()
84 brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_D11AC_SB_MASK, in brcmu_d11ac_encchspec()
86 brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_D11AC_BW_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()
100 ch->chnum = (u8)(ch->chspec & BRCMU_CHSPEC_CH_MASK); in brcmu_d11n_decchspec()
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()
120 WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec); in brcmu_d11n_decchspec()
124 switch (ch->chspec & BRCMU_CHSPEC_D11N_BND_MASK) { in brcmu_d11n_decchspec()
132 WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec); in brcmu_d11n_decchspec()
141 ch->chnum = (u8)(ch->chspec & BRCMU_CHSPEC_CH_MASK); in brcmu_d11ac_decchspec()
144 switch (ch->chspec & BRCMU_CHSPEC_D11AC_BW_MASK) { in brcmu_d11ac_decchspec()
151 val = ch->chspec & BRCMU_CHSPEC_D11AC_SB_MASK; in brcmu_d11ac_decchspec()
159 WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec); in brcmu_d11ac_decchspec()
164 ch->sb = brcmu_maskget16(ch->chspec, BRCMU_CHSPEC_D11AC_SB_MASK, in brcmu_d11ac_decchspec()
180 WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec); in brcmu_d11ac_decchspec()
186 ch->sb = brcmu_maskget16(ch->chspec, BRCMU_CHSPEC_D11AC_SB_MASK, in brcmu_d11ac_decchspec()
214 WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec); in brcmu_d11ac_decchspec()
220 WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec); in brcmu_d11ac_decchspec()
224 switch (ch->chspec & BRCMU_CHSPEC_D11AC_BND_MASK) { in brcmu_d11ac_decchspec()
232 WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec); in brcmu_d11ac_decchspec()