Lines Matching full:re

200  * Re-initialise the FIFO given the current buffer contents.
207 struct ath_rx_edma *re = &sc->sc_rxedma[qtype]; in ath_edma_reinit_fifo() local
215 i = re->m_fifo_head; in ath_edma_reinit_fifo()
216 for (j = 0; j < re->m_fifo_depth; j++) { in ath_edma_reinit_fifo()
217 bf = re->m_fifo[i]; in ath_edma_reinit_fifo()
225 INCR(i, re->m_fifolen); in ath_edma_reinit_fifo()
229 if (i != re->m_fifo_tail) { in ath_edma_reinit_fifo()
233 re->m_fifo_tail); in ath_edma_reinit_fifo()
267 "%s: Re-initing HP FIFO\n", __func__); in ath_edma_startrecv()
270 "%s: Re-initing LP FIFO\n", __func__); in ath_edma_startrecv()
301 * We're now doing RX DMA! in ath_edma_startrecv()
412 struct ath_rx_edma *re = &sc->sc_rxedma[qtype]; in ath_edma_recv_proc_queue() local
446 bf = re->m_fifo[re->m_fifo_head]; in ath_edma_recv_proc_queue()
494 re->m_fifo[re->m_fifo_head] = NULL; in ath_edma_recv_proc_queue()
498 INCR(re->m_fifo_head, re->m_fifolen); in ath_edma_recv_proc_queue()
499 re->m_fifo_depth--; in ath_edma_recv_proc_queue()
501 } while (re->m_fifo_depth > 0); in ath_edma_recv_proc_queue()
505 ath_edma_rxfifo_alloc(sc, qtype, re->m_fifolen); in ath_edma_recv_proc_queue()
817 struct ath_rx_edma *re = &sc->sc_rxedma[qtype]; in ath_edma_rxfifo_alloc() local
826 for (i = 0; i < nbufs && re->m_fifo_depth < re->m_fifolen; i++) { in ath_edma_rxfifo_alloc()
828 if (re->m_fifo[re->m_fifo_tail] != NULL) { in ath_edma_rxfifo_alloc()
833 re->m_fifo_tail, in ath_edma_rxfifo_alloc()
834 re->m_fifo[re->m_fifo_tail]); in ath_edma_rxfifo_alloc()
837 ath_edma_rxbuf_free(sc, re->m_fifo[re->m_fifo_tail]); in ath_edma_rxfifo_alloc()
838 re->m_fifo_depth--; in ath_edma_rxfifo_alloc()
840 re->m_fifo[re->m_fifo_tail] = NULL; in ath_edma_rxfifo_alloc()
855 re->m_fifo[re->m_fifo_tail] = bf; in ath_edma_rxfifo_alloc()
866 re->m_fifo_depth++; in ath_edma_rxfifo_alloc()
867 INCR(re->m_fifo_tail, re->m_fifolen); in ath_edma_rxfifo_alloc()
884 struct ath_rx_edma *re = &sc->sc_rxedma[qtype]; in ath_edma_rxfifo_flush() local
889 for (i = 0; i < re->m_fifolen; i++) { in ath_edma_rxfifo_flush()
890 if (re->m_fifo[i] != NULL) { in ath_edma_rxfifo_flush()
892 struct ath_buf *bf = re->m_fifo[i]; in ath_edma_rxfifo_flush()
897 ath_edma_rxbuf_free(sc, re->m_fifo[i]); in ath_edma_rxfifo_flush()
898 re->m_fifo[i] = NULL; in ath_edma_rxfifo_flush()
899 re->m_fifo_depth--; in ath_edma_rxfifo_flush()
903 if (re->m_rxpending != NULL) { in ath_edma_rxfifo_flush()
904 m_freem(re->m_rxpending); in ath_edma_rxfifo_flush()
905 re->m_rxpending = NULL; in ath_edma_rxfifo_flush()
907 re->m_fifo_head = re->m_fifo_tail = re->m_fifo_depth = 0; in ath_edma_rxfifo_flush()
918 struct ath_rx_edma *re = &sc->sc_rxedma[qtype]; in ath_edma_setup_rxfifo() local
922 if (! ath_hal_getrxfifodepth(sc->sc_ah, qtype, &re->m_fifolen)) { in ath_edma_setup_rxfifo()
934 re->m_fifolen); in ath_edma_setup_rxfifo()
937 re->m_fifo = malloc(sizeof(struct ath_buf *) * re->m_fifolen, in ath_edma_setup_rxfifo()
940 if (re->m_fifo == NULL) { in ath_edma_setup_rxfifo()
949 re->m_rxpending = NULL; in ath_edma_setup_rxfifo()
950 re->m_fifo_head = re->m_fifo_tail = re->m_fifo_depth = 0; in ath_edma_setup_rxfifo()
958 struct ath_rx_edma *re = &sc->sc_rxedma[qtype]; in ath_edma_rxfifo_free() local
964 free(re->m_fifo, M_ATHDEV); in ath_edma_rxfifo_free()