Home
last modified time | relevance | path

Searched refs:flink_fd (Results 1 – 3 of 3) sorted by relevance

/external/libdrm/amdgpu/
Damdgpu_device.c107 if ((dev->flink_fd >= 0) && (dev->fd != dev->flink_fd)) in amdgpu_device_free_internal()
108 close(dev->flink_fd); in amdgpu_device_free_internal()
180 dev->flink_fd = fcntl(fd, F_DUPFD_CLOEXEC, 0); in amdgpu_device_initialize()
197 dev->flink_fd = -1; in amdgpu_device_initialize()
215 dev->flink_fd = dev->fd; in amdgpu_device_initialize()
Damdgpu_bo.c198 if (bo->dev->flink_fd != bo->dev->fd) { in amdgpu_bo_export_flink()
202 r = drmPrimeFDToHandle(bo->dev->flink_fd, dma_fd, &handle); in amdgpu_bo_export_flink()
207 fd = bo->dev->flink_fd; in amdgpu_bo_export_flink()
218 if (bo->dev->flink_fd != bo->dev->fd) in amdgpu_bo_export_flink()
219 amdgpu_close_kms_handle(bo->dev->flink_fd, handle); in amdgpu_bo_export_flink()
329 r = drmIoctl(dev->flink_fd, DRM_IOCTL_GEM_OPEN, &open_arg); in amdgpu_bo_import()
336 if (dev->flink_fd != dev->fd) { in amdgpu_bo_import()
337 r = drmPrimeHandleToFD(dev->flink_fd, handle, in amdgpu_bo_import()
345 r = amdgpu_close_kms_handle(dev->flink_fd, in amdgpu_bo_import()
384 amdgpu_close_kms_handle(dev->flink_fd, open_arg.handle); in amdgpu_bo_import()
Damdgpu_internal.h71 int flink_fd; member