Lines Matching refs:dma_dev
1033 struct dma_device *dma_dev; in mv_xor_channel_add() local
1046 dma_dev = &mv_chan->dmadev; in mv_xor_channel_add()
1054 mv_chan->dummy_src_addr = dma_map_single(dma_dev->dev, in mv_xor_channel_add()
1056 mv_chan->dummy_dst_addr = dma_map_single(dma_dev->dev, in mv_xor_channel_add()
1070 dma_dev->cap_mask = cap_mask; in mv_xor_channel_add()
1072 INIT_LIST_HEAD(&dma_dev->channels); in mv_xor_channel_add()
1075 dma_dev->device_alloc_chan_resources = mv_xor_alloc_chan_resources; in mv_xor_channel_add()
1076 dma_dev->device_free_chan_resources = mv_xor_free_chan_resources; in mv_xor_channel_add()
1077 dma_dev->device_tx_status = mv_xor_status; in mv_xor_channel_add()
1078 dma_dev->device_issue_pending = mv_xor_issue_pending; in mv_xor_channel_add()
1079 dma_dev->dev = &pdev->dev; in mv_xor_channel_add()
1082 if (dma_has_cap(DMA_INTERRUPT, dma_dev->cap_mask)) in mv_xor_channel_add()
1083 dma_dev->device_prep_dma_interrupt = mv_xor_prep_dma_interrupt; in mv_xor_channel_add()
1084 if (dma_has_cap(DMA_MEMCPY, dma_dev->cap_mask)) in mv_xor_channel_add()
1085 dma_dev->device_prep_dma_memcpy = mv_xor_prep_dma_memcpy; in mv_xor_channel_add()
1086 if (dma_has_cap(DMA_XOR, dma_dev->cap_mask)) { in mv_xor_channel_add()
1087 dma_dev->max_xor = 8; in mv_xor_channel_add()
1088 dma_dev->device_prep_dma_xor = mv_xor_prep_dma_xor; in mv_xor_channel_add()
1116 mv_chan->dmachan.device = dma_dev; in mv_xor_channel_add()
1119 list_add_tail(&mv_chan->dmachan.device_node, &dma_dev->channels); in mv_xor_channel_add()
1121 if (dma_has_cap(DMA_MEMCPY, dma_dev->cap_mask)) { in mv_xor_channel_add()
1128 if (dma_has_cap(DMA_XOR, dma_dev->cap_mask)) { in mv_xor_channel_add()
1137 dma_has_cap(DMA_XOR, dma_dev->cap_mask) ? "xor " : "", in mv_xor_channel_add()
1138 dma_has_cap(DMA_MEMCPY, dma_dev->cap_mask) ? "cpy " : "", in mv_xor_channel_add()
1139 dma_has_cap(DMA_INTERRUPT, dma_dev->cap_mask) ? "intr " : ""); in mv_xor_channel_add()
1141 dma_async_device_register(dma_dev); in mv_xor_channel_add()