Lines Matching refs:rx

99 	if (sc->rx.rxlink == NULL)  in ath_rx_buf_link()
102 *sc->rx.rxlink = bf->bf_daddr; in ath_rx_buf_link()
104 sc->rx.rxlink = &ds->ds_link; in ath_rx_buf_link()
109 if (sc->rx.buf_hold) in ath_rx_buf_relink()
110 ath_rx_buf_link(sc, sc->rx.buf_hold); in ath_rx_buf_relink()
112 sc->rx.buf_hold = bf; in ath_rx_buf_relink()
119 sc->rx.defant = antenna; in ath_setdefantenna()
120 sc->rx.rxotherant = 0; in ath_setdefantenna()
153 rx_edma = &sc->rx.rx_edma[qtype]; in ath_rx_edma_buf_link()
157 bf = list_first_entry(&sc->rx.rxbuf, struct ath_buf, list); in ath_rx_edma_buf_link()
179 if (list_empty(&sc->rx.rxbuf)) { in ath_rx_addbuffer_edma()
184 list_for_each_entry_safe(bf, tbf, &sc->rx.rxbuf, list) in ath_rx_addbuffer_edma()
197 rx_edma = &sc->rx.rx_edma[qtype]; in ath_rx_remove_buffer()
202 list_add_tail(&bf->list, &sc->rx.rxbuf); in ath_rx_remove_buffer()
215 list_for_each_entry(bf, &sc->rx.rxbuf, list) { in ath_rx_edma_cleanup()
226 INIT_LIST_HEAD(&sc->rx.rxbuf); in ath_rx_edma_cleanup()
228 kfree(sc->rx.rx_bufptr); in ath_rx_edma_cleanup()
229 sc->rx.rx_bufptr = NULL; in ath_rx_edma_cleanup()
250 ath_rx_edma_init_queue(&sc->rx.rx_edma[ATH9K_RX_QUEUE_LP], in ath_rx_edma_init()
252 ath_rx_edma_init_queue(&sc->rx.rx_edma[ATH9K_RX_QUEUE_HP], in ath_rx_edma_init()
260 INIT_LIST_HEAD(&sc->rx.rxbuf); in ath_rx_edma_init()
261 sc->rx.rx_bufptr = bf; in ath_rx_edma_init()
287 list_add_tail(&bf->list, &sc->rx.rxbuf); in ath_rx_edma_init()
299 spin_lock_bh(&sc->rx.rxbuflock); in ath_edma_start_recv()
304 sc->rx.rx_edma[ATH9K_RX_QUEUE_HP].rx_fifo_hwsize); in ath_edma_start_recv()
307 sc->rx.rx_edma[ATH9K_RX_QUEUE_LP].rx_fifo_hwsize); in ath_edma_start_recv()
313 spin_unlock_bh(&sc->rx.rxbuflock); in ath_edma_start_recv()
331 spin_lock_init(&sc->rx.rxbuflock); in ath_rx_init()
344 error = ath_descdma_setup(sc, &sc->rx.rxdma, &sc->rx.rxbuf, in ath_rx_init()
353 list_for_each_entry(bf, &sc->rx.rxbuf, list) { in ath_rx_init()
376 sc->rx.rxlink = NULL; in ath_rx_init()
397 list_for_each_entry(bf, &sc->rx.rxbuf, list) { in ath_rx_cleanup()
409 if (sc->rx.rxdma.dd_desc_len != 0) in ath_rx_cleanup()
410 ath_descdma_cleanup(sc, &sc->rx.rxdma, &sc->rx.rxbuf); in ath_rx_cleanup()
440 if (sc->rx.rxfilter & FIF_PROBE_REQ) in ath_calcrxfilter()
451 if (sc->rx.rxfilter & FIF_CONTROL) in ath_calcrxfilter()
456 !(sc->rx.rxfilter & FIF_BCN_PRBRESP_PROMISC)) in ath_calcrxfilter()
462 (sc->rx.rxfilter & FIF_PSPOLL)) in ath_calcrxfilter()
468 if (sc->nvifs > 1 || (sc->rx.rxfilter & FIF_OTHER_BSS)) { in ath_calcrxfilter()
489 spin_lock_bh(&sc->rx.rxbuflock); in ath_startrecv()
490 if (list_empty(&sc->rx.rxbuf)) in ath_startrecv()
493 sc->rx.buf_hold = NULL; in ath_startrecv()
494 sc->rx.rxlink = NULL; in ath_startrecv()
495 list_for_each_entry_safe(bf, tbf, &sc->rx.rxbuf, list) { in ath_startrecv()
500 if (list_empty(&sc->rx.rxbuf)) in ath_startrecv()
503 bf = list_first_entry(&sc->rx.rxbuf, struct ath_buf, list); in ath_startrecv()
511 spin_unlock_bh(&sc->rx.rxbuflock); in ath_startrecv()
521 spin_lock_bh(&sc->rx.rxbuflock); in ath_stoprecv()
529 sc->rx.rxlink = NULL; in ath_stoprecv()
530 spin_unlock_bh(&sc->rx.rxbuflock); in ath_stoprecv()
665 struct ath_rx_edma *rx_edma = &sc->rx.rx_edma[qtype]; in ath_edma_get_buffers()
693 list_add_tail(&bf->list, &sc->rx.rxbuf); in ath_edma_get_buffers()
702 list_add_tail(&bf->list, &sc->rx.rxbuf); in ath_edma_get_buffers()
737 if (list_empty(&sc->rx.rxbuf)) { in ath_get_next_rx_buf()
738 sc->rx.rxlink = NULL; in ath_get_next_rx_buf()
742 bf = list_first_entry(&sc->rx.rxbuf, struct ath_buf, list); in ath_get_next_rx_buf()
743 if (bf == sc->rx.buf_hold) in ath_get_next_rx_buf()
766 if (list_is_last(&bf->list, &sc->rx.rxbuf)) { in ath_get_next_rx_buf()
767 sc->rx.rxlink = NULL; in ath_get_next_rx_buf()
887 if (ah->is_monitoring && (sc->rx.rxfilter & FIF_FCSFAIL)) in ath9k_rx_accept()
1802 spin_lock_bh(&sc->rx.rxbuflock); in ath_rx_tasklet()
1830 if (sc->rx.frag) in ath_rx_tasklet()
1831 hdr_skb = sc->rx.frag; in ath_rx_tasklet()
1914 if (sc->rx.frag) { in ath_rx_tasklet()
1916 dev_kfree_skb_any(sc->rx.frag); in ath_rx_tasklet()
1920 sc->rx.frag = skb; in ath_rx_tasklet()
1924 if (sc->rx.frag) { in ath_rx_tasklet()
1932 sc->rx.frag = NULL; in ath_rx_tasklet()
1947 if (sc->rx.defant != rs.rs_antenna) { in ath_rx_tasklet()
1948 if (++sc->rx.rxotherant >= 3) in ath_rx_tasklet()
1951 sc->rx.rxotherant = 0; in ath_rx_tasklet()
1974 if (sc->rx.frag) { in ath_rx_tasklet()
1975 dev_kfree_skb_any(sc->rx.frag); in ath_rx_tasklet()
1976 sc->rx.frag = NULL; in ath_rx_tasklet()
1979 list_add_tail(&bf->list, &sc->rx.rxbuf); in ath_rx_tasklet()
1991 spin_unlock_bh(&sc->rx.rxbuflock); in ath_rx_tasklet()