Lines Matching refs:vic
35 static int clear(struct vic *vic, struct drm_tegra_channel *channel, in clear() argument
55 err = vic_clear(vic, output, 1023, 1023, 0, 0); in clear()
67 err = vic->ops->execute(vic, pushbuf, &ptr, output, NULL, 0); in clear()
73 err = drm_tegra_pushbuf_sync_cond(pushbuf, &ptr, vic->syncpt, in clear()
104 static int fill(struct vic *vic, struct drm_tegra_channel *channel, in fill() argument
130 err = vic->ops->fill(vic, output, 0, output->height / 2, output->width - 1, in fill()
137 err = vic->ops->execute(vic, pushbuf, &ptr, output, NULL, 0); in fill()
143 err = drm_tegra_pushbuf_sync_cond(pushbuf, &ptr, vic->syncpt, in fill()
174 static int blit(struct vic *vic, struct drm_tegra_channel *channel, in blit() argument
200 err = vic->ops->blit(vic, output, input); in blit()
206 err = vic->ops->execute(vic, pushbuf, &ptr, output, &input, 1); in blit()
212 err = drm_tegra_pushbuf_sync_cond(pushbuf, &ptr, vic->syncpt, in blit()
252 struct vic *vic; in main() local
280 err = vic_new(drm, channel, &vic); in main()
286 err = vic_image_new(vic, width, height, format, kind, DRM_TEGRA_CHANNEL_MAP_READ_WRITE, in main()
293 err = vic_image_new(vic, width, height, format, kind, DRM_TEGRA_CHANNEL_MAP_READ_WRITE, in main()
300 err = clear(vic, channel, input); in main()
306 err = fill(vic, channel, input); in main()
312 err = blit(vic, channel, output, input); in main()
327 vic_free(vic); in main()