Searched refs:vbox (Results 1 – 6 of 6) sorted by relevance
/drivers/gpu/drm/vboxvideo/ |
D | vbox_main.c | 22 void vbox_report_caps(struct vbox_private *vbox) in vbox_report_caps() argument 28 hgsmi_send_caps_info(vbox->guest_pool, caps); in vbox_report_caps() 30 hgsmi_send_caps_info(vbox->guest_pool, caps); in vbox_report_caps() 33 static int vbox_accel_init(struct vbox_private *vbox) in vbox_accel_init() argument 35 struct pci_dev *pdev = to_pci_dev(vbox->ddev.dev); in vbox_accel_init() 39 vbox->vbva_info = devm_kcalloc(vbox->ddev.dev, vbox->num_crtcs, in vbox_accel_init() 40 sizeof(*vbox->vbva_info), GFP_KERNEL); in vbox_accel_init() 41 if (!vbox->vbva_info) in vbox_accel_init() 45 vbox->available_vram_size -= vbox->num_crtcs * VBVA_MIN_BUFFER_SIZE; in vbox_accel_init() 47 vbox->vbva_buffers = pci_iomap_range(pdev, 0, in vbox_accel_init() [all …]
|
D | vbox_drv.c | 40 struct vbox_private *vbox; in vbox_pci_probe() local 50 vbox = devm_drm_dev_alloc(&pdev->dev, &driver, in vbox_pci_probe() 52 if (IS_ERR(vbox)) in vbox_pci_probe() 53 return PTR_ERR(vbox); in vbox_pci_probe() 55 pci_set_drvdata(pdev, vbox); in vbox_pci_probe() 56 mutex_init(&vbox->hw_mutex); in vbox_pci_probe() 62 ret = vbox_hw_init(vbox); in vbox_pci_probe() 66 ret = vbox_mm_init(vbox); in vbox_pci_probe() 70 ret = vbox_mode_init(vbox); in vbox_pci_probe() 74 ret = vbox_irq_init(vbox); in vbox_pci_probe() [all …]
|
D | vbox_irq.c | 25 static u32 vbox_get_flags(struct vbox_private *vbox) in vbox_get_flags() argument 27 return readl(vbox->guest_heap + HOST_FLAGS_OFFSET); in vbox_get_flags() 30 void vbox_report_hotplug(struct vbox_private *vbox) in vbox_report_hotplug() argument 32 schedule_work(&vbox->hotplug_work); in vbox_report_hotplug() 38 struct vbox_private *vbox = to_vbox_dev(dev); in vbox_irq_handler() local 39 u32 host_flags = vbox_get_flags(vbox); in vbox_irq_handler() 53 vbox_report_hotplug(vbox); in vbox_irq_handler() 66 static void validate_or_set_position_hints(struct vbox_private *vbox) in validate_or_set_position_hints() argument 73 for (i = 0; i < vbox->num_crtcs; ++i) { in validate_or_set_position_hints() 75 hintsi = &vbox->last_mode_hints[i]; in validate_or_set_position_hints() [all …]
|
D | vbox_mode.c | 37 struct vbox_private *vbox; in vbox_do_modeset() local 42 vbox = to_vbox_dev(crtc->dev); in vbox_do_modeset() 47 x_offset = vbox->single_framebuffer ? vbox_crtc->x : vbox_crtc->x_hint; in vbox_do_modeset() 48 y_offset = vbox->single_framebuffer ? vbox_crtc->y : vbox_crtc->y_hint; in vbox_do_modeset() 73 hgsmi_process_display_info(vbox->guest_pool, vbox_crtc->crtc_id, in vbox_do_modeset() 83 struct vbox_private *vbox = to_vbox_dev(crtc->dev); in vbox_set_view() local 97 p = hgsmi_buffer_alloc(vbox->guest_pool, sizeof(*p), in vbox_set_view() 104 p->view_size = vbox->available_vram_size - vbox_crtc->fb_offset + in vbox_set_view() 106 p->max_screen_size = vbox->available_vram_size - vbox_crtc->fb_offset; in vbox_set_view() 108 hgsmi_buffer_submit(vbox->guest_pool, p); in vbox_set_view() [all …]
|
D | vbox_drv.h | 41 #define GUEST_HEAP_OFFSET(vbox) ((vbox)->full_vram_size - \ argument 133 int vbox_hw_init(struct vbox_private *vbox); 134 void vbox_hw_fini(struct vbox_private *vbox); 136 int vbox_mode_init(struct vbox_private *vbox); 137 void vbox_mode_fini(struct vbox_private *vbox); 139 void vbox_report_caps(struct vbox_private *vbox); 141 int vbox_mm_init(struct vbox_private *vbox); 142 void vbox_mm_fini(struct vbox_private *vbox); 145 int vbox_irq_init(struct vbox_private *vbox); 146 void vbox_irq_fini(struct vbox_private *vbox); [all …]
|
D | vbox_ttm.c | 13 int vbox_mm_init(struct vbox_private *vbox) in vbox_mm_init() argument 16 struct drm_device *dev = &vbox->ddev; in vbox_mm_init() 20 vbox->available_vram_size); in vbox_mm_init() 26 vbox->fb_mtrr = arch_phys_wc_add(pci_resource_start(pdev, 0), in vbox_mm_init() 31 void vbox_mm_fini(struct vbox_private *vbox) in vbox_mm_fini() argument 33 arch_phys_wc_del(vbox->fb_mtrr); in vbox_mm_fini()
|