/linux-2.6.39/drivers/staging/brcm80211/brcmsmac/ |
D | wlc_stf.c | 47 #define WLC_STF_SS_STBC_RX(wlc) (WLCISNPHY(wlc->band) && \ argument 48 NREV_GT(wlc->band->phyrev, 3) && NREV_LE(wlc->band->phyrev, 6)) 50 static bool wlc_stf_stbc_tx_set(struct wlc_info *wlc, s32 int_val); 51 static int wlc_stf_txcore_set(struct wlc_info *wlc, u8 Nsts, u8 val); 52 static int wlc_stf_spatial_policy_set(struct wlc_info *wlc, int val); 53 static void wlc_stf_stbc_rx_ht_update(struct wlc_info *wlc, int val); 55 static void _wlc_stf_phy_txant_upd(struct wlc_info *wlc); 56 static u16 _wlc_stf_phytxchain_sel(struct wlc_info *wlc, ratespec_t rspec); 70 static void wlc_stf_stbc_rx_ht_update(struct wlc_info *wlc, int val) in wlc_stf_stbc_rx_ht_update() argument 76 if (WLC_STF_SS_STBC_RX(wlc)) { in wlc_stf_stbc_rx_ht_update() [all …]
|
D | wlc_main.c | 108 #define WLC_WATCHDOG_TBTT(wlc) \ argument 109 (wlc->stas_associated > 0 && wlc->PM != PM_OFF && wlc->pub->align_wd_tbtt) 112 #define BCMCFID(wlc, fid) wlc_bmac_write_shm((wlc)->hw, M_BCMC_FID, (fid)) argument 114 #define WLC_WAR16165(wlc) (wlc->pub->sih->bustype == PCI_BUS && \ argument 115 (!AP_ENAB(wlc->pub)) && (wlc->war16165)) 126 #define WLC_BASIC_RATE(wlc, rspec) (IS_MCS(rspec) ? \ argument 127 (wlc)->band->basic_rate[mcs_table[rspec & RSPEC_RATE_MASK].leg_ofdm] : \ 128 (wlc)->band->basic_rate[rspec & RSPEC_RATE_MASK]) 208 #define WLC_TX_FIFO_CHECK(wlc, fifo) (TXPKTPENDGET((wlc), (fifo)) || \ argument 209 (TXPKTPENDGET((wlc), (fifo)) == 0 && \ [all …]
|
D | wlc_alloc.c | 153 void wlc_bsscfg_ID_assign(struct wlc_info *wlc, struct wlc_bsscfg *bsscfg) in wlc_bsscfg_ID_assign() argument 155 bsscfg->ID = wlc->next_bsscfg_ID; in wlc_bsscfg_ID_assign() 156 wlc->next_bsscfg_ID++; in wlc_bsscfg_ID_assign() 164 struct wlc_info *wlc; in wlc_attach_malloc() local 166 wlc = (struct wlc_info *) wlc_calloc(unit, sizeof(struct wlc_info)); in wlc_attach_malloc() 167 if (wlc == NULL) { in wlc_attach_malloc() 172 wlc->hwrxoff = WL_HWRXOFF; in wlc_attach_malloc() 175 wlc->pub = wlc_pub_malloc(unit, err, devid); in wlc_attach_malloc() 176 if (wlc->pub == NULL) { in wlc_attach_malloc() 180 wlc->pub->wlc = wlc; in wlc_attach_malloc() [all …]
|
D | wlc_main.h | 71 #define WLC_TX_FIFO_CLEAR(wlc, fifo) ((wlc)->tx_prec_map &= ~(wlc)->fifo2prec_map[fifo]) argument 74 #define WLC_TX_FIFO_ENAB(wlc, fifo) ((wlc)->tx_prec_map |= (wlc)->fifo2prec_map[fifo]) argument 93 #define WLC_SW_KEYS(wlc, bsscfg) ((((wlc)->wsec_swkeys) || \ argument 100 #define PS_ALLOWED(wlc) wlc_ps_allowed(wlc) argument 101 #define STAY_AWAKE(wlc) wlc_stay_awake(wlc) argument 150 #define WLC_WME_RETRY_SHORT_GET(wlc, ac) GFIELD(wlc->wme_retries[ac], EDCF_SHORT) argument 151 #define WLC_WME_RETRY_SFB_GET(wlc, ac) GFIELD(wlc->wme_retries[ac], EDCF_SFB) argument 152 #define WLC_WME_RETRY_LONG_GET(wlc, ac) GFIELD(wlc->wme_retries[ac], EDCF_LONG) argument 153 #define WLC_WME_RETRY_LFB_GET(wlc, ac) GFIELD(wlc->wme_retries[ac], EDCF_LFB) argument 155 #define WLC_WME_RETRY_SHORT_SET(wlc, ac, val) \ argument [all …]
|
D | wlc_pub.h | 236 void *wlc; member 419 #define MONITOR_ENAB(wlc) ((wlc)->monitor) argument 421 #define PROMISC_ENAB(wlc) ((wlc)->promisc) argument 462 #define WME_AUTO(wlc) ((wlc)->pub->_wme == AUTO) argument 484 extern uint wlc_detach(struct wlc_info *wlc); 485 extern int wlc_up(struct wlc_info *wlc); 486 extern uint wlc_down(struct wlc_info *wlc); 488 extern int wlc_set(struct wlc_info *wlc, int cmd, int arg); 489 extern int wlc_get(struct wlc_info *wlc, int cmd, int *arg); 490 extern int wlc_iovar_getint(struct wlc_info *wlc, const char *name, int *arg); [all …]
|
D | wlc_stf.h | 20 extern int wlc_stf_attach(struct wlc_info *wlc); 21 extern void wlc_stf_detach(struct wlc_info *wlc); 23 extern void wlc_tempsense_upd(struct wlc_info *wlc); 24 extern void wlc_stf_ss_algo_channel_get(struct wlc_info *wlc, 27 extern int wlc_stf_ss_update(struct wlc_info *wlc, struct wlcband *band); 28 extern void wlc_stf_phy_txant_upd(struct wlc_info *wlc); 29 extern int wlc_stf_txchain_set(struct wlc_info *wlc, s32 int_val, bool force); 30 extern bool wlc_stf_stbc_rx_set(struct wlc_info *wlc, s32 int_val); 32 extern int wlc_stf_ant_txant_validate(struct wlc_info *wlc, s8 val); 33 extern void wlc_stf_phy_txant_upd(struct wlc_info *wlc); [all …]
|
D | wlc_channel.c | 42 #define VALID_CHANNEL20_DB(wlc, val) wlc_valid_channel20_db((wlc)->cmi, val) argument 43 #define VALID_CHANNEL20_IN_BAND(wlc, bandunit, val) \ argument 44 wlc_valid_channel20_in_band((wlc)->cmi, bandunit, val) 45 #define VALID_CHANNEL20(wlc, val) wlc_valid_channel20((wlc)->cmi, val) argument 57 struct wlc_info *wlc; member 94 static const country_info_t *wlc_country_lookup(struct wlc_info *wlc, 100 static bool wlc_japan(struct wlc_info *wlc); 636 wlc_cm_info_t *wlc_channel_mgr_attach(struct wlc_info *wlc) in wlc_channel_mgr_attach() argument 641 struct wlc_pub *pub = wlc->pub; in wlc_channel_mgr_attach() 644 WL_TRACE("wl%d: wlc_channel_mgr_attach\n", wlc->pub->unit); in wlc_channel_mgr_attach() [all …]
|
D | wlc_key.h | 39 #define WLC_MAX_WSEC_KEYS(wlc) WSEC_MAX_KEYS argument 45 #define WLC_MAX_WSEC_HW_KEYS(wlc) WSEC_MAX_RCMTA_KEYS argument 48 #define WLC_MAX_TKMIC_HW_KEYS(wlc) (WSEC_MAX_TKMIC_ENGINE_KEYS) argument 50 #define WSEC_HW_TKMIC_KEY(wlc, key, bsscfg) \ argument 51 ((((wlc)->machwcap & MCAP_TKIPMIC)) && \ 53 !WSEC_SOFTKEY(wlc, key, bsscfg) && \ 54 WSEC_KEY_INDEX(wlc, key) >= WLC_DEFAULT_KEYS && \ 55 (WSEC_KEY_INDEX(wlc, key) < WSEC_MAX_TKMIC_ENGINE_KEYS)) 58 #define WSEC_KEY_INDEX(wlc, key) ((key)->idx) argument 60 #define WSEC_SOFTKEY(wlc, key, bsscfg) (WLC_SW_KEYS(wlc, bsscfg) || \ argument [all …]
|
D | wlc_bmac.c | 99 static void wlc_clkctl_clk(struct wlc_hw_info *wlc, uint mode); 100 static void wlc_coreinit(struct wlc_info *wlc); 107 static void wlc_ucode_download(struct wlc_hw_info *wlc); 111 static bool wlc_bmac_dotxstatus(struct wlc_hw_info *wlc, tx_status_t *txs, 113 static bool wlc_bmac_txstatus(struct wlc_hw_info *wlc, bool bound, bool *fatal); 117 static void wlc_flushqueues(struct wlc_info *wlc); 136 static bool wlc_bmac_attach_dmapio(struct wlc_info *wlc, uint j, bool wme); 139 static bool wlc_validboardtype(struct wlc_hw_info *wlc); 143 static void wlc_mhfdef(struct wlc_info *wlc, u16 *mhfs, u16 mhf2_init); 148 static u32 wlc_wlintrsoff(struct wlc_info *wlc); [all …]
|
D | wlc_ampdu.c | 107 struct wlc_info *wlc; /* pointer to main wlc structure */ member 140 static int wlc_ffpld_check_txfunfl(struct wlc_info *wlc, int f); 162 struct ampdu_info *wlc_ampdu_attach(struct wlc_info *wlc) in wlc_ampdu_attach() argument 171 ASSERT(wlc->pub->tunables->ampdunummpdu <= AMPDU_MAX_MPDU); in wlc_ampdu_attach() 172 ASSERT(wlc->pub->tunables->ampdunummpdu > 0); in wlc_ampdu_attach() 177 wlc->pub->unit); in wlc_ampdu_attach() 180 ampdu->wlc = wlc; in wlc_ampdu_attach() 201 if (WLCISNPHY(wlc->band) && NREV_LT(wlc->band->phyrev, 2)) in wlc_ampdu_attach() 216 wlc_ampdu_set(ampdu, wlc->pub->_ampdu); in wlc_ampdu_attach() 236 wlc_module_unregister(ampdu->wlc->pub, "ampdu", ampdu); in wlc_ampdu_detach() [all …]
|
D | wlc_bsscfg.h | 32 #define FOREACH_AS_STA(wlc, idx, cfg) \ argument 34 if ((cfg = (wlc)->bsscfg[idx]) && BSSCFG_STA(cfg) && cfg->associated) 37 #define FOREACH_BSS(wlc, idx, cfg) \ argument 39 if ((cfg = (wlc)->bsscfg[idx])) 43 struct wlc_info *wlc; /* wlc to which this bsscfg belongs to. */ member 125 extern void wlc_bsscfg_ID_assign(struct wlc_info *wlc, 129 #define BSS_N_ENAB(wlc, cfg) \ argument 130 (N_ENAB((wlc)->pub) && !((cfg)->flags & WLC_BSSCFG_11N_DISABLE))
|
D | wl_mac80211.c | 161 wlc_sendpkt_mac80211(wl->wlc, skb, hw); in wl_ops_tx() 248 err = wlc_set(wl->wlc, WLC_SET_CHANNEL, chan->hw_value); in ieee_set_channel() 272 (wl->wlc, "bcn_li_bcn", conf->listen_interval)) { in wl_ops_config() 278 wlc_iovar_getint(wl->wlc, "bcn_li_bcn", &new_int); in wl_ops_config() 292 (wl->wlc, "qtxpower", conf->power_level * 4)) { in wl_ops_config() 297 wlc_iovar_getint(wl->wlc, "qtxpower", &new_int); in wl_ops_config() 307 (wl->wlc, WLC_SET_SRL, in wl_ops_config() 313 if (wlc_set(wl->wlc, WLC_SET_LRL, conf->long_frame_max_tx_count) in wl_ops_config() 340 wlc_associate_upd(wl->wlc, info->assoc); in wl_ops_bss_info_changed() 359 wlc_set(wl->wlc, WLC_SET_SHORTSLOT_OVERRIDE, val); in wl_ops_bss_info_changed() [all …]
|
D | wlc_antsel.c | 95 struct antsel_info *wlc_antsel_attach(struct wlc_info *wlc) in wlc_antsel_attach() argument 102 wlc->pub->unit); in wlc_antsel_attach() 106 asi->wlc = wlc; in wlc_antsel_attach() 107 asi->pub = wlc->pub; in wlc_antsel_attach() 150 wlc_bmac_antsel_type_set(wlc->hw, asi->antsel_type); in wlc_antsel_attach() 296 struct wlc_info *wlc = asi->wlc; in wlc_antsel_cfgupd() local 307 wlc_write_shm(wlc, M_MIMO_ANTSEL_TXDFLT, mimo_antsel); in wlc_antsel_cfgupd() 316 wlc_write_shm(wlc, M_MIMO_ANTSEL_RXDFLT, mimo_antsel); in wlc_antsel_cfgupd()
|
D | wlc_phy_shim.c | 61 void *wlc; /* pointer to main wlc structure */ member 66 void *wl, void *wlc) { in wlc_phy_shim_attach() argument 76 physhim->wlc = wlc; in wlc_phy_shim_attach() 150 wlc_suspend_mac_and_wait(physhim->wlc); in wlapi_suspend_mac_and_wait() 160 wlc_enable_mac(physhim->wlc); in wlapi_enable_mac()
|
D | wlc_ampdu.h | 20 extern struct ampdu_info *wlc_ampdu_attach(struct wlc_info *wlc); 27 extern void wlc_ampdu_macaddr_upd(struct wlc_info *wlc);
|
D | wlc_bmac.h | 82 extern int wlc_bmac_attach(struct wlc_info *wlc, u16 vendor, u16 device, 85 extern int wlc_bmac_detach(struct wlc_info *wlc); 166 extern void wlc_bmac_set_noreset(struct wlc_hw_info *wlc, bool noreset_flag);
|
D | wlc_alloc.h | 20 extern void wlc_detach_mfree(struct wlc_info *wlc);
|
D | wlc_antsel.h | 20 extern struct antsel_info *wlc_antsel_attach(struct wlc_info *wlc);
|
D | wlc_scb.h | 20 extern bool wlc_aggregatable(struct wlc_info *wlc, u8 tid);
|
D | wl_mac80211.h | 53 void *wlc; /* pointer to private common os-independent data */ member
|
D | wlc_channel.h | 105 extern wlc_cm_info_t *wlc_channel_mgr_attach(struct wlc_info *wlc);
|
D | wlc_cfg.h | 20 #define NBANDS(wlc) ((wlc)->pub->_nbands) argument
|
D | wlc_phy_shim.h | 59 void *wl, void *wlc);
|