Home
last modified time | relevance | path

Searched refs:drm_fd (Results 1 – 25 of 29) sorted by relevance

12

/OK3568_Linux_fs/external/linux-rga/samples/im2d_slt/sources/
H A Ddrm_alloc.cpp37 static int drm_fd = -1; variable
53 int drm_fd = -1; in drm_init() local
55 drm_fd = open(card, flag); in drm_init()
56 if (drm_fd < 0) in drm_init()
62 return drm_fd; in drm_init()
65 static void drm_deinit(int drm_fd) in drm_deinit() argument
67 if (drm_fd > 0) in drm_deinit()
69 close(drm_fd); in drm_deinit()
85 if ((drm_fd < 0) || (drmIoctl_func == NULL)) { in drm_buf_alloc()
96 ret = drmIoctl_func(drm_fd, DRM_IOCTL_MODE_CREATE_DUMB, &alloc_arg); in drm_buf_alloc()
[all …]
/OK3568_Linux_fs/external/linux-rga/samples/utils/allocator/
H A Ddrm_alloc.cpp37 static int drm_fd = -1; variable
53 int drm_fd = -1; in drm_init() local
55 drm_fd = open(card, flag); in drm_init()
56 if (drm_fd < 0) in drm_init()
61 return drm_fd; in drm_init()
64 static void drm_deinit(int drm_fd) in drm_deinit() argument
66 if (drm_fd > 0) in drm_deinit()
68 close(drm_fd); in drm_deinit()
84 if ((drm_fd < 0) || (drmIoctl_func == NULL)) { in drm_buf_alloc()
95 ret = drmIoctl_func(drm_fd, DRM_IOCTL_MODE_CREATE_DUMB, &alloc_arg); in drm_buf_alloc()
[all …]
/OK3568_Linux_fs/external/rk_pcba_test/pcba_minui/minui/
H A Dgraphics_drm.c48 static int drm_fd = -1; variable
50 static void drm_disable_crtc(int drm_fd, drmModeCrtc *crtc) { in drm_disable_crtc() argument
52 drmModeSetCrtc(drm_fd, crtc->crtc_id, in drm_disable_crtc()
61 static void drm_enable_crtc(int drm_fd, drmModeCrtc *crtc, in drm_enable_crtc() argument
65 ret = drmModeSetCrtc(drm_fd, crtc->crtc_id, in drm_enable_crtc()
78 drm_disable_crtc(drm_fd, main_monitor_crtc); in drm_blank()
80 drm_enable_crtc(drm_fd, main_monitor_crtc, in drm_blank()
96 ret = drmModeRmFB(drm_fd, surface->fb_id); in drm_destroy_surface()
105 ret = drmIoctl(drm_fd, DRM_IOCTL_GEM_CLOSE, &gem_close); in drm_destroy_surface()
158 ret = drmIoctl(drm_fd, DRM_IOCTL_MODE_CREATE_DUMB, &create_dumb); in drm_create_surface()
[all …]
/OK3568_Linux_fs/external/recovery/minui/
H A Dgraphics_drm.c49 static int drm_fd = -1; variable
51 static void drm_disable_crtc(int drm_fd, drmModeCrtc *crtc) in drm_disable_crtc() argument
54 drmModeSetCrtc(drm_fd, crtc->crtc_id, in drm_disable_crtc()
63 static void drm_enable_crtc(int drm_fd, drmModeCrtc *crtc, in drm_enable_crtc() argument
68 ret = drmModeSetCrtc(drm_fd, crtc->crtc_id, in drm_enable_crtc()
82 drm_disable_crtc(drm_fd, main_monitor_crtc); in drm_blank()
84 drm_enable_crtc(drm_fd, main_monitor_crtc, in drm_blank()
101 ret = drmModeRmFB(drm_fd, surface->fb_id); in drm_destroy_surface()
110 ret = drmIoctl(drm_fd, DRM_IOCTL_GEM_CLOSE, &gem_close); in drm_destroy_surface()
165 ret = drmIoctl(drm_fd, DRM_IOCTL_MODE_CREATE_DUMB, &create_dumb); in drm_create_surface()
[all …]
/OK3568_Linux_fs/external/linux-rga/core/
H A DRockchipRga.cpp144 int RockchipRga::RkRgaAllocBuffer(int drm_fd, bo_t *bo_info, int width, in RkRgaAllocBuffer() argument
155 ret = local_drmIoctl(drm_fd, DRM_IOCTL_MODE_CREATE_DUMB, &arg); in RkRgaAllocBuffer()
168 int RockchipRga::RkRgaFreeBuffer(int drm_fd, bo_t *bo_info) { in RkRgaFreeBuffer() argument
176 ret = local_drmIoctl(drm_fd, DRM_IOCTL_MODE_DESTROY_DUMB, &arg); in RkRgaFreeBuffer()
190 int drm_fd; in RkRgaGetAllocBufferExt() local
197 drm_fd = open(card, flag); in RkRgaGetAllocBufferExt()
198 if (drm_fd < 0) { in RkRgaGetAllocBufferExt()
202 ret = RkRgaAllocBuffer(drm_fd, bo_info, width, height, bpp, flags); in RkRgaGetAllocBufferExt()
204 close(drm_fd); in RkRgaGetAllocBufferExt()
207 bo_info->fd = drm_fd; in RkRgaGetAllocBufferExt()
/OK3568_Linux_fs/external/rknpu2/examples/RV1106_RV1103/rknn_yolov5_demo/include/
H A Ddrm_func.h44 void* drm_buf_alloc(drm_context *drm_ctx,int drm_fd, int TexWidth, int TexHeight,int bpp,int *fd,un…
46 int drm_buf_destroy(drm_context *drm_ctx,int drm_fd,int buf_fd, int handle,void *drm_buf,size_t siz…
48 void drm_deinit(drm_context *drm_ctx, int drm_fd);
/OK3568_Linux_fs/external/rknpu2/examples/rknn_yolov5_demo/include/
H A Ddrm_func.h44 void* drm_buf_alloc(drm_context *drm_ctx,int drm_fd, int TexWidth, int TexHeight,int bpp,int *fd,un…
46 int drm_buf_destroy(drm_context *drm_ctx,int drm_fd,int buf_fd, int handle,void *drm_buf,size_t siz…
48 void drm_deinit(drm_context *drm_ctx, int drm_fd);
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkisp_demo/demo/include/
H A DRockchipRga.h49 int RkRgaAllocBuffer(int drm_fd /* input */, bo_t *bo_info,
51 int RkRgaFreeBuffer(int drm_fd /* input */, bo_t *bo_info);
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkisp_demo/demo/
H A Drkdrm_display.c264 if (dev->drm_fd < 0 || !dev->dpms_prop) in drmSetDpmsMode()
270 ret = drmModeConnectorSetProperty(dev->drm_fd, connector_id, dpms_prop_id, dpms_mode); in drmSetDpmsMode()
501 dev->drm_fd = fd; in drmInit()
605 if (dev->drm_fd > 0) in drmDeinit()
606 drmClose(dev->drm_fd); in drmDeinit()
622 if (dev->drm_fd < 0 || !buffer) { in drmCommit()
659 ret = drmModeAtomicCommit(dev->drm_fd, req, flags, NULL); in drmCommit()
H A Drkdrm_display.h82 int drm_fd; member
H A Ddisplay.c83 ret = drmGetBuffer(disp->dev.drm_fd, disp->width, disp->height, disp->fmt, &disp->buf[i]); in drm_display_init()
167 drmPutBuffer(disp->dev.drm_fd, &disp->buf[i]); in drm_display_exit()
H A Drkisp_demo.cpp178 int drm_fd = drmOpen("rockchip", NULL); in init_ispfec_bufs() local
179 if (drm_fd < 0) { in init_ispfec_bufs()
187 ret = alloc_drm_buffer(drm_fd, mesh_size * 2, 1, 8, &g_drm_buf_xint); in init_ispfec_bufs()
192 ret = alloc_drm_buffer(drm_fd, mesh_size, 1, 8, &g_drm_buf_xfra); in init_ispfec_bufs()
197 ret = alloc_drm_buffer(drm_fd, mesh_size * 2, 1, 8, &g_drm_buf_yint); in init_ispfec_bufs()
202 ret = alloc_drm_buffer(drm_fd, mesh_size, 1, 8, &g_drm_buf_yfra); in init_ispfec_bufs()
207 ret = alloc_drm_buffer(drm_fd, cfg->out_width, cfg->out_height * 3 / 2, 8, &g_drm_buf_pic_out); in init_ispfec_bufs()
231 free_drm_buffer(drm_fd, &g_drm_buf_pic_out); in init_ispfec_bufs()
233 free_drm_buffer(drm_fd, &g_drm_buf_yfra); in init_ispfec_bufs()
235 free_drm_buffer(drm_fd, &g_drm_buf_yfra); in init_ispfec_bufs()
[all …]
/OK3568_Linux_fs/external/linux-rga/include/
H A DRockchipRga.h62 int RkRgaAllocBuffer(int drm_fd /* input */, bo_t *bo_info,
64 int RkRgaFreeBuffer(int drm_fd /* input */, bo_t *bo_info);
/OK3568_Linux_fs/external/rknpu2/examples/rknn_yolov5_android_apk_demo/app/src/main/cpp/rga/
H A DRockchipRga.h62 int RkRgaAllocBuffer(int drm_fd /* input */, bo_t *bo_info,
64 int RkRgaFreeBuffer(int drm_fd /* input */, bo_t *bo_info);
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/rga/RK3588/include/
H A DRockchipRga.h62 int RkRgaAllocBuffer(int drm_fd /* input */, bo_t *bo_info,
64 int RkRgaFreeBuffer(int drm_fd /* input */, bo_t *bo_info);
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/rga/RK356X/include/
H A DRockchipRga.h62 int RkRgaAllocBuffer(int drm_fd /* input */, bo_t *bo_info,
64 int RkRgaFreeBuffer(int drm_fd /* input */, bo_t *bo_info);
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/rga/RV110X/include/
H A DRockchipRga.h62 int RkRgaAllocBuffer(int drm_fd /* input */, bo_t *bo_info,
64 int RkRgaFreeBuffer(int drm_fd /* input */, bo_t *bo_info);
/OK3568_Linux_fs/yocto/meta-rockchip/recipes-graphics/wayland/weston_10.0.2/
H A D0022-HACK-pixman-renderer-Support-mali-egl-client-and-egl.patch72 + int drm_fd;
317 + close(pr->drm_fd);
432 + pr->drm_fd = open("/dev/dri/card0", O_RDWR | O_CLOEXEC);
433 + if (pr->drm_fd < 0) {
438 + pr->gbm = gbm_create_device(pr->drm_fd);
486 + close(pr->drm_fd);
487 + pr->drm_fd = -1;
/OK3568_Linux_fs/buildroot/package/vkmark/
H A D0001-kms-Use-Nth-primary-plane-for-Nth-CRTC.patch27 + if (!is_plane_primary(drm_fd, plane))
38 - if (is_plane_primary(drm_fd, ret_plane))
H A D0002-kms-Drop-dependency-on-vkCreateDmaBufImageINTEL.patch72 - drm_fd, vk_extent.width, vk_extent.height,
84 - [this] (auto& fb) { drmModeRmFB(drm_fd, fb); }});
248 + drm_fd, vk_extent.width, vk_extent.height,
258 + [this] (auto& fb) { drmModeRmFB(drm_fd, fb); }});
/OK3568_Linux_fs/yocto/meta-rockchip/recipes-graphics/wayland/weston_11.0.1/
H A D0025-HACK-pixman-renderer-Support-mali-egl-client-and-egl.patch72 + int drm_fd;
379 + close(pr->drm_fd);
495 + pr->drm_fd = open("/dev/dri/card0", O_RDWR | O_CLOEXEC);
496 + if (pr->drm_fd < 0) {
501 + pr->gbm = gbm_create_device(pr->drm_fd);
549 + close(pr->drm_fd);
550 + pr->drm_fd = -1;
/OK3568_Linux_fs/buildroot/package/weston/
H A D0025-HACK-pixman-renderer-Support-mali-egl-client-and-egl.patch72 + int drm_fd;
379 + close(pr->drm_fd);
495 + pr->drm_fd = open("/dev/dri/card0", O_RDWR | O_CLOEXEC);
496 + if (pr->drm_fd < 0) {
501 + pr->gbm = gbm_create_device(pr->drm_fd);
549 + close(pr->drm_fd);
550 + pr->drm_fd = -1;
/OK3568_Linux_fs/external/xserver/hw/xwayland/
H A Dxwayland-glamor-gbm.c53 int drm_fd; member
370 if (xwl_gbm->drm_fd) in xwl_glamor_gbm_cleanup()
371 close(xwl_gbm->drm_fd); in xwl_glamor_gbm_cleanup()
753 xwl_gbm->drm_fd = open(xwl_gbm->device_name, O_RDWR | O_CLOEXEC); in xwl_drm_handle_device()
754 if (xwl_gbm->drm_fd == -1) { in xwl_drm_handle_device()
761 if (drmGetNodeTypeFromFd(xwl_gbm->drm_fd) == DRM_NODE_RENDER) { in xwl_drm_handle_device()
765 drmGetMagic(xwl_gbm->drm_fd, &magic); in xwl_drm_handle_device()
943 xwl_gbm->gbm = gbm_create_device(xwl_gbm->drm_fd); in xwl_glamor_gbm_init_egl()
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dkfd_ioctl.h322 __u32 drm_fd; /* to KFD */ member
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dkfd_ioctl.h322 __u32 drm_fd; /* to KFD */ member

12