Lines Matching defs:vbox

24 static u32 vbox_get_flags(struct vbox_private *vbox)
26 return readl(vbox->guest_heap + HOST_FLAGS_OFFSET);
29 void vbox_report_hotplug(struct vbox_private *vbox)
31 schedule_work(&vbox->hotplug_work);
37 struct vbox_private *vbox = to_vbox_dev(dev);
38 u32 host_flags = vbox_get_flags(vbox);
52 vbox_report_hotplug(vbox);
65 static void validate_or_set_position_hints(struct vbox_private *vbox)
72 for (i = 0; i < vbox->num_crtcs; ++i) {
74 hintsi = &vbox->last_mode_hints[i];
75 hintsj = &vbox->last_mode_hints[j];
95 for (i = 0; i < vbox->num_crtcs; ++i) {
96 if (vbox->last_mode_hints[i].enabled) {
97 vbox->last_mode_hints[i].dx = currentx;
98 vbox->last_mode_hints[i].dy = 0;
100 vbox->last_mode_hints[i].cx & 0x8fff;
106 static void vbox_update_mode_hints(struct vbox_private *vbox)
109 struct drm_device *dev = &vbox->ddev;
118 ret = hgsmi_get_mode_hints(vbox->guest_pool, vbox->num_crtcs,
119 vbox->last_mode_hints);
125 validate_or_set_position_hints(vbox);
132 hints = &vbox->last_mode_hints[vbox_conn->vbox_crtc->crtc_id];
152 hgsmi_process_display_info(vbox->guest_pool, crtc_id, 0, 0, 0,
164 struct vbox_private *vbox = container_of(work, struct vbox_private,
167 vbox_update_mode_hints(vbox);
168 drm_kms_helper_hotplug_event(&vbox->ddev);
171 int vbox_irq_init(struct vbox_private *vbox)
173 INIT_WORK(&vbox->hotplug_work, vbox_hotplug_worker);
174 vbox_update_mode_hints(vbox);
176 return drm_irq_install(&vbox->ddev, vbox->ddev.pdev->irq);
179 void vbox_irq_fini(struct vbox_private *vbox)
181 drm_irq_uninstall(&vbox->ddev);
182 flush_work(&vbox->hotplug_work);