Lines Matching refs:dma_dev
297 struct dma_device dma_dev; member
308 return container_of(chan->vchan.chan.device, struct stm32_dma3_ddata, dma_dev); in to_stm32_dma3_ddata()
556 struct dma_device dma_device = ddata->dma_dev; in stm32_dma3_chan_prep_hw()
1044 ret = pm_runtime_resume_and_get(ddata->dma_dev.dev); in stm32_dma3_alloc_chan_resources()
1085 pm_runtime_put_sync(ddata->dma_dev.dev); in stm32_dma3_alloc_chan_resources()
1111 pm_runtime_put_sync(ddata->dma_dev.dev); in stm32_dma3_free_chan_resources()
1504 ret = pm_runtime_resume_and_get(ddata->dma_dev.dev); in stm32_dma3_filter_fn()
1508 pm_runtime_put_sync(ddata->dma_dev.dev); in stm32_dma3_filter_fn()
1524 dma_cap_mask_t mask = ddata->dma_dev.cap_mask; in stm32_dma3_of_xlate()
1530 dev_err(ddata->dma_dev.dev, "Invalid args count\n"); in stm32_dma3_of_xlate()
1539 dev_err(ddata->dma_dev.dev, "Invalid request line\n"); in stm32_dma3_of_xlate()
1546 dev_err(ddata->dma_dev.dev, "No suitable channel found\n"); in stm32_dma3_of_xlate()
1570 of_property_read_u32(ddata->dma_dev.dev->of_node, "dma-channel-mask", &mask); in stm32_dma3_check_rif()
1590 dev_dbg(ddata->dma_dev.dev, "chan%d: %s mode, %s\n", i, in stm32_dma3_check_rif()
1598 dev_warn(ddata->dma_dev.dev, "chan%*pbl have invalid CID configuration\n", in stm32_dma3_check_rif()
1616 struct dma_device *dma_dev; in stm32_dma3_probe() local
1626 dma_dev = &ddata->dma_dev; in stm32_dma3_probe()
1646 INIT_LIST_HEAD(&dma_dev->channels); in stm32_dma3_probe()
1648 dma_cap_set(DMA_SLAVE, dma_dev->cap_mask); in stm32_dma3_probe()
1649 dma_cap_set(DMA_PRIVATE, dma_dev->cap_mask); in stm32_dma3_probe()
1650 dma_cap_set(DMA_CYCLIC, dma_dev->cap_mask); in stm32_dma3_probe()
1651 dma_cap_set(DMA_MEMCPY, dma_dev->cap_mask); in stm32_dma3_probe()
1652 dma_dev->dev = &pdev->dev; in stm32_dma3_probe()
1657 dma_dev->copy_align = DMAENGINE_ALIGN_8_BYTES; in stm32_dma3_probe()
1658 dma_dev->src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) | in stm32_dma3_probe()
1662 dma_dev->dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) | in stm32_dma3_probe()
1666 dma_dev->directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV) | BIT(DMA_MEM_TO_MEM); in stm32_dma3_probe()
1668 dma_dev->descriptor_reuse = true; in stm32_dma3_probe()
1669 dma_dev->max_sg_burst = STM32_DMA3_MAX_SEG_SIZE; in stm32_dma3_probe()
1670 dma_dev->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; in stm32_dma3_probe()
1671 dma_dev->device_alloc_chan_resources = stm32_dma3_alloc_chan_resources; in stm32_dma3_probe()
1672 dma_dev->device_free_chan_resources = stm32_dma3_free_chan_resources; in stm32_dma3_probe()
1673 dma_dev->device_prep_dma_memcpy = stm32_dma3_prep_dma_memcpy; in stm32_dma3_probe()
1674 dma_dev->device_prep_slave_sg = stm32_dma3_prep_slave_sg; in stm32_dma3_probe()
1675 dma_dev->device_prep_dma_cyclic = stm32_dma3_prep_dma_cyclic; in stm32_dma3_probe()
1676 dma_dev->device_caps = stm32_dma3_caps; in stm32_dma3_probe()
1677 dma_dev->device_config = stm32_dma3_config; in stm32_dma3_probe()
1678 dma_dev->device_pause = stm32_dma3_pause; in stm32_dma3_probe()
1679 dma_dev->device_resume = stm32_dma3_resume; in stm32_dma3_probe()
1680 dma_dev->device_terminate_all = stm32_dma3_terminate_all; in stm32_dma3_probe()
1681 dma_dev->device_synchronize = stm32_dma3_synchronize; in stm32_dma3_probe()
1682 dma_dev->device_tx_status = stm32_dma3_tx_status; in stm32_dma3_probe()
1683 dma_dev->device_issue_pending = stm32_dma3_issue_pending; in stm32_dma3_probe()
1737 ret = dmaenginem_async_device_register(dma_dev); in stm32_dma3_probe()
1748 snprintf(name, sizeof(name), "dma%dchan%d", ddata->dma_dev.dev_id, chan->id); in stm32_dma3_probe()
1751 vchan_init(&chan->vchan, dma_dev); in stm32_dma3_probe()
1753 ret = dma_async_device_channel_register(&ddata->dma_dev, &chan->vchan.chan, name); in stm32_dma3_probe()