Home
last modified time | relevance | path

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

/linux-4.1.27/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()
232 static void *vb2_dma_sg_get_userptr(void *alloc_ctx, unsigned long vaddr, in vb2_dma_sg_get_userptr() argument
236 struct vb2_dma_sg_conf *conf = alloc_ctx; in vb2_dma_sg_get_userptr()
675 static void *vb2_dma_sg_attach_dmabuf(void *alloc_ctx, struct dma_buf *dbuf, in vb2_dma_sg_attach_dmabuf() argument
678 struct vb2_dma_sg_conf *conf = alloc_ctx; in vb2_dma_sg_attach_dmabuf()
745 void vb2_dma_sg_cleanup_ctx(void *alloc_ctx) in vb2_dma_sg_cleanup_ctx() argument
747 if (!IS_ERR_OR_NULL(alloc_ctx)) in vb2_dma_sg_cleanup_ctx()
748 kfree(alloc_ctx); in vb2_dma_sg_cleanup_ctx()
Dvideobuf2-dma-contig.c158 static void *vb2_dc_alloc(void *alloc_ctx, unsigned long size, in vb2_dc_alloc() argument
161 struct vb2_dc_conf *conf = alloc_ctx; in vb2_dc_alloc()
570 static void *vb2_dc_get_userptr(void *alloc_ctx, unsigned long vaddr, in vb2_dc_get_userptr() argument
573 struct vb2_dc_conf *conf = alloc_ctx; in vb2_dc_get_userptr()
809 static void *vb2_dc_attach_dmabuf(void *alloc_ctx, struct dma_buf *dbuf, in vb2_dc_attach_dmabuf() argument
812 struct vb2_dc_conf *conf = alloc_ctx; in vb2_dc_attach_dmabuf()
876 void vb2_dma_contig_cleanup_ctx(void *alloc_ctx) in vb2_dma_contig_cleanup_ctx() argument
878 if (!IS_ERR_OR_NULL(alloc_ctx)) in vb2_dma_contig_cleanup_ctx()
879 kfree(alloc_ctx); in vb2_dma_contig_cleanup_ctx()
Dvideobuf2-vmalloc.c38 static void *vb2_vmalloc_alloc(void *alloc_ctx, unsigned long size, in vb2_vmalloc_alloc() argument
74 static void *vb2_vmalloc_get_userptr(void *alloc_ctx, unsigned long vaddr, in vb2_vmalloc_get_userptr() argument
424 static void *vb2_vmalloc_attach_dmabuf(void *alloc_ctx, struct dma_buf *dbuf, in vb2_vmalloc_attach_dmabuf() argument
Dvideobuf2-core.c204 mem_priv = call_ptr_memop(vb, alloc, q->alloc_ctx[plane], in __vb2_buf_mem_alloc()
919 memset(q->alloc_ctx, 0, sizeof(q->alloc_ctx)); in __reqbufs()
927 q->plane_sizes, q->alloc_ctx); in __reqbufs()
952 &num_planes, q->plane_sizes, q->alloc_ctx); in __reqbufs()
1028 memset(q->alloc_ctx, 0, sizeof(q->alloc_ctx)); in __create_bufs()
1040 &num_planes, q->plane_sizes, q->alloc_ctx); in __create_bufs()
1063 &num_planes, q->plane_sizes, q->alloc_ctx); in __create_bufs()
1444 mem_priv = call_ptr_memop(vb, get_userptr, q->alloc_ctx[plane], in __qbuf_userptr()
1555 mem_priv = call_ptr_memop(vb, attach_dmabuf, q->alloc_ctx[plane], in __qbuf_dmabuf()
/linux-4.1.27/drivers/media/pci/tw68/
Dtw68-core.c307 dev->alloc_ctx = vb2_dma_sg_init_ctx(&pci_dev->dev); in tw68_initdev()
308 if (IS_ERR(dev->alloc_ctx)) { in tw68_initdev()
309 err = PTR_ERR(dev->alloc_ctx); in tw68_initdev()
345 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in tw68_initdev()
369 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in tw68_finidev()
Dtw68.h183 void *alloc_ctx; member
Dtw68-video.c387 alloc_ctxs[0] = dev->alloc_ctx; in tw68_queue_setup()
/linux-4.1.27/Documentation/video4linux/
Dv4l2-pci-skeleton.c75 struct vb2_alloc_ctx *alloc_ctx; member
189 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.1.27/include/media/
Dvideobuf2-core.h85 void *(*alloc)(void *alloc_ctx, unsigned long size,
91 void *(*get_userptr)(void *alloc_ctx, unsigned long vaddr,
99 void *(*attach_dmabuf)(void *alloc_ctx, struct dma_buf *dbuf,
419 void *alloc_ctx[VIDEO_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.1.27/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.1.27/drivers/media/pci/solo6x10/
Dsolo6x10-v4l2.c321 alloc_ctxs[0] = solo_dev->alloc_ctx; in solo_queue_setup()
685 solo_dev->alloc_ctx = vb2_dma_contig_init_ctx(&solo_dev->pdev->dev); in solo_v4l2_init()
686 if (IS_ERR(solo_dev->alloc_ctx)) { in solo_v4l2_init()
688 return PTR_ERR(solo_dev->alloc_ctx); in solo_v4l2_init()
718 vb2_dma_contig_cleanup_ctx(solo_dev->alloc_ctx); in solo_v4l2_init()
730 vb2_dma_contig_cleanup_ctx(solo_dev->alloc_ctx); in solo_v4l2_exit()
Dsolo6x10.h181 void *alloc_ctx; member
273 struct vb2_alloc_ctx *alloc_ctx; member
Dsolo6x10-v4l2-enc.c670 alloc_ctxs[0] = solo_enc->alloc_ctx; in solo_enc_queue_setup()
1238 solo_enc->alloc_ctx = vb2_dma_sg_init_ctx(&solo_dev->pdev->dev); in solo_enc_alloc()
1239 if (IS_ERR(solo_enc->alloc_ctx)) { in solo_enc_alloc()
1240 ret = PTR_ERR(solo_enc->alloc_ctx); in solo_enc_alloc()
1346 vb2_dma_sg_cleanup_ctx(solo_enc->alloc_ctx); in solo_enc_alloc()
1361 vb2_dma_sg_cleanup_ctx(solo_enc->alloc_ctx); in solo_enc_free()
/linux-4.1.27/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-lite.h151 struct vb2_alloc_ctx *alloc_ctx; member
Dfimc-isp.h164 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.c393 allocators[i] = fimc->alloc_ctx; in queue_setup()
1570 fimc->alloc_ctx = vb2_dma_contig_init_ctx(dev); in fimc_lite_probe()
1571 if (IS_ERR(fimc->alloc_ctx)) { in fimc_lite_probe()
1572 ret = PTR_ERR(fimc->alloc_ctx); in fimc_lite_probe()
1670 vb2_dma_contig_cleanup_ctx(fimc->alloc_ctx); in fimc_lite_remove()
Dfimc-isp-video.c74 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.c381 allocators[i] = ctx->fimc_dev->alloc_ctx; in queue_setup()
/linux-4.1.27/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()
951 pcdev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in emmaprp_probe()
952 if (IS_ERR(pcdev->alloc_ctx)) { in emmaprp_probe()
954 ret = PTR_ERR(pcdev->alloc_ctx); in emmaprp_probe()
977 vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx); in emmaprp_probe()
996 vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx); in emmaprp_remove()
Dsh_veu.c121 struct vb2_alloc_ctx *alloc_ctx; member
904 alloc_ctxs[0] = veu->alloc_ctx; in sh_veu_queue_setup()
1154 veu->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in sh_veu_probe()
1155 if (IS_ERR(veu->alloc_ctx)) { in sh_veu_probe()
1156 ret = PTR_ERR(veu->alloc_ctx); in sh_veu_probe()
1193 vb2_dma_contig_cleanup_ctx(veu->alloc_ctx); in sh_veu_probe()
1208 vb2_dma_contig_cleanup_ctx(veu->alloc_ctx); in sh_veu_remove()
Dm2m-deinterlace.c139 struct vb2_alloc_ctx *alloc_ctx; member
823 alloc_ctxs[0] = ctx->dev->alloc_ctx; in deinterlace_queue_setup()
1047 pcdev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in deinterlace_probe()
1048 if (IS_ERR(pcdev->alloc_ctx)) { in deinterlace_probe()
1050 ret = PTR_ERR(pcdev->alloc_ctx); in deinterlace_probe()
1067 vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx); in deinterlace_probe()
1084 vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx); in deinterlace_remove()
/linux-4.1.27/drivers/media/platform/s5p-mfc/
Ds5p_mfc.c1139 dev->alloc_ctx[0] = vb2_dma_contig_init_ctx(dev->mem_dev_l); in s5p_mfc_probe()
1140 if (IS_ERR(dev->alloc_ctx[0])) { in s5p_mfc_probe()
1141 ret = PTR_ERR(dev->alloc_ctx[0]); in s5p_mfc_probe()
1144 dev->alloc_ctx[1] = vb2_dma_contig_init_ctx(dev->mem_dev_r); in s5p_mfc_probe()
1145 if (IS_ERR(dev->alloc_ctx[1])) { in s5p_mfc_probe()
1146 ret = PTR_ERR(dev->alloc_ctx[1]); in s5p_mfc_probe()
1240 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx[1]); in s5p_mfc_probe()
1242 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx[0]); in s5p_mfc_probe()
1266 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx[0]); in s5p_mfc_remove()
1267 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx[1]); in s5p_mfc_remove()
[all …]
Ds5p_mfc_dec.c930 ctx->dev->alloc_ctx[MFC_BANK1_ALLOC_CTX]; in s5p_mfc_queue_setup()
933 ctx->dev->alloc_ctx[MFC_BANK2_ALLOC_CTX]; in s5p_mfc_queue_setup()
934 allocators[1] = ctx->dev->alloc_ctx[MFC_BANK1_ALLOC_CTX]; in s5p_mfc_queue_setup()
938 allocators[0] = ctx->dev->alloc_ctx[MFC_BANK1_ALLOC_CTX]; in s5p_mfc_queue_setup()
Ds5p_mfc_enc.c1836 allocators[0] = ctx->dev->alloc_ctx[MFC_BANK1_ALLOC_CTX]; in s5p_mfc_queue_setup()
1853 ctx->dev->alloc_ctx[MFC_BANK1_ALLOC_CTX]; in s5p_mfc_queue_setup()
1855 ctx->dev->alloc_ctx[MFC_BANK1_ALLOC_CTX]; in s5p_mfc_queue_setup()
1858 ctx->dev->alloc_ctx[MFC_BANK2_ALLOC_CTX]; in s5p_mfc_queue_setup()
1860 ctx->dev->alloc_ctx[MFC_BANK2_ALLOC_CTX]; in s5p_mfc_queue_setup()
Ds5p_mfc_common.h331 void *alloc_ctx[2]; member
/linux-4.1.27/drivers/media/platform/soc_camera/
Datmel-isi.c74 struct vb2_alloc_ctx *alloc_ctx; member
259 alloc_ctxs[0] = isi->alloc_ctx; in queue_setup()
877 vb2_dma_contig_cleanup_ctx(isi->alloc_ctx); in atmel_isi_remove()
1002 isi->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in atmel_isi_probe()
1003 if (IS_ERR(isi->alloc_ctx)) { in atmel_isi_probe()
1004 ret = PTR_ERR(isi->alloc_ctx); in atmel_isi_probe()
1057 vb2_dma_contig_cleanup_ctx(isi->alloc_ctx); in atmel_isi_probe()
Dmx3_camera.c111 struct vb2_alloc_ctx *alloc_ctx; member
226 alloc_ctxs[0] = mx3_cam->alloc_ctx; in mx3_videobuf_setup()
1212 mx3_cam->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in mx3_camera_probe()
1213 if (IS_ERR(mx3_cam->alloc_ctx)) in mx3_camera_probe()
1214 return PTR_ERR(mx3_cam->alloc_ctx); in mx3_camera_probe()
1231 vb2_dma_contig_cleanup_ctx(mx3_cam->alloc_ctx); in mx3_camera_probe()
1250 vb2_dma_contig_cleanup_ctx(mx3_cam->alloc_ctx); in mx3_camera_remove()
Drcar_vin.c481 struct vb2_alloc_ctx *alloc_ctx; member
565 alloc_ctxs[0] = priv->alloc_ctx; in rcar_vin_videobuf_setup()
1905 priv->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in rcar_vin_probe()
1906 if (IS_ERR(priv->alloc_ctx)) in rcar_vin_probe()
1907 return PTR_ERR(priv->alloc_ctx); in rcar_vin_probe()
1939 vb2_dma_contig_cleanup_ctx(priv->alloc_ctx); in rcar_vin_probe()
1952 vb2_dma_contig_cleanup_ctx(priv->alloc_ctx); in rcar_vin_remove()
Dmx2_camera.c269 struct vb2_alloc_ctx *alloc_ctx; member
486 alloc_ctxs[0] = pcdev->alloc_ctx; in mx2_videobuf_setup()
1571 pcdev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in mx2_camera_probe()
1572 if (IS_ERR(pcdev->alloc_ctx)) { in mx2_camera_probe()
1573 err = PTR_ERR(pcdev->alloc_ctx); in mx2_camera_probe()
1586 vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx); in mx2_camera_probe()
1602 vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx); in mx2_camera_remove()
Dsh_mobile_ceu_camera.c116 struct vb2_alloc_ctx *alloc_ctx; member
248 alloc_ctxs[0] = pcdev->alloc_ctx; in sh_mobile_ceu_videobuf_setup()
1825 pcdev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in sh_mobile_ceu_probe()
1826 if (IS_ERR(pcdev->alloc_ctx)) { in sh_mobile_ceu_probe()
1827 err = PTR_ERR(pcdev->alloc_ctx); in sh_mobile_ceu_probe()
1959 vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx); in sh_mobile_ceu_probe()
1979 vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx); in sh_mobile_ceu_remove()
/linux-4.1.27/drivers/media/platform/blackfin/
Dbfin_capture.c95 struct vb2_alloc_ctx *alloc_ctx; member
214 alloc_ctxs[0] = bcap_dev->alloc_ctx; in bcap_queue_setup()
806 bcap_dev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in bcap_probe()
807 if (IS_ERR(bcap_dev->alloc_ctx)) { in bcap_probe()
808 ret = PTR_ERR(bcap_dev->alloc_ctx); in bcap_probe()
954 vb2_dma_contig_cleanup_ctx(bcap_dev->alloc_ctx); in bcap_probe()
972 vb2_dma_contig_cleanup_ctx(bcap_dev->alloc_ctx); in bcap_remove()
/linux-4.1.27/drivers/media/platform/xilinx/
Dxilinx-dma.h91 void *alloc_ctx; member
Dxilinx-dma.c325 alloc_ctxs[0] = dma->alloc_ctx; in xvip_dma_queue_setup()
701 dma->alloc_ctx = vb2_dma_contig_init_ctx(dma->xdev->dev); in xvip_dma_init()
702 if (IS_ERR(dma->alloc_ctx)) in xvip_dma_init()
759 if (!IS_ERR_OR_NULL(dma->alloc_ctx)) in xvip_dma_cleanup()
760 vb2_dma_contig_cleanup_ctx(dma->alloc_ctx); in xvip_dma_cleanup()
/linux-4.1.27/drivers/input/touchscreen/
Dsur40.c153 struct vb2_alloc_ctx *alloc_ctx; member
570 sur40->alloc_ctx = vb2_dma_sg_init_ctx(sur40->dev); in sur40_probe()
571 if (IS_ERR(sur40->alloc_ctx)) { in sur40_probe()
616 vb2_dma_sg_cleanup_ctx(sur40->alloc_ctx); in sur40_disconnect()
648 alloc_ctxs[0] = sur40->alloc_ctx; in sur40_queue_setup()
/linux-4.1.27/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.c471 allocators[0] = camif->alloc_ctx; in queue_setup()
/linux-4.1.27/drivers/media/platform/davinci/
Dvpif_capture.h69 struct vb2_alloc_ctx *alloc_ctx; member
Dvpif_display.h78 struct vb2_alloc_ctx *alloc_ctx; member
Dvpbe_display.c256 alloc_ctxs[0] = layer->alloc_ctx; in vpbe_buffer_queue_setup()
1460 disp_dev->dev[i]->alloc_ctx = in vpbe_display_probe()
1462 if (IS_ERR(disp_dev->dev[i]->alloc_ctx)) { in vpbe_display_probe()
1464 err = PTR_ERR(disp_dev->dev[i]->alloc_ctx); in vpbe_display_probe()
1485 vb2_dma_contig_cleanup_ctx(disp_dev->dev[k]->alloc_ctx); in vpbe_display_probe()
1513 vb2_dma_contig_cleanup_ctx(vpbe_display_layer->alloc_ctx); in vpbe_display_remove()
Dvpif_display.c125 alloc_ctxs[0] = common->alloc_ctx; in vpif_buffer_queue_setup()
1193 common->alloc_ctx = vb2_dma_contig_init_ctx(vpif_dev); in vpif_probe_complete()
1194 if (IS_ERR(common->alloc_ctx)) { in vpif_probe_complete()
1196 err = PTR_ERR(common->alloc_ctx); in vpif_probe_complete()
1229 vb2_dma_contig_cleanup_ctx(common->alloc_ctx); in vpif_probe_complete()
1351 vb2_dma_contig_cleanup_ctx(common->alloc_ctx); in vpif_remove()
Dvpif_capture.c134 alloc_ctxs[0] = common->alloc_ctx; in vpif_buffer_queue_setup()
1377 common->alloc_ctx = vb2_dma_contig_init_ctx(vpif_dev); in vpif_probe_complete()
1378 if (IS_ERR(common->alloc_ctx)) { in vpif_probe_complete()
1380 err = PTR_ERR(common->alloc_ctx); in vpif_probe_complete()
1411 vb2_dma_contig_cleanup_ctx(common->alloc_ctx); in vpif_probe_complete()
1545 vb2_dma_contig_cleanup_ctx(common->alloc_ctx); in vpif_remove()
/linux-4.1.27/drivers/media/platform/s5p-g2d/
Dg2d.c116 alloc_ctxs[0] = ctx->dev->alloc_ctx; in g2d_queue_setup()
683 dev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in g2d_probe()
684 if (IS_ERR(dev->alloc_ctx)) { in g2d_probe()
685 ret = PTR_ERR(dev->alloc_ctx); in g2d_probe()
741 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx); in g2d_probe()
762 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx); in g2d_remove()
Dg2d.h28 struct vb2_alloc_ctx *alloc_ctx; member
/linux-4.1.27/include/media/davinci/
Dvpbe_display.h84 struct vb2_alloc_ctx *alloc_ctx; member
/linux-4.1.27/drivers/media/pci/cx88/
Dcx88-mpeg.c732 dev->alloc_ctx = vb2_dma_sg_init_ctx(&pci_dev->dev); in cx8802_probe()
733 if (IS_ERR(dev->alloc_ctx)) { in cx8802_probe()
734 err = PTR_ERR(dev->alloc_ctx); in cx8802_probe()
756 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in cx8802_probe()
804 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in cx8802_remove()
Dcx88-video.c443 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.c123 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.1.27/drivers/media/pci/sta2x11/
Dsta2x11_vip.c144 struct vb2_alloc_ctx *alloc_ctx; member
279 alloc_ctxs[0] = vip->alloc_ctx; in queue_setup()
874 vip->alloc_ctx = vb2_dma_contig_init_ctx(&vip->pdev->dev); in sta2x11_vip_init_buffer()
875 if (IS_ERR(vip->alloc_ctx)) { in sta2x11_vip_init_buffer()
877 return PTR_ERR(vip->alloc_ctx); in sta2x11_vip_init_buffer()
884 vb2_dma_contig_cleanup_ctx(vip->alloc_ctx); in sta2x11_vip_release_buffer()
/linux-4.1.27/drivers/staging/media/davinci_vpfe/
Dvpfe_video.h125 struct vb2_alloc_ctx *alloc_ctx; member
Dvpfe_video.c530 vb2_dma_contig_cleanup_ctx(video->alloc_ctx); in vpfe_release()
1107 alloc_ctxs[0] = video->alloc_ctx; in vpfe_buffer_queue_setup()
1335 video->alloc_ctx = vb2_dma_contig_init_ctx(vpfe_dev->pdev); in vpfe_reqbufs()
1336 if (IS_ERR(video->alloc_ctx)) { in vpfe_reqbufs()
1338 return PTR_ERR(video->alloc_ctx); in vpfe_reqbufs()
/linux-4.1.27/drivers/media/platform/vsp1/
Dvsp1_video.h132 void *alloc_ctx; member
Dvsp1_video.c736 alloc_ctxs[i] = video->alloc_ctx; in vsp1_video_queue_setup()
1174 video->alloc_ctx = vb2_dma_contig_init_ctx(video->vsp1->dev); in vsp1_video_init()
1175 if (IS_ERR(video->alloc_ctx)) { in vsp1_video_init()
1176 ret = PTR_ERR(video->alloc_ctx); in vsp1_video_init()
1205 vb2_dma_contig_cleanup_ctx(video->alloc_ctx); in vsp1_video_init()
1215 vb2_dma_contig_cleanup_ctx(video->alloc_ctx); in vsp1_video_cleanup()
/linux-4.1.27/drivers/media/platform/s5p-jpeg/
Djpeg-core.h127 void *alloc_ctx; member
Djpeg-core.c2146 alloc_ctxs[0] = ctx->jpeg->alloc_ctx; in s5p_jpeg_queue_setup()
2520 jpeg->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in s5p_jpeg_probe()
2521 if (IS_ERR(jpeg->alloc_ctx)) { in s5p_jpeg_probe()
2523 ret = PTR_ERR(jpeg->alloc_ctx); in s5p_jpeg_probe()
2602 vb2_dma_contig_cleanup_ctx(jpeg->alloc_ctx); in s5p_jpeg_probe()
2628 vb2_dma_contig_cleanup_ctx(jpeg->alloc_ctx); in s5p_jpeg_remove()
/linux-4.1.27/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.1.27/drivers/media/platform/am437x/
Dam437x-vpfe.h267 struct vb2_alloc_ctx *alloc_ctx; member
Dam437x-vpfe.c1939 alloc_ctxs[0] = vpfe->alloc_ctx; in vpfe_queue_setup()
2375 vpfe->alloc_ctx = vb2_dma_contig_init_ctx(vpfe->pdev); in vpfe_probe_complete()
2376 if (IS_ERR(vpfe->alloc_ctx)) { in vpfe_probe_complete()
2378 err = PTR_ERR(vpfe->alloc_ctx); in vpfe_probe_complete()
2396 vb2_dma_contig_cleanup_ctx(vpfe->alloc_ctx); in vpfe_probe_complete()
/linux-4.1.27/drivers/staging/media/omap4iss/
Diss_video.h173 struct vb2_alloc_ctx *alloc_ctx; member
Diss_video.c305 alloc_ctxs[0] = video->alloc_ctx; in iss_video_queue_setup()
1068 video->alloc_ctx = vb2_dma_contig_init_ctx(video->iss->dev); in iss_video_open()
1069 if (IS_ERR(video->alloc_ctx)) { in iss_video_open()
1070 ret = PTR_ERR(video->alloc_ctx); in iss_video_open()
/linux-4.1.27/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.1.27/drivers/media/pci/saa7134/
Dsaa7134-core.c1004 dev->alloc_ctx = vb2_dma_sg_init_ctx(&pci_dev->dev); in saa7134_initdev()
1005 if (IS_ERR(dev->alloc_ctx)) { in saa7134_initdev()
1006 err = PTR_ERR(dev->alloc_ctx); in saa7134_initdev()
1116 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in saa7134_initdev()
1183 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in saa7134_finidev()
Dsaa7134-vbi.c155 alloc_ctxs[0] = dev->alloc_ctx; in queue_setup()
Dsaa7134-ts.c130 alloc_ctxs[0] = dev->alloc_ctx; in saa7134_ts_queue_setup()
Dsaa7134.h591 void *alloc_ctx; member
Dsaa7134-video.c921 alloc_ctxs[0] = dev->alloc_ctx; in queue_setup()
/linux-4.1.27/drivers/staging/media/dt3155v4l/
Ddt3155v4l.c233 if (pd->q->alloc_ctx[0]) in dt3155_queue_setup()
238 pd->q->alloc_ctx[0] = ret; in dt3155_queue_setup()
434 if (pd->q->alloc_ctx[0]) in dt3155_release()
435 vb2_dma_contig_cleanup_ctx(pd->q->alloc_ctx[0]); in dt3155_release()
/linux-4.1.27/drivers/media/platform/ti-vpe/
Dvpe.c365 struct vb2_alloc_ctx *alloc_ctx; member
1815 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.1.27/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()
1343 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in cx25821_initdev()
1367 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in cx25821_finidev()
Dcx25821.h251 void *alloc_ctx; member
Dcx25821-video.c156 alloc_ctxs[0] = chan->dev->alloc_ctx; in cx25821_queue_setup()
/linux-4.1.27/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.1.27/drivers/media/platform/coda/
Dcoda.h94 struct vb2_alloc_ctx *alloc_ctx; member
Dcoda-common.c1147 alloc_ctxs[0] = ctx->dev->alloc_ctx; in coda_queue_setup()
1966 dev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev); in coda_fw_callback()
1967 if (IS_ERR(dev->alloc_ctx)) { in coda_fw_callback()
1999 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx); in coda_fw_callback()
2251 if (dev->alloc_ctx) in coda_remove()
2252 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx); in coda_remove()
/linux-4.1.27/drivers/media/pci/cx23885/
Dcx23885-vbi.c135 alloc_ctxs[0] = dev->alloc_ctx; in queue_setup()
Dcx23885-core.c1999 dev->alloc_ctx = vb2_dma_sg_init_ctx(&pci_dev->dev); in cx23885_initdev()
2000 if (IS_ERR(dev->alloc_ctx)) { in cx23885_initdev()
2001 err = PTR_ERR(dev->alloc_ctx); in cx23885_initdev()
2032 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in cx23885_initdev()
2059 vb2_dma_sg_cleanup_ctx(dev->alloc_ctx); in cx23885_finidev()
Dcx23885.h430 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()