Lines Matching defs:vbox

25 static u32 vbox_get_flags(struct vbox_private *vbox)
27 return readl(vbox->guest_heap + HOST_FLAGS_OFFSET);
30 void vbox_report_hotplug(struct vbox_private *vbox)
32 schedule_work(&vbox->hotplug_work);
38 struct vbox_private *vbox = to_vbox_dev(dev);
39 u32 host_flags = vbox_get_flags(vbox);
53 vbox_report_hotplug(vbox);
66 static void validate_or_set_position_hints(struct vbox_private *vbox)
73 for (i = 0; i < vbox->num_crtcs; ++i) {
75 hintsi = &vbox->last_mode_hints[i];
76 hintsj = &vbox->last_mode_hints[j];
96 for (i = 0; i < vbox->num_crtcs; ++i) {
97 if (vbox->last_mode_hints[i].enabled) {
98 vbox->last_mode_hints[i].dx = currentx;
99 vbox->last_mode_hints[i].dy = 0;
101 vbox->last_mode_hints[i].cx & 0x8fff;
107 static void vbox_update_mode_hints(struct vbox_private *vbox)
110 struct drm_device *dev = &vbox->ddev;
119 ret = hgsmi_get_mode_hints(vbox->guest_pool, vbox->num_crtcs,
120 vbox->last_mode_hints);
126 validate_or_set_position_hints(vbox);
133 hints = &vbox->last_mode_hints[vbox_conn->vbox_crtc->crtc_id];
153 hgsmi_process_display_info(vbox->guest_pool, crtc_id, 0, 0, 0,
165 struct vbox_private *vbox = container_of(work, struct vbox_private,
168 vbox_update_mode_hints(vbox);
169 drm_kms_helper_hotplug_event(&vbox->ddev);
172 int vbox_irq_init(struct vbox_private *vbox)
174 struct drm_device *dev = &vbox->ddev;
177 INIT_WORK(&vbox->hotplug_work, vbox_hotplug_worker);
178 vbox_update_mode_hints(vbox);
184 void vbox_irq_fini(struct vbox_private *vbox)
186 struct drm_device *dev = &vbox->ddev;
190 flush_work(&vbox->hotplug_work);