/device/soc/rockchip/common/hardware/display/src/display_gralloc/ |
H A D | hi_gbm.c | 122 struct gbm_bo *hdi_gbm_bo_create(struct gbm_device *gbm, uint32_t width, uint32_t height, uint32_t format, in hdi_gbm_bo_create() argument 132 DISPLAY_CHK_RETURN((bo == NULL), NULL, DISPLAY_LOGE("gbm bo create fialed no memery")); in hdi_gbm_bo_create() 136 bo->gbm = gbm; in hdi_gbm_bo_create() 143 ret = drmIoctl(gbm->fd, DRM_IOCTL_MODE_CREATE_DUMB, &dumb); in hdi_gbm_bo_create() 157 struct gbm_device *gbm; in hdi_gbm_create_device() local 158 gbm = (struct gbm_device *)calloc(1, sizeof(struct gbm_device)); in hdi_gbm_create_device() 159 DISPLAY_CHK_RETURN((gbm == NULL), NULL, DISPLAY_LOGE("memory calloc failed")); in hdi_gbm_create_device() 160 gbm->fd = fd; in hdi_gbm_create_device() 161 return gbm; in hdi_gbm_create_device() 164 hdi_gbm_device_destroy(struct gbm_device *gbm) hdi_gbm_device_destroy() argument [all...] |
H A D | hi_gbm.h | 89 void hdi_gbm_device_destroy(struct gbm_device *gbm); 90 struct gbm_bo *hdi_gbm_bo_create(struct gbm_device *gbm, uint32_t width, uint32_t height, uint32_t format,
|
H A D | hi_gbm_internal.h | 31 struct gbm_device *gbm; member
|
/device/soc/rockchip/rk3399/hardware/display/src/display_gralloc/ |
H A D | hi_gbm.c | 112 struct gbm_bo *hdi_gbm_bo_create(struct gbm_device *gbm, uint32_t width, uint32_t height, uint32_t format, in hdi_gbm_bo_create() argument 122 DISPLAY_CHK_RETURN((bo == NULL), NULL, DISPLAY_LOGE("gbm bo create fialed no memery")); in hdi_gbm_bo_create() 126 bo->gbm = gbm; in hdi_gbm_bo_create() 133 ret = drmIoctl(gbm->fd, DRM_IOCTL_MODE_CREATE_DUMB, &dumb); in hdi_gbm_bo_create() 147 struct gbm_device *gbm; in hdi_gbm_create_device() local 148 gbm = (struct gbm_device *)calloc(1, sizeof(struct gbm_device)); in hdi_gbm_create_device() 149 DISPLAY_CHK_RETURN((gbm == NULL), NULL, DISPLAY_LOGE("memory calloc failed")); in hdi_gbm_create_device() 150 gbm->fd = fd; in hdi_gbm_create_device() 151 return gbm; in hdi_gbm_create_device() 154 hdi_gbm_device_destroy(struct gbm_device *gbm) hdi_gbm_device_destroy() argument [all...] |
H A D | hi_gbm.h | 89 void hdi_gbm_device_destroy(struct gbm_device *gbm); 90 struct gbm_bo *hdi_gbm_bo_create(struct gbm_device *gbm, uint32_t width, uint32_t height,
|
H A D | hi_gbm_internal.h | 31 struct gbm_device *gbm; member
|
/device/soc/rockchip/rk3566/hardware/display/src/display_gralloc/ |
H A D | hi_gbm.cpp | 116 struct gbm_bo *hdi_gbm_bo_create(struct gbm_device *gbm, uint32_t width, uint32_t height, uint32_t format, in hdi_gbm_bo_create() argument 127 DISPLAY_CHK_RETURN((bo == nullptr), nullptr, DISPLAY_LOGE("gbm bo create fialed no memery")); in hdi_gbm_bo_create() 131 bo->gbm = gbm; in hdi_gbm_bo_create() 138 ret = drmIoctl(gbm->fd, DRM_IOCTL_MODE_CREATE_DUMB, &dumb); in hdi_gbm_bo_create() 152 struct gbm_device *gbm = (struct gbm_device *)calloc(1, sizeof(struct gbm_device)); in hdi_gbm_create_device() local 153 DISPLAY_CHK_RETURN((gbm == nullptr), nullptr, DISPLAY_LOGE("memory calloc failed")); in hdi_gbm_create_device() 154 gbm->fd = fd; in hdi_gbm_create_device() 155 return gbm; in hdi_gbm_create_device() 158 void hdi_gbm_device_destroy(struct gbm_device *gbm) in hdi_gbm_device_destroy() argument [all...] |
H A D | hi_gbm.h | 88 void hdi_gbm_device_destroy(struct gbm_device *gbm); 89 struct gbm_bo *hdi_gbm_bo_create(struct gbm_device *gbm, uint32_t width, uint32_t height,
|
H A D | hi_gbm_internal.h | 34 struct gbm_device *gbm; member
|
/device/soc/rockchip/rk3568/hardware/display/src/display_gralloc/ |
H A D | hi_gbm.cpp | 116 struct gbm_bo *hdi_gbm_bo_create(struct gbm_device *gbm, uint32_t width, uint32_t height, uint32_t format, in hdi_gbm_bo_create() argument 127 DISPLAY_CHK_RETURN((bo == nullptr), nullptr, DISPLAY_LOGE("gbm bo create fialed no memery")); in hdi_gbm_bo_create() 131 bo->gbm = gbm; in hdi_gbm_bo_create() 138 ret = drmIoctl(gbm->fd, DRM_IOCTL_MODE_CREATE_DUMB, &dumb); in hdi_gbm_bo_create() 152 struct gbm_device *gbm = (struct gbm_device *)calloc(1, sizeof(struct gbm_device)); in hdi_gbm_create_device() local 153 DISPLAY_CHK_RETURN((gbm == nullptr), nullptr, DISPLAY_LOGE("memory calloc failed")); in hdi_gbm_create_device() 154 gbm->fd = fd; in hdi_gbm_create_device() 155 return gbm; in hdi_gbm_create_device() 158 void hdi_gbm_device_destroy(struct gbm_device *gbm) in hdi_gbm_device_destroy() argument [all...] |
H A D | hi_gbm.h | 88 void hdi_gbm_device_destroy(struct gbm_device *gbm); 89 struct gbm_bo *hdi_gbm_bo_create(struct gbm_device *gbm, uint32_t width, uint32_t height,
|
H A D | hi_gbm_internal.h | 34 struct gbm_device *gbm; member
|
/device/soc/rockchip/rk3588/hardware/display/src/display_gralloc/ |
H A D | hi_gbm.cpp | 116 struct gbm_bo *hdi_gbm_bo_create(struct gbm_device *gbm, uint32_t width, uint32_t height, uint32_t format, in hdi_gbm_bo_create() argument 127 DISPLAY_CHK_RETURN((bo == nullptr), nullptr, DISPLAY_LOGE("gbm bo create fialed no memery")); in hdi_gbm_bo_create() 131 bo->gbm = gbm; in hdi_gbm_bo_create() 138 ret = drmIoctl(gbm->fd, DRM_IOCTL_MODE_CREATE_DUMB, &dumb); in hdi_gbm_bo_create() 152 struct gbm_device *gbm = (struct gbm_device *)calloc(1, sizeof(struct gbm_device)); in hdi_gbm_create_device() local 153 DISPLAY_CHK_RETURN((gbm == nullptr), nullptr, DISPLAY_LOGE("memory calloc failed")); in hdi_gbm_create_device() 154 gbm->fd = fd; in hdi_gbm_create_device() 155 return gbm; in hdi_gbm_create_device() 158 void hdi_gbm_device_destroy(struct gbm_device *gbm) in hdi_gbm_device_destroy() argument [all...] |
H A D | hi_gbm.h | 88 void hdi_gbm_device_destroy(struct gbm_device *gbm);
89 struct gbm_bo *hdi_gbm_bo_create(struct gbm_device *gbm, uint32_t width, uint32_t height,
|
H A D | hi_gbm_internal.h | 34 struct gbm_device *gbm;
member
|
/device/soc/rockchip/common/hardware/gpu/include/ |
H A D | gbm.h | 40 * \file gbm.h 227 int gbm_device_get_fd(struct gbm_device *gbm); 229 const char *gbm_device_get_backend_name(struct gbm_device *gbm); 231 int gbm_device_is_format_supported(struct gbm_device *gbm, uint32_t format, uint32_t usage); 233 int gbm_device_get_format_modifier_plane_count(struct gbm_device *gbm, uint32_t format, uint64_t modifier); 235 void gbm_device_destroy(struct gbm_device *gbm); 239 struct gbm_bo *gbm_bo_create(struct gbm_device *gbm, uint32_t width, uint32_t height, uint32_t format, uint32_t flags); 241 struct gbm_bo *gbm_bo_create_with_modifiers(struct gbm_device *gbm, uint32_t width, uint32_t height, uint32_t format, 268 struct gbm_bo *bm_bo_import(struct gbm_device *gbm, uint32_t type, void *buffer, uint32_t usage); 336 struct gbm_iSurface *gbm_iSurface_create(struct gbm_device *gbm, uint32_ [all...] |
/device/soc/rockchip/rk3568/hardware/gpu/include/ |
H A D | gbm.h | 41 * \file gbm.h 230 int gbm_device_get_fd(struct gbm_device *gbm); 232 const char *gbm_device_get_backend_name(struct gbm_device *gbm); 234 int gbm_device_is_format_supported(struct gbm_device *gbm, uint32_t format, uint32_t usage); 236 int gbm_device_get_format_modifier_plane_count(struct gbm_device *gbm, uint32_t format, uint64_t modifier); 238 void gbm_device_destroy(struct gbm_device *gbm); 242 struct gbm_bo *gbm_bo_create(struct gbm_device *gbm, uint32_t width, uint32_t height, uint32_t format, uint32_t flags); 244 struct gbm_bo *gbm_bo_create_with_modifiers(struct gbm_device *gbm, 275 struct gbm_bo *bm_bo_import(struct gbm_device *gbm, uint32_t type, void *buffer, uint32_t usage); 344 struct gbm_iSurface *gbm_iSurface_create(struct gbm_device *gbm, [all...] |