Lines Matching refs:pub

414 	return wlc->pub->_nbands > 1 && !wlc->bandlocked;  in brcms_is_mband_unlocked()
442 kfree(wlc->pub); in brcms_c_detach_mfree()
493 wlc->pub = kzalloc(sizeof(struct brcms_pub), GFP_ATOMIC); in brcms_c_attach_malloc()
494 if (wlc->pub == NULL) { in brcms_c_attach_malloc()
498 wlc->pub->wlc = wlc; in brcms_c_attach_malloc()
622 wlc->pub->unit); in brcms_c_calc_frame_time()
998 ieee80211_tx_status_irqsafe(wlc->pub->ieee_hw, p); in brcms_c_dotxstatus()
1018 ieee80211_queue_stopped(wlc->pub->ieee_hw, ac_queue)) in brcms_c_dotxstatus()
1019 ieee80211_wake_queue(wlc->pub->ieee_hw, ac_queue); in brcms_c_dotxstatus()
2172 memcpy(wlc->pub->cur_etheraddr, addr, sizeof(wlc->pub->cur_etheraddr)); in brcms_c_start_station()
2181 memcpy(wlc->pub->cur_etheraddr, addr, sizeof(wlc->pub->cur_etheraddr)); in brcms_c_start_ap()
2190 memcpy(wlc->pub->cur_etheraddr, addr, sizeof(wlc->pub->cur_etheraddr)); in brcms_c_start_adhoc()
2497 u8 *ethaddr = wlc_hw->wlc->pub->cur_etheraddr; in brcms_b_mute()
2908 ieee80211_wake_queue(wlc->pub->ieee_hw, in brcms_c_flushqueues()
3091 if (!wlc->pub->up) in brcms_c_statsupd()
3114 wlc->pub->unit, delta); in brcms_c_statsupd()
3122 wlc->pub->unit, delta, i); in brcms_c_statsupd()
3145 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); in brcms_c_reset()
3419 (bool) (wlc->pub->_n_enab & SUPPORT_11N), in brcms_default_rateset()
3530 if (wlc->bandlocked || wlc->pub->_nbands == 1) { in brcms_c_bandinit_ordered()
3544 for (i = 0; i < wlc->pub->_nbands; i++) { in brcms_c_bandinit_ordered()
3554 (bool) (wlc->pub->_n_enab & SUPPORT_11N)); in brcms_c_bandinit_ordered()
3602 if (wlc->pub->associated) { in brcms_c_ucode_mac_upd()
3707 wlc->pub->unit, wlc->band->bandunit); in brcms_c_bsinit()
3732 wlc->pub->unit); in brcms_c_duty_cycle_set()
3758 brcms_dbg_mac80211(wlc->hw->d11core, "wl%d: hps %d\n", wlc->pub->unit, in brcms_c_set_ps_ctrl()
3784 brcms_c_set_addrmatch(wlc, RCM_MAC_OFFSET, wlc->pub->cur_etheraddr); in brcms_c_set_mac()
3843 if (wlc->pub->associated) in brcms_c_set_home_chanspec()
3899 if (!wlc->pub->up) in brcms_c_setband()
3917 wlc->pub->unit, __func__, CHSPEC_CHANNEL(chanspec)); in brcms_c_set_chanspec()
3922 if (wlc->pub->_nbands > 1) { in brcms_c_set_chanspec()
3929 wlc->pub->unit, __func__, in brcms_c_set_chanspec()
4041 if (wlc->pub->up) { in brcms_c_ht_update_sgi_rx()
4051 if (wlc->pub->up) { in brcms_c_ht_update_ldpc()
4069 wlc->pub->unit, __func__); in brcms_c_wme_setparams()
4088 "aifs %d\n", wlc->pub->unit, acp_shm.aifs); in brcms_c_wme_setparams()
4182 if (wlc->pub->hw_off) in brcms_c_radio_hwdisable_upd()
4186 mboolset(wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE); in brcms_c_radio_hwdisable_upd()
4188 mboolclr(wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE); in brcms_c_radio_hwdisable_upd()
4196 return mboolisset(wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE) ? in brcms_c_check_radio_disabled()
4207 wlc->pub->unit, __func__); in brcms_c_radio_timer()
4238 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); in brcms_c_watchdog()
4240 if (!wlc->pub->up) in brcms_c_watchdog()
4245 wlc->pub->unit, __func__); in brcms_c_watchdog()
4251 wlc->pub->now++; in brcms_c_watchdog()
4255 if (wlc->pub->radio_disabled) in brcms_c_watchdog()
4264 if ((wlc->pub->now % SW_TIMER_MAC_STAT_UPD) == 0) in brcms_c_watchdog()
4268 ((wlc->pub->now - wlc->tempsense_lasttime) >= in brcms_c_watchdog()
4270 wlc->tempsense_lasttime = wlc->pub->now; in brcms_c_watchdog()
4357 wlc->pub->_ampdu = AMPDU_AGG_HOST; in brcms_c_info_init()
4364 unit = wlc->pub->unit; in brcms_c_attach_module()
4394 return wlc->pub; in brcms_c_pub()
4529 wlc->pub->sih = wlc_hw->sih; in brcms_b_attach()
4530 wlc->pub->corerev = wlc_hw->corerev; in brcms_b_attach()
4531 wlc->pub->sromrev = wlc_hw->sromrev; in brcms_b_attach()
4532 wlc->pub->boardrev = wlc_hw->boardrev; in brcms_b_attach()
4533 wlc->pub->boardflags = wlc_hw->boardflags; in brcms_b_attach()
4534 wlc->pub->boardflags2 = wlc_hw->boardflags2; in brcms_b_attach()
4535 wlc->pub->_nbands = wlc_hw->_nbands; in brcms_b_attach()
4716 unit = wlc->pub->unit; in brcms_c_attach_stf_ant_init()
4768 if (wlc->pub->_nbands > 1 && in brcms_c_bss_default_init()
4775 (bool) (wlc->pub->_n_enab & SUPPORT_11N), in brcms_c_bss_default_init()
4778 if (wlc->pub->_n_enab & SUPPORT_11N) in brcms_c_bss_default_init()
4787 for (i = 0; i < wlc->pub->_nbands; i++) { in brcms_c_update_mimo_band_bwcap()
4908 if (wlc_hw->wlc->pub->hw_up) in brcms_b_hw_up()
4935 wlc_hw->wlc->pub->hw_up = true; in brcms_b_hw_up()
5018 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); in brcms_c_up()
5021 if (wlc->pub->hw_off || brcms_deviceremoved(wlc)) in brcms_c_up()
5024 if (!wlc->pub->hw_up) { in brcms_c_up()
5026 wlc->pub->hw_up = true; in brcms_c_up()
5029 if ((wlc->pub->boardflags & BFL_FEM) in brcms_c_up()
5031 if (wlc->pub->boardrev >= 0x1250 in brcms_c_up()
5032 && (wlc->pub->boardflags & BFL_FEM_BT)) in brcms_c_up()
5049 if (!wlc->pub->radio_disabled) { in brcms_c_up()
5053 (wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE)) { in brcms_c_up()
5055 mboolset(wlc->pub->radio_disabled, in brcms_c_up()
5062 wlc->pub->unit); in brcms_c_up()
5067 if (wlc->pub->radio_disabled) { in brcms_c_up()
5081 wlc->pub->up = true; in brcms_c_up()
5084 ch = wlc->pub->ieee_hw->conf.chandef.chan; in brcms_c_up()
5194 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); in brcms_c_down()
5200 wlc->pub->unit, __func__); in brcms_c_down()
5203 if (!wlc->pub->up) in brcms_c_down()
5228 wlc->pub->up = false; in brcms_c_down()
5264 if ((wlc->pub->_n_enab & SUPPORT_11N) && gmode == GMODE_LEGACY_B) in brcms_c_set_gmode()
5270 else if ((wlc->pub->_nbands > 1) && in brcms_c_set_gmode()
5314 wlc->pub->unit, __func__, gmode); in brcms_c_set_gmode()
5356 wlc->pub->_n_enab = SUPPORT_HT; in brcms_c_set_nmode()
5358 wlc->pub->_n_enab = SUPPORT_11N; in brcms_c_set_nmode()
5363 for (i = 0; i < wlc->pub->_nbands; i++) in brcms_c_set_nmode()
5419 if (wlc->pub->associated) in brcms_c_ofdm_rateset_war()
5438 if (!wlc->pub->up && brcms_is_mband_unlocked(wlc)) { in brcms_c_set_channel()
5448 if (wlc->pub->up && (wlc_phy_chanspec_get(wlc->band->pi) != chspec)) { in brcms_c_set_channel()
5486 if (wlc->pub->associated) in brcms_c_get_current_rateset()
5511 if (wlc->pub->_n_enab & SUPPORT_11N) { in brcms_c_set_rateset()
5513 if (wlc->pub->associated) in brcms_c_set_rateset()
5577 if (wlc->pub->up && wlc->pub->associated) { in brcms_c_set_shortslot_override()
5579 } else if (wlc->pub->up) { in brcms_c_set_shortslot_override()
5597 int brcms_c_module_register(struct brcms_pub *pub, in brcms_c_module_register() argument
5601 struct brcms_c_info *wlc = (struct brcms_c_info *) pub->wlc; in brcms_c_module_register()
5619 int brcms_c_module_unregister(struct brcms_pub *pub, const char *name, in brcms_c_module_unregister() argument
5622 struct brcms_c_info *wlc = (struct brcms_c_info *) pub->wlc; in brcms_c_module_unregister()
5862 else if (wlc->pub->_nbands > 1) in brcms_c_valid_rate()
5882 "not in hw_rateset\n", wlc->pub->unit, rspec); in brcms_c_valid_rate()
5905 if ((wlc->pub->_n_enab & SUPPORT_11N) && ismcs) { in mac80211_wlc_set_nrate()
5909 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5920 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5930 wlc->pub->unit, rate); in mac80211_wlc_set_nrate()
5942 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5950 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5958 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5964 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5971 "request\n", wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
6281 wlc->pub->unit, __func__); in brcms_c_d11hdrs_mac80211()
6365 if (wlc->pub->_n_enab & SUPPORT_11N) { in brcms_c_d11hdrs_mac80211()
6453 wlc->pub->unit, __func__); in brcms_c_d11hdrs_mac80211()
6845 wlc->pub->unit, fifo_names[queue], in brcms_c_d11hdrs_mac80211()
6852 wlc->pub->unit, __func__, in brcms_c_d11hdrs_mac80211()
6885 WARN_ON(!ieee80211_queue_stopped(wlc->pub->ieee_hw, in brcms_c_tx()
6950 !ieee80211_queue_stopped(wlc->pub->ieee_hw, queue)) in brcms_c_txfifo()
6951 ieee80211_stop_queue(wlc->pub->ieee_hw, queue); in brcms_c_txfifo()
7200 ieee80211_rx_irqsafe(wlc->pub->ieee_hw, p); in brcms_c_recvctl()
7411 if (wlc->pub->up && (bsscfg->type == BRCMS_TYPE_AP || in brcms_c_update_beacon()
7521 if (wlc->pub->up && (bsscfg->type == BRCMS_TYPE_AP || in brcms_c_update_probe_resp()
7565 wlc->pub->associated = state; in brcms_c_associate_upd()
7606 if (wlc->pub->up) in brcms_c_set_beacon_listen_interval()
7683 wlc->pub->unit, p->len); in brcms_c_recv()
7866 struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan; in brcms_c_init()
7869 brcms_dbg_info(core, "wl%d\n", wlc->pub->unit); in brcms_c_init()
7883 if (wlc->pub->associated && wlc->pub->up) { in brcms_c_init()
7972 struct brcms_pub *pub; in brcms_c_attach() local
7979 pub = wlc->pub; in brcms_c_attach()
7988 pub->unit = unit; in brcms_c_attach()
7989 pub->_piomode = piomode; in brcms_c_attach()
8009 pub->phy_11ncapable = BRCMS_PHY_11N_CAP(wlc->band); in brcms_c_attach()
8030 memcpy(&pub->cur_etheraddr, &wlc->hw->etheraddr, ETH_ALEN); in brcms_c_attach()
8032 for (j = 0; j < wlc->pub->_nbands; j++) { in brcms_c_attach()
8053 pub->_n_enab = SUPPORT_11N; in brcms_c_attach()
8055 ((pub->_n_enab == in brcms_c_attach()
8067 (bool) (wlc->pub->_n_enab & SUPPORT_11N)); in brcms_c_attach()