Lines Matching +full:dma +full:- +full:controller

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * MUSB OTG driver DMA controller abstraction
6 * Copyright (C) 2005-2006 by Texas Instruments
7 * Copyright (C) 2006-2007 Nokia Corporation
16 * DMA Controller Abstraction
18 * DMA Controllers are abstracted to allow use of a variety of different
19 * implementations of DMA, as allowed by the Inventra USB cores. On the
20 * host side, usbcore sets up the DMA mappings and flushes caches; on the
21 * peripheral side, the gadget controller driver does. Responsibilities
22 * of a DMA controller driver include:
24 * - Handling the details of moving multiple USB packets
26 * the correct RX side treatment of short packets and buffer-full
29 * - Knowing the correlation between dma channels and the
32 * - Maintaining a list of allocated/available channels.
34 * - Updating channel status on interrupts,
53 #define musb_dma_ux500(musb) (musb->ops->quirks & MUSB_DMA_UX500)
59 #define musb_dma_cppi41(musb) (musb->ops->quirks & MUSB_DMA_CPPI41)
65 #define tusb_dma_omap(musb) (musb->ops->quirks & MUSB_DMA_TUSB_OMAP)
71 #define musb_dma_inventra(musb) (musb->ops->quirks & MUSB_DMA_INVENTRA)
83 * DMA channel status ... updated by the dma controller driver whenever that
84 * status changes, and protected by the overall controller spinlock.
93 /* transaction(s) aborted due to ... dma or memory bus error */
102 * struct dma_channel - A DMA channel.
103 * @private_data: channel-private data
105 * transaction (typically representing many USB maximum-sized packets)
124 * dma_channel_status - return status of dma channel
134 return (is_dma_capable() && c) ? c->status : MUSB_DMA_STATUS_UNKNOWN; in dma_channel_status()
138 * struct dma_controller - A DMA Controller.
139 * @musb: the usb controller
140 * @start: call this to start a DMA controller;
142 * @stop: call this to stop a DMA controller
144 * @channel_alloc: call this to allocate a DMA channel
145 * @channel_release: call this to release a DMA channel
146 * @channel_abort: call this to abort a pending DMA transaction,
148 * @dma_callback: invoked on DMA completion, useful to run platform
151 * Controllers manage dma channels.
189 /* Platform specific DMA functions */