Lines Matching defs:vbox
29 static u32 vbox_get_flags(struct vbox_private *vbox)
31 return readl(vbox->guest_heap + HOST_FLAGS_OFFSET);
34 void vbox_report_hotplug(struct vbox_private *vbox)
36 schedule_work(&vbox->hotplug_work);
42 struct vbox_private *vbox = (struct vbox_private *)dev->dev_private;
43 u32 host_flags = vbox_get_flags(vbox);
57 vbox_report_hotplug(vbox);
70 static void validate_or_set_position_hints(struct vbox_private *vbox)
77 for (i = 0; i < vbox->num_crtcs; ++i) {
79 hintsi = &vbox->last_mode_hints[i];
80 hintsj = &vbox->last_mode_hints[j];
100 for (i = 0; i < vbox->num_crtcs; ++i) {
101 if (vbox->last_mode_hints[i].enabled) {
102 vbox->last_mode_hints[i].dx = currentx;
103 vbox->last_mode_hints[i].dy = 0;
105 vbox->last_mode_hints[i].cx & 0x8fff;
111 static void vbox_update_mode_hints(struct vbox_private *vbox)
114 struct drm_device *dev = &vbox->ddev;
123 ret = hgsmi_get_mode_hints(vbox->guest_pool, vbox->num_crtcs,
124 vbox->last_mode_hints);
130 validate_or_set_position_hints(vbox);
137 hints = &vbox->last_mode_hints[vbox_conn->vbox_crtc->crtc_id];
157 hgsmi_process_display_info(vbox->guest_pool, crtc_id, 0, 0, 0,
169 struct vbox_private *vbox = container_of(work, struct vbox_private,
172 vbox_update_mode_hints(vbox);
173 drm_kms_helper_hotplug_event(&vbox->ddev);
176 int vbox_irq_init(struct vbox_private *vbox)
178 INIT_WORK(&vbox->hotplug_work, vbox_hotplug_worker);
179 vbox_update_mode_hints(vbox);
181 return drm_irq_install(&vbox->ddev, vbox->ddev.pdev->irq);
184 void vbox_irq_fini(struct vbox_private *vbox)
186 drm_irq_uninstall(&vbox->ddev);
187 flush_work(&vbox->hotplug_work);