Home | History | Annotate | Download | only in kms

Lines Matching refs:device

134 	struct kms_device *device;
172 fprintf(stderr, "usage: %s [options] DEVICE\n", argv[0]);
188 device = kms_device_open(fd);
189 if (!device)
193 printf("Screens: %u\n", device->num_screens);
195 for (i = 0; i < device->num_screens; i++) {
196 struct kms_screen *screen = device->screens[i];
209 printf("Planes: %u\n", device->num_planes);
211 for (i = 0; i < device->num_planes; i++) {
212 struct kms_plane *plane = device->planes[i];
240 plane = kms_device_find_plane_by_type(device,
254 cursor = kms_framebuffer_create(device, 32, 32, format);
262 x = (device->screens[0]->width - cursor->width) / 2;
263 y = (device->screens[0]->height - cursor->height) / 2;
271 plane = kms_device_find_plane_by_type(device,
285 fb = kms_framebuffer_create(device, 320, 240, format);
298 plane = kms_device_find_plane_by_type(device,
312 root = kms_framebuffer_create(device, 640, 480, format);
318 x = (device->screens[0]->width - root->width) / 2;
319 y = (device->screens[0]->height - root->height) / 2;
354 kms_device_close(device);