Lines Matching refs:num_crtcs
89 for (i = 0; i < dev->num_crtcs; i++) {
106 if (dev->num_crtcs == 0)
121 dev->num_crtcs = 0;
125 int drm_vblank_init(struct drm_device *dev, int num_crtcs)
132 dev->num_crtcs = num_crtcs;
134 dev->vbl_queue = kmalloc(sizeof(wait_queue_head_t) * num_crtcs,
139 dev->_vblank_count = kmalloc(sizeof(atomic_t) * num_crtcs, GFP_KERNEL);
143 dev->vblank_refcount = kmalloc(sizeof(atomic_t) * num_crtcs,
148 dev->vblank_enabled = kcalloc(num_crtcs, sizeof(int), GFP_KERNEL);
152 dev->last_vblank = kcalloc(num_crtcs, sizeof(u32), GFP_KERNEL);
156 dev->last_vblank_wait = kcalloc(num_crtcs, sizeof(u32), GFP_KERNEL);
160 dev->vblank_inmodeset = kcalloc(num_crtcs, sizeof(int), GFP_KERNEL);
165 for (i = 0; i < num_crtcs; i++) {
299 for (i = 0; i < dev->num_crtcs; i++) {
503 if (!dev->num_crtcs)
555 if (!dev->num_crtcs)
559 if (crtc >= dev->num_crtcs) {
681 if (crtc >= dev->num_crtcs)
783 if (!dev->num_crtcs)