Lines Matching refs:gr2d
35 struct drm_tegra_gr2d *gr2d; in drm_tegra_gr2d_open() local
38 gr2d = calloc(1, sizeof(*gr2d)); in drm_tegra_gr2d_open()
39 if (!gr2d) in drm_tegra_gr2d_open()
42 gr2d->drm = drm; in drm_tegra_gr2d_open()
44 err = drm_tegra_channel_open(drm, DRM_TEGRA_GR2D, &gr2d->channel); in drm_tegra_gr2d_open()
46 free(gr2d); in drm_tegra_gr2d_open()
50 *gr2dp = gr2d; in drm_tegra_gr2d_open()
55 int drm_tegra_gr2d_close(struct drm_tegra_gr2d *gr2d) in drm_tegra_gr2d_close() argument
57 if (!gr2d) in drm_tegra_gr2d_close()
60 drm_tegra_channel_close(gr2d->channel); in drm_tegra_gr2d_close()
61 free(gr2d); in drm_tegra_gr2d_close()
66 int drm_tegra_gr2d_fill(struct drm_tegra_gr2d *gr2d, struct drm_framebuffer *fb, in drm_tegra_gr2d_fill() argument
77 err = drm_tegra_job_new(gr2d->channel, &job); in drm_tegra_gr2d_fill()
81 err = drm_tegra_channel_map(gr2d->channel, fbo, 0, &map); in drm_tegra_gr2d_fill()