Lines Matching defs:re

190 	struct ath_rx_edma *re = &sc->sc_rxedma[qtype];
196 i = re->m_fifo_head;
197 for (j = 0; j < re->m_fifo_depth; j++) {
198 bf = re->m_fifo[i];
206 INCR(i, re->m_fifolen);
210 if (i != re->m_fifo_tail) {
214 re->m_fifo_tail);
335 struct ath_rx_edma *re = &sc->sc_rxedma[qtype];
352 bf = re->m_fifo[re->m_fifo_head];
400 re->m_fifo[re->m_fifo_head] = NULL;
404 INCR(re->m_fifo_head, re->m_fifolen);
405 re->m_fifo_depth--;
407 } while (re->m_fifo_depth > 0);
411 ath_edma_rxfifo_alloc(sc, qtype, re->m_fifolen);
433 * XXX TODO: what should occur here? Just re-poke and
434 * re-enable the RX FIFO?
727 struct ath_rx_edma *re = &sc->sc_rxedma[qtype];
736 for (i = 0; i < nbufs && re->m_fifo_depth < re->m_fifolen; i++) {
738 if (re->m_fifo[re->m_fifo_tail] != NULL) {
743 re->m_fifo_tail,
744 re->m_fifo[re->m_fifo_tail]);
747 ath_edma_rxbuf_free(sc, re->m_fifo[re->m_fifo_tail]);
748 re->m_fifo_depth--;
750 re->m_fifo[re->m_fifo_tail] = NULL;
765 re->m_fifo[re->m_fifo_tail] = bf;
776 re->m_fifo_depth++;
777 INCR(re->m_fifo_tail, re->m_fifolen);
794 struct ath_rx_edma *re = &sc->sc_rxedma[qtype];
799 for (i = 0; i < re->m_fifolen; i++) {
800 if (re->m_fifo[i] != NULL) {
802 struct ath_buf *bf = re->m_fifo[i];
807 ath_edma_rxbuf_free(sc, re->m_fifo[i]);
808 re->m_fifo[i] = NULL;
809 re->m_fifo_depth--;
813 if (re->m_rxpending != NULL) {
814 m_freem(re->m_rxpending);
815 re->m_rxpending = NULL;
817 re->m_fifo_head = re->m_fifo_tail = re->m_fifo_depth = 0;
828 struct ath_rx_edma *re = &sc->sc_rxedma[qtype];
832 if (! ath_hal_getrxfifodepth(sc->sc_ah, qtype, &re->m_fifolen)) {
841 re->m_fifolen);
844 re->m_fifo = malloc(sizeof(struct ath_buf *) * re->m_fifolen,
847 if (re->m_fifo == NULL) {
856 re->m_rxpending = NULL;
857 re->m_fifo_head = re->m_fifo_tail = re->m_fifo_depth = 0;
865 struct ath_rx_edma *re = &sc->sc_rxedma[qtype];
871 free(re->m_fifo, M_ATHDEV);