Home
last modified time | relevance | path

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

/third_party/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.c190 if (bo->dev->flink_fd != bo->dev->fd) { in amdgpu_bo_export_flink()
194 r = drmPrimeFDToHandle(bo->dev->flink_fd, dma_fd, &handle); in amdgpu_bo_export_flink()
199 fd = bo->dev->flink_fd; in amdgpu_bo_export_flink()
210 if (bo->dev->flink_fd != bo->dev->fd) in amdgpu_bo_export_flink()
211 drmCloseBufferHandle(bo->dev->flink_fd, handle); in amdgpu_bo_export_flink()
321 r = drmIoctl(dev->flink_fd, DRM_IOCTL_GEM_OPEN, &open_arg); in amdgpu_bo_import()
328 if (dev->flink_fd != dev->fd) { in amdgpu_bo_import()
329 r = drmPrimeHandleToFD(dev->flink_fd, handle, in amdgpu_bo_import()
337 r = drmCloseBufferHandle(dev->flink_fd, in amdgpu_bo_import()
376 drmCloseBufferHandle(dev->flink_fd, open_arg.handle); in amdgpu_bo_import()
Damdgpu_internal.h71 int flink_fd; member