Lines Matching refs:export
126 /** File descriptor associated with a handle export. */
616 list_for_each_entry_safe(struct bo_export, export, &bo->exports, link) {
617 struct drm_gem_close close = { .handle = export->gem_handle };
618 intel_ioctl(export->drm_fd, DRM_IOCTL_GEM_CLOSE, &close);
620 list_del(&export->link);
621 free(export);
1415 /* Only add the new GEM handle to the list of export if it belongs to a
1429 struct bo_export *export = calloc(1, sizeof(*export));
1430 if (!export)
1433 export->drm_fd = drm_fd;
1438 free(export);
1443 err = drmPrimeFDToHandle(drm_fd, dmabuf_fd, &export->gem_handle);
1447 free(export);
1458 assert(iter->gem_handle == export->gem_handle);
1459 free(export);
1460 export = iter;
1465 list_addtail(&export->link, &bo->exports);
1469 *out_handle = export->gem_handle;