Home
last modified time | relevance | path

Searched refs:prime_fd (Results 1 – 25 of 25) sorted by relevance

/external/libkmsxx/kms++/src/
Ddumbframebuffer.cpp65 plane.prime_fd = -1; in Create()
97 if (plane.prime_fd >= 0) in Destroy()
98 ::close(plane.prime_fd); in Destroy()
125 int DumbFramebuffer::prime_fd(unsigned int plane) in prime_fd() function in kms::DumbFramebuffer
127 if (m_planes[plane].prime_fd >= 0) in prime_fd()
128 return m_planes[plane].prime_fd; in prime_fd()
131 DRM_CLOEXEC | O_RDWR, &m_planes[plane].prime_fd); in prime_fd()
135 return m_planes[plane].prime_fd; in prime_fd()
Dextframebuffer.cpp31 plane.prime_fd = 0; in ExtFramebuffer()
62 plane.prime_fd = fds[i]; in ExtFramebuffer()
93 if (!p.prime_fd) in map()
100 p.prime_fd, 0); in map()
107 int ExtFramebuffer::prime_fd(unsigned plane) in prime_fd() function in kms::ExtFramebuffer
111 if (!p.prime_fd) in prime_fd()
114 return p.prime_fd; in prime_fd()
/external/libkmsxx/kms++/src/omap/
Domapframebuffer.cpp119 plane.prime_fd = -1; in Create()
149 if (plane.prime_fd >= 0) in Destroy()
150 ::close(plane.prime_fd); in Destroy()
168 int OmapFramebuffer::prime_fd(unsigned int plane) in prime_fd() function in kms::OmapFramebuffer
172 if (p.prime_fd >= 0) in prime_fd()
173 return p.prime_fd; in prime_fd()
179 p.prime_fd = fd; in prime_fd()
/external/autotest/client/site_tests/graphics_Gbm/src/
Dgbmtest.c565 int prime_fd; in test_export() local
570 prime_fd = gbm_bo_get_fd(bo); in test_export()
571 CHECK(prime_fd > 0); in test_export()
572 close(prime_fd); in test_export()
625 int prime_fd; in test_import_dmabuf() local
630 prime_fd = gbm_bo_get_fd(bo1); in test_import_dmabuf()
631 CHECK(prime_fd >= 0); in test_import_dmabuf()
633 fd_data.fd = prime_fd; in test_import_dmabuf()
648 close(prime_fd); in test_import_dmabuf()
769 int x, y, ret, prime_fd; in test_dmabuf_map() local
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_bufmgr.h336 int brw_bo_gem_export_to_prime(struct brw_bo *bo, int *prime_fd);
338 int prime_fd);
340 int prime_fd,
Dbrw_bufmgr.c1111 brw_bo_gem_create_from_prime_internal(struct brw_bufmgr *bufmgr, int prime_fd, in brw_bo_gem_create_from_prime_internal() argument
1118 int ret = drmPrimeFDToHandle(bufmgr->fd, prime_fd, &handle); in brw_bo_gem_create_from_prime_internal()
1148 ret = lseek(prime_fd, 0, SEEK_END); in brw_bo_gem_create_from_prime_internal()
1184 brw_bo_gem_create_from_prime(struct brw_bufmgr *bufmgr, int prime_fd) in brw_bo_gem_create_from_prime() argument
1186 return brw_bo_gem_create_from_prime_internal(bufmgr, prime_fd, -1, 0); in brw_bo_gem_create_from_prime()
1190 brw_bo_gem_create_from_prime_tiled(struct brw_bufmgr *bufmgr, int prime_fd, in brw_bo_gem_create_from_prime_tiled() argument
1197 return brw_bo_gem_create_from_prime_internal(bufmgr, prime_fd, in brw_bo_gem_create_from_prime_tiled()
1217 brw_bo_gem_export_to_prime(struct brw_bo *bo, int *prime_fd) in brw_bo_gem_export_to_prime() argument
1224 DRM_CLOEXEC, prime_fd) != 0) in brw_bo_gem_export_to_prime()
/external/libkmsxx/kms++/inc/kms++/
Ddumbframebuffer.h27 int prime_fd(unsigned plane);
32 int prime_fd; member
Dextframebuffer.h29 int prime_fd(unsigned plane);
34 int prime_fd; member
Dframebuffer.h22 virtual int prime_fd(unsigned plane) { throw std::runtime_error("not implemented"); } in prime_fd() function
/external/libdrm/android/
Dgralloc_handle.h51 int prime_fd; member
106 handle->prime_fd = -1; in gralloc_handle_create()
/external/minigbm/
Ddri.c73 int prime_fd, ret; in import_into_minigbm() local
75 if (!dri->image_extension->queryImage(bo->priv, __DRI_IMAGE_ATTRIB_FD, &prime_fd)) in import_into_minigbm()
78 ret = drmPrimeFDToHandle(bo->drv->fd, prime_fd, &handle); in import_into_minigbm()
85 close(prime_fd); in import_into_minigbm()
/external/libkmsxx/kms++/inc/kms++/omap/
Domapframebuffer.h39 int prime_fd(unsigned plane);
47 int prime_fd; member
/external/libdrm/etnaviv/
Detnaviv_bo.c290 int ret, prime_fd; in etna_bo_dmabuf() local
293 &prime_fd); in etna_bo_dmabuf()
301 return prime_fd; in etna_bo_dmabuf()
/external/libdrm/freedreno/
Dfreedreno_bo.c284 int ret, prime_fd; in fd_bo_dmabuf() local
287 &prime_fd); in fd_bo_dmabuf()
295 return prime_fd; in fd_bo_dmabuf()
/external/drm_hwcomposer/
Dplatformdrmgeneric.cpp110 int ret = drmPrimeFDToHandle(drm_->fd(), gr_handle->prime_fd, &gem_handle); in ImportBuffer()
112 ALOGE("failed to import prime fd %d ret=%d", gr_handle->prime_fd, ret); in ImportBuffer()
/external/libdrm/nouveau/
Dnouveau.h150 int nouveau_bo_prime_handle_ref(struct nouveau_device *, int prime_fd,
152 int nouveau_bo_set_prime(struct nouveau_bo *, int *prime_fd);
Dnouveau.c790 nouveau_bo_prime_handle_ref(struct nouveau_device *dev, int prime_fd, in nouveau_bo_prime_handle_ref() argument
801 ret = drmPrimeFDToHandle(drm->fd, prime_fd, &handle); in nouveau_bo_prime_handle_ref()
810 nouveau_bo_set_prime(struct nouveau_bo *bo, int *prime_fd) in nouveau_bo_set_prime() argument
816 ret = drmPrimeHandleToFD(drm->fd, nvbo->base.handle, DRM_CLOEXEC, prime_fd); in nouveau_bo_set_prime()
/external/libkmsxx/py/pykms/
Dpykmsomap.cpp38 .def("fd", &OmapFramebuffer::prime_fd) in init_pykmsomap()
Dpykmsbase.cpp161 .def("fd", &DumbFramebuffer::prime_fd) in init_pykmsbase()
/external/libdrm/intel/
Dintel_bufmgr.h232 int drm_intel_bo_gem_export_to_prime(drm_intel_bo *bo, int *prime_fd);
234 int prime_fd, int size);
Dintel_bufmgr_gem.c2631 drm_intel_bo_gem_create_from_prime(drm_intel_bufmgr *bufmgr, int prime_fd, int size) in drm_intel_bo_gem_create_from_prime() argument
2640 ret = drmPrimeFDToHandle(bufmgr_gem->fd, prime_fd, &handle); in drm_intel_bo_gem_create_from_prime()
2671 ret = lseek(prime_fd, 0, SEEK_END); in drm_intel_bo_gem_create_from_prime()
2714 drm_intel_bo_gem_export_to_prime(drm_intel_bo *bo, int *prime_fd) in drm_intel_bo_gem_export_to_prime() argument
2720 DRM_CLOEXEC, prime_fd) != 0) in drm_intel_bo_gem_export_to_prime()
/external/libkmsxx/utils/
Dkmscapture.cpp183 v4lbuf.m.fd = fb->prime_fd(0); in CameraPipeline()
262 v4l2buf.m.fd = m_fb[m_prev_fb_index]->prime_fd(0); in show_next_frame()
/external/libkmsxx/kms++util/src/
Dvideodevice.cpp128 planes[i].m.fd = fb->prime_fd(i); in v4l2_queue_dmabuf()
136 buf.m.fd = fb->prime_fd(0); in v4l2_queue_dmabuf()
/external/libdrm/
Dxf86drm.h780 extern int drmPrimeHandleToFD(int fd, uint32_t handle, uint32_t flags, int *prime_fd);
781 extern int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle);
Dxf86drm.c2786 int drmPrimeHandleToFD(int fd, uint32_t handle, uint32_t flags, int *prime_fd) in drmPrimeHandleToFD() argument
2799 *prime_fd = args.fd; in drmPrimeHandleToFD()
2803 int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle) in drmPrimeFDToHandle() argument
2809 args.fd = prime_fd; in drmPrimeFDToHandle()