Lines Matching defs:common
375 static inline struct bam_chan *to_bam_chan(struct dma_chan *common)
377 return container_of(common, struct bam_chan, vc.chan);
383 struct dma_device common;
1133 struct bam_device, common);
1212 vchan_init(&bchan->vc, &bdev->common);
1306 INIT_LIST_HEAD(&bdev->common.channels);
1317 bdev->common.dev = bdev->dev;
1318 ret = dma_set_max_seg_size(bdev->common.dev, BAM_FIFO_SIZE);
1327 dma_cap_zero(bdev->common.cap_mask);
1328 dma_cap_set(DMA_SLAVE, bdev->common.cap_mask);
1331 bdev->common.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
1332 bdev->common.residue_granularity = DMA_RESIDUE_GRANULARITY_SEGMENT;
1333 bdev->common.src_addr_widths = DMA_SLAVE_BUSWIDTH_4_BYTES;
1334 bdev->common.dst_addr_widths = DMA_SLAVE_BUSWIDTH_4_BYTES;
1335 bdev->common.device_alloc_chan_resources = bam_alloc_chan;
1336 bdev->common.device_free_chan_resources = bam_free_chan;
1337 bdev->common.device_prep_slave_sg = bam_prep_slave_sg;
1338 bdev->common.device_config = bam_slave_config;
1339 bdev->common.device_pause = bam_pause;
1340 bdev->common.device_resume = bam_resume;
1341 bdev->common.device_terminate_all = bam_dma_terminate_all;
1342 bdev->common.device_issue_pending = bam_issue_pending;
1343 bdev->common.device_tx_status = bam_tx_status;
1344 bdev->common.dev = bdev->dev;
1346 ret = dma_async_device_register(&bdev->common);
1353 &bdev->common);
1372 dma_async_device_unregister(&bdev->common);
1392 dma_async_device_unregister(&bdev->common);