Lines Matching refs:DMA

65  * "transmit DMA complete" interrupt.   using the "telnet" test I got data
70 * just fine with byte DMA.
106 DBG_DMA = 0x0040, /* debug DMA probing */
220 * While a transmit mbuf is waiting to get transmit DMA resources we
347 * en_b2sz: convert a DMA burst code to its byte size
369 * en_sz2b: convert a burst size (bytes) to DMA burst code
420 * DMA maps
429 * to allocate the DMA map yet have no means to signal this error. Therefor
449 device_printf(sc->dev, "cannot create DMA map %d\n", err);
498 * Argument structure to load a transmit DMA map
511 * TX DMA map loader helper. This function is the callback when the map
512 * is loaded. It should fill the DMA segment descriptors into the hardware.
545 * Local macro to add an entry to the transmit DMA area. If there
565 * Local macro to generate a DMA entry to DMA cnt bytes. Updates
594 /* update DMA address */
616 * do we need to do a DMA op to align to the maximum
670 /* update DMA address */
694 * en_txdma: start transmit DMA on the given channel, if possible
718 * get an mbuf waiting for DMA
1696 * TX DMA interrupt
1698 * check for TX DMA complete, if detected then this means
1798 * Handle a receive DMA completion
1810 m = NULL; /* assume "JK" trash DMA */
1870 * check for RX DMA complete, and pass the data "upstairs"
1997 panic("too many DMA segments");
2008 * Local macro to add an entry to the receive DMA area. If there
2028 * Local macro to generate a DMA entry to DMA cnt bytes. Updates
2046 /* update DMA address */
2071 * do we need to do a DMA op to align to the maximum
2116 /* update DMA address */
2528 * Probing the DMA brokeness of the card
2532 * Physical address load helper function for DMA probe
2546 * see how the card handles DMA by running a few DMA tests. we need
2547 * to figure out the largest number of bytes we can DMA in one burst
2553 * we more than 4 bytes fails (with an RX DMA timeout) for physical
2561 * en_dmaprobe_doit: do actual testing for the DMA test.
2594 /* enable DMA (only) */
2601 * try it now . . . DMA it out, then DMA it back in and compare
2607 DBG(sc, DMA, ("test sp=%p/%#lx, dp=%p/%#lx",
2610 DBG(sc, DMA, ("test lcv=%d", lcv));
2619 /* build lcv-byte-DMA x NBURSTS */
2635 DBG(sc, DMA, ("unexpected timeout in tx "
2636 "DMA test\n alignment=0x%lx, burst size=%d"
2647 DBG(sc, DMA, ("unexpected status in tx DMA test: %#x\n",
2651 /* re-enable DMA (only) */
2656 /* build lcv-byte-DMA x NBURSTS */
2672 DBG(sc, DMA, ("unexpected timeout in rx "
2673 "DMA test, rdrx=%#x\n", reg));
2679 DBG(sc, DMA, ("unexpected status in rx DMA "
2684 DBG(sc, DMA, ("DMA test failed! lcv=%d, sp=%p, "
2691 return (retval); /* studly 64 byte DMA present! oh baby!! */
2695 * Find the best DMA parameters
2714 * Allocate some DMA-able memory.
2722 panic("%s: cannot create test DMA tag %d", __func__, err);
2726 panic("%s: cannot allocate test DMA memory %d", __func__, err);
2731 panic("%s: cannot load test DMA map %d", __func__, err);
2733 DBG(sc, DMA, ("phys=%#lx addr=%p", (u_long)phys, addr));
2763 * to DMA.
2769 DELAY(10000); /* may still do DMA */
2772 * Free the DMA stuff
2829 * determine the largest DMA burst supported
2875 "passed 64 byte DMA test\n");
2877 device_printf(sc->dev, "FAILED DMA TEST: "
2882 device_printf(sc->dev, "maximum DMA burst length = %d "
3067 * destroy the DMA maps using the tag)