Lines Matching refs:pt
43 struct pt_device *pt = desc->pt; in pt_do_cleanup() local
45 kmem_cache_free(pt->dma_desc_cache, desc); in pt_do_cleanup()
51 struct pt_device *pt; in pt_dma_start_desc() local
58 pt = pt_cmd->pt; in pt_dma_start_desc()
59 cmd_q = &pt->cmd_q; in pt_dma_start_desc()
62 pt->tdata.cmd = pt_cmd; in pt_dma_start_desc()
162 desc = kmem_cache_zalloc(chan->pt->dma_desc_cache, GFP_NOWAIT); in pt_alloc_dma_desc()
168 desc->pt = chan->pt; in pt_alloc_dma_desc()
191 pt_cmd->pt = chan->pt; in pt_create_desc()
256 pt_stop_queue(&chan->pt->cmd_q); in pt_pause()
269 pt_start_queue(&chan->pt->cmd_q); in pt_resume()
296 int pt_dmaengine_register(struct pt_device *pt) in pt_dmaengine_register() argument
299 struct dma_device *dma_dev = &pt->dma_dev; in pt_dmaengine_register()
304 pt->pt_dma_chan = devm_kzalloc(pt->dev, sizeof(*pt->pt_dma_chan), in pt_dmaengine_register()
306 if (!pt->pt_dma_chan) in pt_dmaengine_register()
309 cmd_cache_name = devm_kasprintf(pt->dev, GFP_KERNEL, in pt_dmaengine_register()
311 dev_name(pt->dev)); in pt_dmaengine_register()
315 desc_cache_name = devm_kasprintf(pt->dev, GFP_KERNEL, in pt_dmaengine_register()
317 dev_name(pt->dev)); in pt_dmaengine_register()
323 pt->dma_desc_cache = kmem_cache_create(desc_cache_name, in pt_dmaengine_register()
326 if (!pt->dma_desc_cache) { in pt_dmaengine_register()
331 dma_dev->dev = pt->dev; in pt_dmaengine_register()
347 chan = pt->pt_dma_chan; in pt_dmaengine_register()
348 chan->pt = pt; in pt_dmaengine_register()
364 dma_set_mask_and_coherent(pt->dev, DMA_BIT_MASK(64)); in pt_dmaengine_register()
373 kmem_cache_destroy(pt->dma_desc_cache); in pt_dmaengine_register()
376 kmem_cache_destroy(pt->dma_cmd_cache); in pt_dmaengine_register()
381 void pt_dmaengine_unregister(struct pt_device *pt) in pt_dmaengine_unregister() argument
383 struct dma_device *dma_dev = &pt->dma_dev; in pt_dmaengine_unregister()
387 kmem_cache_destroy(pt->dma_desc_cache); in pt_dmaengine_unregister()
388 kmem_cache_destroy(pt->dma_cmd_cache); in pt_dmaengine_unregister()