Home
last modified time | relevance | path

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

/external/drm_gralloc/
Dgralloc_drm_rockchip.c79 if (handle->prime_fd >= 0) { in drm_gem_rockchip_alloc()
80 ret = drmPrimeFDToHandle(info->fd, handle->prime_fd, in drm_gem_rockchip_alloc()
85 handle->prime_fd, ret); in drm_gem_rockchip_alloc()
89 ALOGV("Got handle %d for fd %d\n", gem_handle, handle->prime_fd); in drm_gem_rockchip_alloc()
112 &handle->prime_fd); in drm_gem_rockchip_alloc()
113 ALOGV("Got fd %d for handle %d\n", handle->prime_fd, gem_handle); in drm_gem_rockchip_alloc()
142 if (bo->handle && bo->handle->prime_fd) in drm_gem_rockchip_free()
143 close(bo->handle->prime_fd); in drm_gem_rockchip_free()
Dgralloc_drm.cpp172 handle->prime_fd); in validate_handle()
174 if (handle->name || handle->prime_fd >= 0) in validate_handle()
238 handle->prime_fd = -1; in create_bo_handle()
Dgralloc_drm_handle.h40 int prime_fd; member
/external/autotest/client/site_tests/graphics_Gbm/src/
Dgbmtest.c423 int prime_fd; in test_export() local
428 prime_fd = gbm_bo_get_fd(bo); in test_export()
429 CHECK(prime_fd > 0); in test_export()
430 close(prime_fd); in test_export()
/external/drm_hwcomposer/
Dplatformdrmgeneric.cpp100 int ret = drmPrimeFDToHandle(drm_->fd(), gr_handle->prime_fd, &gem_handle); in ImportBuffer()
102 ALOGE("failed to import prime fd %d ret=%d", gr_handle->prime_fd, ret); in ImportBuffer()
/external/libdrm/freedreno/
Dfreedreno_bo.c384 int ret, prime_fd; in fd_bo_dmabuf() local
387 &prime_fd); in fd_bo_dmabuf()
395 return prime_fd; in fd_bo_dmabuf()
/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.c794 nouveau_bo_prime_handle_ref(struct nouveau_device *dev, int prime_fd, in nouveau_bo_prime_handle_ref() argument
805 ret = drmPrimeFDToHandle(drm->fd, prime_fd, &handle); in nouveau_bo_prime_handle_ref()
814 nouveau_bo_set_prime(struct nouveau_bo *bo, int *prime_fd) in nouveau_bo_set_prime() argument
820 ret = drmPrimeHandleToFD(drm->fd, nvbo->base.handle, DRM_CLOEXEC, prime_fd); in nouveau_bo_set_prime()
/external/libdrm/intel/
Dintel_bufmgr.h215 int drm_intel_bo_gem_export_to_prime(drm_intel_bo *bo, int *prime_fd);
217 int prime_fd, int size);
Dintel_bufmgr_gem.c2587 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
2597 ret = drmPrimeFDToHandle(bufmgr_gem->fd, prime_fd, &handle); in drm_intel_bo_gem_create_from_prime()
2630 ret = lseek(prime_fd, 0, SEEK_END); in drm_intel_bo_gem_create_from_prime()
2674 drm_intel_bo_gem_export_to_prime(drm_intel_bo *bo, int *prime_fd) in drm_intel_bo_gem_export_to_prime() argument
2685 DRM_CLOEXEC, prime_fd) != 0) in drm_intel_bo_gem_export_to_prime()
/external/libdrm/
Dxf86drm.h758 extern int drmPrimeHandleToFD(int fd, uint32_t handle, uint32_t flags, int *prime_fd);
759 extern int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle);
Dxf86drm.c2731 int drmPrimeHandleToFD(int fd, uint32_t handle, uint32_t flags, int *prime_fd) in drmPrimeHandleToFD() argument
2744 *prime_fd = args.fd; in drmPrimeHandleToFD()
2748 int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle) in drmPrimeFDToHandle() argument
2754 args.fd = prime_fd; in drmPrimeFDToHandle()