Lines Matching refs:ts

406 static bool AddReorderEntry(struct rx_ts_record *ts,
409 struct list_head *pList = &ts->rx_pending_pkt_list;
411 while (pList->next != &ts->rx_pending_pkt_list) {
491 struct rx_ts_record *ts)
496 del_timer_sync(&ts->rx_pkt_pending_timer);
497 while (!list_empty(&ts->rx_pending_pkt_list)) {
506 list_entry(ts->rx_pending_pkt_list.prev,
520 ts->rx_indicate_seq = 0xffff;
525 struct rx_ts_record *ts, u16 SeqNum)
536 "%s(): Seq is %d, ts->rx_indicate_seq is %d, WinSize is %d\n",
537 __func__, SeqNum, ts->rx_indicate_seq, WinSize);
541 WinEnd = (ts->rx_indicate_seq + WinSize - 1) % 4096;
543 if (ts->rx_indicate_seq == 0xffff)
544 ts->rx_indicate_seq = SeqNum;
547 if (SN_LESS(SeqNum, ts->rx_indicate_seq)) {
550 ts->rx_indicate_seq, SeqNum);
568 if (SN_EQUAL(SeqNum, ts->rx_indicate_seq)) {
569 ts->rx_indicate_seq = (ts->rx_indicate_seq + 1) % 4096;
573 ts->rx_indicate_seq = SeqNum + 1 - WinSize;
575 ts->rx_indicate_seq = 4095 -
579 ts->rx_indicate_seq, SeqNum);
596 ts->rx_indicate_seq, SeqNum);
613 if (!AddReorderEntry(ts, pReorderEntry)) {
618 __func__, ts->rx_indicate_seq,
630 ts->rx_indicate_seq, SeqNum);
653 while (!list_empty(&ts->rx_pending_pkt_list)) {
658 list_entry(ts->rx_pending_pkt_list.prev,
661 if (SN_LESS(pReorderEntry->SeqNum, ts->rx_indicate_seq) ||
662 SN_EQUAL(pReorderEntry->SeqNum, ts->rx_indicate_seq)) {
674 if (SN_EQUAL(pReorderEntry->SeqNum, ts->rx_indicate_seq))
675 ts->rx_indicate_seq = (ts->rx_indicate_seq + 1) %
696 if (timer_pending(&ts->rx_pkt_pending_timer))
697 del_timer_sync(&ts->rx_pkt_pending_timer);
699 ts->rx_timeout_indicate_seq = 0xffff;
713 if (bPktInBuf && ts->rx_timeout_indicate_seq == 0xffff) {
715 ts->rx_timeout_indicate_seq = ts->rx_indicate_seq;
717 mod_timer(&ts->rx_pkt_pending_timer, jiffies +
891 struct rx_ts_record *ts = NULL;
893 if (rtllib_get_ts(ieee, (struct ts_common_info **)&ts, hdr->addr2,
895 if ((fc & (1 << 11)) && (frag == ts->rx_last_frag_num) &&
896 (WLAN_GET_SEQ_SEQ(sc) == ts->rx_last_seq_num))
898 ts->rx_last_frag_num = frag;
899 ts->rx_last_seq_num = WLAN_GET_SEQ_SEQ(sc);
1233 struct rx_ts_record *ts = NULL;
1329 rtllib_get_ts(ieee, (struct ts_common_info **)&ts, hdr->addr2, TID,
1366 if (!ieee->ht_info->cur_rx_reorder_enable || !ts)
1369 RxReorderIndicatePacket(ieee, rxb, ts, SeqNum);