• Home
  • Raw
  • Download

Lines Matching refs:pub

411 	return wlc->pub->_nbands > 1 && !wlc->bandlocked;  in brcms_is_mband_unlocked()
439 kfree(wlc->pub); in brcms_c_detach_mfree()
486 wlc->pub = kzalloc(sizeof(struct brcms_pub), GFP_ATOMIC); in brcms_c_attach_malloc()
487 if (wlc->pub == NULL) { in brcms_c_attach_malloc()
491 wlc->pub->wlc = wlc; in brcms_c_attach_malloc()
615 wlc->pub->unit); in brcms_c_calc_frame_time()
620 wlc->pub->unit, ratespec, preamble_type, mac_len); in brcms_c_calc_frame_time()
976 ieee80211_tx_status_irqsafe(wlc->pub->ieee_hw, p); in brcms_c_dotxstatus()
3053 if (!wlc->pub->associated) in brcms_c_ps_allowed()
3085 if (!wlc->pub->up) in brcms_c_statsupd()
3106 wlc->pub->unit, delta); in brcms_c_statsupd()
3115 "\n", wlc->pub->unit, delta, i); in brcms_c_statsupd()
3140 BCMMSG(wlc->wiphy, "wl%d\n", wlc->pub->unit); in brcms_c_reset()
3432 (bool) (wlc->pub->_n_enab & SUPPORT_11N), in brcms_default_rateset()
3539 BCMMSG(wlc->wiphy, "wl%d\n", wlc->pub->unit); in brcms_c_bandinit_ordered()
3544 if (wlc->bandlocked || wlc->pub->_nbands == 1) { in brcms_c_bandinit_ordered()
3558 for (i = 0; i < wlc->pub->_nbands; i++) { in brcms_c_bandinit_ordered()
3568 (bool) (wlc->pub->_n_enab & SUPPORT_11N)); in brcms_c_bandinit_ordered()
3616 if (wlc->pub->associated) { in brcms_c_ucode_mac_upd()
3721 wlc->pub->unit, wlc->band->bandunit); in brcms_c_bsinit()
3745 wlc->pub->unit); in brcms_c_duty_cycle_set()
3805 BCMMSG(wlc->wiphy, "wl%d: hps %d\n", wlc->pub->unit, hps); in brcms_c_set_ps_ctrl()
3935 if (!wlc->pub->up) in brcms_c_setband()
3953 wlc->pub->unit, __func__, CHSPEC_CHANNEL(chanspec)); in brcms_c_set_chanspec()
3958 if (wlc->pub->_nbands > 1) { in brcms_c_set_chanspec()
3965 wlc->pub->unit, __func__, in brcms_c_set_chanspec()
4073 if (wlc->pub->up) { in brcms_c_ht_update_sgi_rx()
4083 if (wlc->pub->up) { in brcms_c_ht_update_ldpc()
4100 wiphy_err(wlc->wiphy, "wl%d: %s : no-clock\n", wlc->pub->unit, in brcms_c_wme_setparams()
4120 "aifs %d\n", wlc->pub->unit, acp_shm.aifs); in brcms_c_wme_setparams()
4210 if (wlc->pub->hw_off) in brcms_c_radio_hwdisable_upd()
4214 mboolset(wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE); in brcms_c_radio_hwdisable_upd()
4216 mboolclr(wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE); in brcms_c_radio_hwdisable_upd()
4224 return mboolisset(wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE) ? in brcms_c_check_radio_disabled()
4234 wiphy_err(wlc->wiphy, "wl%d: %s: dead chip\n", wlc->pub->unit, in brcms_c_radio_timer()
4271 BCMMSG(wlc->wiphy, "wl%d\n", wlc->pub->unit); in brcms_c_watchdog()
4273 if (!wlc->pub->up) in brcms_c_watchdog()
4277 wiphy_err(wlc->wiphy, "wl%d: %s: dead chip\n", wlc->pub->unit, in brcms_c_watchdog()
4284 wlc->pub->now++; in brcms_c_watchdog()
4288 if (wlc->pub->radio_disabled) in brcms_c_watchdog()
4297 if ((wlc->pub->now % SW_TIMER_MAC_STAT_UPD) == 0) in brcms_c_watchdog()
4301 ((wlc->pub->now - wlc->tempsense_lasttime) >= in brcms_c_watchdog()
4303 wlc->tempsense_lasttime = wlc->pub->now; in brcms_c_watchdog()
4388 wlc->pub->_ampdu = AMPDU_AGG_HOST; in brcms_c_info_init()
4389 wlc->pub->bcmerror = 0; in brcms_c_info_init()
4396 unit = wlc->pub->unit; in brcms_c_attach_module()
4426 return wlc->pub; in brcms_c_pub()
4553 wlc->pub->sih = wlc_hw->sih; in brcms_b_attach()
4554 wlc->pub->corerev = wlc_hw->corerev; in brcms_b_attach()
4555 wlc->pub->sromrev = wlc_hw->sromrev; in brcms_b_attach()
4556 wlc->pub->boardrev = wlc_hw->boardrev; in brcms_b_attach()
4557 wlc->pub->boardflags = wlc_hw->boardflags; in brcms_b_attach()
4558 wlc->pub->boardflags2 = wlc_hw->boardflags2; in brcms_b_attach()
4559 wlc->pub->_nbands = wlc_hw->_nbands; in brcms_b_attach()
4736 unit = wlc->pub->unit; in brcms_c_attach_antgain_init()
4738 if ((wlc->band->antgain == -1) && (wlc->pub->sromrev == 1)) { in brcms_c_attach_antgain_init()
4775 unit = wlc->pub->unit; in brcms_c_attach_stf_ant_init()
4829 if (wlc->pub->_nbands > 1 && in brcms_c_bss_default_init()
4836 (bool) (wlc->pub->_n_enab & SUPPORT_11N), in brcms_c_bss_default_init()
4839 if (wlc->pub->_n_enab & SUPPORT_11N) in brcms_c_bss_default_init()
4898 for (i = 0; i < wlc->pub->_nbands; i++) { in brcms_c_update_mimo_band_bwcap()
5007 BCMMSG(wlc->wiphy, "wl%d\n", wlc->pub->unit); in brcms_c_detach()
5039 if (wlc_hw->wlc->pub->hw_up) in brcms_b_hw_up()
5068 wlc_hw->wlc->pub->hw_up = true; in brcms_b_hw_up()
5154 BCMMSG(wlc->wiphy, "wl%d\n", wlc->pub->unit); in brcms_c_up()
5157 if (wlc->pub->hw_off || brcms_deviceremoved(wlc)) in brcms_c_up()
5160 if (!wlc->pub->hw_up) { in brcms_c_up()
5162 wlc->pub->hw_up = true; in brcms_c_up()
5165 if ((wlc->pub->boardflags & BFL_FEM) in brcms_c_up()
5167 if (wlc->pub->boardrev >= 0x1250 in brcms_c_up()
5168 && (wlc->pub->boardflags & BFL_FEM_BT)) in brcms_c_up()
5185 if (!wlc->pub->radio_disabled) { in brcms_c_up()
5189 (wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE)) { in brcms_c_up()
5191 mboolset(wlc->pub->radio_disabled, in brcms_c_up()
5198 wlc->pub->unit); in brcms_c_up()
5203 if (wlc->pub->radio_disabled) { in brcms_c_up()
5217 wlc->pub->up = true; in brcms_c_up()
5334 BCMMSG(wlc->wiphy, "wl%d\n", wlc->pub->unit); in brcms_c_down()
5339 "\n", wlc->pub->unit, __func__); in brcms_c_down()
5342 if (!wlc->pub->up) in brcms_c_down()
5367 wlc->pub->up = false; in brcms_c_down()
5410 if ((wlc->pub->_n_enab & SUPPORT_11N) && gmode == GMODE_LEGACY_B) in brcms_c_set_gmode()
5416 else if ((wlc->pub->_nbands > 1) && in brcms_c_set_gmode()
5465 wlc->pub->unit, __func__, gmode); in brcms_c_set_gmode()
5507 wlc->pub->_n_enab = SUPPORT_HT; in brcms_c_set_nmode()
5509 wlc->pub->_n_enab = SUPPORT_11N; in brcms_c_set_nmode()
5514 for (i = 0; i < wlc->pub->_nbands; i++) in brcms_c_set_nmode()
5589 if (!wlc->pub->up && brcms_is_mband_unlocked(wlc)) { in brcms_c_set_channel()
5599 if (wlc->pub->up && (wlc_phy_chanspec_get(wlc->band->pi) != chspec)) { in brcms_c_set_channel()
5637 if (wlc->pub->associated) in brcms_c_get_current_rateset()
5662 if (wlc->pub->_n_enab & SUPPORT_11N) { in brcms_c_set_rateset()
5705 if (wlc->pub->up && wlc->pub->associated) { in brcms_c_set_shortslot_override()
5707 } else if (wlc->pub->up) { in brcms_c_set_shortslot_override()
5725 int brcms_c_module_register(struct brcms_pub *pub, in brcms_c_module_register() argument
5729 struct brcms_c_info *wlc = (struct brcms_c_info *) pub->wlc; in brcms_c_module_register()
5747 int brcms_c_module_unregister(struct brcms_pub *pub, const char *name, in brcms_c_module_unregister() argument
5750 struct brcms_c_info *wlc = (struct brcms_c_info *) pub->wlc; in brcms_c_module_unregister()
6136 wlc->pub->unit, rspec, preamble_type); in brcms_c_calc_ack_time()
6155 wlc->pub->unit, rspec, preamble_type); in brcms_c_calc_cts_time()
6164 "preamble_type %d\n", wlc->pub->unit, rspec, preamble_type); in brcms_c_calc_ba_time()
6219 wlc->pub->unit, ratespec, preamble_type, dur); in brcms_c_calc_frame_len()
6268 else if (wlc->pub->_nbands > 1) in brcms_c_valid_rate()
6288 "not in hw_rateset\n", wlc->pub->unit, rspec); in brcms_c_valid_rate()
6310 if ((wlc->pub->_n_enab & SUPPORT_11N) && ismcs) { in mac80211_wlc_set_nrate()
6314 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
6325 "32\n", wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
6335 wlc->pub->unit, rate); in mac80211_wlc_set_nrate()
6347 "\n", wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
6355 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
6363 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
6369 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
6376 "request\n", wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
6685 "TX_BCMC!\n", wlc->pub->unit, __func__); in brcms_c_d11hdrs_mac80211()
6769 if (wlc->pub->_n_enab & SUPPORT_11N) { in brcms_c_d11hdrs_mac80211()
6857 wlc->pub->unit, __func__); in brcms_c_d11hdrs_mac80211()
7251 wlc->pub->unit, fifo_names[queue], in brcms_c_d11hdrs_mac80211()
7258 wlc->pub->unit, __func__, in brcms_c_d11hdrs_mac80211()
7634 ieee80211_rx_irqsafe(wlc->pub->ieee_hw, p); in brcms_c_recvctl()
7650 wlc->pub->unit, rspec2rate(ratespec), mac_len); in brcms_c_calc_lsig_len()
7947 wlc->pub->associated = state; in brcms_c_associate_upd()
7996 if (wlc->pub->up) in brcms_c_set_beacon_listen_interval()
8032 BCMMSG(wlc->wiphy, "wl%d\n", wlc->pub->unit); in brcms_c_recv()
8044 "len %d\n", wlc->pub->unit, p->len); in brcms_c_recv()
8228 BCMMSG(wlc->wiphy, "wl%d\n", wlc->pub->unit); in brcms_c_init()
8235 if (wlc->pub->associated) in brcms_c_init()
8250 if (wlc->pub->associated && wlc->bsscfg->up) { in brcms_c_init()
8340 struct brcms_pub *pub; in brcms_c_attach() local
8347 pub = wlc->pub; in brcms_c_attach()
8356 pub->unit = unit; in brcms_c_attach()
8357 pub->_piomode = piomode; in brcms_c_attach()
8376 pub->phy_11ncapable = BRCMS_PHY_11N_CAP(wlc->band); in brcms_c_attach()
8397 memcpy(&pub->cur_etheraddr, &wlc->hw->etheraddr, ETH_ALEN); in brcms_c_attach()
8399 for (j = 0; j < wlc->pub->_nbands; j++) { in brcms_c_attach()
8420 pub->_n_enab = SUPPORT_11N; in brcms_c_attach()
8422 ((pub->_n_enab == in brcms_c_attach()
8434 (bool) (wlc->pub->_n_enab & SUPPORT_11N)); in brcms_c_attach()