Home
last modified time | relevance | path

Searched refs:alloc_ctx (Results 1 – 103 of 103) sorted by relevance

/linux-4.4.14/drivers/media/v4l2-core/
Dvideobuf2-dma-sg.c102 static void *vb2_dma_sg_alloc(void *alloc_ctx, unsigned long size, in vb2_dma_sg_alloc() argument
105 struct vb2_dma_sg_conf *conf = alloc_ctx; in vb2_dma_sg_alloc()
114 if (WARN_ON(alloc_ctx == NULL)) in vb2_dma_sg_alloc()
229 static void *vb2_dma_sg_get_userptr(void *alloc_ctx, unsigned long vaddr, in vb2_dma_sg_get_userptr() argument
233 struct vb2_dma_sg_conf *conf = alloc_ctx; in vb2_dma_sg_get_userptr()
619 static void *vb2_dma_sg_attach_dmabuf(void *alloc_ctx, struct dma_buf *dbuf, in vb2_dma_sg_attach_dmabuf() argument
622 struct vb2_dma_sg_conf *conf = alloc_ctx; in vb2_dma_sg_attach_dmabuf()
689 void vb2_dma_sg_cleanup_ctx(void *alloc_ctx) in vb2_dma_sg_cleanup_ctx() argument
691 if (!IS_ERR_OR_NULL(alloc_ctx)) in vb2_dma_sg_cleanup_ctx()
692 kfree(alloc_ctx); in vb2_dma_sg_cleanup_ctx()
Dvideobuf2-dma-contig.c139 static void *vb2_dc_alloc(void *alloc_ctx, unsigned long size, in vb2_dc_alloc() argument
142 struct vb2_dc_conf *conf = alloc_ctx; in vb2_dc_alloc()
473 static void *vb2_dc_get_userptr(void *alloc_ctx, unsigned long vaddr, in vb2_dc_get_userptr() argument
476 struct vb2_dc_conf *conf = alloc_ctx; in vb2_dc_get_userptr()
671 static void *vb2_dc_attach_dmabuf(void *alloc_ctx, struct dma_buf *dbuf, in vb2_dc_attach_dmabuf() argument
674 struct vb2_dc_conf *conf = alloc_ctx; in vb2_dc_attach_dmabuf()
738 void vb2_dma_contig_cleanup_ctx(void *alloc_ctx) in vb2_dma_contig_cleanup_ctx() argument
740 if (!IS_ERR_OR_NULL(alloc_ctx)) in vb2_dma_contig_cleanup_ctx()
741 kfree(alloc_ctx); in vb2_dma_contig_cleanup_ctx()
Dvideobuf2-core.c58 mem_priv = call_ptr_memop(vb, alloc, q->alloc_ctx[plane], in __vb2_buf_mem_alloc()
617 memset(q->alloc_ctx, 0, sizeof(q->alloc_ctx)); in vb2_core_reqbufs()
625 q->plane_sizes, q->alloc_ctx); in vb2_core_reqbufs()
651 &num_planes, q->plane_sizes, q->alloc_ctx); in vb2_core_reqbufs()
716 memset(q->alloc_ctx, 0, sizeof(q->alloc_ctx)); in vb2_core_create_bufs()
728 &num_planes, q->plane_sizes, q->alloc_ctx); in vb2_core_create_bufs()
751 &num_planes, q->plane_sizes, q->alloc_ctx); in vb2_core_create_bufs()
992 mem_priv = call_ptr_memop(vb, get_userptr, q->alloc_ctx[plane], in __qbuf_userptr()
1114 q->alloc_ctx[plane], dbuf, planes[plane].length, in __qbuf_dmabuf()
Dvideobuf2-vmalloc.c36 static void *vb2_vmalloc_alloc(void *alloc_ctx, unsigned long size, in vb2_vmalloc_alloc() argument
72 static void *vb2_vmalloc_get_userptr(void *alloc_ctx, unsigned long vaddr, in vb2_vmalloc_get_userptr() argument
406 static void *vb2_vmalloc_attach_dmabuf(void *alloc_ctx, struct dma_buf *dbuf, in vb2_vmalloc_attach_dmabuf() argument
/linux-4.4.14/include/media/
Dvideobuf2-core.h96 void *(*alloc)(void *alloc_ctx, unsigned long size,
102 void *(*get_userptr)(void *alloc_ctx, unsigned long vaddr,
110 void *(*attach_dmabuf)(void *alloc_ctx, struct dma_buf *dbuf,
473 void *alloc_ctx[VB2_MAX_PLANES]; member
Dvideobuf2-dma-sg.h25 void vb2_dma_sg_cleanup_ctx(void *alloc_ctx);
Dvideobuf2-dma-contig.h28 void vb2_dma_contig_cleanup_ctx(void *alloc_ctx);
/linux-4.4.14/drivers/media/pci/tw68/
Dtw68-core.c308 dev->alloc_ctx = vb2_dma_sg_init_ctx(&pci_dev->dev); in tw68_initdev()
309 if (IS_ERR(dev->alloc_ctx)) { in tw68_initdev()
310 err = PTR_ERR(dev->alloc_ctx); in tw68_initdev()
346 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in tw68_initdev()
370 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in tw68_finidev()
Dtw68.h168 void *alloc_ctx; member
Dtw68-video.c388 alloc_ctxs[0] = dev->alloc_ctx; in tw68_queue_setup()
/linux-4.4.14/Documentation/video4linux/
Dv4l2-pci-skeleton.c76 struct vb2_alloc_ctx *alloc_ctx; member
191 alloc_ctxs[0] = skel->alloc_ctx; in queue_setup()
857 skel->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in skeleton_probe()
858 if (IS_ERR(skel->alloc_ctx)) { in skeleton_probe()
860 ret = PTR_ERR(skel->alloc_ctx); in skeleton_probe()
896 vb2_dma_contig_cleanup_ctx(skel->alloc_ctx); in skeleton_probe()
912 vb2_dma_contig_cleanup_ctx(skel->alloc_ctx); in skeleton_remove()
/linux-4.4.14/drivers/net/wireless/iwlwifi/
Diwl-phy-db.h77 gfp_t alloc_ctx);
Diwl-phy-db.c215 gfp_t alloc_ctx) in iwl_phy_db_set_section() argument
236 entry->data = kmemdup(phy_db_notif->data, size, alloc_ctx); in iwl_phy_db_set_section()
/linux-4.4.14/drivers/media/platform/xilinx/
Dxilinx-dma.c326 alloc_ctxs[0] = dma->alloc_ctx; in xvip_dma_queue_setup()
704 dma->alloc_ctx = vb2_dma_contig_init_ctx(dma->xdev->dev); in xvip_dma_init()
705 if (IS_ERR(dma->alloc_ctx)) { in xvip_dma_init()
706 ret = PTR_ERR(dma->alloc_ctx); in xvip_dma_init()
764 if (!IS_ERR_OR_NULL(dma->alloc_ctx)) in xvip_dma_cleanup()
765 vb2_dma_contig_cleanup_ctx(dma->alloc_ctx); in xvip_dma_cleanup()
Dxilinx-dma.h91 void *alloc_ctx; member
/linux-4.4.14/drivers/media/pci/dt3155/
Ddt3155.c149 alloc_ctxs[0] = pd->alloc_ctx; in dt3155_queue_setup()
552 pd->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in dt3155_probe()
553 if (IS_ERR(pd->alloc_ctx)) { in dt3155_probe()
555 err = PTR_ERR(pd->alloc_ctx); in dt3155_probe()
593 vb2_dma_contig_cleanup_ctx(pd->alloc_ctx); in dt3155_probe()
612 vb2_dma_contig_cleanup_ctx(pd->alloc_ctx); in dt3155_remove()
Ddt3155.h184 struct vb2_alloc_ctx *alloc_ctx; member
/linux-4.4.14/drivers/media/pci/solo6x10/
Dsolo6x10-v4l2.c323 alloc_ctxs[0] = solo_dev->alloc_ctx; in solo_queue_setup()
688 solo_dev->alloc_ctx = vb2_dma_contig_init_ctx(&solo_dev->pdev->dev); in solo_v4l2_init()
689 if (IS_ERR(solo_dev->alloc_ctx)) { in solo_v4l2_init()
691 return PTR_ERR(solo_dev->alloc_ctx); in solo_v4l2_init()
721 vb2_dma_contig_cleanup_ctx(solo_dev->alloc_ctx); in solo_v4l2_init()
733 vb2_dma_contig_cleanup_ctx(solo_dev->alloc_ctx); in solo_v4l2_exit()
Dsolo6x10.h181 void *alloc_ctx; member
272 struct vb2_alloc_ctx *alloc_ctx; member
Dsolo6x10-v4l2-enc.c674 alloc_ctxs[0] = solo_enc->alloc_ctx; in solo_enc_queue_setup()
1244 solo_enc->alloc_ctx = vb2_dma_sg_init_ctx(&solo_dev->pdev->dev); in solo_enc_alloc()
1245 if (IS_ERR(solo_enc->alloc_ctx)) { in solo_enc_alloc()
1246 ret = PTR_ERR(solo_enc->alloc_ctx); in solo_enc_alloc()
1352 vb2_dma_sg_cleanup_ctx(solo_enc->alloc_ctx); in solo_enc_alloc()
1367 vb2_dma_sg_cleanup_ctx(solo_enc->alloc_ctx); in solo_enc_free()
/linux-4.4.14/drivers/input/touchscreen/
Dsur40.c154 struct vb2_alloc_ctx *alloc_ctx; member
582 sur40->alloc_ctx = vb2_dma_sg_init_ctx(sur40->dev); in sur40_probe()
583 if (IS_ERR(sur40->alloc_ctx)) { in sur40_probe()
585 error = PTR_ERR(sur40->alloc_ctx); in sur40_probe()
629 vb2_dma_sg_cleanup_ctx(sur40->alloc_ctx); in sur40_disconnect()
662 alloc_ctxs[0] = sur40->alloc_ctx; in sur40_queue_setup()
/linux-4.4.14/drivers/media/platform/exynos4-is/
Dfimc-is.c208 is->isp.alloc_ctx = is->alloc_ctx; in fimc_is_register_subdevs()
844 is->alloc_ctx = vb2_dma_contig_init_ctx(dev); in fimc_is_probe()
845 if (IS_ERR(is->alloc_ctx)) { in fimc_is_probe()
846 ret = PTR_ERR(is->alloc_ctx); in fimc_is_probe()
875 vb2_dma_contig_cleanup_ctx(is->alloc_ctx); in fimc_is_probe()
936 vb2_dma_contig_cleanup_ctx(is->alloc_ctx); in fimc_is_remove()
Dfimc-isp.h164 struct vb2_alloc_ctx *alloc_ctx; member
Dfimc-lite.h151 struct vb2_alloc_ctx *alloc_ctx; member
Dfimc-core.h310 struct vb2_alloc_ctx *alloc_ctx; member
439 struct vb2_alloc_ctx *alloc_ctx; member
Dfimc-is.h259 struct vb2_alloc_ctx *alloc_ctx; member
Dfimc-core.c1022 fimc->alloc_ctx = vb2_dma_contig_init_ctx(dev); in fimc_probe()
1023 if (IS_ERR(fimc->alloc_ctx)) { in fimc_probe()
1024 ret = PTR_ERR(fimc->alloc_ctx); in fimc_probe()
1126 vb2_dma_contig_cleanup_ctx(fimc->alloc_ctx); in fimc_remove()
Dfimc-lite.c389 allocators[i] = fimc->alloc_ctx; in queue_setup()
1567 fimc->alloc_ctx = vb2_dma_contig_init_ctx(dev); in fimc_lite_probe()
1568 if (IS_ERR(fimc->alloc_ctx)) { in fimc_lite_probe()
1569 ret = PTR_ERR(fimc->alloc_ctx); in fimc_lite_probe()
1667 vb2_dma_contig_cleanup_ctx(fimc->alloc_ctx); in fimc_lite_remove()
Dfimc-isp-video.c75 allocators[i] = isp->alloc_ctx; in isp_video_capture_queue_setup()
Dfimc-m2m.c200 allocators[i] = ctx->fimc_dev->alloc_ctx; in fimc_queue_setup()
Dfimc-capture.c376 allocators[i] = ctx->fimc_dev->alloc_ctx; in queue_setup()
/linux-4.4.14/drivers/media/platform/
Dmx2_emmaprp.c214 struct vb2_alloc_ctx *alloc_ctx; member
714 alloc_ctxs[0] = ctx->dev->alloc_ctx; in emmaprp_queue_setup()
952 pcdev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in emmaprp_probe()
953 if (IS_ERR(pcdev->alloc_ctx)) { in emmaprp_probe()
955 ret = PTR_ERR(pcdev->alloc_ctx); in emmaprp_probe()
978 vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx); in emmaprp_probe()
997 vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx); in emmaprp_remove()
Dm2m-deinterlace.c139 struct vb2_alloc_ctx *alloc_ctx; member
824 alloc_ctxs[0] = ctx->dev->alloc_ctx; in deinterlace_queue_setup()
1050 pcdev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in deinterlace_probe()
1051 if (IS_ERR(pcdev->alloc_ctx)) { in deinterlace_probe()
1053 ret = PTR_ERR(pcdev->alloc_ctx); in deinterlace_probe()
1069 vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx); in deinterlace_probe()
1086 vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx); in deinterlace_remove()
Dsh_veu.c121 struct vb2_alloc_ctx *alloc_ctx; member
905 alloc_ctxs[0] = veu->alloc_ctx; in sh_veu_queue_setup()
1164 veu->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in sh_veu_probe()
1165 if (IS_ERR(veu->alloc_ctx)) { in sh_veu_probe()
1166 ret = PTR_ERR(veu->alloc_ctx); in sh_veu_probe()
1203 vb2_dma_contig_cleanup_ctx(veu->alloc_ctx); in sh_veu_probe()
1218 vb2_dma_contig_cleanup_ctx(veu->alloc_ctx); in sh_veu_remove()
Dsh_vou.c89 struct vb2_alloc_ctx *alloc_ctx; member
261 alloc_ctxs[0] = vou_dev->alloc_ctx; in sh_vou_queue_setup()
1312 vou_dev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in sh_vou_probe()
1313 if (IS_ERR(vou_dev->alloc_ctx)) { in sh_vou_probe()
1315 ret = PTR_ERR(vou_dev->alloc_ctx); in sh_vou_probe()
1352 vb2_dma_contig_cleanup_ctx(vou_dev->alloc_ctx); in sh_vou_probe()
1371 vb2_dma_contig_cleanup_ctx(vou_dev->alloc_ctx); in sh_vou_remove()
Drcar_jpu.c223 void *alloc_ctx; member
1040 alloc_ctxs[i] = ctx->jpu->alloc_ctx; in jpu_queue_setup()
1676 jpu->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in jpu_probe()
1677 if (IS_ERR(jpu->alloc_ctx)) { in jpu_probe()
1679 ret = PTR_ERR(jpu->alloc_ctx); in jpu_probe()
1733 vb2_dma_contig_cleanup_ctx(jpu->alloc_ctx); in jpu_probe()
1750 vb2_dma_contig_cleanup_ctx(jpu->alloc_ctx); in jpu_remove()
/linux-4.4.14/drivers/media/platform/blackfin/
Dbfin_capture.c95 struct vb2_alloc_ctx *alloc_ctx; member
220 alloc_ctxs[0] = bcap_dev->alloc_ctx; in bcap_queue_setup()
825 bcap_dev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in bcap_probe()
826 if (IS_ERR(bcap_dev->alloc_ctx)) { in bcap_probe()
827 ret = PTR_ERR(bcap_dev->alloc_ctx); in bcap_probe()
973 vb2_dma_contig_cleanup_ctx(bcap_dev->alloc_ctx); in bcap_probe()
991 vb2_dma_contig_cleanup_ctx(bcap_dev->alloc_ctx); in bcap_remove()
/linux-4.4.14/drivers/media/platform/s5p-g2d/
Dg2d.c116 alloc_ctxs[0] = ctx->dev->alloc_ctx; in g2d_queue_setup()
684 dev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in g2d_probe()
685 if (IS_ERR(dev->alloc_ctx)) { in g2d_probe()
686 ret = PTR_ERR(dev->alloc_ctx); in g2d_probe()
742 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx); in g2d_probe()
763 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx); in g2d_remove()
Dg2d.h28 struct vb2_alloc_ctx *alloc_ctx; member
/linux-4.4.14/drivers/media/pci/cobalt/
Dcobalt-driver.c694 cobalt->alloc_ctx = vb2_dma_sg_init_ctx(&pci_dev->dev); in cobalt_probe()
695 if (IS_ERR(cobalt->alloc_ctx)) { in cobalt_probe()
704 vb2_dma_sg_cleanup_ctx(cobalt->alloc_ctx); in cobalt_probe()
785 vb2_dma_sg_cleanup_ctx(cobalt->alloc_ctx); in cobalt_probe()
821 vb2_dma_sg_cleanup_ctx(cobalt->alloc_ctx); in cobalt_remove()
Dcobalt-driver.h265 void *alloc_ctx; member
Dcobalt-v4l2.c65 alloc_ctxs[0] = s->cobalt->alloc_ctx; in cobalt_queue_setup()
/linux-4.4.14/drivers/media/platform/s5p-mfc/
Ds5p_mfc.c1146 dev->alloc_ctx[0] = vb2_dma_contig_init_ctx(dev->mem_dev_l); in s5p_mfc_probe()
1147 if (IS_ERR(dev->alloc_ctx[0])) { in s5p_mfc_probe()
1148 ret = PTR_ERR(dev->alloc_ctx[0]); in s5p_mfc_probe()
1151 dev->alloc_ctx[1] = vb2_dma_contig_init_ctx(dev->mem_dev_r); in s5p_mfc_probe()
1152 if (IS_ERR(dev->alloc_ctx[1])) { in s5p_mfc_probe()
1153 ret = PTR_ERR(dev->alloc_ctx[1]); in s5p_mfc_probe()
1247 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx[1]); in s5p_mfc_probe()
1249 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx[0]); in s5p_mfc_probe()
1273 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx[0]); in s5p_mfc_remove()
1274 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx[1]); in s5p_mfc_remove()
Ds5p_mfc_dec.c935 ctx->dev->alloc_ctx[MFC_BANK1_ALLOC_CTX]; in s5p_mfc_queue_setup()
938 ctx->dev->alloc_ctx[MFC_BANK2_ALLOC_CTX]; in s5p_mfc_queue_setup()
939 allocators[1] = ctx->dev->alloc_ctx[MFC_BANK1_ALLOC_CTX]; in s5p_mfc_queue_setup()
943 allocators[0] = ctx->dev->alloc_ctx[MFC_BANK1_ALLOC_CTX]; in s5p_mfc_queue_setup()
Ds5p_mfc_enc.c1843 allocators[0] = ctx->dev->alloc_ctx[MFC_BANK1_ALLOC_CTX]; in s5p_mfc_queue_setup()
1860 ctx->dev->alloc_ctx[MFC_BANK1_ALLOC_CTX]; in s5p_mfc_queue_setup()
1862 ctx->dev->alloc_ctx[MFC_BANK1_ALLOC_CTX]; in s5p_mfc_queue_setup()
1865 ctx->dev->alloc_ctx[MFC_BANK2_ALLOC_CTX]; in s5p_mfc_queue_setup()
1867 ctx->dev->alloc_ctx[MFC_BANK2_ALLOC_CTX]; in s5p_mfc_queue_setup()
Ds5p_mfc_common.h331 void *alloc_ctx[2]; member
/linux-4.4.14/drivers/media/platform/s3c-camif/
Dcamif-core.c480 camif->alloc_ctx = vb2_dma_contig_init_ctx(dev); in s3c_camif_probe()
481 if (IS_ERR(camif->alloc_ctx)) { in s3c_camif_probe()
482 ret = PTR_ERR(camif->alloc_ctx); in s3c_camif_probe()
523 vb2_dma_contig_cleanup_ctx(camif->alloc_ctx); in s3c_camif_probe()
Dcamif-core.h294 struct vb2_alloc_ctx *alloc_ctx; member
Dcamif-capture.c469 allocators[0] = camif->alloc_ctx; in queue_setup()
/linux-4.4.14/drivers/media/platform/davinci/
Dvpif_capture.h69 struct vb2_alloc_ctx *alloc_ctx; member
Dvpif_display.h78 struct vb2_alloc_ctx *alloc_ctx; member
Dvpif_display.c128 alloc_ctxs[0] = common->alloc_ctx; in vpif_buffer_queue_setup()
1199 common->alloc_ctx = vb2_dma_contig_init_ctx(vpif_dev); in vpif_probe_complete()
1200 if (IS_ERR(common->alloc_ctx)) { in vpif_probe_complete()
1202 err = PTR_ERR(common->alloc_ctx); in vpif_probe_complete()
1235 vb2_dma_contig_cleanup_ctx(common->alloc_ctx); in vpif_probe_complete()
1357 vb2_dma_contig_cleanup_ctx(common->alloc_ctx); in vpif_remove()
Dvpbe_display.c252 alloc_ctxs[0] = layer->alloc_ctx; in vpbe_buffer_queue_setup()
1461 disp_dev->dev[i]->alloc_ctx = in vpbe_display_probe()
1463 if (IS_ERR(disp_dev->dev[i]->alloc_ctx)) { in vpbe_display_probe()
1465 err = PTR_ERR(disp_dev->dev[i]->alloc_ctx); in vpbe_display_probe()
1486 vb2_dma_contig_cleanup_ctx(disp_dev->dev[k]->alloc_ctx); in vpbe_display_probe()
1514 vb2_dma_contig_cleanup_ctx(vpbe_display_layer->alloc_ctx); in vpbe_display_remove()
Dvpif_capture.c137 alloc_ctxs[0] = common->alloc_ctx; in vpif_buffer_queue_setup()
1382 common->alloc_ctx = vb2_dma_contig_init_ctx(vpif_dev); in vpif_probe_complete()
1383 if (IS_ERR(common->alloc_ctx)) { in vpif_probe_complete()
1385 err = PTR_ERR(common->alloc_ctx); in vpif_probe_complete()
1416 vb2_dma_contig_cleanup_ctx(common->alloc_ctx); in vpif_probe_complete()
1550 vb2_dma_contig_cleanup_ctx(common->alloc_ctx); in vpif_remove()
/linux-4.4.14/drivers/media/platform/soc_camera/
Datmel-isi.c75 struct vb2_alloc_ctx *alloc_ctx; member
267 alloc_ctxs[0] = isi->alloc_ctx; in queue_setup()
884 vb2_dma_contig_cleanup_ctx(isi->alloc_ctx); in atmel_isi_remove()
988 isi->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in atmel_isi_probe()
989 if (IS_ERR(isi->alloc_ctx)) { in atmel_isi_probe()
990 ret = PTR_ERR(isi->alloc_ctx); in atmel_isi_probe()
1040 vb2_dma_contig_cleanup_ctx(isi->alloc_ctx); in atmel_isi_probe()
Dmx3_camera.c111 struct vb2_alloc_ctx *alloc_ctx; member
227 alloc_ctxs[0] = mx3_cam->alloc_ctx; in mx3_videobuf_setup()
1229 mx3_cam->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in mx3_camera_probe()
1230 if (IS_ERR(mx3_cam->alloc_ctx)) in mx3_camera_probe()
1231 return PTR_ERR(mx3_cam->alloc_ctx); in mx3_camera_probe()
1248 vb2_dma_contig_cleanup_ctx(mx3_cam->alloc_ctx); in mx3_camera_probe()
1267 vb2_dma_contig_cleanup_ctx(mx3_cam->alloc_ctx); in mx3_camera_remove()
Drcar_vin.c482 struct vb2_alloc_ctx *alloc_ctx; member
570 alloc_ctxs[0] = priv->alloc_ctx; in rcar_vin_videobuf_setup()
1936 priv->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in rcar_vin_probe()
1937 if (IS_ERR(priv->alloc_ctx)) in rcar_vin_probe()
1938 return PTR_ERR(priv->alloc_ctx); in rcar_vin_probe()
1970 vb2_dma_contig_cleanup_ctx(priv->alloc_ctx); in rcar_vin_probe()
1983 vb2_dma_contig_cleanup_ctx(priv->alloc_ctx); in rcar_vin_remove()
Dmx2_camera.c269 struct vb2_alloc_ctx *alloc_ctx; member
487 alloc_ctxs[0] = pcdev->alloc_ctx; in mx2_videobuf_setup()
1588 pcdev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in mx2_camera_probe()
1589 if (IS_ERR(pcdev->alloc_ctx)) { in mx2_camera_probe()
1590 err = PTR_ERR(pcdev->alloc_ctx); in mx2_camera_probe()
1603 vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx); in mx2_camera_probe()
1619 vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx); in mx2_camera_remove()
Dsh_mobile_ceu_camera.c116 struct vb2_alloc_ctx *alloc_ctx; member
250 alloc_ctxs[0] = pcdev->alloc_ctx; in sh_mobile_ceu_videobuf_setup()
1852 pcdev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in sh_mobile_ceu_probe()
1853 if (IS_ERR(pcdev->alloc_ctx)) { in sh_mobile_ceu_probe()
1854 err = PTR_ERR(pcdev->alloc_ctx); in sh_mobile_ceu_probe()
1986 vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx); in sh_mobile_ceu_probe()
2006 vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx); in sh_mobile_ceu_remove()
/linux-4.4.14/include/media/davinci/
Dvpbe_display.h85 struct vb2_alloc_ctx *alloc_ctx; member
/linux-4.4.14/drivers/media/pci/cx88/
Dcx88-mpeg.c729 dev->alloc_ctx = vb2_dma_sg_init_ctx(&pci_dev->dev); in cx8802_probe()
730 if (IS_ERR(dev->alloc_ctx)) { in cx8802_probe()
731 err = PTR_ERR(dev->alloc_ctx); in cx8802_probe()
753 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in cx8802_probe()
801 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in cx8802_remove()
Dcx88-video.c441 alloc_ctxs[0] = dev->alloc_ctx; in queue_setup()
1322 dev->alloc_ctx = vb2_dma_sg_init_ctx(&pci_dev->dev); in cx8800_initdev()
1323 if (IS_ERR(dev->alloc_ctx)) { in cx8800_initdev()
1324 err = PTR_ERR(dev->alloc_ctx); in cx8800_initdev()
1533 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in cx8800_initdev()
1567 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in cx8800_finidev()
Dcx88.h488 void *alloc_ctx; member
552 void *alloc_ctx; member
Dcx88-vbi.c121 alloc_ctxs[0] = dev->alloc_ctx; in queue_setup()
Dcx88-blackbird.c650 alloc_ctxs[0] = dev->alloc_ctx; in queue_setup()
Dcx88-dvb.c95 alloc_ctxs[0] = dev->alloc_ctx; in queue_setup()
/linux-4.4.14/drivers/staging/media/davinci_vpfe/
Dvpfe_video.h126 struct vb2_alloc_ctx *alloc_ctx; member
Dvpfe_video.c527 vb2_dma_contig_cleanup_ctx(video->alloc_ctx); in vpfe_release()
1098 alloc_ctxs[0] = video->alloc_ctx; in vpfe_buffer_queue_setup()
1333 video->alloc_ctx = vb2_dma_contig_init_ctx(vpfe_dev->pdev); in vpfe_reqbufs()
1334 if (IS_ERR(video->alloc_ctx)) { in vpfe_reqbufs()
1336 return PTR_ERR(video->alloc_ctx); in vpfe_reqbufs()
/linux-4.4.14/drivers/media/pci/sta2x11/
Dsta2x11_vip.c144 struct vb2_alloc_ctx *alloc_ctx; member
279 alloc_ctxs[0] = vip->alloc_ctx; in queue_setup()
879 vip->alloc_ctx = vb2_dma_contig_init_ctx(&vip->pdev->dev); in sta2x11_vip_init_buffer()
880 if (IS_ERR(vip->alloc_ctx)) { in sta2x11_vip_init_buffer()
882 return PTR_ERR(vip->alloc_ctx); in sta2x11_vip_init_buffer()
889 vb2_dma_contig_cleanup_ctx(vip->alloc_ctx); in sta2x11_vip_release_buffer()
/linux-4.4.14/drivers/media/platform/vsp1/
Dvsp1_video.h132 void *alloc_ctx; member
Dvsp1_video.c816 alloc_ctxs[i] = video->alloc_ctx; in vsp1_video_queue_setup()
1256 video->alloc_ctx = vb2_dma_contig_init_ctx(video->vsp1->dev); in vsp1_video_init()
1257 if (IS_ERR(video->alloc_ctx)) { in vsp1_video_init()
1258 ret = PTR_ERR(video->alloc_ctx); in vsp1_video_init()
1287 vb2_dma_contig_cleanup_ctx(video->alloc_ctx); in vsp1_video_init()
1297 vb2_dma_contig_cleanup_ctx(video->alloc_ctx); in vsp1_video_cleanup()
/linux-4.4.14/drivers/media/platform/sti/bdisp/
Dbdisp.h196 struct vb2_alloc_ctx *alloc_ctx; member
Dbdisp-v4l2.c464 allocators[0] = ctx->bdisp_dev->alloc_ctx; in bdisp_queue_setup()
1274 vb2_dma_contig_cleanup_ctx(bdisp->alloc_ctx); in bdisp_remove()
1377 bdisp->alloc_ctx = vb2_dma_contig_init_ctx(dev); in bdisp_probe()
1378 if (IS_ERR(bdisp->alloc_ctx)) { in bdisp_probe()
1379 ret = PTR_ERR(bdisp->alloc_ctx); in bdisp_probe()
1407 vb2_dma_contig_cleanup_ctx(bdisp->alloc_ctx); in bdisp_probe()
/linux-4.4.14/drivers/media/platform/s5p-jpeg/
Djpeg-core.h133 void *alloc_ctx; member
Djpeg-core.c2456 alloc_ctxs[0] = ctx->jpeg->alloc_ctx; in s5p_jpeg_queue_setup()
2842 jpeg->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in s5p_jpeg_probe()
2843 if (IS_ERR(jpeg->alloc_ctx)) { in s5p_jpeg_probe()
2845 ret = PTR_ERR(jpeg->alloc_ctx); in s5p_jpeg_probe()
2920 vb2_dma_contig_cleanup_ctx(jpeg->alloc_ctx); in s5p_jpeg_probe()
2940 vb2_dma_contig_cleanup_ctx(jpeg->alloc_ctx); in s5p_jpeg_remove()
/linux-4.4.14/drivers/media/platform/s5p-tv/
Dmixer_video.c83 mdev->alloc_ctx = vb2_dma_contig_init_ctx(mdev->dev); in mxr_acquire_video()
84 if (IS_ERR(mdev->alloc_ctx)) { in mxr_acquire_video()
86 ret = PTR_ERR(mdev->alloc_ctx); in mxr_acquire_video()
136 vb2_dma_contig_cleanup_ctx(mdev->alloc_ctx); in mxr_acquire_video()
154 vb2_dma_contig_cleanup_ctx(mdev->alloc_ctx); in mxr_release_video()
904 alloc_ctxs[i] = layer->mdev->alloc_ctx; in queue_setup()
Dmixer.h249 void *alloc_ctx; member
/linux-4.4.14/drivers/staging/media/omap4iss/
Diss_video.h173 struct vb2_alloc_ctx *alloc_ctx; member
Diss_video.c304 alloc_ctxs[0] = video->alloc_ctx; in iss_video_queue_setup()
994 video->alloc_ctx = vb2_dma_contig_init_ctx(video->iss->dev); in iss_video_open()
995 if (IS_ERR(video->alloc_ctx)) { in iss_video_open()
996 ret = PTR_ERR(video->alloc_ctx); in iss_video_open()
/linux-4.4.14/drivers/media/platform/am437x/
Dam437x-vpfe.h268 struct vb2_alloc_ctx *alloc_ctx; member
Dam437x-vpfe.c1926 alloc_ctxs[0] = vpfe->alloc_ctx; in vpfe_queue_setup()
2366 vpfe->alloc_ctx = vb2_dma_contig_init_ctx(vpfe->pdev); in vpfe_probe_complete()
2367 if (IS_ERR(vpfe->alloc_ctx)) { in vpfe_probe_complete()
2369 err = PTR_ERR(vpfe->alloc_ctx); in vpfe_probe_complete()
2387 vb2_dma_contig_cleanup_ctx(vpfe->alloc_ctx); in vpfe_probe_complete()
/linux-4.4.14/drivers/media/platform/omap3isp/
Dispvideo.h174 void *alloc_ctx; member
Dispvideo.c336 alloc_ctxs[0] = video->alloc_ctx; in isp_video_queue_setup()
1367 video->alloc_ctx = vb2_dma_contig_init_ctx(video->isp->dev); in omap3isp_video_init()
1368 if (IS_ERR(video->alloc_ctx)) in omap3isp_video_init()
1369 return PTR_ERR(video->alloc_ctx); in omap3isp_video_init()
1373 vb2_dma_contig_cleanup_ctx(video->alloc_ctx); in omap3isp_video_init()
1404 vb2_dma_contig_cleanup_ctx(video->alloc_ctx); in omap3isp_video_cleanup()
/linux-4.4.14/drivers/media/pci/saa7134/
Dsaa7134-core.c1007 dev->alloc_ctx = vb2_dma_sg_init_ctx(&pci_dev->dev); in saa7134_initdev()
1008 if (IS_ERR(dev->alloc_ctx)) { in saa7134_initdev()
1009 err = PTR_ERR(dev->alloc_ctx); in saa7134_initdev()
1119 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in saa7134_initdev()
1186 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in saa7134_finidev()
Dsaa7134-vbi.c158 alloc_ctxs[0] = dev->alloc_ctx; in queue_setup()
Dsaa7134-ts.c134 alloc_ctxs[0] = dev->alloc_ctx; in saa7134_ts_queue_setup()
Dsaa7134.h595 void *alloc_ctx; member
Dsaa7134-video.c926 alloc_ctxs[0] = dev->alloc_ctx; in queue_setup()
/linux-4.4.14/drivers/media/platform/ti-vpe/
Dvpe.c365 struct vb2_alloc_ctx *alloc_ctx; member
1813 alloc_ctxs[i] = ctx->dev->alloc_ctx; in vpe_queue_setup()
2165 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx); in vpe_fw_cb()
2217 dev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in vpe_probe()
2218 if (IS_ERR(dev->alloc_ctx)) { in vpe_probe()
2220 ret = PTR_ERR(dev->alloc_ctx); in vpe_probe()
2274 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx); in vpe_probe()
2290 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx); in vpe_remove()
/linux-4.4.14/drivers/media/pci/cx25821/
Dcx25821-core.c1304 dev->alloc_ctx = vb2_dma_sg_init_ctx(&pci_dev->dev); in cx25821_initdev()
1305 if (IS_ERR(dev->alloc_ctx)) { in cx25821_initdev()
1306 err = PTR_ERR(dev->alloc_ctx); in cx25821_initdev()
1344 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in cx25821_initdev()
1368 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in cx25821_finidev()
Dcx25821.h252 void *alloc_ctx; member
Dcx25821-video.c157 alloc_ctxs[0] = chan->dev->alloc_ctx; in cx25821_queue_setup()
/linux-4.4.14/drivers/media/platform/exynos-gsc/
Dgsc-core.c1143 gsc->alloc_ctx = vb2_dma_contig_init_ctx(dev); in gsc_probe()
1144 if (IS_ERR(gsc->alloc_ctx)) { in gsc_probe()
1145 ret = PTR_ERR(gsc->alloc_ctx); in gsc_probe()
1171 vb2_dma_contig_cleanup_ctx(gsc->alloc_ctx); in gsc_remove()
Dgsc-core.h345 struct vb2_alloc_ctx *alloc_ctx; member
Dgsc-m2m.c233 allocators[i] = ctx->gsc_dev->alloc_ctx; in gsc_m2m_queue_setup()
/linux-4.4.14/drivers/media/platform/coda/
Dcoda.h94 struct vb2_alloc_ctx *alloc_ctx; member
Dcoda-common.c1149 alloc_ctxs[0] = ctx->dev->alloc_ctx; in coda_queue_setup()
1985 dev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in coda_fw_callback()
1986 if (IS_ERR(dev->alloc_ctx)) { in coda_fw_callback()
2018 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx); in coda_fw_callback()
2268 if (dev->alloc_ctx) in coda_remove()
2269 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx); in coda_remove()
/linux-4.4.14/drivers/media/pci/cx23885/
Dcx23885-vbi.c135 alloc_ctxs[0] = dev->alloc_ctx; in queue_setup()
Dcx23885-core.c2001 dev->alloc_ctx = vb2_dma_sg_init_ctx(&pci_dev->dev); in cx23885_initdev()
2002 if (IS_ERR(dev->alloc_ctx)) { in cx23885_initdev()
2003 err = PTR_ERR(dev->alloc_ctx); in cx23885_initdev()
2034 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in cx23885_initdev()
2061 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in cx23885_finidev()
Dcx23885.h431 void *alloc_ctx; member
Dcx23885-video.c326 alloc_ctxs[0] = dev->alloc_ctx; in queue_setup()
Dcx23885-417.c1151 alloc_ctxs[0] = dev->alloc_ctx; in queue_setup()
Dcx23885-dvb.c105 alloc_ctxs[0] = port->dev->alloc_ctx; in queue_setup()