Home | History | Annotate | Download | only in main

Lines Matching defs:gbm

40 #include "gbm.h"
51 /** Returns the file description for the gbm device
56 gbm_device_get_fd(struct gbm_device *gbm)
58 return gbm->fd;
62 /** Get the backend name for the given gbm device
68 gbm_device_get_backend_name(struct gbm_device *gbm)
70 return gbm->name;
75 * \param gbm The created buffer manager
86 gbm_device_is_format_supported(struct gbm_device *gbm,
89 return gbm->is_format_supported(gbm, format, usage);
92 /** Destroy the gbm device and free all resources associated with it.
94 * \param gbm The device created using gbm_create_device()
97 gbm_device_destroy(struct gbm_device *gbm)
99 gbm->refcount--;
100 if (gbm->refcount == 0)
101 gbm->destroy(gbm);
107 struct gbm_device *gbm = NULL;
121 gbm = devices[i];
122 gbm->refcount++;
127 return gbm;
130 /** Create a gbm device for allocating buffers
145 struct gbm_device *gbm = NULL;
156 gbm = _gbm_create_device(fd);
157 if (gbm == NULL)
160 gbm->dummy = gbm_create_device;
161 gbm->stat = buf;
162 gbm->refcount = 1;
165 devices[device_num++] = gbm;
167 return gbm;
250 return bo->gbm->bo_write(bo, buf, count);
253 /** Get the gbm device used to create the buffer object
256 * \return Returns the gbm device with which the buffer object was created
261 return bo->gbm;
305 bo->gbm->bo_destroy(bo);
311 * \param gbm The gbm device returned from gbm_create_device()
325 gbm_bo_create(struct gbm_device *gbm,
336 return gbm->bo_create(gbm, width, height, format, usage);
340 * Create a gbm buffer object from an foreign object
342 * This function imports a foreign object and creates a new gbm bo for it.
350 * The the gbm bo shares the underlying pixels but its life-time is
353 * \param gbm The gbm device returned from gbm_create_device()
354 * \param gbm The type of object we're importing
355 * \param gbm Pointer to the external object
364 gbm_bo_import(struct gbm_device *gbm,
367 return gbm->bo_import(gbm, type, buffer, usage);
373 * \param gbm The gbm device returned from gbm_create_device()
385 gbm_surface_create(struct gbm_device *gbm,
389 return gbm->surface_create(gbm, width, height, format, flags);
404 surf->gbm->surface_destroy(surf);
431 return surf->gbm->surface_lock_front_buffer(surf);
437 * Returns the underlying buffer to the gbm surface. Releasing a bo
449 surf->gbm->surface_release_buffer(surf, bo);
456 * available for rendering. Initially, a gbm surface will have a free
471 return surf->gbm->surface_has_free_buffers(surf);