Lines Matching refs:pub
408 return wlc->pub->_nbands > 1 && !wlc->bandlocked; in brcms_is_mband_unlocked()
436 kfree(wlc->pub); in brcms_c_detach_mfree()
487 wlc->pub = kzalloc(sizeof(*wlc->pub), GFP_ATOMIC); in brcms_c_attach_malloc()
488 if (wlc->pub == NULL) { in brcms_c_attach_malloc()
492 wlc->pub->wlc = wlc; in brcms_c_attach_malloc()
616 wlc->pub->unit); in brcms_c_calc_frame_time()
983 ieee80211_tx_status_irqsafe(wlc->pub->ieee_hw, p); in brcms_c_dotxstatus()
1003 ieee80211_queue_stopped(wlc->pub->ieee_hw, ac_queue)) in brcms_c_dotxstatus()
1004 ieee80211_wake_queue(wlc->pub->ieee_hw, ac_queue); in brcms_c_dotxstatus()
2154 memcpy(wlc->pub->cur_etheraddr, addr, sizeof(wlc->pub->cur_etheraddr)); in brcms_c_start_station()
2163 memcpy(wlc->pub->cur_etheraddr, addr, sizeof(wlc->pub->cur_etheraddr)); in brcms_c_start_ap()
2172 memcpy(wlc->pub->cur_etheraddr, addr, sizeof(wlc->pub->cur_etheraddr)); in brcms_c_start_adhoc()
2476 u8 *ethaddr = wlc_hw->wlc->pub->cur_etheraddr; in brcms_b_mute()
2887 ieee80211_wake_queue(wlc->pub->ieee_hw, in brcms_c_flushqueues()
3070 if (!wlc->pub->up) in brcms_c_statsupd()
3093 wlc->pub->unit, delta); in brcms_c_statsupd()
3101 wlc->pub->unit, delta, i); in brcms_c_statsupd()
3124 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); in brcms_c_reset()
3395 (bool) (wlc->pub->_n_enab & SUPPORT_11N), in brcms_default_rateset()
3506 if (wlc->bandlocked || wlc->pub->_nbands == 1) { in brcms_c_bandinit_ordered()
3520 for (i = 0; i < wlc->pub->_nbands; i++) { in brcms_c_bandinit_ordered()
3530 (bool) (wlc->pub->_n_enab & SUPPORT_11N)); in brcms_c_bandinit_ordered()
3578 if (wlc->pub->associated) { in brcms_c_ucode_mac_upd()
3683 wlc->pub->unit, wlc->band->bandunit); in brcms_c_bsinit()
3708 wlc->pub->unit); in brcms_c_duty_cycle_set()
3734 brcms_dbg_mac80211(wlc->hw->d11core, "wl%d: hps %d\n", wlc->pub->unit, in brcms_c_set_ps_ctrl()
3759 brcms_c_set_addrmatch(wlc, RCM_MAC_OFFSET, wlc->pub->cur_etheraddr); in brcms_c_set_mac()
3816 if (wlc->pub->associated) in brcms_c_set_home_chanspec()
3872 if (!wlc->pub->up) in brcms_c_setband()
3889 wlc->pub->unit, __func__, CHSPEC_CHANNEL(chanspec)); in brcms_c_set_chanspec()
3894 if (wlc->pub->_nbands > 1) { in brcms_c_set_chanspec()
3900 wlc->pub->unit, __func__, in brcms_c_set_chanspec()
4012 if (wlc->pub->up) { in brcms_c_ht_update_sgi_rx()
4022 if (wlc->pub->up) { in brcms_c_ht_update_ldpc()
4040 wlc->pub->unit, __func__); in brcms_c_wme_setparams()
4059 "aifs %d\n", wlc->pub->unit, acp_shm.aifs); in brcms_c_wme_setparams()
4153 if (wlc->pub->hw_off) in brcms_c_radio_hwdisable_upd()
4157 mboolset(wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE); in brcms_c_radio_hwdisable_upd()
4159 mboolclr(wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE); in brcms_c_radio_hwdisable_upd()
4167 return mboolisset(wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE) ? in brcms_c_check_radio_disabled()
4178 wlc->pub->unit, __func__); in brcms_c_radio_timer()
4209 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); in brcms_c_watchdog()
4211 if (!wlc->pub->up) in brcms_c_watchdog()
4216 wlc->pub->unit, __func__); in brcms_c_watchdog()
4222 wlc->pub->now++; in brcms_c_watchdog()
4226 if (wlc->pub->radio_disabled) in brcms_c_watchdog()
4235 if ((wlc->pub->now % SW_TIMER_MAC_STAT_UPD) == 0) in brcms_c_watchdog()
4239 ((wlc->pub->now - wlc->tempsense_lasttime) >= in brcms_c_watchdog()
4241 wlc->tempsense_lasttime = wlc->pub->now; in brcms_c_watchdog()
4328 wlc->pub->_ampdu = AMPDU_AGG_HOST; in brcms_c_info_init()
4335 unit = wlc->pub->unit; in brcms_c_attach_module()
4365 return wlc->pub; in brcms_c_pub()
4500 wlc->pub->sih = wlc_hw->sih; in brcms_b_attach()
4501 wlc->pub->corerev = wlc_hw->corerev; in brcms_b_attach()
4502 wlc->pub->sromrev = wlc_hw->sromrev; in brcms_b_attach()
4503 wlc->pub->boardrev = wlc_hw->boardrev; in brcms_b_attach()
4504 wlc->pub->boardflags = wlc_hw->boardflags; in brcms_b_attach()
4505 wlc->pub->boardflags2 = wlc_hw->boardflags2; in brcms_b_attach()
4506 wlc->pub->_nbands = wlc_hw->_nbands; in brcms_b_attach()
4687 unit = wlc->pub->unit; in brcms_c_attach_stf_ant_init()
4739 if (wlc->pub->_nbands > 1 && in brcms_c_bss_default_init()
4746 (bool) (wlc->pub->_n_enab & SUPPORT_11N), in brcms_c_bss_default_init()
4749 if (wlc->pub->_n_enab & SUPPORT_11N) in brcms_c_bss_default_init()
4758 for (i = 0; i < wlc->pub->_nbands; i++) { in brcms_c_update_mimo_band_bwcap()
4879 if (wlc_hw->wlc->pub->hw_up) in brcms_b_hw_up()
4906 wlc_hw->wlc->pub->hw_up = true; in brcms_b_hw_up()
4989 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); in brcms_c_up()
4992 if (wlc->pub->hw_off || brcms_deviceremoved(wlc)) in brcms_c_up()
4995 if (!wlc->pub->hw_up) { in brcms_c_up()
4997 wlc->pub->hw_up = true; in brcms_c_up()
5000 if ((wlc->pub->boardflags & BFL_FEM) in brcms_c_up()
5002 if (wlc->pub->boardrev >= 0x1250 in brcms_c_up()
5003 && (wlc->pub->boardflags & BFL_FEM_BT)) in brcms_c_up()
5020 if (!wlc->pub->radio_disabled) { in brcms_c_up()
5024 (wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE)) { in brcms_c_up()
5026 mboolset(wlc->pub->radio_disabled, in brcms_c_up()
5033 wlc->pub->unit); in brcms_c_up()
5038 if (wlc->pub->radio_disabled) { in brcms_c_up()
5052 wlc->pub->up = true; in brcms_c_up()
5055 ch = wlc->pub->ieee_hw->conf.chandef.chan; in brcms_c_up()
5157 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); in brcms_c_down()
5163 wlc->pub->unit, __func__); in brcms_c_down()
5166 if (!wlc->pub->up) in brcms_c_down()
5189 wlc->pub->up = false; in brcms_c_down()
5217 if ((wlc->pub->_n_enab & SUPPORT_11N) && gmode == GMODE_LEGACY_B) in brcms_c_set_gmode()
5223 else if ((wlc->pub->_nbands > 1) && in brcms_c_set_gmode()
5262 wlc->pub->unit, __func__, gmode); in brcms_c_set_gmode()
5304 wlc->pub->_n_enab = SUPPORT_HT; in brcms_c_set_nmode()
5306 wlc->pub->_n_enab = SUPPORT_11N; in brcms_c_set_nmode()
5311 for (i = 0; i < wlc->pub->_nbands; i++) in brcms_c_set_nmode()
5378 if (!wlc->pub->up && brcms_is_mband_unlocked(wlc)) { in brcms_c_set_channel()
5388 if (wlc->pub->up && (wlc_phy_chanspec_get(wlc->band->pi) != chspec)) { in brcms_c_set_channel()
5426 if (wlc->pub->associated) in brcms_c_get_current_rateset()
5451 if (wlc->pub->_n_enab & SUPPORT_11N) { in brcms_c_set_rateset()
5453 if (wlc->pub->associated) in brcms_c_set_rateset()
5517 if (wlc->pub->up && wlc->pub->associated) { in brcms_c_set_shortslot_override()
5519 } else if (wlc->pub->up) { in brcms_c_set_shortslot_override()
5537 int brcms_c_module_register(struct brcms_pub *pub, in brcms_c_module_register() argument
5541 struct brcms_c_info *wlc = (struct brcms_c_info *) pub->wlc; in brcms_c_module_register()
5559 int brcms_c_module_unregister(struct brcms_pub *pub, const char *name, in brcms_c_module_unregister() argument
5562 struct brcms_c_info *wlc = (struct brcms_c_info *) pub->wlc; in brcms_c_module_unregister()
5802 else if (wlc->pub->_nbands > 1) in brcms_c_valid_rate()
5822 "not in hw_rateset\n", wlc->pub->unit, rspec); in brcms_c_valid_rate()
5844 if ((wlc->pub->_n_enab & SUPPORT_11N) && ismcs) { in mac80211_wlc_set_nrate()
5848 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5858 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5867 wlc->pub->unit, rate); in mac80211_wlc_set_nrate()
5879 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5886 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5893 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5898 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5904 "request\n", wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
6212 wlc->pub->unit, __func__); in brcms_c_d11hdrs_mac80211()
6292 if (wlc->pub->_n_enab & SUPPORT_11N) { in brcms_c_d11hdrs_mac80211()
6380 wlc->pub->unit, __func__); in brcms_c_d11hdrs_mac80211()
6773 wlc->pub->unit, fifo_names[queue], in brcms_c_d11hdrs_mac80211()
6780 wlc->pub->unit, __func__, in brcms_c_d11hdrs_mac80211()
6813 WARN_ON(!ieee80211_queue_stopped(wlc->pub->ieee_hw, in brcms_c_tx()
6878 !ieee80211_queue_stopped(wlc->pub->ieee_hw, queue)) in brcms_c_txfifo()
6879 ieee80211_stop_queue(wlc->pub->ieee_hw, queue); in brcms_c_txfifo()
7128 ieee80211_rx_irqsafe(wlc->pub->ieee_hw, p); in brcms_c_recvctl()
7337 if (wlc->pub->up && (bsscfg->type == BRCMS_TYPE_AP || in brcms_c_update_beacon()
7447 if (wlc->pub->up && (bsscfg->type == BRCMS_TYPE_AP || in brcms_c_update_probe_resp()
7491 wlc->pub->associated = state; in brcms_c_associate_upd()
7532 if (wlc->pub->up) in brcms_c_set_beacon_listen_interval()
7609 wlc->pub->unit, p->len); in brcms_c_recv()
7792 struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan; in brcms_c_init()
7795 brcms_dbg_info(core, "wl%d\n", wlc->pub->unit); in brcms_c_init()
7809 if (wlc->pub->associated && wlc->pub->up) { in brcms_c_init()
7898 struct brcms_pub *pub; in brcms_c_attach() local
7905 pub = wlc->pub; in brcms_c_attach()
7914 pub->unit = unit; in brcms_c_attach()
7915 pub->_piomode = piomode; in brcms_c_attach()
7935 pub->phy_11ncapable = BRCMS_PHY_11N_CAP(wlc->band); in brcms_c_attach()
7956 memcpy(&pub->cur_etheraddr, &wlc->hw->etheraddr, ETH_ALEN); in brcms_c_attach()
7958 for (j = 0; j < wlc->pub->_nbands; j++) { in brcms_c_attach()
7979 pub->_n_enab = SUPPORT_11N; in brcms_c_attach()
7981 ((pub->_n_enab == in brcms_c_attach()
7993 (bool) (wlc->pub->_n_enab & SUPPORT_11N)); in brcms_c_attach()