Home
last modified time | relevance | path

Searched refs:gbm (Results 1 - 17 of 17) sorted by relevance

/device/soc/rockchip/common/hardware/display/src/display_gralloc/
H A Dhi_gbm.c122 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 Dhi_gbm.h89 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 Dhi_gbm_internal.h31 struct gbm_device *gbm; member
/device/soc/rockchip/rk3399/hardware/display/src/display_gralloc/
H A Dhi_gbm.c112 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 Dhi_gbm.h89 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 Dhi_gbm_internal.h31 struct gbm_device *gbm; member
/device/soc/rockchip/rk3566/hardware/display/src/display_gralloc/
H A Dhi_gbm.cpp116 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 Dhi_gbm.h88 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 Dhi_gbm_internal.h34 struct gbm_device *gbm; member
/device/soc/rockchip/rk3568/hardware/display/src/display_gralloc/
H A Dhi_gbm.cpp116 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 Dhi_gbm.h88 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 Dhi_gbm_internal.h34 struct gbm_device *gbm; member
/device/soc/rockchip/rk3588/hardware/display/src/display_gralloc/
H A Dhi_gbm.cpp116 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 Dhi_gbm.h88 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 Dhi_gbm_internal.h34 struct gbm_device *gbm; member
/device/soc/rockchip/common/hardware/gpu/include/
H A Dgbm.h40 * \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 Dgbm.h41 * \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...]

Completed in 6 milliseconds