Home
last modified time | relevance | path

Searched refs:bochs (Results 1 – 10 of 10) sorted by relevance

/drivers/gpu/drm/bochs/
Dbochs_hw.c12 static void bochs_vga_writeb(struct bochs_device *bochs, u16 ioport, u8 val) in bochs_vga_writeb() argument
17 if (bochs->mmio) { in bochs_vga_writeb()
19 writeb(val, bochs->mmio + offset); in bochs_vga_writeb()
25 static u16 bochs_dispi_read(struct bochs_device *bochs, u16 reg) in bochs_dispi_read() argument
29 if (bochs->mmio) { in bochs_dispi_read()
31 ret = readw(bochs->mmio + offset); in bochs_dispi_read()
39 static void bochs_dispi_write(struct bochs_device *bochs, u16 reg, u16 val) in bochs_dispi_write() argument
41 if (bochs->mmio) { in bochs_dispi_write()
43 writew(val, bochs->mmio + offset); in bochs_dispi_write()
52 struct bochs_device *bochs = dev->dev_private; in bochs_hw_init() local
[all …]
Dbochs_fbdev.c16 struct bochs_device *bochs = in bochsfb_mmap() local
18 struct bochs_bo *bo = gem_to_bochs_bo(bochs->fb.gfb.obj); in bochsfb_mmap()
36 static int bochsfb_create_object(struct bochs_device *bochs, in bochsfb_create_object() argument
40 struct drm_device *dev = bochs->dev; in bochsfb_create_object()
57 struct bochs_device *bochs = in bochsfb_create() local
77 ret = bochsfb_create_object(bochs, &mode_cmd, &gobj); in bochsfb_create()
111 info->par = &bochs->fb.helper; in bochsfb_create()
113 ret = bochs_framebuffer_init(bochs->dev, &bochs->fb.gfb, &mode_cmd, gobj); in bochsfb_create()
119 bochs->fb.size = size; in bochsfb_create()
122 fb = &bochs->fb.gfb.base; in bochsfb_create()
[all …]
Dbochs_kms.c36 struct bochs_device *bochs = in bochs_crtc_mode_set_base() local
71 bochs_hw_setbase(bochs, x, y, gpu_addr); in bochs_crtc_mode_set_base()
80 struct bochs_device *bochs = in bochs_crtc_mode_set() local
83 bochs_hw_setmode(bochs, mode); in bochs_crtc_mode_set()
101 struct bochs_device *bochs = in bochs_crtc_page_flip() local
109 spin_lock_irqsave(&bochs->dev->event_lock, irqflags); in bochs_crtc_page_flip()
111 spin_unlock_irqrestore(&bochs->dev->event_lock, irqflags); in bochs_crtc_page_flip()
133 struct bochs_device *bochs = dev->dev_private; in bochs_crtc_init() local
134 struct drm_crtc *crtc = &bochs->crtc; in bochs_crtc_init()
171 struct bochs_device *bochs = dev->dev_private; in bochs_encoder_init() local
[all …]
Dbochs_drv.c24 struct bochs_device *bochs = dev->dev_private; in bochs_unload() local
26 bochs_fbdev_fini(bochs); in bochs_unload()
27 bochs_kms_fini(bochs); in bochs_unload()
28 bochs_mm_fini(bochs); in bochs_unload()
30 kfree(bochs); in bochs_unload()
37 struct bochs_device *bochs; in bochs_load() local
40 bochs = kzalloc(sizeof(*bochs), GFP_KERNEL); in bochs_load()
41 if (bochs == NULL) in bochs_load()
43 dev->dev_private = bochs; in bochs_load()
44 bochs->dev = dev; in bochs_load()
[all …]
Dbochs_mm.c29 static int bochs_ttm_global_init(struct bochs_device *bochs) in bochs_ttm_global_init() argument
34 global_ref = &bochs->ttm.mem_global_ref; in bochs_ttm_global_init()
46 bochs->ttm.bo_global_ref.mem_glob = in bochs_ttm_global_init()
47 bochs->ttm.mem_global_ref.object; in bochs_ttm_global_init()
48 global_ref = &bochs->ttm.bo_global_ref.ref; in bochs_ttm_global_init()
56 drm_global_item_unref(&bochs->ttm.mem_global_ref); in bochs_ttm_global_init()
63 static void bochs_ttm_global_release(struct bochs_device *bochs) in bochs_ttm_global_release() argument
65 if (bochs->ttm.mem_global_ref.release == NULL) in bochs_ttm_global_release()
68 drm_global_item_unref(&bochs->ttm.bo_global_ref.ref); in bochs_ttm_global_release()
69 drm_global_item_unref(&bochs->ttm.mem_global_ref); in bochs_ttm_global_release()
[all …]
Dbochs.h130 void bochs_hw_setmode(struct bochs_device *bochs,
132 void bochs_hw_setbase(struct bochs_device *bochs,
136 int bochs_mm_init(struct bochs_device *bochs);
137 void bochs_mm_fini(struct bochs_device *bochs);
159 int bochs_kms_init(struct bochs_device *bochs);
160 void bochs_kms_fini(struct bochs_device *bochs);
163 int bochs_fbdev_init(struct bochs_device *bochs);
164 void bochs_fbdev_fini(struct bochs_device *bochs);
DMakefile2 bochs-drm-y := bochs_drv.o bochs_mm.o bochs_kms.o bochs_fbdev.o bochs_hw.o
4 obj-$(CONFIG_DRM_BOCHS) += bochs-drm.o
DKconfig2 tristate "DRM Support for bochs dispi vga interface (qemu stdvga)"
8 If M is selected the module will be called bochs-drm.
/drivers/gpu/drm/
DMakefile75 obj-$(CONFIG_DRM_BOCHS) += bochs/
DKconfig197 source "drivers/gpu/drm/bochs/Kconfig"