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
348 * en_b2sz: convert a DMA burst code to its byte size
371 * en_sz2b: convert a burst size (bytes) to DMA burst code
422 * DMA maps
431 * to allocate the DMA map yet have no means to signal this error. Therefor
451 device_printf(sc->dev, "cannot create DMA map %d\n", err);
500 * Argument structure to load a transmit DMA map
513 * TX DMA map loader helper. This function is the callback when the map
514 * is loaded. It should fill the DMA segment descriptors into the hardware.
547 * Local macro to add an entry to the transmit DMA area. If there
567 * Local macro to generate a DMA entry to DMA cnt bytes. Updates
596 /* update DMA address */
618 * do we need to do a DMA op to align to the maximum
672 /* update DMA address */
696 * en_txdma: start transmit DMA on the given channel, if possible
720 * get an mbuf waiting for DMA
1698 * TX DMA interrupt
1700 * check for TX DMA complete, if detected then this means
1800 * Handle a receive DMA completion
1812 m = NULL; /* assume "JK" trash DMA */
1872 * check for RX DMA complete, and pass the data "upstairs"
1999 panic("too many DMA segments");
2010 * Local macro to add an entry to the receive DMA area. If there
2030 * Local macro to generate a DMA entry to DMA cnt bytes. Updates
2048 /* update DMA address */
2073 * do we need to do a DMA op to align to the maximum
2118 /* update DMA address */
2530 * Probing the DMA brokeness of the card
2534 * Physical address load helper function for DMA probe
2548 * see how the card handles DMA by running a few DMA tests. we need
2549 * to figure out the largest number of bytes we can DMA in one burst
2555 * we more than 4 bytes fails (with an RX DMA timeout) for physical
2563 * en_dmaprobe_doit: do actual testing for the DMA test.
2596 /* enable DMA (only) */
2603 * try it now . . . DMA it out, then DMA it back in and compare
2609 DBG(sc, DMA, ("test sp=%p/%#lx, dp=%p/%#lx",
2612 DBG(sc, DMA, ("test lcv=%d", lcv));
2621 /* build lcv-byte-DMA x NBURSTS */
2637 DBG(sc, DMA, ("unexpected timeout in tx "
2638 "DMA test\n alignment=0x%lx, burst size=%d"
2649 DBG(sc, DMA, ("unexpected status in tx DMA test: %#x\n",
2653 /* re-enable DMA (only) */
2658 /* build lcv-byte-DMA x NBURSTS */
2674 DBG(sc, DMA, ("unexpected timeout in rx "
2675 "DMA test, rdrx=%#x\n", reg));
2681 DBG(sc, DMA, ("unexpected status in rx DMA "
2686 DBG(sc, DMA, ("DMA test failed! lcv=%d, sp=%p, "
2693 return (retval); /* studly 64 byte DMA present! oh baby!! */
2697 * Find the best DMA parameters
2716 * Allocate some DMA-able memory.
2724 panic("%s: cannot create test DMA tag %d", __func__, err);
2728 panic("%s: cannot allocate test DMA memory %d", __func__, err);
2733 panic("%s: cannot load test DMA map %d", __func__, err);
2735 DBG(sc, DMA, ("phys=%#lx addr=%p", (u_long)phys, addr));
2765 * to DMA.
2771 DELAY(10000); /* may still do DMA */
2774 * Free the DMA stuff
2831 * determine the largest DMA burst supported
2877 "passed 64 byte DMA test\n");
2879 device_printf(sc->dev, "FAILED DMA TEST: "
2884 device_printf(sc->dev, "maximum DMA burst length = %d "
3069 * destroy the DMA maps using the tag)