Lines Matching refs:rx
63 if (sc->rx.rxlink) in ath_rx_buf_link()
64 *sc->rx.rxlink = bf->bf_daddr; in ath_rx_buf_link()
68 sc->rx.rxlink = &ds->ds_link; in ath_rx_buf_link()
74 if (sc->rx.buf_hold) in ath_rx_buf_relink()
75 ath_rx_buf_link(sc, sc->rx.buf_hold, flush); in ath_rx_buf_relink()
77 sc->rx.buf_hold = bf; in ath_rx_buf_relink()
84 sc->rx.defant = antenna; in ath_setdefantenna()
85 sc->rx.rxotherant = 0; in ath_setdefantenna()
118 rx_edma = &sc->rx.rx_edma[qtype]; in ath_rx_edma_buf_link()
122 bf = list_first_entry(&sc->rx.rxbuf, struct ath_rxbuf, list); in ath_rx_edma_buf_link()
144 if (list_empty(&sc->rx.rxbuf)) { in ath_rx_addbuffer_edma()
149 list_for_each_entry_safe(bf, tbf, &sc->rx.rxbuf, list) in ath_rx_addbuffer_edma()
162 rx_edma = &sc->rx.rx_edma[qtype]; in ath_rx_remove_buffer()
167 list_add_tail(&bf->list, &sc->rx.rxbuf); in ath_rx_remove_buffer()
180 list_for_each_entry(bf, &sc->rx.rxbuf, list) { in ath_rx_edma_cleanup()
210 ath_rx_edma_init_queue(&sc->rx.rx_edma[ATH9K_RX_QUEUE_LP], in ath_rx_edma_init()
212 ath_rx_edma_init_queue(&sc->rx.rx_edma[ATH9K_RX_QUEUE_HP], in ath_rx_edma_init()
220 INIT_LIST_HEAD(&sc->rx.rxbuf); in ath_rx_edma_init()
246 list_add_tail(&bf->list, &sc->rx.rxbuf); in ath_rx_edma_init()
291 error = ath_descdma_setup(sc, &sc->rx.rxdma, &sc->rx.rxbuf, in ath_rx_init()
300 list_for_each_entry(bf, &sc->rx.rxbuf, list) { in ath_rx_init()
323 sc->rx.rxlink = NULL; in ath_rx_init()
343 list_for_each_entry(bf, &sc->rx.rxbuf, list) { in ath_rx_cleanup()
447 if (list_empty(&sc->rx.rxbuf)) in ath_startrecv()
450 sc->rx.buf_hold = NULL; in ath_startrecv()
451 sc->rx.rxlink = NULL; in ath_startrecv()
452 list_for_each_entry_safe(bf, tbf, &sc->rx.rxbuf, list) { in ath_startrecv()
457 if (list_empty(&sc->rx.rxbuf)) in ath_startrecv()
460 bf = list_first_entry(&sc->rx.rxbuf, struct ath_rxbuf, list); in ath_startrecv()
490 sc->rx.rxlink = NULL; in ath_stoprecv()
628 struct ath_rx_edma *rx_edma = &sc->rx.rx_edma[qtype]; in ath_edma_get_buffers()
656 list_add_tail(&bf->list, &sc->rx.rxbuf); in ath_edma_get_buffers()
665 list_add_tail(&bf->list, &sc->rx.rxbuf); in ath_edma_get_buffers()
700 if (list_empty(&sc->rx.rxbuf)) { in ath_get_next_rx_buf()
701 sc->rx.rxlink = NULL; in ath_get_next_rx_buf()
705 bf = list_first_entry(&sc->rx.rxbuf, struct ath_rxbuf, list); in ath_get_next_rx_buf()
706 if (bf == sc->rx.buf_hold) in ath_get_next_rx_buf()
729 if (list_is_last(&bf->list, &sc->rx.rxbuf)) { in ath_get_next_rx_buf()
730 sc->rx.rxlink = NULL; in ath_get_next_rx_buf()
814 bool discard_current = sc->rx.discard_next; in ath9k_rx_skb_preprocess()
823 sc->rx.discard_next = false; in ath9k_rx_skb_preprocess()
924 sc->rx.num_pkts++; in ath9k_rx_skb_preprocess()
930 sc->rx.discard_next = rx_stats->rs_more; in ath9k_rx_skb_preprocess()
958 if (sc->rx.defant != rs->rs_antenna) { in ath9k_antenna_check()
959 if (++sc->rx.rxotherant >= 3) in ath9k_antenna_check()
962 sc->rx.rxotherant = 0; in ath9k_antenna_check()
979 rxs->ampdu_reference = sc->rx.ampdu_ref; in ath9k_apply_ampdu_details()
983 sc->rx.ampdu_ref++; in ath9k_apply_ampdu_details()
1039 if (sc->rx.frag) in ath_rx_tasklet()
1040 hdr_skb = sc->rx.frag; in ath_rx_tasklet()
1095 if (sc->rx.frag) { in ath_rx_tasklet()
1097 dev_kfree_skb_any(sc->rx.frag); in ath_rx_tasklet()
1102 sc->rx.frag = skb; in ath_rx_tasklet()
1106 if (sc->rx.frag) { in ath_rx_tasklet()
1115 sc->rx.frag = NULL; in ath_rx_tasklet()
1145 if (sc->rx.frag) { in ath_rx_tasklet()
1146 dev_kfree_skb_any(sc->rx.frag); in ath_rx_tasklet()
1147 sc->rx.frag = NULL; in ath_rx_tasklet()
1150 list_add_tail(&bf->list, &sc->rx.rxbuf); in ath_rx_tasklet()