Home
last modified time | relevance | path

Searched refs:wlc (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.4/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dstf.c31 #define BRCMS_STF_SS_STBC_RX(wlc) (BRCMS_ISNPHY(wlc->band) && \ argument
32 NREV_GT(wlc->band->phyrev, 3) && NREV_LE(wlc->band->phyrev, 6))
47 static void brcms_c_stf_stbc_rx_ht_update(struct brcms_c_info *wlc, int val) in brcms_c_stf_stbc_rx_ht_update() argument
50 if (BRCMS_STF_SS_STBC_RX(wlc)) { in brcms_c_stf_stbc_rx_ht_update()
51 if ((wlc->stf->rxstreams == 1) && (val != HT_CAP_RX_STBC_NO)) in brcms_c_stf_stbc_rx_ht_update()
55 if (wlc->pub->up) { in brcms_c_stf_stbc_rx_ht_update()
56 brcms_c_update_beacon(wlc); in brcms_c_stf_stbc_rx_ht_update()
57 brcms_c_update_probe_resp(wlc, true); in brcms_c_stf_stbc_rx_ht_update()
65 void brcms_c_tempsense_upd(struct brcms_c_info *wlc) in brcms_c_tempsense_upd() argument
67 struct brcms_phy_pub *pi = wlc->band->pi; in brcms_c_tempsense_upd()
[all …]
Dmain.c358 static u8 brcms_basic_rate(struct brcms_c_info *wlc, u32 rspec) in brcms_basic_rate() argument
361 return wlc->band->basic_rate[mcs_table[rspec & RSPEC_RATE_MASK] in brcms_basic_rate()
363 return wlc->band->basic_rate[rspec & RSPEC_RATE_MASK]; in brcms_basic_rate()
389 static bool brcms_deviceremoved(struct brcms_c_info *wlc) in brcms_deviceremoved() argument
393 if (!wlc->hw->clk) in brcms_deviceremoved()
394 return ai_deviceremoved(wlc->hw->sih); in brcms_deviceremoved()
395 macctrl = bcma_read32(wlc->hw->d11core, in brcms_deviceremoved()
401 static int brcms_txpktpendtot(struct brcms_c_info *wlc) in brcms_txpktpendtot() argument
406 for (i = 0; i < ARRAY_SIZE(wlc->hw->di); i++) in brcms_txpktpendtot()
407 if (wlc->hw->di[i]) in brcms_txpktpendtot()
[all …]
Dpub.h145 struct brcms_c_info *wlc; member
272 uint brcms_c_detach(struct brcms_c_info *wlc);
273 int brcms_c_up(struct brcms_c_info *wlc);
274 uint brcms_c_down(struct brcms_c_info *wlc);
277 void brcms_c_init(struct brcms_c_info *wlc, bool mute_tx);
278 void brcms_c_reset(struct brcms_c_info *wlc);
280 void brcms_c_intrson(struct brcms_c_info *wlc);
281 u32 brcms_c_intrsoff(struct brcms_c_info *wlc);
282 void brcms_c_intrsrestore(struct brcms_c_info *wlc, u32 macintmask);
283 bool brcms_c_intrsupd(struct brcms_c_info *wlc);
[all …]
Dstf.h22 int brcms_c_stf_attach(struct brcms_c_info *wlc);
23 void brcms_c_stf_detach(struct brcms_c_info *wlc);
25 void brcms_c_tempsense_upd(struct brcms_c_info *wlc);
26 void brcms_c_stf_ss_algo_channel_get(struct brcms_c_info *wlc,
28 int brcms_c_stf_ss_update(struct brcms_c_info *wlc, struct brcms_band *band);
29 void brcms_c_stf_phy_txant_upd(struct brcms_c_info *wlc);
30 int brcms_c_stf_txchain_set(struct brcms_c_info *wlc, s32 int_val, bool force);
31 bool brcms_c_stf_stbc_rx_set(struct brcms_c_info *wlc, s32 int_val);
32 void brcms_c_stf_phy_txant_upd(struct brcms_c_info *wlc);
33 void brcms_c_stf_phy_chain_calc(struct brcms_c_info *wlc);
[all …]
Dampdu.c126 struct brcms_c_info *wlc; member
175 if (BRCMS_PHY_11N_CAP(ampdu->wlc->band)) in brcms_c_ampdu_cap()
183 struct brcms_c_info *wlc = ampdu->wlc; in brcms_c_ampdu_set() local
184 struct bcma_device *core = wlc->hw->d11core; in brcms_c_ampdu_set()
186 wlc->pub->_ampdu = false; in brcms_c_ampdu_set()
189 if (!(wlc->pub->_n_enab & SUPPORT_11N)) { in brcms_c_ampdu_set()
191 wlc->pub->unit); in brcms_c_ampdu_set()
196 wlc->pub->unit); in brcms_c_ampdu_set()
199 wlc->pub->_ampdu = on; in brcms_c_ampdu_set()
223 struct ampdu_info *brcms_c_ampdu_attach(struct brcms_c_info *wlc) in brcms_c_ampdu_attach() argument
[all …]
Dchannel.c112 struct brcms_c_info *wlc; member
312 struct brcms_c_info *wlc = wlc_cm->wlc; in brcms_c_set_country() local
314 if ((wlc->pub->_n_enab & SUPPORT_11N) != in brcms_c_set_country()
315 wlc->protection->nmode_user) in brcms_c_set_country()
316 brcms_c_set_nmode(wlc); in brcms_c_set_country()
318 brcms_c_stf_ss_update(wlc, wlc->bandstate[BAND_2G_INDEX]); in brcms_c_set_country()
319 brcms_c_stf_ss_update(wlc, wlc->bandstate[BAND_5G_INDEX]); in brcms_c_set_country()
321 brcms_c_set_gmode(wlc, wlc->protection->gmode_user, false); in brcms_c_set_country()
326 struct brcms_cm_info *brcms_c_channel_mgr_attach(struct brcms_c_info *wlc) in brcms_c_channel_mgr_attach() argument
329 struct brcms_pub *pub = wlc->pub; in brcms_c_channel_mgr_attach()
[all …]
Dmac80211_if.c306 if (wl->wlc) { in brcms_free()
307 brcms_c_detach(wl->wlc); in brcms_free()
308 wl->wlc = NULL; in brcms_free()
337 if (wl->wlc) { in brcms_remove()
412 brcms_err(wl->wlc->hw->d11core, "ops->tx called while down\n"); in brcms_ops_tx()
416 if (brcms_c_sendpkt_mac80211(wl->wlc, skb, hw)) in brcms_ops_tx()
429 err = brcms_request_fw(wl, wl->wlc->hw->d11core); in brcms_ops_start()
455 brcms_err(wl->wlc->hw->d11core, "%s: brcms_up() returned %d\n", in brcms_ops_start()
458 bcma_core_pci_power_save(wl->wlc->hw->d11core->bus, true); in brcms_ops_start()
469 if (wl->wlc == NULL) in brcms_ops_stop()
[all …]
Dmain.h141 #define CHANNEL_BANDUNIT(wlc, ch) \ argument
144 #define OTHERBANDUNIT(wlc) \ argument
145 ((uint)((wlc)->band->bandunit ? BAND_2G_INDEX : BAND_5G_INDEX))
216 #define BRCMS_STF_SS_STBC_TX(wlc, scb) \ argument
217 (((wlc)->stf->txstreams > 1) && (((wlc)->band->band_stf_stbc_tx == ON) \
219 (wlc)->band->band_stf_stbc_tx == AUTO && \
220 isset(&((wlc)->stf->ss_algo_channel), PHY_TXC1_MODE_STBC))))
222 #define BRCMS_STBC_CAP_PHY(wlc) (BRCMS_ISNPHY(wlc->band) && \ argument
223 NREV_GE(wlc->band->phyrev, 3))
225 #define BRCMS_SGI_CAP_PHY(wlc) ((BRCMS_ISNPHY(wlc->band) && \ argument
[all …]
Dantsel.c109 struct antsel_info *brcms_c_antsel_attach(struct brcms_c_info *wlc) in brcms_c_antsel_attach() argument
112 struct ssb_sprom *sprom = &wlc->hw->d11core->bus->sprom; in brcms_c_antsel_attach()
118 asi->wlc = wlc; in brcms_c_antsel_attach()
119 asi->pub = wlc->pub; in brcms_c_antsel_attach()
141 brcms_err(wlc->hw->d11core, in brcms_c_antsel_attach()
162 brcms_b_antsel_type_set(wlc->hw, asi->antsel_type); in brcms_c_antsel_attach()
203 struct brcms_c_info *wlc = asi->wlc; in brcms_c_antsel_cfgupd() local
212 brcms_b_write_shm(wlc->hw, M_MIMO_ANTSEL_TXDFLT, mimo_antsel); in brcms_c_antsel_cfgupd()
224 brcms_b_write_shm(wlc->hw, M_MIMO_ANTSEL_RXDFLT, mimo_antsel); in brcms_c_antsel_cfgupd()
Dampdu.h32 struct brcms_c_info *wlc; member
41 struct brcms_c_info *wlc);
46 struct ampdu_info *brcms_c_ampdu_attach(struct brcms_c_info *wlc);
50 void brcms_c_ampdu_macaddr_upd(struct brcms_c_info *wlc);
Dphy_shim.c34 struct brcms_c_info *wlc; /* pointer to main wlc structure */ member
40 struct brcms_c_info *wlc) { in wlc_phy_shim_attach() argument
48 physhim->wlc = wlc; in wlc_phy_shim_attach()
123 brcms_c_suspend_mac_and_wait(physhim->wlc); in wlapi_suspend_mac_and_wait()
133 brcms_c_enable_mac(physhim->wlc); in wlapi_enable_mac()
Ddebug.c51 dev_name(&drvr->wlc->hw->d11core->dev), root_folder); in brcms_debugfs_attach()
68 struct brcms_hardware *hw = drvr->wlc->hw; in brcms_debugfs_hardware_read()
91 drvr->wlc->hw->boardflags, drvr->wlc->hw->boardflags2, in brcms_debugfs_hardware_read()
92 drvr->wlc->ucode_rev, hw->band->radiorev, in brcms_debugfs_hardware_read()
106 stats = *(drvr->wlc->core->macstat_snapshot); in brcms_debugfs_macstat_read()
193 struct device *dev = &drvr->wlc->hw->d11core->dev; in brcms_debugfs_add_entry()
Dchannel.h35 struct brcms_cm_info *brcms_c_channel_mgr_attach(struct brcms_c_info *wlc);
45 void brcms_c_regd_init(struct brcms_c_info *wlc);
Ddma.h77 extern struct dma_pub *dma_attach(char *name, struct brcms_c_info *wlc,
89 int dma_txfast(struct brcms_c_info *wlc, struct dma_pub *pub,
Dled.c57 struct bcma_drv_cc *cc_drv = &wl->wlc->hw->d11core->bus->drv_cc; in brcms_led_register()
59 struct ssb_sprom *sprom = &wl->wlc->hw->d11core->bus->sprom; in brcms_led_register()
Dantsel.h20 struct antsel_info *brcms_c_antsel_attach(struct brcms_c_info *wlc);
Dmac80211_if.h65 struct brcms_c_info *wlc; /* pointer to private common data */ member
Ddma.c548 struct dma_pub *dma_attach(char *name, struct brcms_c_info *wlc, in dma_attach() argument
553 struct si_pub *sih = wlc->hw->sih; in dma_attach()
554 struct bcma_device *core = wlc->hw->d11core; in dma_attach()
699 brcms_c_ampdu_reset_session(&di->ampdu_session, wlc); in dma_attach()
1322 trace_brcms_ampdu_session(&session->wlc->hw->d11core->dev, in ampdu_finalize()
1341 brcms_c_ampdu_reset_session(session, session->wlc); in ampdu_finalize()
1379 int dma_txfast(struct brcms_c_info *wlc, struct dma_pub *pub, in dma_txfast() argument
Dphy_shim.h129 struct brcms_c_info *wlc);