Home
last modified time | relevance | path

Searched refs:xt (Results 1 – 12 of 12) sorted by relevance

/drivers/media/platform/
Dm2m-deinterlace.c149 struct dma_interleaved_template *xt; member
256 ctx->xt->numf = s_height / 2; in deinterlace_issue_dma()
257 ctx->xt->sgl[0].size = s_width; in deinterlace_issue_dma()
258 ctx->xt->sgl[0].icg = s_width; in deinterlace_issue_dma()
259 ctx->xt->src_start = p_in; in deinterlace_issue_dma()
260 ctx->xt->dst_start = p_out; in deinterlace_issue_dma()
263 ctx->xt->numf = s_height / 2; in deinterlace_issue_dma()
264 ctx->xt->sgl[0].size = s_width; in deinterlace_issue_dma()
265 ctx->xt->sgl[0].icg = s_width; in deinterlace_issue_dma()
266 ctx->xt->src_start = p_in + s_size / 2; in deinterlace_issue_dma()
[all …]
/drivers/dma/
Ddma-axi-dmac.c426 struct dma_chan *c, struct dma_interleaved_template *xt, in axi_dmac_prep_interleaved() argument
433 if (xt->frame_size != 1) in axi_dmac_prep_interleaved()
436 if (xt->dir != chan->direction) in axi_dmac_prep_interleaved()
440 if (!xt->src_inc || !axi_dmac_check_addr(chan, xt->src_start)) in axi_dmac_prep_interleaved()
445 if (!xt->dst_inc || !axi_dmac_check_addr(chan, xt->dst_start)) in axi_dmac_prep_interleaved()
449 dst_icg = dmaengine_get_dst_icg(xt, &xt->sgl[0]); in axi_dmac_prep_interleaved()
450 src_icg = dmaengine_get_src_icg(xt, &xt->sgl[0]); in axi_dmac_prep_interleaved()
453 if (!axi_dmac_check_len(chan, xt->sgl[0].size) || in axi_dmac_prep_interleaved()
454 xt->numf == 0) in axi_dmac_prep_interleaved()
456 if (xt->sgl[0].size + dst_icg > chan->max_length || in axi_dmac_prep_interleaved()
[all …]
Dat_xdmac.c851 struct dma_interleaved_template *xt, in at_xdmac_interleaved_queue_desc() argument
889 if (xt->src_inc) { in at_xdmac_interleaved_queue_desc()
890 if (xt->src_sgl) in at_xdmac_interleaved_queue_desc()
896 if (xt->dst_inc) { in at_xdmac_interleaved_queue_desc()
897 if (xt->dst_sgl) in at_xdmac_interleaved_queue_desc()
917 desc->lld.mbr_sus = dmaengine_get_src_icg(xt, chunk); in at_xdmac_interleaved_queue_desc()
918 desc->lld.mbr_dus = dmaengine_get_dst_icg(xt, chunk); in at_xdmac_interleaved_queue_desc()
940 struct dma_interleaved_template *xt, in at_xdmac_prep_interleaved() argument
950 if (!xt || !xt->numf || (xt->dir != DMA_MEM_TO_MEM)) in at_xdmac_prep_interleaved()
957 if ((xt->numf > 1) && (xt->frame_size > 1)) in at_xdmac_prep_interleaved()
[all …]
Dimx-dma.c949 struct dma_chan *chan, struct dma_interleaved_template *xt, in imxdma_prep_dma_interleaved() argument
958 imxdmac->channel, (unsigned long long)xt->src_start, in imxdma_prep_dma_interleaved()
959 (unsigned long long) xt->dst_start, in imxdma_prep_dma_interleaved()
960 xt->src_sgl ? "true" : "false", xt->dst_sgl ? "true" : "false", in imxdma_prep_dma_interleaved()
961 xt->numf, xt->frame_size); in imxdma_prep_dma_interleaved()
967 if (xt->frame_size != 1 || xt->numf <= 0 || xt->dir != DMA_MEM_TO_MEM) in imxdma_prep_dma_interleaved()
973 desc->src = xt->src_start; in imxdma_prep_dma_interleaved()
974 desc->dest = xt->dst_start; in imxdma_prep_dma_interleaved()
975 desc->x = xt->sgl[0].size; in imxdma_prep_dma_interleaved()
976 desc->y = xt->numf; in imxdma_prep_dma_interleaved()
[all …]
Dat_hdmac.c707 struct dma_interleaved_template *xt, in atc_prep_dma_interleaved() argument
720 if (unlikely(!xt || xt->numf != 1 || !xt->frame_size)) in atc_prep_dma_interleaved()
723 first = xt->sgl; in atc_prep_dma_interleaved()
727 __func__, &xt->src_start, &xt->dst_start, xt->numf, in atc_prep_dma_interleaved()
728 xt->frame_size, flags); in atc_prep_dma_interleaved()
736 for (i = 0; i < xt->frame_size; i++) { in atc_prep_dma_interleaved()
737 struct data_chunk *chunk = xt->sgl + i; in atc_prep_dma_interleaved()
739 if ((chunk->size != xt->sgl->size) || in atc_prep_dma_interleaved()
740 (dmaengine_get_dst_icg(xt, chunk) != dmaengine_get_dst_icg(xt, first)) || in atc_prep_dma_interleaved()
741 (dmaengine_get_src_icg(xt, chunk) != dmaengine_get_src_icg(xt, first))) { in atc_prep_dma_interleaved()
[all …]
Domap-dma.c1201 struct dma_chan *chan, struct dma_interleaved_template *xt, in omap_dma_prep_dma_interleaved() argument
1211 if (is_slave_direction(xt->dir)) in omap_dma_prep_dma_interleaved()
1214 if (xt->frame_size != 1 || xt->numf == 0) in omap_dma_prep_dma_interleaved()
1221 data_type = __ffs((xt->src_start | xt->dst_start | xt->sgl[0].size)); in omap_dma_prep_dma_interleaved()
1227 d->dev_addr = xt->src_start; in omap_dma_prep_dma_interleaved()
1229 sg->en = xt->sgl[0].size / BIT(data_type); in omap_dma_prep_dma_interleaved()
1230 sg->fn = xt->numf; in omap_dma_prep_dma_interleaved()
1231 sg->addr = xt->dst_start; in omap_dma_prep_dma_interleaved()
1235 src_icg = dmaengine_get_src_icg(xt, &xt->sgl[0]); in omap_dma_prep_dma_interleaved()
1236 dst_icg = dmaengine_get_dst_icg(xt, &xt->sgl[0]); in omap_dma_prep_dma_interleaved()
[all …]
Dsirf-dma.c690 struct dma_chan *chan, struct dma_interleaved_template *xt, in sirfsoc_dma_prep_interleaved() argument
699 if ((xt->dir != DMA_MEM_TO_DEV) && (xt->dir != DMA_DEV_TO_MEM)) { in sirfsoc_dma_prep_interleaved()
727 if ((xt->frame_size == 1) && (xt->numf > 0)) { in sirfsoc_dma_prep_interleaved()
729 sdesc->xlen = xt->sgl[0].size / SIRFSOC_DMA_WORD_LEN; in sirfsoc_dma_prep_interleaved()
730 sdesc->width = (xt->sgl[0].size + xt->sgl[0].icg) / in sirfsoc_dma_prep_interleaved()
732 sdesc->ylen = xt->numf - 1; in sirfsoc_dma_prep_interleaved()
733 if (xt->dir == DMA_MEM_TO_DEV) { in sirfsoc_dma_prep_interleaved()
734 sdesc->addr = xt->src_start; in sirfsoc_dma_prep_interleaved()
737 sdesc->addr = xt->dst_start; in sirfsoc_dma_prep_interleaved()
/drivers/media/platform/omap/
Domap_vout_vrfb.c144 vout->vrfb_dma_tx.xt = kzalloc(xt_size, GFP_KERNEL); in omap_vout_setup_vrfb_bufs()
145 if (!vout->vrfb_dma_tx.xt) { in omap_vout_setup_vrfb_bufs()
190 kfree(vout->vrfb_dma_tx.xt); in omap_vout_release_vrfb()
240 struct dma_interleaved_template *xt = vout->vrfb_dma_tx.xt; in omap_vout_prepare_vrfb() local
260 xt->src_start = vout->buf_phy_addr[vb->i]; in omap_vout_prepare_vrfb()
261 xt->dst_start = vout->vrfb_context[vb->i].paddr[0]; in omap_vout_prepare_vrfb()
263 xt->numf = vout->pix.height; in omap_vout_prepare_vrfb()
264 xt->frame_size = 1; in omap_vout_prepare_vrfb()
265 xt->sgl[0].size = vout->pix.width * vout->bpp; in omap_vout_prepare_vrfb()
266 xt->sgl[0].icg = dst_icg; in omap_vout_prepare_vrfb()
[all …]
Domap_voutdef.h86 struct dma_interleaved_template *xt; member
/drivers/dma/xilinx/
Dxilinx_dma.c1578 struct dma_interleaved_template *xt, in xilinx_vdma_dma_prep_interleaved() argument
1586 if (!is_slave_direction(xt->dir)) in xilinx_vdma_dma_prep_interleaved()
1589 if (!xt->numf || !xt->sgl[0].size) in xilinx_vdma_dma_prep_interleaved()
1592 if (xt->frame_size != 1) in xilinx_vdma_dma_prep_interleaved()
1611 hw->vsize = xt->numf; in xilinx_vdma_dma_prep_interleaved()
1612 hw->hsize = xt->sgl[0].size; in xilinx_vdma_dma_prep_interleaved()
1613 hw->stride = (xt->sgl[0].icg + xt->sgl[0].size) << in xilinx_vdma_dma_prep_interleaved()
1618 if (xt->dir != DMA_MEM_TO_DEV) { in xilinx_vdma_dma_prep_interleaved()
1620 hw->buf_addr = lower_32_bits(xt->dst_start); in xilinx_vdma_dma_prep_interleaved()
1621 hw->buf_addr_msb = upper_32_bits(xt->dst_start); in xilinx_vdma_dma_prep_interleaved()
[all …]
/drivers/media/platform/xilinx/
Dxilinx-dma.c357 dma->xt.dir = DMA_DEV_TO_MEM; in xvip_dma_buffer_queue()
358 dma->xt.src_sgl = false; in xvip_dma_buffer_queue()
359 dma->xt.dst_sgl = true; in xvip_dma_buffer_queue()
360 dma->xt.dst_start = addr; in xvip_dma_buffer_queue()
363 dma->xt.dir = DMA_MEM_TO_DEV; in xvip_dma_buffer_queue()
364 dma->xt.src_sgl = true; in xvip_dma_buffer_queue()
365 dma->xt.dst_sgl = false; in xvip_dma_buffer_queue()
366 dma->xt.src_start = addr; in xvip_dma_buffer_queue()
369 dma->xt.frame_size = 1; in xvip_dma_buffer_queue()
372 dma->xt.numf = dma->format.height; in xvip_dma_buffer_queue()
[all …]
Dxilinx-dma.h97 struct dma_interleaved_template xt; member