Lines Matching refs:dma_dev
323 struct dma_device *dma_dev = &pt->dma_dev; in pt_dmaengine_register() local
355 dma_dev->dev = pt->dev; in pt_dmaengine_register()
356 dma_dev->src_addr_widths = DMA_SLAVE_BUSWIDTH_64_BYTES; in pt_dmaengine_register()
357 dma_dev->dst_addr_widths = DMA_SLAVE_BUSWIDTH_64_BYTES; in pt_dmaengine_register()
358 dma_dev->directions = DMA_MEM_TO_MEM; in pt_dmaengine_register()
359 dma_dev->residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR; in pt_dmaengine_register()
360 dma_cap_set(DMA_MEMCPY, dma_dev->cap_mask); in pt_dmaengine_register()
361 dma_cap_set(DMA_INTERRUPT, dma_dev->cap_mask); in pt_dmaengine_register()
367 dma_cap_set(DMA_PRIVATE, dma_dev->cap_mask); in pt_dmaengine_register()
369 INIT_LIST_HEAD(&dma_dev->channels); in pt_dmaengine_register()
375 dma_dev->device_free_chan_resources = pt_free_chan_resources; in pt_dmaengine_register()
376 dma_dev->device_prep_dma_memcpy = pt_prep_dma_memcpy; in pt_dmaengine_register()
377 dma_dev->device_prep_dma_interrupt = pt_prep_dma_interrupt; in pt_dmaengine_register()
378 dma_dev->device_issue_pending = pt_issue_pending; in pt_dmaengine_register()
379 dma_dev->device_tx_status = pt_tx_status; in pt_dmaengine_register()
380 dma_dev->device_pause = pt_pause; in pt_dmaengine_register()
381 dma_dev->device_resume = pt_resume; in pt_dmaengine_register()
382 dma_dev->device_terminate_all = pt_terminate_all; in pt_dmaengine_register()
383 dma_dev->device_synchronize = pt_synchronize; in pt_dmaengine_register()
386 vchan_init(&chan->vc, dma_dev); in pt_dmaengine_register()
388 ret = dma_async_device_register(dma_dev); in pt_dmaengine_register()
405 struct dma_device *dma_dev = &pt->dma_dev; in pt_dmaengine_unregister() local
407 dma_async_device_unregister(dma_dev); in pt_dmaengine_unregister()