Lines Matching refs:dev

121 static int drm_set_crtc(struct exynos_device *dev, struct connector *c,
126 ret = drmModeSetCrtc(dev->fd, c->crtc,
134 static struct exynos_bo *exynos_create_buffer(struct exynos_device *dev,
140 bo = exynos_bo_create(dev, size, flags);
192 static int g2d_solid_fill_test(struct exynos_device *dev, struct exynos_bo *dst)
199 ctx = g2d_init(dev->fd);
240 static int g2d_copy_test(struct exynos_device *dev, struct exynos_bo *src,
250 ctx = g2d_init(dev->fd);
323 static int g2d_move_test(struct exynos_device *dev,
350 ctx = g2d_init(dev->fd);
447 static int g2d_copy_with_scale_test(struct exynos_device *dev,
458 ctx = g2d_init(dev->fd);
535 static int g2d_blend_test(struct exynos_device *dev,
546 ctx = g2d_init(dev->fd);
636 static int g2d_checkerboard_test(struct exynos_device *dev,
647 ctx = g2d_init(dev->fd);
727 struct exynos_device *dev;
767 dev = exynos_device_create(fd);
768 if (!dev) {
773 resources = drmModeGetResources(dev->fd);
781 connector_find_mode(dev->fd, &con, resources);
802 bo = exynos_create_buffer(dev, screen_width * screen_height * 4, 0);
812 ret = drmModeAddFB2(dev->fd, screen_width, screen_height,
820 ret = drm_set_crtc(dev, &con, fb_id);
824 ret = g2d_solid_fill_test(dev, bo);
832 src = exynos_create_buffer(dev, screen_width * screen_height * 4, 0);
838 ret = g2d_copy_test(dev, src, bo, G2D_IMGBUF_GEM);
846 ret = g2d_move_test(dev, src, bo, G2D_IMGBUF_GEM);
854 ret = g2d_copy_with_scale_test(dev, src, bo, G2D_IMGBUF_GEM);
862 ret = g2d_checkerboard_test(dev, src, bo, G2D_IMGBUF_GEM);
879 ret = g2d_blend_test(dev, src, bo, G2D_IMGBUF_USERPTR);
891 drmModeRmFB(dev->fd, fb_id);
897 exynos_device_destroy(dev);