Lines Matching refs:pub

414 	return wlc->pub->_nbands > 1 && !wlc->bandlocked;
442 kfree(wlc->pub);
493 wlc->pub = kzalloc(sizeof(struct brcms_pub), GFP_ATOMIC);
494 if (wlc->pub == NULL) {
498 wlc->pub->wlc = wlc;
623 wlc->pub->unit);
990 ieee80211_tx_status_irqsafe(wlc->pub->ieee_hw, p);
1010 ieee80211_queue_stopped(wlc->pub->ieee_hw, ac_queue))
1011 ieee80211_wake_queue(wlc->pub->ieee_hw, ac_queue);
2161 memcpy(wlc->pub->cur_etheraddr, addr, sizeof(wlc->pub->cur_etheraddr));
2170 memcpy(wlc->pub->cur_etheraddr, addr, sizeof(wlc->pub->cur_etheraddr));
2179 memcpy(wlc->pub->cur_etheraddr, addr, sizeof(wlc->pub->cur_etheraddr));
2483 u8 *ethaddr = wlc_hw->wlc->pub->cur_etheraddr;
2894 ieee80211_wake_queue(wlc->pub->ieee_hw,
3077 if (!wlc->pub->up)
3100 wlc->pub->unit, delta);
3108 wlc->pub->unit, delta, i);
3131 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit);
3402 (bool) (wlc->pub->_n_enab & SUPPORT_11N),
3513 if (wlc->bandlocked || wlc->pub->_nbands == 1) {
3527 for (i = 0; i < wlc->pub->_nbands; i++) {
3537 (bool) (wlc->pub->_n_enab & SUPPORT_11N));
3585 if (wlc->pub->associated) {
3690 wlc->pub->unit, wlc->band->bandunit);
3715 wlc->pub->unit);
3741 brcms_dbg_mac80211(wlc->hw->d11core, "wl%d: hps %d\n", wlc->pub->unit,
3766 brcms_c_set_addrmatch(wlc, RCM_MAC_OFFSET, wlc->pub->cur_etheraddr);
3823 if (wlc->pub->associated)
3879 if (!wlc->pub->up)
3896 wlc->pub->unit, __func__, CHSPEC_CHANNEL(chanspec));
3901 if (wlc->pub->_nbands > 1) {
3907 wlc->pub->unit, __func__,
4019 if (wlc->pub->up) {
4029 if (wlc->pub->up) {
4047 wlc->pub->unit, __func__);
4066 "aifs %d\n", wlc->pub->unit, acp_shm.aifs);
4160 if (wlc->pub->hw_off)
4164 mboolset(wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE);
4166 mboolclr(wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE);
4174 return mboolisset(wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE) ?
4185 wlc->pub->unit, __func__);
4216 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit);
4218 if (!wlc->pub->up)
4223 wlc->pub->unit, __func__);
4229 wlc->pub->now++;
4233 if (wlc->pub->radio_disabled)
4242 if ((wlc->pub->now % SW_TIMER_MAC_STAT_UPD) == 0)
4246 ((wlc->pub->now - wlc->tempsense_lasttime) >=
4248 wlc->tempsense_lasttime = wlc->pub->now;
4335 wlc->pub->_ampdu = AMPDU_AGG_HOST;
4342 unit = wlc->pub->unit;
4372 return wlc->pub;
4502 /* BMAC_NOTE: remove init of pub values when brcms_c_attach()
4507 wlc->pub->sih = wlc_hw->sih;
4508 wlc->pub->corerev = wlc_hw->corerev;
4509 wlc->pub->sromrev = wlc_hw->sromrev;
4510 wlc->pub->boardrev = wlc_hw->boardrev;
4511 wlc->pub->boardflags = wlc_hw->boardflags;
4512 wlc->pub->boardflags2 = wlc_hw->boardflags2;
4513 wlc->pub->_nbands = wlc_hw->_nbands;
4694 unit = wlc->pub->unit;
4746 if (wlc->pub->_nbands > 1 &&
4753 (bool) (wlc->pub->_n_enab & SUPPORT_11N),
4756 if (wlc->pub->_n_enab & SUPPORT_11N)
4765 for (i = 0; i < wlc->pub->_nbands; i++) {
4886 if (wlc_hw->wlc->pub->hw_up)
4913 wlc_hw->wlc->pub->hw_up = true;
4996 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit);
4999 if (wlc->pub->hw_off || brcms_deviceremoved(wlc))
5002 if (!wlc->pub->hw_up) {
5004 wlc->pub->hw_up = true;
5007 if ((wlc->pub->boardflags & BFL_FEM)
5009 if (wlc->pub->boardrev >= 0x1250
5010 && (wlc->pub->boardflags & BFL_FEM_BT))
5027 if (!wlc->pub->radio_disabled) {
5031 (wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE)) {
5033 mboolset(wlc->pub->radio_disabled,
5040 wlc->pub->unit);
5045 if (wlc->pub->radio_disabled) {
5059 wlc->pub->up = true;
5062 ch = wlc->pub->ieee_hw->conf.chandef.chan;
5164 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit);
5170 wlc->pub->unit, __func__);
5173 if (!wlc->pub->up)
5196 wlc->pub->up = false;
5224 if ((wlc->pub->_n_enab & SUPPORT_11N) && gmode == GMODE_LEGACY_B)
5230 else if ((wlc->pub->_nbands > 1) &&
5269 wlc->pub->unit, __func__, gmode);
5311 wlc->pub->_n_enab = SUPPORT_HT;
5313 wlc->pub->_n_enab = SUPPORT_11N;
5318 for (i = 0; i < wlc->pub->_nbands; i++)
5385 if (!wlc->pub->up && brcms_is_mband_unlocked(wlc)) {
5395 if (wlc->pub->up && (wlc_phy_chanspec_get(wlc->band->pi) != chspec)) {
5433 if (wlc->pub->associated)
5458 if (wlc->pub->_n_enab & SUPPORT_11N) {
5460 if (wlc->pub->associated)
5524 if (wlc->pub->up && wlc->pub->associated) {
5526 } else if (wlc->pub->up) {
5544 int brcms_c_module_register(struct brcms_pub *pub,
5548 struct brcms_c_info *wlc = (struct brcms_c_info *) pub->wlc;
5566 int brcms_c_module_unregister(struct brcms_pub *pub, const char *name,
5569 struct brcms_c_info *wlc = (struct brcms_c_info *) pub->wlc;
5809 else if (wlc->pub->_nbands > 1)
5829 "not in hw_rateset\n", wlc->pub->unit, rspec);
5851 if ((wlc->pub->_n_enab & SUPPORT_11N) && ismcs) {
5855 wlc->pub->unit, __func__);
5865 wlc->pub->unit, __func__);
5874 wlc->pub->unit, rate);
5886 wlc->pub->unit, __func__);
5893 wlc->pub->unit, __func__);
5900 wlc->pub->unit, __func__);
5905 wlc->pub->unit, __func__);
5911 "request\n", wlc->pub->unit, __func__);
6219 wlc->pub->unit, __func__);
6299 if (wlc->pub->_n_enab & SUPPORT_11N) {
6387 wlc->pub->unit, __func__);
6780 wlc->pub->unit, fifo_names[queue],
6787 wlc->pub->unit, __func__,
6820 WARN_ON(!ieee80211_queue_stopped(wlc->pub->ieee_hw,
6885 !ieee80211_queue_stopped(wlc->pub->ieee_hw, queue))
6886 ieee80211_stop_queue(wlc->pub->ieee_hw, queue);
7135 ieee80211_rx_irqsafe(wlc->pub->ieee_hw, p);
7344 if (wlc->pub->up && (bsscfg->type == BRCMS_TYPE_AP ||
7454 if (wlc->pub->up && (bsscfg->type == BRCMS_TYPE_AP ||
7498 wlc->pub->associated = state;
7539 if (wlc->pub->up)
7616 wlc->pub->unit, p->len);
7799 struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan;
7802 brcms_dbg_info(core, "wl%d\n", wlc->pub->unit);
7816 if (wlc->pub->associated && wlc->pub->up) {
7905 struct brcms_pub *pub;
7912 pub = wlc->pub;
7921 pub->unit = unit;
7922 pub->_piomode = piomode;
7942 pub->phy_11ncapable = BRCMS_PHY_11N_CAP(wlc->band);
7963 memcpy(&pub->cur_etheraddr, &wlc->hw->etheraddr, ETH_ALEN);
7965 for (j = 0; j < wlc->pub->_nbands; j++) {
7986 pub->_n_enab = SUPPORT_11N;
7988 ((pub->_n_enab ==
8000 (bool) (wlc->pub->_n_enab & SUPPORT_11N));