Lines Matching defs:ping
78 struct at91_usart_rx *ping;
463 atsc->ping = &atsc->ping_pong[0];
473 * Setup the PDC to receive data. We use the ping-pong buffers
479 WR4(&sc->sc_bas, PDC_RPR, atsc->ping->pa);
657 * We have a buffer overflow. Consume data from ping
663 bus_dmamap_sync(atsc->rx_tag, atsc->ping->map,
666 at91_rx_put(sc, atsc->ping->buffer[i]);
667 bus_dmamap_sync(atsc->rx_tag, atsc->ping->map,
669 WR4(&sc->sc_bas, PDC_RPR, atsc->ping->pa);
684 * Consume data from ping of ping pong buffer, but leave
685 * current pong in place, as it has become the new ping.
686 * We need to copy data and setup the old ping as the
689 bus_dmamap_sync(atsc->rx_tag, atsc->ping->map,
692 at91_rx_put(sc, atsc->ping->buffer[i]);
693 p = atsc->ping;
694 atsc->ping = atsc->pong;
711 * the ping buffer is almost full when a timeout is
712 * signaled, and then dataflow resumes and the ping
719 * disabled -- just long enough to take the ping buffer
722 * the hardware has already done the ping-pong swap.
735 bus_dmamap_sync(atsc->rx_tag, atsc->ping->map,
738 at91_rx_put(sc, atsc->ping->buffer[i]);
739 bus_dmamap_sync(atsc->rx_tag, atsc->ping->map,
741 p = atsc->ping;
742 atsc->ping = atsc->pong;