Lines Matching defs:re

209 	struct ath_rx_edma *re = &sc->sc_rxedma[qtype];
217 i = re->m_fifo_head;
218 for (j = 0; j < re->m_fifo_depth; j++) {
219 bf = re->m_fifo[i];
227 INCR(i, re->m_fifolen);
231 if (i != re->m_fifo_tail) {
235 re->m_fifo_tail);
303 * We're now doing RX DMA!
414 struct ath_rx_edma *re = &sc->sc_rxedma[qtype];
448 bf = re->m_fifo[re->m_fifo_head];
496 re->m_fifo[re->m_fifo_head] = NULL;
500 INCR(re->m_fifo_head, re->m_fifolen);
501 re->m_fifo_depth--;
503 } while (re->m_fifo_depth > 0);
507 ath_edma_rxfifo_alloc(sc, qtype, re->m_fifolen);
819 struct ath_rx_edma *re = &sc->sc_rxedma[qtype];
828 for (i = 0; i < nbufs && re->m_fifo_depth < re->m_fifolen; i++) {
830 if (re->m_fifo[re->m_fifo_tail] != NULL) {
835 re->m_fifo_tail,
836 re->m_fifo[re->m_fifo_tail]);
839 ath_edma_rxbuf_free(sc, re->m_fifo[re->m_fifo_tail]);
840 re->m_fifo_depth--;
842 re->m_fifo[re->m_fifo_tail] = NULL;
857 re->m_fifo[re->m_fifo_tail] = bf;
868 re->m_fifo_depth++;
869 INCR(re->m_fifo_tail, re->m_fifolen);
886 struct ath_rx_edma *re = &sc->sc_rxedma[qtype];
891 for (i = 0; i < re->m_fifolen; i++) {
892 if (re->m_fifo[i] != NULL) {
894 struct ath_buf *bf = re->m_fifo[i];
899 ath_edma_rxbuf_free(sc, re->m_fifo[i]);
900 re->m_fifo[i] = NULL;
901 re->m_fifo_depth--;
905 if (re->m_rxpending != NULL) {
906 m_freem(re->m_rxpending);
907 re->m_rxpending = NULL;
909 re->m_fifo_head = re->m_fifo_tail = re->m_fifo_depth = 0;
920 struct ath_rx_edma *re = &sc->sc_rxedma[qtype];
924 if (! ath_hal_getrxfifodepth(sc->sc_ah, qtype, &re->m_fifolen)) {
936 re->m_fifolen);
939 re->m_fifo = malloc(sizeof(struct ath_buf *) * re->m_fifolen,
942 if (re->m_fifo == NULL) {
951 re->m_rxpending = NULL;
952 re->m_fifo_head = re->m_fifo_tail = re->m_fifo_depth = 0;
960 struct ath_rx_edma *re = &sc->sc_rxedma[qtype];
966 free(re->m_fifo, M_ATHDEV);