Lines Matching refs:gbm
116 struct gbm_bo *HdiGbmBoCreate(struct gbm_device *gbm, uint32_t width, uint32_t height, uint32_t for… in HdiGbmBoCreate() argument
131 bo->gbm = gbm; in HdiGbmBoCreate()
138 ret = drmIoctl(gbm->fd, DRM_IOCTL_MODE_CREATE_DUMB, &dumb); in HdiGbmBoCreate()
152 struct gbm_device *gbm = (struct gbm_device *)calloc(1, sizeof(struct gbm_device)); in HdiGbmCreateDevice() local
153 DISPLAY_CHK_RETURN((gbm == nullptr), nullptr, DISPLAY_LOGE("memory calloc failed")); in HdiGbmCreateDevice()
154 gbm->fd = fd; in HdiGbmCreateDevice()
155 return gbm; in HdiGbmCreateDevice()
158 void HdiGbmDeviceDestroy(struct gbm_device *gbm) in HdiGbmDeviceDestroy() argument
160 free(gbm); in HdiGbmDeviceDestroy()
193 ret = drmIoctl(bo->gbm->fd, DRM_IOCTL_MODE_DESTROY_DUMB, &dumb); in HdiGbmBoDestroy()
201 int ret = drmPrimeHandleToFD(bo->gbm->fd, bo->handle, DRM_CLOEXEC | DRM_RDWR, &fd); in HdiGbmBoGetFd()