Lines Matching refs:dma_dev

229 	struct dma_device dma_dev;  member
325 dev_dbg(nbpf->dma_dev.dev, "%s(0x%p + 0x%x) = 0x%x\n", in nbpf_read()
334 dev_dbg(nbpf->dma_dev.dev, "%s(0x%p + 0x%x) = 0x%x\n", in nbpf_write()
400 dev_dbg(chan->nbpf->dma_dev.dev, "%s(): next 0x%x, cur 0x%x\n", __func__, in nbpf_start()
856 dev_dbg(chan->nbpf->dma_dev.dev, "%s(): force-free desc %p cookie %d\n", in nbpf_chan_idle()
1097 dchan = dma_get_any_slave_channel(&nbpf->dma_dev); in nbpf_of_xlate()
1228 dev_warn(nbpf->dma_dev.dev, "DMA error IRQ %u\n", irq); in nbpf_err_irq()
1246 struct dma_device *dma_dev = &nbpf->dma_dev; in nbpf_chan_probe() local
1254 chan->dma_chan.device = dma_dev; in nbpf_chan_probe()
1258 dev_dbg(dma_dev->dev, "%s(): channel %d: -> %p\n", __func__, n, chan->base); in nbpf_chan_probe()
1263 ret = devm_request_irq(dma_dev->dev, chan->irq, in nbpf_chan_probe()
1271 &dma_dev->channels); in nbpf_chan_probe()
1295 struct dma_device *dma_dev; in nbpf_probe() local
1316 dma_dev = &nbpf->dma_dev; in nbpf_probe()
1317 dma_dev->dev = dev; in nbpf_probe()
1392 INIT_LIST_HEAD(&dma_dev->channels); in nbpf_probe()
1401 dma_cap_set(DMA_MEMCPY, dma_dev->cap_mask); in nbpf_probe()
1402 dma_cap_set(DMA_SLAVE, dma_dev->cap_mask); in nbpf_probe()
1403 dma_cap_set(DMA_PRIVATE, dma_dev->cap_mask); in nbpf_probe()
1406 dma_dev->device_alloc_chan_resources in nbpf_probe()
1408 dma_dev->device_free_chan_resources = nbpf_free_chan_resources; in nbpf_probe()
1409 dma_dev->device_prep_dma_memcpy = nbpf_prep_memcpy; in nbpf_probe()
1410 dma_dev->device_tx_status = nbpf_tx_status; in nbpf_probe()
1411 dma_dev->device_issue_pending = nbpf_issue_pending; in nbpf_probe()
1422 dma_dev->device_prep_slave_sg = nbpf_prep_slave_sg; in nbpf_probe()
1423 dma_dev->device_config = nbpf_config; in nbpf_probe()
1424 dma_dev->device_pause = nbpf_pause; in nbpf_probe()
1425 dma_dev->device_terminate_all = nbpf_terminate_all; in nbpf_probe()
1427 dma_dev->src_addr_widths = NBPF_DMA_BUSWIDTHS; in nbpf_probe()
1428 dma_dev->dst_addr_widths = NBPF_DMA_BUSWIDTHS; in nbpf_probe()
1429 dma_dev->directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); in nbpf_probe()
1439 ret = dma_async_device_register(dma_dev); in nbpf_probe()
1450 dma_async_device_unregister(dma_dev); in nbpf_probe()
1473 dma_async_device_unregister(&nbpf->dma_dev); in nbpf_remove()