Lines Matching refs:desc
68 struct rz_dmac_desc *desc; member
315 struct rz_dmac_desc *d = channel->desc; in rz_dmac_prepare_desc_for_memcpy()
337 struct rz_dmac_desc *d = channel->desc; in rz_dmac_prepare_descs_for_slave_sg()
384 struct rz_dmac_desc *d = chan->desc; in rz_dmac_xfer_desc()
421 struct rz_dmac_desc *desc; in rz_dmac_alloc_chan_resources() local
423 desc = kzalloc(sizeof(*desc), GFP_KERNEL); in rz_dmac_alloc_chan_resources()
424 if (!desc) in rz_dmac_alloc_chan_resources()
427 list_add_tail(&desc->node, &channel->ld_free); in rz_dmac_alloc_chan_resources()
442 struct rz_dmac_desc *desc, *_desc; in rz_dmac_free_chan_resources() local
462 list_for_each_entry_safe(desc, _desc, &channel->ld_free, node) { in rz_dmac_free_chan_resources()
463 kfree(desc); in rz_dmac_free_chan_resources()
477 struct rz_dmac_desc *desc; in rz_dmac_prep_dma_memcpy() local
485 desc = list_first_entry(&channel->ld_free, struct rz_dmac_desc, node); in rz_dmac_prep_dma_memcpy()
487 desc->type = RZ_DMAC_DESC_MEMCPY; in rz_dmac_prep_dma_memcpy()
488 desc->src = src; in rz_dmac_prep_dma_memcpy()
489 desc->dest = dest; in rz_dmac_prep_dma_memcpy()
490 desc->len = len; in rz_dmac_prep_dma_memcpy()
491 desc->direction = DMA_MEM_TO_MEM; in rz_dmac_prep_dma_memcpy()
494 return vchan_tx_prep(&channel->vc, &desc->vd, flags); in rz_dmac_prep_dma_memcpy()
504 struct rz_dmac_desc *desc; in rz_dmac_prep_slave_sg() local
512 desc = list_first_entry(&channel->ld_free, struct rz_dmac_desc, node); in rz_dmac_prep_slave_sg()
518 desc->type = RZ_DMAC_DESC_SLAVE_SG; in rz_dmac_prep_slave_sg()
519 desc->sg = sgl; in rz_dmac_prep_slave_sg()
520 desc->sgcount = sg_len; in rz_dmac_prep_slave_sg()
521 desc->len = dma_length; in rz_dmac_prep_slave_sg()
522 desc->direction = direction; in rz_dmac_prep_slave_sg()
525 desc->src = channel->src_per_address; in rz_dmac_prep_slave_sg()
527 desc->dest = channel->dst_per_address; in rz_dmac_prep_slave_sg()
530 return vchan_tx_prep(&channel->vc, &desc->vd, flags); in rz_dmac_prep_slave_sg()
554 struct rz_dmac_desc *desc; in rz_dmac_issue_pending() local
560 desc = list_first_entry(&channel->ld_queue, in rz_dmac_issue_pending()
562 channel->desc = desc; in rz_dmac_issue_pending()
690 struct rz_dmac_desc *desc = NULL; in rz_dmac_irq_handler_thread() local
700 desc = list_first_entry(&channel->ld_active, struct rz_dmac_desc, node); in rz_dmac_irq_handler_thread()
701 vchan_cookie_complete(&desc->vd); in rz_dmac_irq_handler_thread()
704 desc = list_first_entry(&channel->ld_queue, struct rz_dmac_desc, in rz_dmac_irq_handler_thread()
706 channel->desc = desc; in rz_dmac_irq_handler_thread()