Lines Matching defs:wlc

81  * some counters might be redundant with the ones in wlc or ampdu structures.
83 * how often and/or when the wlc counters are updated.
105 * wlc: pointer to main wlc structure
126 struct brcms_c_info *wlc;
169 if (BRCMS_PHY_11N_CAP(ampdu->wlc->band))
177 struct brcms_c_info *wlc = ampdu->wlc;
178 struct bcma_device *core = wlc->hw->d11core;
180 wlc->pub->_ampdu = false;
183 if (!(wlc->pub->_n_enab & SUPPORT_11N)) {
185 wlc->pub->unit);
190 wlc->pub->unit);
193 wlc->pub->_ampdu = on;
217 struct ampdu_info *brcms_c_ampdu_attach(struct brcms_c_info *wlc)
226 ampdu->wlc = wlc;
249 if (BRCMS_ISNPHY(wlc->band) && NREV_LT(wlc->band->phyrev, 2))
264 brcms_c_ampdu_set(ampdu, wlc->pub->_ampdu);
309 brcms_c_scb_ampdu_update_config(ampdu, &ampdu->wlc->pri_scb);
350 static int brcms_c_ffpld_check_txfunfl(struct brcms_c_info *wlc, int fid)
352 struct ampdu_info *ampdu = wlc->ampdu;
364 cur_txunfl = brcms_b_read_shm(wlc->hw,
369 brcms_dbg_ht(wlc->hw->d11core,
379 if (brcms_b_xmtfifo_sz_get(wlc->hw, fid, &xmtfifo_sz))
392 brcms_dbg_ht(wlc->hw->d11core, "ampdu_count %d tx_underflows %d\n",
446 brcms_dbg_ht(wlc->hw->d11core,
472 brcms_c_ampdu_tx_operational(struct brcms_c_info *wlc, u8 tid,
476 struct ampdu_info *ampdu = wlc->ampdu;
477 struct scb *scb = &wlc->pri_scb;
481 brcms_err(wlc->hw->d11core, "%s: Rejecting tid %d\n",
490 struct brcms_c_info *wlc)
492 session->wlc = wlc;
508 struct brcms_c_info *wlc = session->wlc;
509 struct ampdu_info *ampdu = wlc->ampdu;
510 struct scb *scb = &wlc->pri_scb;
616 struct brcms_c_info *wlc = session->wlc;
617 struct ampdu_info *ampdu = wlc->ampdu;
704 if (CHSPEC_SB_UPPER(wlc_phy_chanspec_get(wlc->band->pi)))
729 brcms_c_rspec_to_rts_rspec(wlc, rspec,
732 brcms_c_rspec_to_rts_rspec(wlc, rspec_fallback,
742 u16 mmodelen = brcms_c_calc_lsig_len(wlc, rspec,
748 u16 mmfbrlen = brcms_c_calc_lsig_len(wlc, rspec_fallback,
775 durid = brcms_c_compute_rtscts_dur(wlc, use_cts, rts_rspec,
780 durid = brcms_c_compute_rtscts_dur(wlc, use_cts,
801 brcms_dbg_ht(wlc->hw->d11core, "wl%d: count %d ampdu_len %d\n",
802 wlc->pub->unit, skb_queue_len(&session->skb_list),
807 brcms_c_ampdu_rate_status(struct brcms_c_info *wlc,
827 struct brcms_c_info *wlc = ampdu->wlc;
882 brcms_dbg_ht(wlc->hw->d11core,
885 wlc->default_bss->chanspec));
888 brcms_err(wlc->hw->d11core,
905 brcms_c_ffpld_check_txfunfl(wlc, queue);
908 brcms_dbg_ht(wlc->hw->d11core,
923 trace_brcms_txdesc(&wlc->hw->d11core->dev, txh, sizeof(*txh));
940 brcms_dbg_ht(wlc->hw->d11core,
953 brcms_c_ampdu_rate_status(wlc, tx_info, txs,
963 ieee80211_tx_status_irqsafe(wlc->pub->ieee_hw,
973 ret = brcms_c_txfifo(wlc, queue, p);
989 brcms_dbg_ht(wlc->hw->d11core,
992 ieee80211_tx_status_irqsafe(wlc->pub->ieee_hw,
1003 p = dma_getnexttxp(wlc->hw->di[queue], DMA_RANGE_TRANSMITTED);
1007 brcms_c_antsel_antsel2id(wlc->asi, mimoantsel);
1014 struct brcms_c_info *wlc = ampdu->wlc;
1025 s1 = bcma_read32(wlc->hw->d11core, D11REGOFFS(frmtxstatus));
1031 s1 = bcma_read32(wlc->hw->d11core,
1035 s2 = bcma_read32(wlc->hw->d11core, D11REGOFFS(frmtxstatus2));
1047 trace_brcms_txdesc(&wlc->hw->d11core->dev, txh,
1055 p = dma_getnexttxp(wlc->hw->di[queue],
1061 void brcms_c_ampdu_macaddr_upd(struct brcms_c_info *wlc)
1067 memcpy(template, wlc->pub->cur_etheraddr, ETH_ALEN);
1068 brcms_b_write_template_ram(wlc->hw, (T_BA_TPL_BASE + 16),
1073 bool brcms_c_aggregatable(struct brcms_c_info *wlc, u8 tid)
1075 return wlc->ampdu->ini_enable[tid];
1080 struct brcms_c_info *wlc = ampdu->wlc;
1088 brcms_b_write_shm(wlc->hw, M_MIMO_MAXSYM, MIMO_MAXSYM_MAX);
1089 brcms_b_write_shm(wlc->hw, M_WATCHDOG_8TU, WATCHDOG_8TU_MAX);
1091 brcms_b_write_shm(wlc->hw, M_MIMO_MAXSYM, MIMO_MAXSYM_DEF);
1092 brcms_b_write_shm(wlc->hw, M_WATCHDOG_8TU, WATCHDOG_8TU_DEF);
1113 void brcms_c_ampdu_flush(struct brcms_c_info *wlc,
1116 brcms_c_inval_dma_pkts(wlc->hw, sta, dma_cb_fn_ampdu);