Lines Matching defs:vbox_crtc

39 	struct vbox_crtc *vbox_crtc = to_vbox_crtc(crtc);
46 width = vbox_crtc->width ? vbox_crtc->width : 640;
47 height = vbox_crtc->height ? vbox_crtc->height : 480;
50 x_offset = vbox->single_framebuffer ? vbox_crtc->x : vbox_crtc->x_hint;
51 y_offset = vbox->single_framebuffer ? vbox_crtc->y : vbox_crtc->y_hint;
59 if (vbox_crtc->crtc_id == 0 && fb &&
60 vbox_crtc->fb_offset / pitch < 0xffff - crtc->y &&
61 vbox_crtc->fb_offset % (bpp / 8) == 0) {
68 vbox_crtc->fb_offset % pitch / bpp * 8 + vbox_crtc->x);
70 vbox_crtc->fb_offset / pitch + vbox_crtc->y);
75 flags |= vbox_crtc->disconnected ? VBVA_SCREEN_F_DISABLED : 0;
76 hgsmi_process_display_info(vbox->guest_pool, vbox_crtc->crtc_id,
78 vbox_crtc->x * bpp / 8 +
79 vbox_crtc->y * pitch,
85 struct vbox_crtc *vbox_crtc = to_vbox_crtc(crtc);
105 p->view_index = vbox_crtc->crtc_id;
106 p->view_offset = vbox_crtc->fb_offset;
107 p->view_size = vbox->available_vram_size - vbox_crtc->fb_offset +
108 vbox_crtc->crtc_id * VBVA_MIN_BUFFER_SIZE;
109 p->max_screen_size = vbox->available_vram_size - vbox_crtc->fb_offset;
163 struct vbox_crtc *vbox_crtc = vbox_connector->vbox_crtc;
165 width = max_t(u16, width, vbox_crtc->x_hint +
167 height = max_t(u16, height, vbox_crtc->y_hint +
184 struct vbox_crtc *vbox_crtc = to_vbox_crtc(crtc);
190 vbox_crtc->width = crtc->state->mode.hdisplay;
191 vbox_crtc->height = crtc->state->mode.vdisplay;
194 vbox_crtc->x = x;
195 vbox_crtc->y = y;
196 vbox_crtc->fb_offset = drm_gem_vram_offset(gbo);
398 struct vbox_crtc *vbox_crtc = to_vbox_crtc(new_state->crtc);
418 vbox_crtc->cursor_enabled = true;
447 struct vbox_crtc *vbox_crtc = to_vbox_crtc(old_state->crtc);
453 vbox_crtc->cursor_enabled = false;
550 static struct vbox_crtc *vbox_crtc_init(struct drm_device *dev, unsigned int i)
555 struct vbox_crtc *vbox_crtc;
565 vbox_crtc = kzalloc(sizeof(*vbox_crtc), GFP_KERNEL);
566 if (!vbox_crtc)
585 vbox_crtc->crtc_id = i;
587 ret = drm_crtc_init_with_planes(dev, &vbox_crtc->base, primary, cursor,
592 drm_mode_crtc_set_gamma_size(&vbox_crtc->base, 256);
593 drm_crtc_helper_add(&vbox_crtc->base, &vbox_crtc_helper_funcs);
595 return vbox_crtc;
606 kfree(vbox_crtc);
720 if (vbox_connector->vbox_crtc->crtc_id == 0)
737 if (vbox_connector->vbox_crtc->x_hint != -1)
740 vbox_connector->vbox_crtc->x_hint);
745 if (vbox_connector->vbox_crtc->y_hint != -1)
748 vbox_connector->vbox_crtc->y_hint);
805 struct vbox_crtc *vbox_crtc,
816 vbox_connector->vbox_crtc = vbox_crtc;
847 struct vbox_crtc *vbox_crtc;
861 vbox_crtc = vbox_crtc_init(dev, i);
862 if (IS_ERR(vbox_crtc)) {
863 ret = PTR_ERR(vbox_crtc);
871 ret = vbox_connector_init(dev, vbox_crtc, encoder);