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()
167 desc = kmem_cache_zalloc(chan->pt->dma_desc_cache, GFP_NOWAIT); in pt_alloc_dma_desc()
173 desc->pt = chan->pt; in pt_alloc_dma_desc()
174 desc->pt->cmd_q.int_en = !!(flags & DMA_PREP_INTERRUPT); in pt_alloc_dma_desc()
197 pt_cmd->pt = chan->pt; in pt_create_desc()
265 struct pt_device *pt = to_pt_chan(c)->pt; in pt_tx_status() local
266 struct pt_cmd_queue *cmd_q = &pt->cmd_q; in pt_tx_status()
268 pt_check_status_trans(pt, cmd_q); in pt_tx_status()
278 pt_stop_queue(&chan->pt->cmd_q); in pt_pause()
291 pt_start_queue(&chan->pt->cmd_q); in pt_resume()
306 struct pt_cmd_queue *cmd_q = &chan->pt->cmd_q; in pt_terminate_all()
320 int pt_dmaengine_register(struct pt_device *pt) in pt_dmaengine_register() argument
323 struct dma_device *dma_dev = &pt->dma_dev; in pt_dmaengine_register()
328 pt->pt_dma_chan = devm_kzalloc(pt->dev, sizeof(*pt->pt_dma_chan), in pt_dmaengine_register()
330 if (!pt->pt_dma_chan) in pt_dmaengine_register()
333 cmd_cache_name = devm_kasprintf(pt->dev, GFP_KERNEL, in pt_dmaengine_register()
335 dev_name(pt->dev)); in pt_dmaengine_register()
339 desc_cache_name = devm_kasprintf(pt->dev, GFP_KERNEL, in pt_dmaengine_register()
341 dev_name(pt->dev)); in pt_dmaengine_register()
347 pt->dma_desc_cache = kmem_cache_create(desc_cache_name, in pt_dmaengine_register()
350 if (!pt->dma_desc_cache) { in pt_dmaengine_register()
355 dma_dev->dev = pt->dev; in pt_dmaengine_register()
371 chan = pt->pt_dma_chan; in pt_dmaengine_register()
372 chan->pt = pt; in pt_dmaengine_register()
395 kmem_cache_destroy(pt->dma_desc_cache); in pt_dmaengine_register()
398 kmem_cache_destroy(pt->dma_cmd_cache); in pt_dmaengine_register()
403 void pt_dmaengine_unregister(struct pt_device *pt) in pt_dmaengine_unregister() argument
405 struct dma_device *dma_dev = &pt->dma_dev; in pt_dmaengine_unregister()
409 kmem_cache_destroy(pt->dma_desc_cache); in pt_dmaengine_unregister()
410 kmem_cache_destroy(pt->dma_cmd_cache); in pt_dmaengine_unregister()