/drivers/dma/ |
D | dma-jz4780.c | 119 struct virt_dma_desc vdesc; member 170 struct virt_dma_desc *vdesc) in to_jz4780_dma_desc() argument 172 return container_of(vdesc, struct jz4780_dma_desc, vdesc); in to_jz4780_dma_desc() 254 static void jz4780_dma_desc_free(struct virt_dma_desc *vdesc) in jz4780_dma_desc_free() argument 256 struct jz4780_dma_desc *desc = to_jz4780_dma_desc(vdesc); in jz4780_dma_desc_free() 257 struct jz4780_dma_chan *jzchan = to_jz4780_dma_chan(vdesc->tx.chan); in jz4780_dma_desc_free() 374 jz4780_dma_desc_free(&jzchan->desc->vdesc); in jz4780_dma_prep_slave_sg() 395 return vchan_tx_prep(&jzchan->vchan, &desc->vdesc, flags); in jz4780_dma_prep_slave_sg() 421 jz4780_dma_desc_free(&jzchan->desc->vdesc); in jz4780_dma_prep_dma_cyclic() 447 return vchan_tx_prep(&jzchan->vchan, &desc->vdesc, flags); in jz4780_dma_prep_dma_cyclic() [all …]
|
D | dma-axi-dmac.c | 109 struct virt_dma_desc vdesc; member 161 static struct axi_dmac_desc *to_axi_dmac_desc(struct virt_dma_desc *vdesc) in to_axi_dmac_desc() argument 163 return container_of(vdesc, struct axi_dmac_desc, vdesc); in to_axi_dmac_desc() 206 struct virt_dma_desc *vdesc; in axi_dmac_start_transfer() local 219 vdesc = vchan_next_desc(&chan->vchan); in axi_dmac_start_transfer() 220 if (!vdesc) in axi_dmac_start_transfer() 222 list_move_tail(&vdesc->node, &chan->active_descs); in axi_dmac_start_transfer() 223 desc = to_axi_dmac_desc(vdesc); in axi_dmac_start_transfer() 262 if (chan->hw_cyclic && desc->cyclic && !desc->vdesc.tx.callback && in axi_dmac_start_transfer() 278 struct axi_dmac_desc, vdesc.node); in axi_dmac_active_desc() [all …]
|
D | idma64.c | 115 struct virt_dma_desc *vdesc; in idma64_start_transfer() local 118 vdesc = vchan_next_desc(&idma64c->vchan); in idma64_start_transfer() 119 if (!vdesc) { in idma64_start_transfer() 124 list_del(&vdesc->node); in idma64_start_transfer() 125 idma64c->desc = to_idma64_desc(vdesc); in idma64_start_transfer() 151 vchan_cookie_complete(&desc->vdesc); in idma64_chan_irq() 222 static void idma64_vdesc_free(struct virt_dma_desc *vdesc) in idma64_vdesc_free() argument 224 struct idma64_chan *idma64c = to_idma64_chan(vdesc->tx.chan); in idma64_vdesc_free() 226 idma64_desc_free(idma64c, to_idma64_desc(vdesc)); in idma64_vdesc_free() 326 return vchan_tx_prep(&idma64c->vchan, &desc->vdesc, flags); in idma64_prep_slave_sg() [all …]
|
D | fsl-edma-common.c | 147 void fsl_edma_free_desc(struct virt_dma_desc *vdesc) in fsl_edma_free_desc() argument 152 fsl_desc = to_fsl_edma_desc(vdesc); in fsl_edma_free_desc() 271 struct virt_dma_desc *vdesc, bool in_progress) in fsl_edma_desc_residue() argument 317 struct virt_dma_desc *vdesc; in fsl_edma_tx_status() local 329 vdesc = vchan_find_desc(&fsl_chan->vchan, cookie); in fsl_edma_tx_status() 330 if (fsl_chan->edesc && cookie == fsl_chan->edesc->vdesc.tx.cookie) in fsl_edma_tx_status() 332 fsl_edma_desc_residue(fsl_chan, vdesc, true); in fsl_edma_tx_status() 333 else if (vdesc) in fsl_edma_tx_status() 335 fsl_edma_desc_residue(fsl_chan, vdesc, false); in fsl_edma_tx_status() 514 return vchan_tx_prep(&fsl_chan->vchan, &fsl_desc->vdesc, flags); in fsl_edma_prep_dma_cyclic() [all …]
|
D | st_fdma.c | 29 return container_of(vd, struct st_fdma_desc, vdesc); in to_st_fdma_desc() 76 struct virt_dma_desc *vdesc; in st_fdma_xfer_desc() local 79 vdesc = vchan_next_desc(&fchan->vchan); in st_fdma_xfer_desc() 80 if (!vdesc) in st_fdma_xfer_desc() 83 fchan->fdesc = to_st_fdma_desc(vdesc); in st_fdma_xfer_desc() 144 list_del(&fchan->fdesc->vdesc.node); in st_fdma_irq_handler() 145 vchan_cookie_complete(&fchan->fdesc->vdesc); in st_fdma_irq_handler() 149 vchan_cyclic_callback(&fchan->fdesc->vdesc); in st_fdma_irq_handler() 225 static void st_fdma_free_desc(struct virt_dma_desc *vdesc) in st_fdma_free_desc() argument 230 fdesc = to_st_fdma_desc(vdesc); in st_fdma_free_desc() [all …]
|
D | stm32-dma.c | 192 struct virt_dma_desc vdesc; member 232 static struct stm32_dma_desc *to_stm32_dma_desc(struct virt_dma_desc *vdesc) in to_stm32_dma_desc() argument 234 return container_of(vdesc, struct stm32_dma_desc, vdesc); in to_stm32_dma_desc() 499 vchan_terminate_vdesc(&chan->desc->vdesc); in stm32_dma_terminate_all() 542 struct virt_dma_desc *vdesc; in stm32_dma_start_transfer() local 553 vdesc = vchan_next_desc(&chan->vchan); in stm32_dma_start_transfer() 554 if (!vdesc) in stm32_dma_start_transfer() 557 list_del(&vdesc->node); in stm32_dma_start_transfer() 559 chan->desc = to_stm32_dma_desc(vdesc); in stm32_dma_start_transfer() 631 vchan_cyclic_callback(&chan->desc->vdesc); in stm32_dma_handle_chan_done() [all …]
|
D | idma64.h | 114 struct virt_dma_desc vdesc; member 122 static inline struct idma64_desc *to_idma64_desc(struct virt_dma_desc *vdesc) in to_idma64_desc() argument 124 return container_of(vdesc, struct idma64_desc, vdesc); in to_idma64_desc()
|
D | stm32-mdma.c | 250 struct virt_dma_desc vdesc; member 294 static struct stm32_mdma_desc *to_stm32_mdma_desc(struct virt_dma_desc *vdesc) in to_stm32_mdma_desc() argument 296 return container_of(vdesc, struct stm32_mdma_desc, vdesc); in to_stm32_mdma_desc() 366 static void stm32_mdma_desc_free(struct virt_dma_desc *vdesc) in stm32_mdma_desc_free() argument 368 struct stm32_mdma_desc *desc = to_stm32_mdma_desc(vdesc); in stm32_mdma_desc_free() 369 struct stm32_mdma_chan *chan = to_stm32_mdma_chan(vdesc->tx.chan); in stm32_mdma_desc_free() 808 return vchan_tx_prep(&chan->vchan, &desc->vdesc, flags); in stm32_mdma_prep_slave_sg() 899 return vchan_tx_prep(&chan->vchan, &desc->vdesc, flags); in stm32_mdma_prep_dma_cyclic() 1085 return vchan_tx_prep(&chan->vchan, &desc->vdesc, flags); in stm32_mdma_prep_dma_memcpy() 1117 struct virt_dma_desc *vdesc; in stm32_mdma_start_transfer() local [all …]
|
D | fsl-qdma.c | 177 struct virt_dma_desc vdesc; member 204 struct virt_dma_desc vdesc; member 301 return container_of(vd, struct fsl_qdma_comp, vdesc); in to_fsl_qdma_comp() 711 fsl_comp->vdesc.tx_result.result = in fsl_qdma_queue_transfer_complete() 715 fsl_comp->vdesc.tx_result.result = in fsl_qdma_queue_transfer_complete() 721 fsl_comp->vdesc.tx_result.result = in fsl_qdma_queue_transfer_complete() 730 vchan_cookie_complete(&fsl_comp->vdesc); in fsl_qdma_queue_transfer_complete() 985 return vchan_tx_prep(&fsl_chan->vchan, &fsl_comp->vdesc, flags); in fsl_qdma_prep_memcpy() 991 struct virt_dma_desc *vdesc; in fsl_qdma_enqueue_desc() local 999 vdesc = vchan_next_desc(&fsl_chan->vchan); in fsl_qdma_enqueue_desc() [all …]
|
D | fsl-edma-common.h | 132 struct virt_dma_desc vdesc; member 221 return container_of(vd, struct fsl_edma_desc, vdesc); in to_fsl_edma_desc() 227 void fsl_edma_free_desc(struct virt_dma_desc *vdesc);
|
D | mcf-edma.c | 46 list_del(&mcf_chan->edesc->vdesc.node); in mcf_edma_tx_handler() 47 vchan_cookie_complete(&mcf_chan->edesc->vdesc); in mcf_edma_tx_handler() 52 vchan_cyclic_callback(&mcf_chan->edesc->vdesc); in mcf_edma_tx_handler()
|
D | fsl-edma.c | 56 list_del(&fsl_chan->edesc->vdesc.node); in fsl_edma_tx_handler() 57 vchan_cookie_complete(&fsl_chan->edesc->vdesc); in fsl_edma_tx_handler() 62 vchan_cyclic_callback(&fsl_chan->edesc->vdesc); in fsl_edma_tx_handler()
|
/drivers/dma/hsu/ |
D | hsu.c | 110 struct virt_dma_desc *vdesc; in hsu_dma_start_transfer() local 113 vdesc = vchan_next_desc(&hsuc->vchan); in hsu_dma_start_transfer() 114 if (!vdesc) { in hsu_dma_start_transfer() 119 list_del(&vdesc->node); in hsu_dma_start_transfer() 120 hsuc->desc = to_hsu_dma_desc(vdesc); in hsu_dma_start_transfer() 224 vchan_cookie_complete(&desc->vdesc); in hsu_dma_do_irq() 253 static void hsu_dma_desc_free(struct virt_dma_desc *vdesc) in hsu_dma_desc_free() argument 255 struct hsu_dma_desc *desc = to_hsu_dma_desc(vdesc); in hsu_dma_desc_free() 287 return vchan_tx_prep(&hsuc->vchan, &desc->vdesc, flags); in hsu_dma_prep_slave_sg() 322 struct virt_dma_desc *vdesc; in hsu_dma_tx_status() local [all …]
|
D | hsu.h | 68 struct virt_dma_desc vdesc; member 77 static inline struct hsu_dma_desc *to_hsu_dma_desc(struct virt_dma_desc *vdesc) in to_hsu_dma_desc() argument 79 return container_of(vdesc, struct hsu_dma_desc, vdesc); in to_hsu_dma_desc()
|
/drivers/staging/ralink-gdma/ |
D | ralink-gdma.c | 96 struct virt_dma_desc vdesc; member 149 static struct gdma_dma_desc *to_gdma_dma_desc(struct virt_dma_desc *vdesc) in to_gdma_dma_desc() argument 151 return container_of(vdesc, struct gdma_dma_desc, vdesc); in to_gdma_dma_desc() 414 struct virt_dma_desc *vdesc; in gdma_next_desc() local 416 vdesc = vchan_next_desc(&chan->vchan); in gdma_next_desc() 417 if (!vdesc) { in gdma_next_desc() 421 chan->desc = to_gdma_dma_desc(vdesc); in gdma_next_desc() 439 vchan_cyclic_callback(&desc->vdesc); in gdma_dma_chan_irq() 446 list_del(&desc->vdesc.node); in gdma_dma_chan_irq() 447 vchan_cookie_complete(&desc->vdesc); in gdma_dma_chan_irq() [all …]
|
/drivers/staging/mt7621-dma/ |
D | hsdma-mt7621.c | 138 struct virt_dma_desc vdesc; member 178 struct virt_dma_desc *vdesc) in to_mtk_hsdma_desc() argument 180 return container_of(vdesc, struct mtk_hsdma_desc, vdesc); in to_mtk_hsdma_desc() 387 struct virt_dma_desc *vdesc; in gdma_next_desc() local 389 vdesc = vchan_next_desc(&chan->vchan); in gdma_next_desc() 390 if (!vdesc) { in gdma_next_desc() 394 chan->desc = to_mtk_hsdma_desc(vdesc); in gdma_next_desc() 411 list_del(&desc->vdesc.node); in mtk_hsdma_chan_done() 412 vchan_cookie_complete(&desc->vdesc); in mtk_hsdma_chan_done() 480 return vchan_tx_prep(&chan->vchan, &desc->vdesc, flags); in mtk_hsdma_prep_dma_memcpy() [all …]
|
/drivers/dma/xilinx/ |
D | xilinx_dpdma.c | 198 struct virt_dma_desc vdesc; member 205 container_of(_desc, struct xilinx_dpdma_tx_desc, vdesc) 653 static void xilinx_dpdma_chan_free_tx_desc(struct virt_dma_desc *vdesc) in xilinx_dpdma_chan_free_tx_desc() argument 658 if (!vdesc) in xilinx_dpdma_chan_free_tx_desc() 661 desc = to_dpdma_tx_desc(vdesc); in xilinx_dpdma_chan_free_tx_desc() 705 xilinx_dpdma_chan_free_tx_desc(&tx_desc->vdesc); in xilinx_dpdma_chan_prep_interleaved_dma() 829 struct virt_dma_desc *vdesc; in xilinx_dpdma_chan_queue_transfer() local 845 vdesc = vchan_next_desc(&chan->vchan); in xilinx_dpdma_chan_queue_transfer() 846 if (!vdesc) in xilinx_dpdma_chan_queue_transfer() 849 desc = to_dpdma_tx_desc(vdesc); in xilinx_dpdma_chan_queue_transfer() [all …]
|
/drivers/dma/sf-pdma/ |
D | sf-pdma.c | 49 return container_of(vd, struct sf_pdma_desc, vdesc); in to_sf_pdma_desc() 100 desc->async_tx = vchan_tx_prep(&chan->vchan, &desc->vdesc, flags); in sf_pdma_prep_dma_memcpy() 241 struct virt_dma_desc *vdesc; in sf_pdma_get_first_pending_desc() local 246 vdesc = list_first_entry(&vchan->desc_issued, struct virt_dma_desc, node); in sf_pdma_get_first_pending_desc() 248 return container_of(vdesc, struct sf_pdma_desc, vdesc); in sf_pdma_get_first_pending_desc() 287 static void sf_pdma_free_desc(struct virt_dma_desc *vdesc) in sf_pdma_free_desc() argument 291 desc = to_sf_pdma_desc(vdesc); in sf_pdma_free_desc() 309 list_del(&chan->desc->vdesc.node); in sf_pdma_donebh_tasklet() 310 vchan_cookie_complete(&chan->desc->vdesc); in sf_pdma_donebh_tasklet()
|
D | sf-pdma.h | 83 struct virt_dma_desc vdesc; member
|
/drivers/sh/intc/ |
D | virq.c | 122 struct irq_desc *vdesc = irq_to_desc(entry->irq); in intc_virq_handler() local 124 if (vdesc) { in intc_virq_handler() 125 handle = (unsigned long)irq_desc_get_handler_data(vdesc); in intc_virq_handler() 128 generic_handle_irq_desc(vdesc); in intc_virq_handler()
|
/drivers/dma/fsl-dpaa2-qdma/ |
D | dpaa2-qdma.c | 26 return container_of(vd, struct dpaa2_qdma_comp, vdesc); in to_fsl_qdma_comp() 269 return vchan_tx_prep(&dpaa2_chan->vchan, &dpaa2_comp->vdesc, flags); in dpaa2_qdma_prep_memcpy() 276 struct virt_dma_desc *vdesc; in dpaa2_qdma_issue_pending() local 284 vdesc = vchan_next_desc(&dpaa2_chan->vchan); in dpaa2_qdma_issue_pending() 285 if (!vdesc) in dpaa2_qdma_issue_pending() 287 dpaa2_comp = to_fsl_qdma_comp(vdesc); in dpaa2_qdma_issue_pending() 291 list_del(&vdesc->node); in dpaa2_qdma_issue_pending() 443 dpaa2_comp->vdesc); in dpaa2_qdma_fqdan_cb() 621 static void dpaa2_qdma_free_desc(struct virt_dma_desc *vdesc) in dpaa2_qdma_free_desc() argument 627 dpaa2_comp = to_fsl_qdma_comp(vdesc); in dpaa2_qdma_free_desc()
|
D | dpaa2-qdma.h | 72 struct virt_dma_desc vdesc; member 95 struct virt_dma_desc vdesc; member
|
/drivers/dma/ti/ |
D | edma.c | 179 struct virt_dma_desc vdesc; member 766 return container_of(tx, struct edma_desc, vdesc.tx); in to_edma_desc() 769 static void edma_desc_free(struct virt_dma_desc *vdesc) in edma_desc_free() argument 771 kfree(container_of(vdesc, struct edma_desc, vdesc)); in edma_desc_free() 778 struct virt_dma_desc *vdesc; in edma_execute() local 785 vdesc = vchan_next_desc(&echan->vchan); in edma_execute() 786 if (!vdesc) in edma_execute() 788 list_del(&vdesc->node); in edma_execute() 789 echan->edesc = to_edma_desc(&vdesc->tx); in edma_execute() 887 vchan_terminate_vdesc(&echan->edesc->vdesc); in edma_terminate_all() [all …]
|
/drivers/dma/lgm/ |
D | lgm-dma.c | 270 struct virt_dma_desc vdesc; member 300 static inline struct dw2_desc_sw *to_lgm_dma_desc(struct virt_dma_desc *vdesc) in to_lgm_dma_desc() argument 302 return container_of(vdesc, struct dw2_desc_sw, vdesc); in to_lgm_dma_desc() 688 tx = &ds->vdesc.tx; in ldma_chan_desc_cfg() 965 static void dma_free_desc_resource(struct virt_dma_desc *vdesc) in dma_free_desc_resource() argument 967 struct dw2_desc_sw *ds = to_lgm_dma_desc(vdesc); in dma_free_desc_resource() 1023 struct virt_dma_desc *vdesc; in ldma_issue_pending() local 1026 vdesc = vchan_next_desc(&c->vchan); in ldma_issue_pending() 1027 if (!vdesc) { in ldma_issue_pending() 1032 list_del(&vdesc->node); in ldma_issue_pending() [all …]
|
/drivers/dma/dw-axi-dmac/ |
D | dw-axi-dmac-platform.c | 259 static void vchan_desc_put(struct virt_dma_desc *vdesc) in vchan_desc_put() argument 261 axi_desc_put(vd_to_axi_desc(vdesc)); in vchan_desc_put() 269 struct virt_dma_desc *vdesc; in dma_chan_tx_status() local 284 vdesc = vchan_find_desc(&chan->vc, cookie); in dma_chan_tx_status() 285 if (vdesc) { in dma_chan_tx_status() 286 length = vd_to_axi_desc(vdesc)->length; in dma_chan_tx_status() 287 completed_blocks = vd_to_axi_desc(vdesc)->completed_blocks; in dma_chan_tx_status() 288 len = vd_to_axi_desc(vdesc)->hw_desc[0].len; in dma_chan_tx_status()
|