Lines Matching refs:dma_device

142 	struct dma_device		dma_device;  member
367 dev_dbg(mxs_dma->dma_device.dev, in mxs_dma_int_handler()
401 mxs_chan->ccw = dma_alloc_coherent(mxs_dma->dma_device.dev, in mxs_dma_alloc_chan_resources()
431 dma_free_coherent(mxs_dma->dma_device.dev, CCW_BLOCK_SIZE, in mxs_dma_alloc_chan_resources()
446 dma_free_coherent(mxs_dma->dma_device.dev, CCW_BLOCK_SIZE, in mxs_dma_free_chan_resources()
491 dev_err(mxs_dma->dma_device.dev, in mxs_dma_prep_slave_sg()
536 dev_err(mxs_dma->dma_device.dev, "maximum bytes for sg entry exceeded: %d > %d\n", in mxs_dma_prep_slave_sg()
591 dev_err(mxs_dma->dma_device.dev, in mxs_dma_prep_dma_cyclic()
598 dev_err(mxs_dma->dma_device.dev, in mxs_dma_prep_dma_cyclic()
728 dma_cap_mask_t mask = mxs_dma->dma_device.cap_mask; in mxs_dma_xlate()
772 dma_cap_set(DMA_SLAVE, mxs_dma->dma_device.cap_mask); in mxs_dma_probe()
773 dma_cap_set(DMA_CYCLIC, mxs_dma->dma_device.cap_mask); in mxs_dma_probe()
775 INIT_LIST_HEAD(&mxs_dma->dma_device.channels); in mxs_dma_probe()
782 mxs_chan->chan.device = &mxs_dma->dma_device; in mxs_dma_probe()
790 &mxs_dma->dma_device.channels); in mxs_dma_probe()
798 mxs_dma->dma_device.dev = &pdev->dev; in mxs_dma_probe()
801 dma_set_max_seg_size(mxs_dma->dma_device.dev, MAX_XFER_BYTES); in mxs_dma_probe()
803 mxs_dma->dma_device.device_alloc_chan_resources = mxs_dma_alloc_chan_resources; in mxs_dma_probe()
804 mxs_dma->dma_device.device_free_chan_resources = mxs_dma_free_chan_resources; in mxs_dma_probe()
805 mxs_dma->dma_device.device_tx_status = mxs_dma_tx_status; in mxs_dma_probe()
806 mxs_dma->dma_device.device_prep_slave_sg = mxs_dma_prep_slave_sg; in mxs_dma_probe()
807 mxs_dma->dma_device.device_prep_dma_cyclic = mxs_dma_prep_dma_cyclic; in mxs_dma_probe()
808 mxs_dma->dma_device.device_pause = mxs_dma_pause_chan; in mxs_dma_probe()
809 mxs_dma->dma_device.device_resume = mxs_dma_resume_chan; in mxs_dma_probe()
810 mxs_dma->dma_device.device_terminate_all = mxs_dma_terminate_all; in mxs_dma_probe()
811 mxs_dma->dma_device.src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); in mxs_dma_probe()
812 mxs_dma->dma_device.dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); in mxs_dma_probe()
813 mxs_dma->dma_device.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); in mxs_dma_probe()
814 mxs_dma->dma_device.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; in mxs_dma_probe()
815 mxs_dma->dma_device.device_issue_pending = mxs_dma_enable_chan; in mxs_dma_probe()
817 ret = dmaenginem_async_device_register(&mxs_dma->dma_device); in mxs_dma_probe()
819 dev_err(mxs_dma->dma_device.dev, "unable to register\n"); in mxs_dma_probe()
825 dev_err(mxs_dma->dma_device.dev, in mxs_dma_probe()
829 dev_info(mxs_dma->dma_device.dev, "initialized\n"); in mxs_dma_probe()