Lines Matching defs:engine

190  * @engine: base DMA engine object
200 struct dma_device engine;
212 #define to_rcar_dmac(d) container_of(d, struct rcar_dmac, engine)
1051 * DMA engine operations
1792 * Initialize the DMA engine channel and add it to the DMA engine
1795 chan->device = &dmac->engine;
1798 list_add_tail(&chan->device_node, &dmac->engine.channels);
1855 struct dma_device *engine;
1935 /* Initialize engine */
1936 engine = &dmac->engine;
1938 dma_cap_set(DMA_MEMCPY, engine->cap_mask);
1939 dma_cap_set(DMA_SLAVE, engine->cap_mask);
1941 engine->dev = &pdev->dev;
1942 engine->copy_align = ilog2(RCAR_DMAC_MEMCPY_XFER_SIZE);
1944 engine->src_addr_widths = widths;
1945 engine->dst_addr_widths = widths;
1946 engine->directions = BIT(DMA_MEM_TO_DEV) | BIT(DMA_DEV_TO_MEM);
1947 engine->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST;
1949 engine->device_alloc_chan_resources = rcar_dmac_alloc_chan_resources;
1950 engine->device_free_chan_resources = rcar_dmac_free_chan_resources;
1951 engine->device_prep_dma_memcpy = rcar_dmac_prep_dma_memcpy;
1952 engine->device_prep_slave_sg = rcar_dmac_prep_slave_sg;
1953 engine->device_prep_dma_cyclic = rcar_dmac_prep_dma_cyclic;
1954 engine->device_config = rcar_dmac_device_config;
1955 engine->device_pause = rcar_dmac_chan_pause;
1956 engine->device_terminate_all = rcar_dmac_chan_terminate_all;
1957 engine->device_tx_status = rcar_dmac_tx_status;
1958 engine->device_issue_pending = rcar_dmac_issue_pending;
1959 engine->device_synchronize = rcar_dmac_device_synchronize;
1961 INIT_LIST_HEAD(&engine->channels);
1976 * Register the DMA engine device.
1980 ret = dma_async_device_register(engine);
1998 dma_async_device_unregister(&dmac->engine);