Lines Matching defs:tap

617 	struct ieee80211_tx_ampdu *tap;
630 tap = &in->in_tx_ampdu[ac];
631 tap->txa_ac = (uint8_t)ac;
651 struct ieee80211_tx_ampdu *tap = &in->in_tx_ampdu[i];
652 if (tap->txa_flags & IEEE80211_AGGR_SETUP) {
658 /* IEEE80211_TAPQ_DESTROY(tap); */
660 tap->txa_flags &=
725 struct ieee80211_tx_ampdu *tap;
762 tap = &in->in_tx_ampdu[ac];
763 tap->txa_ac = (uint8_t)ac;
1031 struct ieee80211_tx_ampdu *tap = arg;
1033 tap->txa_flags &= ~IEEE80211_AGGR_XCHGPEND;
1034 tap->txa_attempts++;
1038 addba_start_timeout(struct ieee80211_tx_ampdu *tap)
1040 tap->txa_timer = timeout(addba_timeout, (void *)tap,
1042 tap->txa_flags |= IEEE80211_AGGR_XCHGPEND;
1043 tap->txa_lastrequest = ddi_get_lbolt();
1047 addba_stop_timeout(struct ieee80211_tx_ampdu *tap)
1049 if (tap->txa_flags & IEEE80211_AGGR_XCHGPEND) {
1050 if (tap->txa_timer != NULL) {
1051 (void) untimeout(tap->txa_timer);
1052 tap->txa_timer = NULL;
1054 tap->txa_flags &= ~IEEE80211_AGGR_XCHGPEND;
1066 struct ieee80211_tx_ampdu *tap,
1071 tap->txa_token = (uint8_t)dialogtoken;
1072 tap->txa_flags |= IEEE80211_AGGR_IMMEDIATE;
1073 tap->txa_start = tap->txa_seqstart = 0;
1075 tap->txa_wnd = (bufsiz == 0) ? IEEE80211_AGGR_BAWMAX
1077 addba_start_timeout(tap);
1089 struct ieee80211_tx_ampdu *tap,
1094 addba_stop_timeout(tap);
1098 tap->txa_wnd = (bufsiz == 0) ? IEEE80211_AGGR_BAWMAX
1100 tap->txa_flags |= IEEE80211_AGGR_RUNNING;
1103 tap->txa_flags |= IEEE80211_AGGR_NAK;
1114 ieee80211_addba_stop(struct ieee80211_node *in, struct ieee80211_tx_ampdu *tap)
1116 addba_stop_timeout(tap);
1117 if (tap->txa_flags & IEEE80211_AGGR_RUNNING) {
1119 tap->txa_flags &= ~IEEE80211_AGGR_RUNNING;
1121 tap->txa_attempts = 0;
1137 struct ieee80211_tx_ampdu *tap;
1206 tap = &in->in_tx_ampdu[ac];
1207 if ((tap->txa_flags & IEEE80211_AGGR_XCHGPEND) == 0) {
1213 if (dialogtoken != tap->txa_token) {
1217 tap->txa_token, dialogtoken, tid, code);
1226 ic->ic_addba_response(in, tap,
1243 tap = &in->in_tx_ampdu[ac];
1244 ic->ic_addba_stop(in, tap);
1321 struct ieee80211_tx_ampdu *tap)
1330 if ((tap->txa_flags & IEEE80211_AGGR_SETUP) == 0) {
1332 tap->txa_flags |= IEEE80211_AGGR_SETUP;
1334 if (tap->txa_attempts >= IEEE80211_AGGR_MAXTRIES &&
1335 (ticks - tap->txa_lastrequest) < IEEE80211_AGGR_MINRETRY) {
1345 tap->txa_flags &= ~IEEE80211_AGGR_NAK;
1349 tid = WME_AC_TO_TID(tap->txa_ac);
1358 if (!ic->ic_addba_request(in, tap, dialogtoken, args[1], args[2])) {
1362 tap->txa_ac);
1364 tap->txa_attempts = IEEE80211_AGGR_MAXTRIES;
1365 tap->txa_lastrequest = ticks;
1378 ieee80211_ampdu_stop(struct ieee80211_node *in, struct ieee80211_tx_ampdu *tap)
1383 if (IEEE80211_AMPDU_RUNNING(tap)) {
1385 "stop BA stream for AC %d\n", tap->txa_ac);
1387 ic->ic_addba_stop(in, tap);
1388 args[0] = WME_AC_TO_TID(tap->txa_ac);
1396 tap->txa_ac);
1407 const struct ieee80211_tx_ampdu *tap)
1435 tid = WME_AC_TO_TID(tap->txa_ac);
1436 barctl = (tap->txa_flags & IEEE80211_AGGR_IMMEDIATE ?
1440 | SM(tap->txa_wnd, IEEE80211_BAPS_BUFSIZ);
1441 barseqctl = SM(tap->txa_start, IEEE80211_BASEQ_START)
1449 tid, tap->txa_start, ieee80211_chan2ieee(ic, ic->ic_curchan));