Lines Matching refs:gbm
156 static struct gbm_bo *gbm_import(struct gbm_device *gbm, in gbm_import() argument
186 bo = gbm_bo_import(gbm, GBM_BO_IMPORT_FD_MODIFIER, &data, 0); in gbm_import()
190 bo = gbm_bo_import(gbm, GBM_BO_IMPORT_FD, &data, 0); in gbm_import()
196 static struct gbm_bo *gbm_alloc(struct gbm_device *gbm, in gbm_alloc() argument
225 bo = gbm_bo_create(gbm, width, height, format, usage); in gbm_alloc()
301 void gbm_dev_destroy(struct gbm_device *gbm) in gbm_dev_destroy() argument
303 int fd = gbm_device_get_fd(gbm); in gbm_dev_destroy()
305 gbm_device_destroy(gbm); in gbm_dev_destroy()
311 struct gbm_device *gbm; in gbm_dev_create() local
322 gbm = gbm_create_device(fd); in gbm_dev_create()
323 if (!gbm) { in gbm_dev_create()
328 return gbm; in gbm_dev_create()
334 int gralloc_gbm_handle_register(buffer_handle_t _handle, struct gbm_device *gbm) in gralloc_gbm_handle_register() argument
344 bo = gbm_import(gbm, _handle); in gralloc_gbm_handle_register()
366 buffer_handle_t gralloc_gbm_bo_create(struct gbm_device *gbm, in gralloc_gbm_bo_create() argument
376 bo = gbm_alloc(gbm, handle); in gralloc_gbm_bo_create()