Lines Matching refs:dma_device

143 	struct dma_device		dma_device;  member
368 dev_dbg(mxs_dma->dma_device.dev, in mxs_dma_int_handler()
402 mxs_chan->ccw = dma_alloc_coherent(mxs_dma->dma_device.dev, in mxs_dma_alloc_chan_resources()
432 dma_free_coherent(mxs_dma->dma_device.dev, CCW_BLOCK_SIZE, in mxs_dma_alloc_chan_resources()
447 dma_free_coherent(mxs_dma->dma_device.dev, CCW_BLOCK_SIZE, in mxs_dma_free_chan_resources()
492 dev_err(mxs_dma->dma_device.dev, in mxs_dma_prep_slave_sg()
537 dev_err(mxs_dma->dma_device.dev, "maximum bytes for sg entry exceeded: %d > %d\n", in mxs_dma_prep_slave_sg()
592 dev_err(mxs_dma->dma_device.dev, in mxs_dma_prep_dma_cyclic()
599 dev_err(mxs_dma->dma_device.dev, in mxs_dma_prep_dma_cyclic()
729 dma_cap_mask_t mask = mxs_dma->dma_device.cap_mask; in mxs_dma_xlate()
775 dma_cap_set(DMA_SLAVE, mxs_dma->dma_device.cap_mask); in mxs_dma_probe()
776 dma_cap_set(DMA_CYCLIC, mxs_dma->dma_device.cap_mask); in mxs_dma_probe()
778 INIT_LIST_HEAD(&mxs_dma->dma_device.channels); in mxs_dma_probe()
785 mxs_chan->chan.device = &mxs_dma->dma_device; in mxs_dma_probe()
793 &mxs_dma->dma_device.channels); in mxs_dma_probe()
801 mxs_dma->dma_device.dev = &pdev->dev; in mxs_dma_probe()
804 dma_set_max_seg_size(mxs_dma->dma_device.dev, MAX_XFER_BYTES); in mxs_dma_probe()
806 mxs_dma->dma_device.device_alloc_chan_resources = mxs_dma_alloc_chan_resources; in mxs_dma_probe()
807 mxs_dma->dma_device.device_free_chan_resources = mxs_dma_free_chan_resources; in mxs_dma_probe()
808 mxs_dma->dma_device.device_tx_status = mxs_dma_tx_status; in mxs_dma_probe()
809 mxs_dma->dma_device.device_prep_slave_sg = mxs_dma_prep_slave_sg; in mxs_dma_probe()
810 mxs_dma->dma_device.device_prep_dma_cyclic = mxs_dma_prep_dma_cyclic; in mxs_dma_probe()
811 mxs_dma->dma_device.device_pause = mxs_dma_pause_chan; in mxs_dma_probe()
812 mxs_dma->dma_device.device_resume = mxs_dma_resume_chan; in mxs_dma_probe()
813 mxs_dma->dma_device.device_terminate_all = mxs_dma_terminate_all; in mxs_dma_probe()
814 mxs_dma->dma_device.src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); in mxs_dma_probe()
815 mxs_dma->dma_device.dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); in mxs_dma_probe()
816 mxs_dma->dma_device.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); in mxs_dma_probe()
817 mxs_dma->dma_device.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; in mxs_dma_probe()
818 mxs_dma->dma_device.device_issue_pending = mxs_dma_enable_chan; in mxs_dma_probe()
820 ret = dmaenginem_async_device_register(&mxs_dma->dma_device); in mxs_dma_probe()
822 dev_err(mxs_dma->dma_device.dev, "unable to register\n"); in mxs_dma_probe()
828 dev_err(mxs_dma->dma_device.dev, in mxs_dma_probe()
832 dev_info(mxs_dma->dma_device.dev, "initialized\n"); in mxs_dma_probe()