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()
623 wlc->pub->unit); in brcms_c_calc_frame_time()
990 ieee80211_tx_status_irqsafe(wlc->pub->ieee_hw, p); in brcms_c_dotxstatus()
1010 ieee80211_queue_stopped(wlc->pub->ieee_hw, ac_queue)) in brcms_c_dotxstatus()
1011 ieee80211_wake_queue(wlc->pub->ieee_hw, ac_queue); in brcms_c_dotxstatus()
2161 memcpy(wlc->pub->cur_etheraddr, addr, sizeof(wlc->pub->cur_etheraddr)); in brcms_c_start_station()
2170 memcpy(wlc->pub->cur_etheraddr, addr, sizeof(wlc->pub->cur_etheraddr)); in brcms_c_start_ap()
2179 memcpy(wlc->pub->cur_etheraddr, addr, sizeof(wlc->pub->cur_etheraddr)); in brcms_c_start_adhoc()
2483 u8 *ethaddr = wlc_hw->wlc->pub->cur_etheraddr; in brcms_b_mute()
2894 ieee80211_wake_queue(wlc->pub->ieee_hw, in brcms_c_flushqueues()
3077 if (!wlc->pub->up) in brcms_c_statsupd()
3100 wlc->pub->unit, delta); in brcms_c_statsupd()
3108 wlc->pub->unit, delta, i); in brcms_c_statsupd()
3131 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); in brcms_c_reset()
3404 (bool) (wlc->pub->_n_enab & SUPPORT_11N), in brcms_default_rateset()
3515 if (wlc->bandlocked || wlc->pub->_nbands == 1) { in brcms_c_bandinit_ordered()
3529 for (i = 0; i < wlc->pub->_nbands; i++) { in brcms_c_bandinit_ordered()
3539 (bool) (wlc->pub->_n_enab & SUPPORT_11N)); in brcms_c_bandinit_ordered()
3587 if (wlc->pub->associated) { in brcms_c_ucode_mac_upd()
3692 wlc->pub->unit, wlc->band->bandunit); in brcms_c_bsinit()
3717 wlc->pub->unit); in brcms_c_duty_cycle_set()
3743 brcms_dbg_mac80211(wlc->hw->d11core, "wl%d: hps %d\n", wlc->pub->unit, in brcms_c_set_ps_ctrl()
3768 brcms_c_set_addrmatch(wlc, RCM_MAC_OFFSET, wlc->pub->cur_etheraddr); in brcms_c_set_mac()
3825 if (wlc->pub->associated) in brcms_c_set_home_chanspec()
3881 if (!wlc->pub->up) in brcms_c_setband()
3898 wlc->pub->unit, __func__, CHSPEC_CHANNEL(chanspec)); in brcms_c_set_chanspec()
3903 if (wlc->pub->_nbands > 1) { in brcms_c_set_chanspec()
3909 wlc->pub->unit, __func__, in brcms_c_set_chanspec()
4021 if (wlc->pub->up) { in brcms_c_ht_update_sgi_rx()
4031 if (wlc->pub->up) { in brcms_c_ht_update_ldpc()
4049 wlc->pub->unit, __func__); in brcms_c_wme_setparams()
4068 "aifs %d\n", wlc->pub->unit, acp_shm.aifs); in brcms_c_wme_setparams()
4162 if (wlc->pub->hw_off) in brcms_c_radio_hwdisable_upd()
4166 mboolset(wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE); in brcms_c_radio_hwdisable_upd()
4168 mboolclr(wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE); in brcms_c_radio_hwdisable_upd()
4176 return mboolisset(wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE) ? in brcms_c_check_radio_disabled()
4187 wlc->pub->unit, __func__); in brcms_c_radio_timer()
4218 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); in brcms_c_watchdog()
4220 if (!wlc->pub->up) in brcms_c_watchdog()
4225 wlc->pub->unit, __func__); in brcms_c_watchdog()
4231 wlc->pub->now++; in brcms_c_watchdog()
4235 if (wlc->pub->radio_disabled) in brcms_c_watchdog()
4244 if ((wlc->pub->now % SW_TIMER_MAC_STAT_UPD) == 0) in brcms_c_watchdog()
4248 ((wlc->pub->now - wlc->tempsense_lasttime) >= in brcms_c_watchdog()
4250 wlc->tempsense_lasttime = wlc->pub->now; in brcms_c_watchdog()
4337 wlc->pub->_ampdu = AMPDU_AGG_HOST; in brcms_c_info_init()
4344 unit = wlc->pub->unit; in brcms_c_attach_module()
4374 return wlc->pub; in brcms_c_pub()
4509 wlc->pub->sih = wlc_hw->sih; in brcms_b_attach()
4510 wlc->pub->corerev = wlc_hw->corerev; in brcms_b_attach()
4511 wlc->pub->sromrev = wlc_hw->sromrev; in brcms_b_attach()
4512 wlc->pub->boardrev = wlc_hw->boardrev; in brcms_b_attach()
4513 wlc->pub->boardflags = wlc_hw->boardflags; in brcms_b_attach()
4514 wlc->pub->boardflags2 = wlc_hw->boardflags2; in brcms_b_attach()
4515 wlc->pub->_nbands = wlc_hw->_nbands; in brcms_b_attach()
4696 unit = wlc->pub->unit; in brcms_c_attach_stf_ant_init()
4748 if (wlc->pub->_nbands > 1 && in brcms_c_bss_default_init()
4755 (bool) (wlc->pub->_n_enab & SUPPORT_11N), in brcms_c_bss_default_init()
4758 if (wlc->pub->_n_enab & SUPPORT_11N) in brcms_c_bss_default_init()
4767 for (i = 0; i < wlc->pub->_nbands; i++) { in brcms_c_update_mimo_band_bwcap()
4888 if (wlc_hw->wlc->pub->hw_up) in brcms_b_hw_up()
4915 wlc_hw->wlc->pub->hw_up = true; in brcms_b_hw_up()
4998 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); in brcms_c_up()
5001 if (wlc->pub->hw_off || brcms_deviceremoved(wlc)) in brcms_c_up()
5004 if (!wlc->pub->hw_up) { in brcms_c_up()
5006 wlc->pub->hw_up = true; in brcms_c_up()
5009 if ((wlc->pub->boardflags & BFL_FEM) in brcms_c_up()
5011 if (wlc->pub->boardrev >= 0x1250 in brcms_c_up()
5012 && (wlc->pub->boardflags & BFL_FEM_BT)) in brcms_c_up()
5029 if (!wlc->pub->radio_disabled) { in brcms_c_up()
5033 (wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE)) { in brcms_c_up()
5035 mboolset(wlc->pub->radio_disabled, in brcms_c_up()
5042 wlc->pub->unit); in brcms_c_up()
5047 if (wlc->pub->radio_disabled) { in brcms_c_up()
5061 wlc->pub->up = true; in brcms_c_up()
5064 ch = wlc->pub->ieee_hw->conf.chandef.chan; in brcms_c_up()
5166 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); in brcms_c_down()
5172 wlc->pub->unit, __func__); in brcms_c_down()
5175 if (!wlc->pub->up) in brcms_c_down()
5198 wlc->pub->up = false; in brcms_c_down()
5226 if ((wlc->pub->_n_enab & SUPPORT_11N) && gmode == GMODE_LEGACY_B) in brcms_c_set_gmode()
5232 else if ((wlc->pub->_nbands > 1) && in brcms_c_set_gmode()
5271 wlc->pub->unit, __func__, gmode); in brcms_c_set_gmode()
5313 wlc->pub->_n_enab = SUPPORT_HT; in brcms_c_set_nmode()
5315 wlc->pub->_n_enab = SUPPORT_11N; in brcms_c_set_nmode()
5320 for (i = 0; i < wlc->pub->_nbands; i++) in brcms_c_set_nmode()
5387 if (!wlc->pub->up && brcms_is_mband_unlocked(wlc)) { in brcms_c_set_channel()
5397 if (wlc->pub->up && (wlc_phy_chanspec_get(wlc->band->pi) != chspec)) { in brcms_c_set_channel()
5435 if (wlc->pub->associated) in brcms_c_get_current_rateset()
5460 if (wlc->pub->_n_enab & SUPPORT_11N) { in brcms_c_set_rateset()
5462 if (wlc->pub->associated) in brcms_c_set_rateset()
5526 if (wlc->pub->up && wlc->pub->associated) { in brcms_c_set_shortslot_override()
5528 } else if (wlc->pub->up) { in brcms_c_set_shortslot_override()
5546 int brcms_c_module_register(struct brcms_pub *pub, in brcms_c_module_register() argument
5550 struct brcms_c_info *wlc = (struct brcms_c_info *) pub->wlc; in brcms_c_module_register()
5568 int brcms_c_module_unregister(struct brcms_pub *pub, const char *name, in brcms_c_module_unregister() argument
5571 struct brcms_c_info *wlc = (struct brcms_c_info *) pub->wlc; in brcms_c_module_unregister()
5811 else if (wlc->pub->_nbands > 1) in brcms_c_valid_rate()
5831 "not in hw_rateset\n", wlc->pub->unit, rspec); in brcms_c_valid_rate()
5853 if ((wlc->pub->_n_enab & SUPPORT_11N) && ismcs) { in mac80211_wlc_set_nrate()
5857 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5867 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5876 wlc->pub->unit, rate); in mac80211_wlc_set_nrate()
5888 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5895 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5902 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5907 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5913 "request\n", wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
6221 wlc->pub->unit, __func__); in brcms_c_d11hdrs_mac80211()
6301 if (wlc->pub->_n_enab & SUPPORT_11N) { in brcms_c_d11hdrs_mac80211()
6389 wlc->pub->unit, __func__); in brcms_c_d11hdrs_mac80211()
6782 wlc->pub->unit, fifo_names[queue], in brcms_c_d11hdrs_mac80211()
6789 wlc->pub->unit, __func__, in brcms_c_d11hdrs_mac80211()
6822 WARN_ON(!ieee80211_queue_stopped(wlc->pub->ieee_hw, in brcms_c_tx()
6887 !ieee80211_queue_stopped(wlc->pub->ieee_hw, queue)) in brcms_c_txfifo()
6888 ieee80211_stop_queue(wlc->pub->ieee_hw, queue); in brcms_c_txfifo()
7137 ieee80211_rx_irqsafe(wlc->pub->ieee_hw, p); in brcms_c_recvctl()
7346 if (wlc->pub->up && (bsscfg->type == BRCMS_TYPE_AP || in brcms_c_update_beacon()
7456 if (wlc->pub->up && (bsscfg->type == BRCMS_TYPE_AP || in brcms_c_update_probe_resp()
7500 wlc->pub->associated = state; in brcms_c_associate_upd()
7541 if (wlc->pub->up) in brcms_c_set_beacon_listen_interval()
7618 wlc->pub->unit, p->len); in brcms_c_recv()
7801 struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan; in brcms_c_init()
7804 brcms_dbg_info(core, "wl%d\n", wlc->pub->unit); in brcms_c_init()
7818 if (wlc->pub->associated && wlc->pub->up) { in brcms_c_init()
7907 struct brcms_pub *pub; in brcms_c_attach() local
7914 pub = wlc->pub; in brcms_c_attach()
7923 pub->unit = unit; in brcms_c_attach()
7924 pub->_piomode = piomode; in brcms_c_attach()
7944 pub->phy_11ncapable = BRCMS_PHY_11N_CAP(wlc->band); in brcms_c_attach()
7965 memcpy(&pub->cur_etheraddr, &wlc->hw->etheraddr, ETH_ALEN); in brcms_c_attach()
7967 for (j = 0; j < wlc->pub->_nbands; j++) { in brcms_c_attach()
7988 pub->_n_enab = SUPPORT_11N; in brcms_c_attach()
7990 ((pub->_n_enab == in brcms_c_attach()
8002 (bool) (wlc->pub->_n_enab & SUPPORT_11N)); in brcms_c_attach()