• Home
  • Raw
  • Download

Lines Matching refs:tbl

110 					 struct mwifiex_rx_reorder_tbl *tbl,  in mwifiex_11n_dispatch_pkt_until_start_win()  argument
120 pkt_to_send = (start_win > tbl->start_win) ? in mwifiex_11n_dispatch_pkt_until_start_win()
121 min((start_win - tbl->start_win), tbl->win_size) : in mwifiex_11n_dispatch_pkt_until_start_win()
122 tbl->win_size; in mwifiex_11n_dispatch_pkt_until_start_win()
125 if (tbl->rx_reorder_ptr[i]) { in mwifiex_11n_dispatch_pkt_until_start_win()
126 skb = tbl->rx_reorder_ptr[i]; in mwifiex_11n_dispatch_pkt_until_start_win()
128 tbl->rx_reorder_ptr[i] = NULL; in mwifiex_11n_dispatch_pkt_until_start_win()
136 for (i = 0; i < tbl->win_size - pkt_to_send; ++i) { in mwifiex_11n_dispatch_pkt_until_start_win()
137 tbl->rx_reorder_ptr[i] = tbl->rx_reorder_ptr[pkt_to_send + i]; in mwifiex_11n_dispatch_pkt_until_start_win()
138 tbl->rx_reorder_ptr[pkt_to_send + i] = NULL; in mwifiex_11n_dispatch_pkt_until_start_win()
141 tbl->start_win = start_win; in mwifiex_11n_dispatch_pkt_until_start_win()
158 struct mwifiex_rx_reorder_tbl *tbl) in mwifiex_11n_scan_and_dispatch() argument
167 for (i = 0; i < tbl->win_size; ++i) { in mwifiex_11n_scan_and_dispatch()
168 if (!tbl->rx_reorder_ptr[i]) in mwifiex_11n_scan_and_dispatch()
170 skb = tbl->rx_reorder_ptr[i]; in mwifiex_11n_scan_and_dispatch()
172 tbl->rx_reorder_ptr[i] = NULL; in mwifiex_11n_scan_and_dispatch()
180 xchg = tbl->win_size - i; in mwifiex_11n_scan_and_dispatch()
182 tbl->rx_reorder_ptr[j] = tbl->rx_reorder_ptr[i + j]; in mwifiex_11n_scan_and_dispatch()
183 tbl->rx_reorder_ptr[i + j] = NULL; in mwifiex_11n_scan_and_dispatch()
186 tbl->start_win = (tbl->start_win + i) & (MAX_TID_VALUE - 1); in mwifiex_11n_scan_and_dispatch()
202 struct mwifiex_rx_reorder_tbl *tbl) in mwifiex_del_rx_reorder_entry() argument
206 if (!tbl) in mwifiex_del_rx_reorder_entry()
218 start_win = (tbl->start_win + tbl->win_size) & (MAX_TID_VALUE - 1); in mwifiex_del_rx_reorder_entry()
219 mwifiex_11n_dispatch_pkt_until_start_win(priv, tbl, start_win); in mwifiex_del_rx_reorder_entry()
221 del_timer_sync(&tbl->timer_context.timer); in mwifiex_del_rx_reorder_entry()
222 tbl->timer_context.timer_is_set = false; in mwifiex_del_rx_reorder_entry()
225 list_del(&tbl->list); in mwifiex_del_rx_reorder_entry()
228 kfree(tbl->rx_reorder_ptr); in mwifiex_del_rx_reorder_entry()
229 kfree(tbl); in mwifiex_del_rx_reorder_entry()
244 struct mwifiex_rx_reorder_tbl *tbl; in mwifiex_11n_get_rx_reorder_tbl() local
247 list_for_each_entry(tbl, &priv->rx_reorder_tbl_ptr, list) { in mwifiex_11n_get_rx_reorder_tbl()
248 if (!memcmp(tbl->ta, ta, ETH_ALEN) && tbl->tid == tid) { in mwifiex_11n_get_rx_reorder_tbl()
250 return tbl; in mwifiex_11n_get_rx_reorder_tbl()
263 struct mwifiex_rx_reorder_tbl *tbl, *tmp; in mwifiex_11n_del_rx_reorder_tbl_by_ta() local
269 list_for_each_entry_safe(tbl, tmp, &priv->rx_reorder_tbl_ptr, list) { in mwifiex_11n_del_rx_reorder_tbl_by_ta()
270 if (!memcmp(tbl->ta, ta, ETH_ALEN)) { in mwifiex_11n_del_rx_reorder_tbl_by_ta()
272 mwifiex_del_rx_reorder_entry(priv, tbl); in mwifiex_11n_del_rx_reorder_tbl_by_ta()
345 struct mwifiex_rx_reorder_tbl *tbl, *new_node; in mwifiex_11n_create_rx_reorder_tbl() local
353 tbl = mwifiex_11n_get_rx_reorder_tbl(priv, tid, ta); in mwifiex_11n_create_rx_reorder_tbl()
354 if (tbl) { in mwifiex_11n_create_rx_reorder_tbl()
355 mwifiex_11n_dispatch_pkt_until_start_win(priv, tbl, seq_num); in mwifiex_11n_create_rx_reorder_tbl()
422 mwifiex_11n_rxreorder_timer_restart(struct mwifiex_rx_reorder_tbl *tbl) in mwifiex_11n_rxreorder_timer_restart() argument
426 if (tbl->win_size >= MWIFIEX_BA_WIN_SIZE_32) in mwifiex_11n_rxreorder_timer_restart()
431 mod_timer(&tbl->timer_context.timer, in mwifiex_11n_rxreorder_timer_restart()
432 jiffies + msecs_to_jiffies(min_flush_time * tbl->win_size)); in mwifiex_11n_rxreorder_timer_restart()
434 tbl->timer_context.timer_is_set = true; in mwifiex_11n_rxreorder_timer_restart()
563 struct mwifiex_rx_reorder_tbl *tbl; in mwifiex_11n_rx_reorder_pkt() local
569 tbl = mwifiex_11n_get_rx_reorder_tbl(priv, tid, ta); in mwifiex_11n_rx_reorder_pkt()
570 if (!tbl) { in mwifiex_11n_rx_reorder_pkt()
576 if ((pkt_type == PKT_TYPE_AMSDU) && !tbl->amsdu) { in mwifiex_11n_rx_reorder_pkt()
581 start_win = tbl->start_win; in mwifiex_11n_rx_reorder_pkt()
583 win_size = tbl->win_size; in mwifiex_11n_rx_reorder_pkt()
585 if (tbl->flags & RXREOR_INIT_WINDOW_SHIFT) { in mwifiex_11n_rx_reorder_pkt()
587 tbl->flags &= ~RXREOR_INIT_WINDOW_SHIFT; in mwifiex_11n_rx_reorder_pkt()
590 if (tbl->flags & RXREOR_FORCE_NO_DROP) { in mwifiex_11n_rx_reorder_pkt()
593 tbl->flags &= ~RXREOR_FORCE_NO_DROP; in mwifiex_11n_rx_reorder_pkt()
595 seq_num >= tbl->init_win) { in mwifiex_11n_rx_reorder_pkt()
598 start_win, seq_num, tbl->init_win); in mwifiex_11n_rx_reorder_pkt()
599 tbl->start_win = start_win = seq_num; in mwifiex_11n_rx_reorder_pkt()
636 mwifiex_11n_dispatch_pkt_until_start_win(priv, tbl, start_win); in mwifiex_11n_rx_reorder_pkt()
645 if (tbl->rx_reorder_ptr[pkt_index]) { in mwifiex_11n_rx_reorder_pkt()
650 tbl->rx_reorder_ptr[pkt_index] = payload; in mwifiex_11n_rx_reorder_pkt()
657 mwifiex_11n_scan_and_dispatch(priv, tbl); in mwifiex_11n_rx_reorder_pkt()
660 if (!tbl->timer_context.timer_is_set || in mwifiex_11n_rx_reorder_pkt()
661 prev_start_win != tbl->start_win) in mwifiex_11n_rx_reorder_pkt()
662 mwifiex_11n_rxreorder_timer_restart(tbl); in mwifiex_11n_rx_reorder_pkt()
675 struct mwifiex_rx_reorder_tbl *tbl; in mwifiex_del_ba_tbl() local
690 tbl = mwifiex_11n_get_rx_reorder_tbl(priv, tid, in mwifiex_del_ba_tbl()
692 if (!tbl) { in mwifiex_del_ba_tbl()
697 mwifiex_del_rx_reorder_entry(priv, tbl); in mwifiex_del_ba_tbl()
729 struct mwifiex_rx_reorder_tbl *tbl; in mwifiex_ret_11n_addba_resp() local
744 tbl = mwifiex_11n_get_rx_reorder_tbl(priv, tid, in mwifiex_ret_11n_addba_resp()
746 if (tbl) in mwifiex_ret_11n_addba_resp()
747 mwifiex_del_rx_reorder_entry(priv, tbl); in mwifiex_ret_11n_addba_resp()
755 tbl = mwifiex_11n_get_rx_reorder_tbl(priv, tid, in mwifiex_ret_11n_addba_resp()
757 if (tbl) { in mwifiex_ret_11n_addba_resp()
761 tbl->amsdu = true; in mwifiex_ret_11n_addba_resp()
763 tbl->amsdu = false; in mwifiex_ret_11n_addba_resp()
820 struct mwifiex_rx_reorder_tbl *tbl; in mwifiex_update_rxreor_flags() local
829 list_for_each_entry(tbl, &priv->rx_reorder_tbl_ptr, list) in mwifiex_update_rxreor_flags()
830 tbl->flags = flags; in mwifiex_update_rxreor_flags()