Lines Matching refs:num_crtcs

360 	for (i = 0; i < dev->num_crtcs; i++) {
374 if (dev->num_crtcs == 0)
382 kfree(dev->vbl_queue, sizeof (wait_queue_head_t) * dev->num_crtcs);
383 kfree(dev->_vblank_count, sizeof (atomic_t) * dev->num_crtcs);
384 kfree(dev->vblank_refcount, sizeof (atomic_t) * dev->num_crtcs);
385 kfree(dev->vblank_enabled, sizeof (int) * dev->num_crtcs);
386 kfree(dev->last_vblank, sizeof (u32) * dev->num_crtcs);
387 kfree(dev->last_vblank_wait, sizeof (u32) * dev->num_crtcs);
388 kfree(dev->vblank_inmodeset, sizeof (*dev->vblank_inmodeset) * dev->num_crtcs);
389 kfree(dev->_vblank_time, sizeof (*dev->_vblank_time) * dev->num_crtcs * DRM_VBLANKTIME_RBSIZE);
391 dev->num_crtcs = 0;
396 int drm_vblank_init(struct drm_device *dev, int num_crtcs)
406 dev->num_crtcs = num_crtcs;
408 dev->vbl_queue = kmalloc(sizeof(wait_queue_head_t) * num_crtcs,
413 dev->_vblank_count = kmalloc(sizeof(atomic_t) * num_crtcs, GFP_KERNEL);
417 dev->vblank_refcount = kmalloc(sizeof(atomic_t) * num_crtcs,
422 dev->vblank_enabled = kcalloc(num_crtcs, sizeof(int), GFP_KERNEL);
426 dev->last_vblank = kcalloc(num_crtcs, sizeof(u32), GFP_KERNEL);
430 dev->last_vblank_wait = kcalloc(num_crtcs, sizeof(u32), GFP_KERNEL);
434 dev->vblank_inmodeset = kcalloc(num_crtcs, sizeof(int), GFP_KERNEL);
438 dev->_vblank_time = kcalloc(num_crtcs * DRM_VBLANKTIME_RBSIZE,
452 for (i = 0; i < num_crtcs; i++) {
578 if (dev->num_crtcs) {
580 for (i = 0; i < dev->num_crtcs; i++) {
755 if (crtc < 0 || crtc >= dev->num_crtcs) {
1177 if (!dev->num_crtcs)
1198 if (!dev->num_crtcs)
1231 if (!dev->num_crtcs)
1239 if (crtc >= dev->num_crtcs)
1366 if (crtc >= dev->num_crtcs)
1471 if (!dev->num_crtcs)