Lines Matching refs:vbox

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