Lines Matching refs:rxdesc

598 				      struct rxdone_entry_desc *rxdesc)  in rt2x00lib_rxdone_check_ba()  argument
606 if (rxdesc->size < sizeof(*ba) + FCS_LEN) in rt2x00lib_rxdone_check_ba()
642 struct rxdone_entry_desc *rxdesc) in rt2x00lib_rxdone_check_ps() argument
662 if (!(rxdesc->dev_flags & RXDONE_MY_BSS) || in rt2x00lib_rxdone_check_ps()
691 struct rxdone_entry_desc *rxdesc) in rt2x00lib_rxdone_read_signal() argument
696 int signal = rxdesc->signal; in rt2x00lib_rxdone_read_signal()
697 int type = (rxdesc->dev_flags & RXDONE_SIGNAL_MASK); in rt2x00lib_rxdone_read_signal()
699 switch (rxdesc->rate_mode) { in rt2x00lib_rxdone_read_signal()
706 if (rxdesc->dev_flags & RXDONE_SIGNAL_MCS) in rt2x00lib_rxdone_read_signal()
707 signal = RATE_MCS(rxdesc->rate_mode, signal); in rt2x00lib_rxdone_read_signal()
732 rxdesc->rate_mode, signal, type); in rt2x00lib_rxdone_read_signal()
739 struct rxdone_entry_desc rxdesc; in rt2x00lib_rxdone() local
768 memset(&rxdesc, 0, sizeof(rxdesc)); in rt2x00lib_rxdone()
769 rt2x00dev->ops->lib->fill_rxdone(entry, &rxdesc); in rt2x00lib_rxdone()
775 if (unlikely(rxdesc.size == 0 || in rt2x00lib_rxdone()
776 rxdesc.size > entry->queue->data_size)) { in rt2x00lib_rxdone()
778 rxdesc.size, entry->queue->data_size); in rt2x00lib_rxdone()
795 if ((rxdesc.dev_flags & RXDONE_CRYPTO_IV) && in rt2x00lib_rxdone()
796 (rxdesc.flags & RX_FLAG_IV_STRIPPED)) in rt2x00lib_rxdone()
798 &rxdesc); in rt2x00lib_rxdone()
800 (rxdesc.size > header_length) && in rt2x00lib_rxdone()
801 (rxdesc.dev_flags & RXDONE_L2PAD)) in rt2x00lib_rxdone()
805 skb_trim(entry->skb, rxdesc.size); in rt2x00lib_rxdone()
810 rate_idx = rt2x00lib_rxdone_read_signal(rt2x00dev, &rxdesc); in rt2x00lib_rxdone()
811 if (rxdesc.rate_mode == RATE_MODE_HT_MIX || in rt2x00lib_rxdone()
812 rxdesc.rate_mode == RATE_MODE_HT_GREENFIELD) in rt2x00lib_rxdone()
813 rxdesc.encoding = RX_ENC_HT; in rt2x00lib_rxdone()
819 rt2x00lib_rxdone_check_ps(rt2x00dev, entry->skb, &rxdesc); in rt2x00lib_rxdone()
825 rt2x00lib_rxdone_check_ba(rt2x00dev, entry->skb, &rxdesc); in rt2x00lib_rxdone()
830 rt2x00link_update_stats(rt2x00dev, entry->skb, &rxdesc); in rt2x00lib_rxdone()
831 rt2x00debug_update_crypto(rt2x00dev, &rxdesc); in rt2x00lib_rxdone()
847 rx_status->mactime = rxdesc.timestamp; in rt2x00lib_rxdone()
851 rx_status->signal = rxdesc.rssi; in rt2x00lib_rxdone()
852 rx_status->flag = rxdesc.flags; in rt2x00lib_rxdone()
853 rx_status->enc_flags = rxdesc.enc_flags; in rt2x00lib_rxdone()
854 rx_status->encoding = rxdesc.encoding; in rt2x00lib_rxdone()
855 rx_status->bw = rxdesc.bw; in rt2x00lib_rxdone()