Home
last modified time | relevance | path

Searched refs:drm (Results 1 – 151 of 151) sorted by relevance

/linux-4.1.27/Documentation/DocBook/
D.drm.xml.cmd1 cmd_Documentation/DocBook/drm.xml := SRCTREE=./ ./scripts/docproc doc Documentation/DocBook/drm.tmp…
2drm.xml: Documentation/DocBook/drm.tmpl drivers/gpu/drm/drm_pci.c drivers/gpu/drm/drm_platform.c d…
DMakefile17 tracepoint.xml drm.xml media_api.xml w1.xml \
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_drm.c133 nouveau_accel_fini(struct nouveau_drm *drm) in nouveau_accel_fini() argument
135 nouveau_channel_del(&drm->channel); in nouveau_accel_fini()
136 nvif_object_fini(&drm->ntfy); in nouveau_accel_fini()
137 nvkm_gpuobj_ref(NULL, &drm->notify); in nouveau_accel_fini()
138 nvif_object_fini(&drm->nvsw); in nouveau_accel_fini()
139 nouveau_channel_del(&drm->cechan); in nouveau_accel_fini()
140 nvif_object_fini(&drm->ttm.copy); in nouveau_accel_fini()
141 if (drm->fence) in nouveau_accel_fini()
142 nouveau_fence(drm)->dtor(drm); in nouveau_accel_fini()
146 nouveau_accel_init(struct nouveau_drm *drm) in nouveau_accel_init() argument
[all …]
Dnouveau_ttm.c35 struct nouveau_drm *drm = nouveau_bdev(man->bdev); in nouveau_vram_manager_init() local
36 struct nvkm_fb *pfb = nvxx_fb(&drm->device); in nouveau_vram_manager_init()
66 struct nouveau_drm *drm = nouveau_bdev(man->bdev); in nouveau_vram_manager_del() local
67 struct nvkm_fb *pfb = nvxx_fb(&drm->device); in nouveau_vram_manager_del()
78 struct nouveau_drm *drm = nouveau_bdev(man->bdev); in nouveau_vram_manager_new() local
79 struct nvkm_fb *pfb = nvxx_fb(&drm->device); in nouveau_vram_manager_new()
85 if (drm->device.info.ram_size == 0) in nouveau_vram_manager_new()
167 struct nouveau_drm *drm = nouveau_bdev(bo->bdev); in nouveau_gart_manager_new() local
177 switch (drm->device.info.family) { in nouveau_gart_manager_new()
179 if (drm->device.info.chipset != 0x50) in nouveau_gart_manager_new()
[all …]
Dnouveau_agp.c28 get_agp_mode(struct nouveau_drm *drm, const struct drm_agp_info *info) in get_agp_mode() argument
30 struct nvif_device *device = &drm->device; in get_agp_mode()
51 NV_INFO(drm, "Forcing agp mode to %dX. Use agpmode to override.\n", in get_agp_mode()
72 nouveau_agp_enabled(struct nouveau_drm *drm) in nouveau_agp_enabled() argument
74 struct drm_device *dev = drm->dev; in nouveau_agp_enabled()
79 if (drm->agp.stat == UNKNOWN) { in nouveau_agp_enabled()
97 return (drm->agp.stat == ENABLED); in nouveau_agp_enabled()
102 nouveau_agp_reset(struct nouveau_drm *drm) in nouveau_agp_reset() argument
105 struct nvif_device *device = &drm->device; in nouveau_agp_reset()
106 struct drm_device *dev = drm->dev; in nouveau_agp_reset()
[all …]
Dnouveau_fbcon.c62 struct nouveau_drm *drm = nouveau_drm(fbcon->dev); in nouveau_fbcon_fillrect() local
63 struct nvif_device *device = &drm->device; in nouveau_fbcon_fillrect()
71 mutex_trylock(&drm->client.mutex)) { in nouveau_fbcon_fillrect()
79 mutex_unlock(&drm->client.mutex); in nouveau_fbcon_fillrect()
94 struct nouveau_drm *drm = nouveau_drm(fbcon->dev); in nouveau_fbcon_copyarea() local
95 struct nvif_device *device = &drm->device; in nouveau_fbcon_copyarea()
103 mutex_trylock(&drm->client.mutex)) { in nouveau_fbcon_copyarea()
111 mutex_unlock(&drm->client.mutex); in nouveau_fbcon_copyarea()
126 struct nouveau_drm *drm = nouveau_drm(fbcon->dev); in nouveau_fbcon_imageblit() local
127 struct nvif_device *device = &drm->device; in nouveau_fbcon_imageblit()
[all …]
Dnouveau_backlight.c42 struct nouveau_drm *drm = bl_get_data(bd); in nv40_get_intensity() local
43 struct nvif_device *device = &drm->device; in nv40_get_intensity()
53 struct nouveau_drm *drm = bl_get_data(bd); in nv40_set_intensity() local
54 struct nvif_device *device = &drm->device; in nv40_set_intensity()
73 struct nouveau_drm *drm = nouveau_drm(connector->dev); in nv40_backlight_init() local
74 struct nvif_device *device = &drm->device; in nv40_backlight_init()
84 bd = backlight_device_register("nv_backlight", connector->kdev, drm, in nv40_backlight_init()
88 drm->backlight = bd; in nv40_backlight_init()
99 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv50_get_intensity() local
100 struct nvif_device *device = &drm->device; in nv50_get_intensity()
[all …]
Dnouveau_hwmon.c42 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_hwmon_show_temp() local
43 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_show_temp()
68 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_hwmon_temp1_auto_point1_temp() local
69 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_temp1_auto_point1_temp()
80 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_hwmon_set_temp1_auto_point1_temp() local
81 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_temp1_auto_point1_temp()
101 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_hwmon_temp1_auto_point1_temp_hyst() local
102 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_temp1_auto_point1_temp_hyst()
113 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_hwmon_set_temp1_auto_point1_temp_hyst() local
114 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_temp1_auto_point1_temp_hyst()
[all …]
Dnouveau_bios.c98 struct nouveau_drm *drm = nouveau_drm(dev); in run_digital_op_script() local
100 NV_INFO(drm, "0x%04X: Parsing digital output script table\n", in run_digital_op_script()
111 struct nouveau_drm *drm = nouveau_drm(dev); in call_lvds_manufacturer_script() local
112 struct nvbios *bios = &drm->vbios; in call_lvds_manufacturer_script()
148 struct nouveau_drm *drm = nouveau_drm(dev); in run_lvds_table() local
149 struct nvbios *bios = &drm->vbios; in run_lvds_table()
194 NV_ERROR(drm, "Pixel clock comparison table not found\n"); in run_lvds_table()
201 NV_ERROR(drm, "LVDS output init script not found\n"); in run_lvds_table()
217 struct nouveau_drm *drm = nouveau_drm(dev); in call_lvds_script() local
218 struct nvif_device *device = &drm->device; in call_lvds_script()
[all …]
Dnouveau_bo.c49 struct nouveau_drm *drm = nouveau_drm(dev); in nv10_bo_update_tile_region() local
50 int i = reg - drm->tile.reg; in nv10_bo_update_tile_region()
51 struct nvkm_fb *pfb = nvxx_fb(&drm->device); in nv10_bo_update_tile_region()
74 struct nouveau_drm *drm = nouveau_drm(dev); in nv10_bo_get_tile_region() local
75 struct nouveau_drm_tile *tile = &drm->tile.reg[i]; in nv10_bo_get_tile_region()
77 spin_lock(&drm->tile.lock); in nv10_bo_get_tile_region()
85 spin_unlock(&drm->tile.lock); in nv10_bo_get_tile_region()
93 struct nouveau_drm *drm = nouveau_drm(dev); in nv10_bo_put_tile_region() local
96 spin_lock(&drm->tile.lock); in nv10_bo_put_tile_region()
99 spin_unlock(&drm->tile.lock); in nv10_bo_put_tile_region()
[all …]
Dnv84_fence.c106 struct nv84_fence_priv *priv = chan->drm->fence; in nv84_fence_read()
113 struct drm_device *dev = chan->drm->dev; in nv84_fence_context_del()
114 struct nv84_fence_priv *priv = chan->drm->fence; in nv84_fence_context_del()
135 struct nv84_fence_priv *priv = chan->drm->fence; in nv84_fence_context_new()
158 for (i = 0; !ret && i < chan->drm->dev->mode_config.num_crtc; i++) { in nv84_fence_context_new()
159 struct nouveau_bo *bo = nv50_display_crtc_sema(chan->drm->dev, i); in nv84_fence_context_new()
169 nv84_fence_suspend(struct nouveau_drm *drm) in nv84_fence_suspend() argument
171 struct nv84_fence_priv *priv = drm->fence; in nv84_fence_suspend()
184 nv84_fence_resume(struct nouveau_drm *drm) in nv84_fence_resume() argument
186 struct nv84_fence_priv *priv = drm->fence; in nv84_fence_resume()
[all …]
Dnouveau_drm.h194 #define NV_FATAL(drm,f,a...) NV_PRINTK(fatal, &(drm)->client, f, ##a) argument
195 #define NV_ERROR(drm,f,a...) NV_PRINTK(error, &(drm)->client, f, ##a) argument
196 #define NV_WARN(drm,f,a...) NV_PRINTK(warn, &(drm)->client, f, ##a) argument
197 #define NV_INFO(drm,f,a...) NV_PRINTK(info, &(drm)->client, f, ##a) argument
198 #define NV_DEBUG(drm,f,a...) NV_PRINTK(debug, &(drm)->client, f, ##a) argument
Dnouveau_dp.c37 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_dp_probe_oui() local
44 NV_DEBUG(drm, "Sink OUI: %02hx%02hx%02hx\n", in nouveau_dp_probe_oui()
48 NV_DEBUG(drm, "Branch OUI: %02hx%02hx%02hx\n", in nouveau_dp_probe_oui()
57 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_dp_detect() local
73 NV_DEBUG(drm, "display: %dx%d dpcd 0x%02x\n", in nouveau_dp_detect()
75 NV_DEBUG(drm, "encoder: %dx%d\n", in nouveau_dp_detect()
84 NV_DEBUG(drm, "maximum: %dx%d\n", in nouveau_dp_detect()
Dnouveau_chan.c68 nouveau_fence(chan->drm)->context_del(chan); in nouveau_channel_del()
87 nouveau_channel_prep(struct nouveau_drm *drm, struct nvif_device *device, in nouveau_channel_prep() argument
102 chan->drm = drm; in nouveau_channel_prep()
109 ret = nouveau_bo_new(drm->dev, size, 0, target, 0, 0, NULL, NULL, in nouveau_channel_prep()
158 if (chan->drm->agp.stat == ENABLED) { in nouveau_channel_prep()
161 args.start = chan->drm->agp.base; in nouveau_channel_prep()
162 args.limit = chan->drm->agp.base + in nouveau_channel_prep()
163 chan->drm->agp.size - 1; in nouveau_channel_prep()
184 nouveau_channel_ind(struct nouveau_drm *drm, struct nvif_device *device, in nouveau_channel_ind() argument
203 ret = nouveau_channel_prep(drm, device, handle, 0x12000, &chan); in nouveau_channel_ind()
[all …]
Dnouveau_vga.c86 nouveau_vga_init(struct nouveau_drm *drm) in nouveau_vga_init() argument
88 struct drm_device *dev = drm->dev; in nouveau_vga_init()
104 vga_switcheroo_init_domain_pm_ops(drm->dev->dev, &drm->vga_pm_domain); in nouveau_vga_init()
108 nouveau_vga_fini(struct nouveau_drm *drm) in nouveau_vga_fini() argument
110 struct drm_device *dev = drm->dev; in nouveau_vga_fini()
120 vga_switcheroo_fini_domain_pm_ops(drm->dev->dev); in nouveau_vga_fini()
Dnv17_fence.c37 struct nv10_fence_priv *priv = chan->drm->fence; in nv17_fence_sync()
76 struct nv10_fence_priv *priv = chan->drm->fence; in nv17_fence_context_new()
106 nv17_fence_resume(struct nouveau_drm *drm) in nv17_fence_resume() argument
108 struct nv10_fence_priv *priv = drm->fence; in nv17_fence_resume()
114 nv17_fence_create(struct nouveau_drm *drm) in nv17_fence_create() argument
119 priv = drm->fence = kzalloc(sizeof(*priv), GFP_KERNEL); in nv17_fence_create()
131 ret = nouveau_bo_new(drm->dev, 4096, 0x1000, TTM_PL_FLAG_VRAM, in nv17_fence_create()
145 nv10_fence_destroy(drm); in nv17_fence_create()
Dnouveau_display.c440 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_display_create() local
444 disp = drm->display = kzalloc(sizeof(*disp), GFP_KERNEL); in nouveau_display_create()
453 dev->mode_config.fb_base = nv_device_resource_start(nvxx_device(&drm->device), 1); in nouveau_display_create()
457 if (drm->device.info.family < NV_DEVICE_INFO_V0_CELSIUS) { in nouveau_display_create()
461 if (drm->device.info.family < NV_DEVICE_INFO_V0_TESLA) { in nouveau_display_create()
472 if (drm->device.info.chipset < 0x11) in nouveau_display_create()
480 if (nouveau_modeset != 2 && drm->vbios.dcb.entries) { in nouveau_display_create()
497 ret = nvif_object_init(nvif_object(&drm->device), NULL, in nouveau_display_create()
585 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_display_resume() local
599 NV_ERROR(drm, "Could not pin framebuffer\n"); in nouveau_display_resume()
[all …]
Dnouveau_connector.c117 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_connector_ddc_detect() local
118 struct nvkm_gpio *gpio = nvxx_gpio(&drm->device); in nouveau_connector_ddc_detect()
200 struct nouveau_drm *drm = nouveau_drm(connector->dev); in nouveau_connector_set_encoder() local
207 if (drm->device.info.family >= NV_DEVICE_INFO_V0_TESLA) { in nouveau_connector_set_encoder()
217 if (drm->device.info.family == NV_DEVICE_INFO_V0_KELVIN || in nouveau_connector_set_encoder()
218 (drm->device.info.family == NV_DEVICE_INFO_V0_CELSIUS && in nouveau_connector_set_encoder()
240 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_connector_detect() local
266 NV_ERROR(drm, "DDC responded, but no EDID for %s\n", in nouveau_connector_detect()
336 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_connector_detect_lvds() local
353 if (!drm->vbios.fp_no_ddc) { in nouveau_connector_detect_lvds()
[all …]
Dnv50_fence.c37 struct drm_device *dev = chan->drm->dev; in nv50_fence_context_new()
38 struct nv10_fence_priv *priv = chan->drm->fence; in nv50_fence_context_new()
85 nv50_fence_create(struct nouveau_drm *drm) in nv50_fence_create() argument
90 priv = drm->fence = kzalloc(sizeof(*priv), GFP_KERNEL); in nv50_fence_create()
102 ret = nouveau_bo_new(drm->dev, 4096, 0x1000, TTM_PL_FLAG_VRAM, in nv50_fence_create()
116 nv10_fence_destroy(drm); in nv50_fence_create()
Dnv04_fence.c89 nv04_fence_destroy(struct nouveau_drm *drm) in nv04_fence_destroy() argument
91 struct nv04_fence_priv *priv = drm->fence; in nv04_fence_destroy()
92 drm->fence = NULL; in nv04_fence_destroy()
97 nv04_fence_create(struct nouveau_drm *drm) in nv04_fence_create() argument
101 priv = drm->fence = kzalloc(sizeof(*priv), GFP_KERNEL); in nv04_fence_create()
Dnouveau_platform.c165 struct drm_device *drm; in nouveau_platform_probe() local
194 drm = nouveau_platform_device_create(pdev, &device); in nouveau_platform_probe()
195 if (IS_ERR(drm)) { in nouveau_platform_probe()
196 err = PTR_ERR(drm); in nouveau_platform_probe()
203 err = drm_dev_register(drm, 0); in nouveau_platform_probe()
210 drm_dev_unref(drm); in nouveau_platform_probe()
222 struct nouveau_drm *drm = nouveau_drm(drm_dev); in nouveau_platform_remove() local
223 struct nvkm_device *device = nvxx_device(&drm->device); in nouveau_platform_remove()
Dnv10_fence.c86 nv10_fence_destroy(struct nouveau_drm *drm) in nv10_fence_destroy() argument
88 struct nv10_fence_priv *priv = drm->fence; in nv10_fence_destroy()
93 drm->fence = NULL; in nv10_fence_destroy()
98 nv10_fence_create(struct nouveau_drm *drm) in nv10_fence_create() argument
102 priv = drm->fence = kzalloc(sizeof(*priv), GFP_KERNEL); in nv10_fence_create()
Dnouveau_abi16.c78 nouveau_abi16_swclass(struct nouveau_drm *drm) in nouveau_abi16_swclass() argument
80 switch (drm->device.info.family) { in nouveau_abi16_swclass()
165 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_abi16_ioctl_getparam() local
166 struct nvif_device *device = &drm->device; in nouveau_abi16_ioctl_getparam()
200 getparam->value = drm->gem.vram_available; in nouveau_abi16_ioctl_getparam()
203 getparam->value = drm->gem.gart_available; in nouveau_abi16_ioctl_getparam()
239 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_abi16_ioctl_channel_alloc() local
248 if (!drm->channel) in nouveau_abi16_ioctl_channel_alloc()
283 ret = nouveau_channel_new(drm, device, in nouveau_abi16_ioctl_channel_alloc()
383 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_abi16_ioctl_grobj_alloc() local
[all …]
Dnouveau_sysfs.c164 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_sysfs_fini() local
165 struct nvif_device *device = &drm->device; in nouveau_sysfs_fini()
172 drm->sysfs = NULL; in nouveau_sysfs_fini()
179 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_sysfs_init() local
180 struct nvif_device *device = &drm->device; in nouveau_sysfs_init()
187 sysfs = drm->sysfs = kzalloc(sizeof(*sysfs), GFP_KERNEL); in nouveau_sysfs_init()
Dnv04_fbcon.c33 struct nouveau_drm *drm = nouveau_drm(nfbdev->dev); in nv04_fbcon_copyarea() local
34 struct nouveau_channel *chan = drm->channel; in nv04_fbcon_copyarea()
53 struct nouveau_drm *drm = nouveau_drm(nfbdev->dev); in nv04_fbcon_fillrect() local
54 struct nouveau_channel *chan = drm->channel; in nv04_fbcon_fillrect()
80 struct nouveau_drm *drm = nouveau_drm(nfbdev->dev); in nv04_fbcon_imageblit() local
81 struct nouveau_channel *chan = drm->channel; in nv04_fbcon_imageblit()
137 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_fbcon_accel_init() local
138 struct nouveau_channel *chan = drm->channel; in nv04_fbcon_accel_init()
139 struct nvif_device *device = &drm->device; in nv04_fbcon_accel_init()
Dnouveau_debugfs.c38 struct nouveau_drm *drm = nouveau_drm(node->minor->dev); in nouveau_debugfs_vbios_image() local
41 for (i = 0; i < drm->vbios.length; i++) in nouveau_debugfs_vbios_image()
42 seq_printf(m, "%c", drm->vbios.data[i]); in nouveau_debugfs_vbios_image()
Dnv50_fbcon.c33 struct nouveau_drm *drm = nouveau_drm(nfbdev->dev); in nv50_fbcon_fillrect() local
34 struct nouveau_channel *chan = drm->channel; in nv50_fbcon_fillrect()
68 struct nouveau_drm *drm = nouveau_drm(nfbdev->dev); in nv50_fbcon_copyarea() local
69 struct nouveau_channel *chan = drm->channel; in nv50_fbcon_copyarea()
96 struct nouveau_drm *drm = nouveau_drm(nfbdev->dev); in nv50_fbcon_imageblit() local
97 struct nouveau_channel *chan = drm->channel; in nv50_fbcon_imageblit()
153 struct nouveau_drm *drm = nouveau_drm(dev); in nv50_fbcon_accel_init() local
154 struct nouveau_channel *chan = drm->channel; in nv50_fbcon_accel_init()
Dnvc0_fbcon.c33 struct nouveau_drm *drm = nouveau_drm(nfbdev->dev); in nvc0_fbcon_fillrect() local
34 struct nouveau_channel *chan = drm->channel; in nvc0_fbcon_fillrect()
68 struct nouveau_drm *drm = nouveau_drm(nfbdev->dev); in nvc0_fbcon_copyarea() local
69 struct nouveau_channel *chan = drm->channel; in nvc0_fbcon_copyarea()
96 struct nouveau_drm *drm = nouveau_drm(nfbdev->dev); in nvc0_fbcon_imageblit() local
97 struct nouveau_channel *chan = drm->channel; in nvc0_fbcon_imageblit()
153 struct nouveau_drm *drm = nouveau_drm(dev); in nvc0_fbcon_accel_init() local
154 struct nouveau_channel *chan = drm->channel; in nvc0_fbcon_accel_init()
Dnvc0_fence.c76 nvc0_fence_create(struct nouveau_drm *drm) in nvc0_fence_create() argument
78 int ret = nv84_fence_create(drm); in nvc0_fence_create()
80 struct nv84_fence_priv *priv = drm->fence; in nvc0_fence_create()
Dnouveau_gem.c39 struct nouveau_drm *drm = nouveau_bdev(nvbo->bo.bdev); in nouveau_gem_object_del() local
41 struct device *dev = drm->dev->dev; in nouveau_gem_object_del()
66 struct nouveau_drm *drm = nouveau_bdev(nvbo->bo.bdev); in nouveau_gem_object_open() local
68 struct device *dev = drm->dev->dev; in nouveau_gem_object_open()
149 struct nouveau_drm *drm = nouveau_bdev(nvbo->bo.bdev); in nouveau_gem_object_close() local
150 struct device *dev = drm->dev->dev; in nouveau_gem_object_close()
180 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_gem_new() local
207 if (drm->device.info.family >= NV_DEVICE_INFO_V0_TESLA) in nouveau_gem_new()
256 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_gem_ioctl_new() local
258 struct nvkm_fb *pfb = nvxx_fb(&drm->device); in nouveau_gem_ioctl_new()
[all …]
Dnouveau_fence.h64 #define nouveau_fence(drm) ((struct nouveau_fence_priv *)(drm)->fence) argument
82 void nv17_fence_resume(struct nouveau_drm *drm);
Dnouveau_ttm.h18 int nouveau_ttm_init(struct nouveau_drm *drm);
19 void nouveau_ttm_fini(struct nouveau_drm *drm);
Dnouveau_fence.c76 nouveau_local_fence(struct fence *fence, struct nouveau_drm *drm) { in nouveau_local_fence() argument
77 struct nouveau_fence_priv *priv = (void*)drm->fence; in nouveau_local_fence()
171 struct nouveau_fence_priv *priv = (void*)chan->drm->fence; in nouveau_fence_context_new()
180 if (chan == chan->drm->cechan) in nouveau_fence_context_new()
182 else if (chan == chan->drm->channel) in nouveau_fence_context_new()
262 struct nouveau_fence_priv *priv = (void*)chan->drm->fence; in nouveau_fence_emit()
414 f = nouveau_local_fence(fence, chan->drm); in nouveau_fence_sync()
439 f = nouveau_local_fence(fence, chan->drm); in nouveau_fence_sync()
Dnouveau_sgdma.c96 struct nouveau_drm *drm = nouveau_bdev(bdev); in nouveau_sgdma_create_ttm() local
103 if (drm->device.info.family < NV_DEVICE_INFO_V0_TESLA) in nouveau_sgdma_create_ttm()
Dnouveau_bios.h39 struct nouveau_drm *drm = nouveau_drm((d)); \
40 ROM16(x) ? &drm->vbios.data[ROM16(x)] : NULL; \
Dnv50_display.c1212 struct nouveau_drm *drm = nouveau_drm(crtc->dev); in nv50_crtc_mode_set_base() local
1217 NV_DEBUG(drm, "No FB bound\n"); in nv50_crtc_mode_set_base()
1679 struct nouveau_drm *drm = nouveau_drm(connector->dev); in nv50_dac_create() local
1680 struct nvkm_i2c *i2c = nvxx_i2c(&drm->device); in nv50_dac_create()
1925 struct nouveau_drm *drm = nouveau_drm(dev); in nv50_sor_mode_set() local
1927 struct nvbios *bios = &drm->vbios; in nv50_sor_mode_set()
2064 struct nouveau_drm *drm = nouveau_drm(connector->dev); in nv50_sor_create() local
2065 struct nvkm_i2c *i2c = nvxx_i2c(&drm->device); in nv50_sor_create()
2235 struct nouveau_drm *drm = nouveau_drm(connector->dev); in nv50_pior_create() local
2236 struct nvkm_i2c *i2c = nvxx_i2c(&drm->device); in nv50_pior_create()
[all …]
Dnouveau_chan.h9 struct nouveau_drm *drm; member
DKbuild1 ccflags-y := -Iinclude/drm
/linux-4.1.27/drivers/gpu/drm/tegra/
Ddrm.c40 struct drm_device *drm = tegra->drm; in tegra_atomic_complete() local
58 drm_atomic_helper_commit_modeset_disables(drm, state); in tegra_atomic_complete()
59 drm_atomic_helper_commit_planes(drm, state); in tegra_atomic_complete()
60 drm_atomic_helper_commit_modeset_enables(drm, state); in tegra_atomic_complete()
62 drm_atomic_helper_wait_for_vblanks(drm, state); in tegra_atomic_complete()
64 drm_atomic_helper_cleanup_planes(drm, state); in tegra_atomic_complete()
76 static int tegra_atomic_commit(struct drm_device *drm, in tegra_atomic_commit() argument
79 struct tegra_drm *tegra = drm->dev_private; in tegra_atomic_commit()
82 err = drm_atomic_helper_prepare_planes(drm, state); in tegra_atomic_commit()
96 drm_atomic_helper_swap_state(drm, state); in tegra_atomic_commit()
[all …]
Dfb.c94 static struct tegra_fb *tegra_fb_alloc(struct drm_device *drm, in tegra_fb_alloc() argument
120 err = drm_framebuffer_init(drm, &fb->base, &tegra_fb_funcs); in tegra_fb_alloc()
122 dev_err(drm->dev, "failed to initialize framebuffer: %d\n", in tegra_fb_alloc()
132 struct drm_framebuffer *tegra_fb_create(struct drm_device *drm, in tegra_fb_create() argument
150 gem = drm_gem_object_lookup(drm, file, cmd->handles[i]); in tegra_fb_create()
169 fb = tegra_fb_alloc(drm, cmd, planes, i); in tegra_fb_create()
202 struct drm_device *drm = helper->dev; in tegra_fbdev_probe() local
223 bo = tegra_bo_create(drm, size, 0); in tegra_fbdev_probe()
227 info = framebuffer_alloc(0, drm->dev); in tegra_fbdev_probe()
229 dev_err(drm->dev, "failed to allocate framebuffer info\n"); in tegra_fbdev_probe()
[all …]
Dgem.c31 struct drm_device *drm = obj->gem.dev; in tegra_bo_put() local
33 mutex_lock(&drm->struct_mutex); in tegra_bo_put()
35 mutex_unlock(&drm->struct_mutex); in tegra_bo_put()
75 struct drm_device *drm = obj->gem.dev; in tegra_bo_get() local
77 mutex_lock(&drm->struct_mutex); in tegra_bo_get()
79 mutex_unlock(&drm->struct_mutex); in tegra_bo_get()
110 dev_err(tegra->drm->dev, "out of I/O virtual memory: %zd\n", in tegra_bo_iommu_map()
120 dev_err(tegra->drm->dev, "failed to map buffer: %zd\n", err); in tegra_bo_iommu_map()
147 static struct tegra_bo *tegra_bo_alloc_object(struct drm_device *drm, in tegra_bo_alloc_object() argument
160 err = drm_gem_object_init(drm, &bo->gem, size); in tegra_bo_alloc_object()
[all …]
Ddrm.h40 struct drm_device *drm; member
75 struct drm_tegra_submit *args, struct drm_device *drm,
80 struct drm_tegra_submit *args, struct drm_device *drm,
101 int tegra_drm_init(struct tegra_drm *tegra, struct drm_device *drm);
221 int tegra_dc_rgb_init(struct drm_device *drm, struct tegra_dc *dc);
227 int tegra_output_init(struct drm_device *drm, struct tegra_output *output);
259 struct drm_framebuffer *tegra_fb_create(struct drm_device *drm,
262 int tegra_drm_fb_prepare(struct drm_device *drm);
263 void tegra_drm_fb_free(struct drm_device *drm);
264 int tegra_drm_fb_init(struct drm_device *drm);
[all …]
Dgem.h55 struct tegra_bo *tegra_bo_create(struct drm_device *drm, size_t size,
58 struct drm_device *drm,
63 int tegra_bo_dumb_create(struct drm_file *file, struct drm_device *drm,
65 int tegra_bo_dumb_map_offset(struct drm_file *file, struct drm_device *drm,
72 struct dma_buf *tegra_gem_prime_export(struct drm_device *drm,
75 struct drm_gem_object *tegra_gem_prime_import(struct drm_device *drm,
DMakefile3 tegra-drm-y := \
4 drm.o \
18 obj-$(CONFIG_DRM_TEGRA) += tegra-drm.o
Dgr2d.c30 struct tegra_drm_client *drm = host1x_to_drm_client(client); in gr2d_init() local
33 struct gr2d *gr2d = to_gr2d(drm); in gr2d_init()
45 return tegra_drm_register_client(dev->dev_private, drm); in gr2d_init()
50 struct tegra_drm_client *drm = host1x_to_drm_client(client); in gr2d_exit() local
52 struct gr2d *gr2d = to_gr2d(drm); in gr2d_exit()
55 err = tegra_drm_unregister_client(dev->dev_private, drm); in gr2d_exit()
Dgr3d.c40 struct tegra_drm_client *drm = host1x_to_drm_client(client); in gr3d_init() local
43 struct gr3d *gr3d = to_gr3d(drm); in gr3d_init()
55 return tegra_drm_register_client(dev->dev_private, drm); in gr3d_init()
60 struct tegra_drm_client *drm = host1x_to_drm_client(client); in gr3d_exit() local
62 struct gr3d *gr3d = to_gr3d(drm); in gr3d_exit()
65 err = tegra_drm_unregister_client(dev->dev_private, drm); in gr3d_exit()
Ddc.c627 static struct drm_plane *tegra_dc_primary_plane_create(struct drm_device *drm, in tegra_dc_primary_plane_create() argument
642 unsigned long possible_crtcs = 1 << drm->mode_config.num_crtc; in tegra_dc_primary_plane_create()
655 err = drm_universal_plane_init(drm, &plane->base, possible_crtcs, in tegra_dc_primary_plane_create()
799 static struct drm_plane *tegra_dc_cursor_plane_create(struct drm_device *drm, in tegra_dc_cursor_plane_create() argument
821 err = drm_universal_plane_init(drm, &plane->base, 1 << dc->pipe, in tegra_dc_cursor_plane_create()
866 static struct drm_plane *tegra_dc_overlay_plane_create(struct drm_device *drm, in tegra_dc_overlay_plane_create() argument
884 err = drm_universal_plane_init(drm, &plane->base, 1 << dc->pipe, in tegra_dc_overlay_plane_create()
897 static int tegra_dc_add_planes(struct drm_device *drm, struct tegra_dc *dc) in tegra_dc_add_planes() argument
903 plane = tegra_dc_overlay_plane_create(drm, dc, 1 + i); in tegra_dc_add_planes()
948 struct drm_device *drm = dc->base.dev; in tegra_dc_finish_page_flip() local
[all …]
Drgb.c298 int tegra_dc_rgb_init(struct drm_device *drm, struct tegra_dc *dc) in tegra_dc_rgb_init() argument
306 drm_connector_init(drm, &output->connector, &tegra_rgb_connector_funcs, in tegra_dc_rgb_init()
312 drm_encoder_init(drm, &output->encoder, &tegra_rgb_encoder_funcs, in tegra_dc_rgb_init()
321 err = tegra_output_init(drm, output); in tegra_dc_rgb_init()
DKconfig15 will be called tegra-drm.
Doutput.c187 int tegra_output_init(struct drm_device *drm, struct tegra_output *output) in tegra_output_init() argument
Ddsi.c1000 struct drm_device *drm = dev_get_drvdata(client->parent); in tegra_dsi_init() local
1016 drm_connector_init(drm, &dsi->output.connector, in tegra_dsi_init()
1023 drm_encoder_init(drm, &dsi->output.encoder, in tegra_dsi_init()
1033 err = tegra_output_init(drm, &dsi->output); in tegra_dsi_init()
1045 err = tegra_dsi_debugfs_init(dsi, drm->primary); in tegra_dsi_init()
Dhdmi.c1325 struct drm_device *drm = dev_get_drvdata(client->parent); in tegra_hdmi_init() local
1331 drm_connector_init(drm, &hdmi->output.connector, in tegra_hdmi_init()
1338 drm_encoder_init(drm, &hdmi->output.encoder, &tegra_hdmi_encoder_funcs, in tegra_hdmi_init()
1347 err = tegra_output_init(drm, &hdmi->output); in tegra_hdmi_init()
1356 err = tegra_hdmi_debugfs_init(hdmi, drm->primary); in tegra_hdmi_init()
Dsor.c1468 struct drm_device *drm = dev_get_drvdata(client->parent); in tegra_sor_init() local
1477 drm_connector_init(drm, &sor->output.connector, in tegra_sor_init()
1484 drm_encoder_init(drm, &sor->output.encoder, &tegra_sor_encoder_funcs, in tegra_sor_init()
1493 err = tegra_output_init(drm, &sor->output); in tegra_sor_init()
1502 err = tegra_sor_debugfs_init(sor, drm->primary); in tegra_sor_init()
/linux-4.1.27/drivers/gpu/drm/imx/
Dimx-drm-core.c40 struct drm_device *drm; member
61 static void imx_drm_driver_lastclose(struct drm_device *drm) in imx_drm_driver_lastclose() argument
64 struct imx_drm_device *imxdrm = drm->dev_private; in imx_drm_driver_lastclose()
71 static int imx_drm_driver_unload(struct drm_device *drm) in imx_drm_driver_unload() argument
74 struct imx_drm_device *imxdrm = drm->dev_private; in imx_drm_driver_unload()
77 drm_kms_helper_poll_fini(drm); in imx_drm_driver_unload()
84 component_unbind_all(drm->dev, drm); in imx_drm_driver_unload()
86 drm_vblank_cleanup(drm); in imx_drm_driver_unload()
87 drm_mode_config_cleanup(drm); in imx_drm_driver_unload()
89 platform_set_drvdata(drm->platformdev, NULL); in imx_drm_driver_unload()
[all …]
Dimx-drm.h26 int imx_drm_add_crtc(struct drm_device *drm, struct drm_crtc *crtc,
39 void imx_drm_mode_config_init(struct drm_device *drm);
50 int imx_drm_encoder_parse_of(struct drm_device *drm,
Dparallel-display.c171 static int imx_pd_register(struct drm_device *drm, in imx_pd_register() argument
176 ret = imx_drm_encoder_parse_of(drm, &imxpd->encoder, in imx_pd_register()
189 drm_encoder_init(drm, &imxpd->encoder, &imx_pd_encoder_funcs, in imx_pd_register()
194 drm_connector_init(drm, &imxpd->connector, &imx_pd_connector_funcs, in imx_pd_register()
209 struct drm_device *drm = data; in imx_pd_bind() local
246 ret = imx_pd_register(drm, imxpd); in imx_pd_bind()
Dipuv3-crtc.c211 struct drm_device *drm = ipu_crtc->base.dev; in ipu_crtc_handle_pageflip() local
213 spin_lock_irqsave(&drm->event_lock, flags); in ipu_crtc_handle_pageflip()
215 drm_send_vblank_event(drm, -1, ipu_crtc->page_flip_event); in ipu_crtc_handle_pageflip()
218 spin_unlock_irqrestore(&drm->event_lock, flags); in ipu_crtc_handle_pageflip()
347 struct ipu_client_platformdata *pdata, struct drm_device *drm) in ipu_crtc_init() argument
361 ret = imx_drm_add_crtc(drm, &ipu_crtc->base, &ipu_crtc->imx_crtc, in ipu_crtc_init()
435 struct drm_device *drm = data; in ipu_drm_bind() local
445 ret = ipu_crtc_init(ipu_crtc, pdata, drm); in ipu_drm_bind()
Ddw_hdmi-imx.c196 struct drm_device *drm = data; in dw_hdmi_imx_bind() local
225 encoder->possible_crtcs = drm_of_find_possible_crtcs(drm, dev->of_node); in dw_hdmi_imx_bind()
240 drm_encoder_init(drm, encoder, &dw_hdmi_imx_encoder_funcs, in dw_hdmi_imx_bind()
Dimx-tve.c496 static int imx_tve_register(struct drm_device *drm, struct imx_tve *tve) in imx_tve_register() argument
504 ret = imx_drm_encoder_parse_of(drm, &tve->encoder, in imx_tve_register()
510 drm_encoder_init(drm, &tve->encoder, &imx_tve_encoder_funcs, in imx_tve_register()
515 drm_connector_init(drm, &tve->connector, &imx_tve_connector_funcs, in imx_tve_register()
565 struct drm_device *drm = data; in imx_tve_bind() local
683 ret = imx_tve_register(drm, tve); in imx_tve_bind()
Dimx-ldb.c401 static int imx_ldb_register(struct drm_device *drm, in imx_ldb_register() argument
407 ret = imx_drm_encoder_parse_of(drm, &imx_ldb_ch->encoder, in imx_ldb_register()
424 drm_encoder_init(drm, &imx_ldb_ch->encoder, &imx_ldb_encoder_funcs, in imx_ldb_register()
429 drm_connector_init(drm, &imx_ldb_ch->connector, in imx_ldb_register()
508 struct drm_device *drm = data; in imx_ldb_bind() local
631 ret = imx_ldb_register(drm, channel); in imx_ldb_bind()
DMakefile2 imxdrm-objs := imx-drm-core.o
/linux-4.1.27/drivers/gpu/drm/rockchip/
Drockchip_drm_gem.c29 struct drm_device *drm = obj->dev; in rockchip_gem_alloc_buf() local
37 rk_obj->kvaddr = dma_alloc_attrs(drm->dev, obj->size, in rockchip_gem_alloc_buf()
51 struct drm_device *drm = obj->dev; in rockchip_gem_free_buf() local
53 dma_free_attrs(drm->dev, obj->size, rk_obj->kvaddr, rk_obj->dma_addr, in rockchip_gem_free_buf()
63 struct drm_device *drm = obj->dev; in rockchip_drm_gem_object_mmap() local
71 ret = dma_mmap_attrs(drm->dev, vma, rk_obj->kvaddr, rk_obj->dma_addr, in rockchip_drm_gem_object_mmap()
82 struct drm_device *drm = obj->dev; in rockchip_gem_mmap_buf() local
85 mutex_lock(&drm->struct_mutex); in rockchip_gem_mmap_buf()
87 mutex_unlock(&drm->struct_mutex); in rockchip_gem_mmap_buf()
110 rockchip_gem_create_object(struct drm_device *drm, unsigned int size, in rockchip_gem_create_object() argument
[all …]
Drockchip_drm_drv.c92 static struct drm_crtc *rockchip_crtc_from_pipe(struct drm_device *drm, in rockchip_crtc_from_pipe() argument
98 list_for_each_entry(crtc, &drm->mode_config.crtc_list, head) in rockchip_crtc_from_pipe()
306 struct drm_device *drm = dev_get_drvdata(dev); in rockchip_drm_sys_suspend() local
309 if (!drm) in rockchip_drm_sys_suspend()
312 drm_modeset_lock_all(drm); in rockchip_drm_sys_suspend()
313 list_for_each_entry(connector, &drm->mode_config.connector_list, head) { in rockchip_drm_sys_suspend()
322 drm_modeset_unlock_all(drm); in rockchip_drm_sys_suspend()
329 struct drm_device *drm = dev_get_drvdata(dev); in rockchip_drm_sys_resume() local
334 if (!drm) in rockchip_drm_sys_resume()
337 drm_modeset_lock_all(drm); in rockchip_drm_sys_resume()
[all …]
Ddw_hdmi-rockchip.c251 struct drm_device *drm = data; in dw_hdmi_rockchip_bind() local
280 encoder->possible_crtcs = drm_of_find_possible_crtcs(drm, dev->of_node); in dw_hdmi_rockchip_bind()
297 drm_encoder_init(drm, encoder, &dw_hdmi_rockchip_encoder_funcs, in dw_hdmi_rockchip_bind()
Drockchip_drm_gem.h44 rockchip_gem_create_object(struct drm_device *drm, unsigned int size,
Drockchip_drm_vop.c1012 struct drm_device *drm = crtc->dev; in vop_win_state_complete() local
1016 spin_lock_irqsave(&drm->event_lock, flags); in vop_win_state_complete()
1017 drm_send_vblank_event(drm, -1, state->event); in vop_win_state_complete()
1018 spin_unlock_irqrestore(&drm->event_lock, flags); in vop_win_state_complete()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_gem_cma_helper.c56 __drm_gem_cma_create(struct drm_device *drm, size_t size) in __drm_gem_cma_create() argument
68 ret = drm_gem_object_init(drm, gem_obj, size); in __drm_gem_cma_create()
98 struct drm_gem_cma_object *drm_gem_cma_create(struct drm_device *drm, in drm_gem_cma_create() argument
106 cma_obj = __drm_gem_cma_create(drm, size); in drm_gem_cma_create()
110 cma_obj->vaddr = dma_alloc_writecombine(drm->dev, size, in drm_gem_cma_create()
113 dev_err(drm->dev, "failed to allocate buffer with size %d\n", in drm_gem_cma_create()
145 struct drm_device *drm, size_t size, in drm_gem_cma_create_with_handle() argument
152 cma_obj = drm_gem_cma_create(drm, size); in drm_gem_cma_create_with_handle()
220 struct drm_device *drm, in drm_gem_cma_dumb_create_internal() argument
232 cma_obj = drm_gem_cma_create_with_handle(file_priv, drm, args->size, in drm_gem_cma_dumb_create_internal()
[all …]
DKconfig80 source "drivers/gpu/drm/i2c/Kconfig"
82 source "drivers/gpu/drm/bridge/Kconfig"
121 source "drivers/gpu/drm/radeon/Kconfig"
123 source "drivers/gpu/drm/nouveau/Kconfig"
134 source "drivers/gpu/drm/i915/Kconfig"
177 source "drivers/gpu/drm/exynos/Kconfig"
179 source "drivers/gpu/drm/rockchip/Kconfig"
181 source "drivers/gpu/drm/vmwgfx/Kconfig"
183 source "drivers/gpu/drm/gma500/Kconfig"
185 source "drivers/gpu/drm/udl/Kconfig"
[all …]
DMakefile5 ccflags-y := -Iinclude/drm
7 drm-y := drm_auth.o drm_bufs.o drm_cache.o \
19 drm-$(CONFIG_COMPAT) += drm_ioc32.o
20 drm-$(CONFIG_DRM_GEM_CMA_HELPER) += drm_gem_cma_helper.o
21 drm-$(CONFIG_PCI) += ati_pcigart.o
22 drm-$(CONFIG_DRM_PANEL) += drm_panel.o
23 drm-$(CONFIG_OF) += drm_of.o
35 obj-$(CONFIG_DRM) += drm.o
Ddrm_panel.c63 panel->drm = connector->dev; in drm_panel_attach()
72 panel->drm = NULL; in drm_panel_detach()
Ddrm_trace.h9 #define TRACE_SYSTEM drm
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
Dhw.c87 struct nouveau_drm *drm = nouveau_drm(dev); in NVSetOwner() local
92 if (drm->device.info.chipset == 0x11) { in NVSetOwner()
103 if (drm->device.info.chipset == 0x11) { /* set me harder */ in NVSetOwner()
135 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_hw_decode_pll() local
152 else if (drm->device.info.chipset == 0x30 || drm->device.info.chipset == 0x35) { in nouveau_hw_decode_pll()
167 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_hw_get_pllvals() local
168 struct nvif_device *device = &drm->device; in nouveau_hw_get_pllvals()
187 if (drm->device.info.family == NV_DEVICE_INFO_V0_CELSIUS && reg1 >= NV_PRAMDAC_VPLL_COEFF) { in nouveau_hw_get_pllvals()
254 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_hw_fix_bad_vpll() local
255 struct nvif_device *device = &drm->device; in nouveau_hw_fix_bad_vpll()
[all …]
Dcrtc.c114 struct nouveau_drm *drm = nouveau_drm(dev); in nv_crtc_calc_state_ext() local
115 struct nvkm_bios *bios = nvxx_bios(&drm->device); in nv_crtc_calc_state_ext()
116 struct nvkm_clk *clk = nvxx_clk(&drm->device); in nv_crtc_calc_state_ext()
140 if (drm->device.info.chipset > 0x40 && dot_clock <= (pll_lim.vco1.max_freq / 2)) in nv_crtc_calc_state_ext()
150 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) in nv_crtc_calc_state_ext()
153 if (drm->device.info.chipset < 0x41) in nv_crtc_calc_state_ext()
159 NV_DEBUG(drm, "vpll: n1 %d n2 %d m1 %d m2 %d log2p %d\n", in nv_crtc_calc_state_ext()
162 NV_DEBUG(drm, "vpll: n %d m %d log2p %d\n", in nv_crtc_calc_state_ext()
173 struct nouveau_drm *drm = nouveau_drm(dev); in nv_crtc_dpms() local
177 NV_DEBUG(drm, "Setting dpms mode %d on CRTC %d\n", mode, in nv_crtc_dpms()
[all …]
Ddisp.c37 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_display_create() local
38 struct nvkm_i2c *i2c = nvxx_i2c(&drm->device); in nv04_display_create()
39 struct dcb_table *dcb = &drm->vbios.dcb; in nv04_display_create()
50 nvif_object_map(nvif_object(&drm->device)); in nv04_display_create()
85 NV_WARN(drm, "DCB type %d not known\n", dcbent->type); in nv04_display_create()
96 NV_WARN(drm, "%s has no encoders, removing\n", in nv04_display_create()
126 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_display_destroy() local
154 nvif_object_unmap(nvif_object(&drm->device)); in nv04_display_destroy()
Dhw.h169 struct nouveau_drm *drm = nouveau_drm(dev); in NVReadPRMVIO() local
174 if (head && drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) in NVReadPRMVIO()
185 struct nouveau_drm *drm = nouveau_drm(dev); in NVWritePRMVIO() local
189 if (head && drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) in NVWritePRMVIO()
263 struct nouveau_drm *drm = nouveau_drm(dev); in nv_heads_tied() local
265 if (drm->device.info.chipset == 0x11) in nv_heads_tied()
315 struct nouveau_drm *drm = nouveau_drm(dev); in NVLockVgaCrtcs() local
321 if (drm->device.info.chipset == 0x11 && !nv_heads_tied(dev)) in NVLockVgaCrtcs()
336 struct nouveau_drm *drm = nouveau_drm(dev); in nv_cursor_width() local
338 return drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS ? NV10_CURSOR_SIZE : NV04_CURSOR_SIZE; in nv_cursor_width()
[all …]
Ddac.c132 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_dac_detect() local
223 NV_DEBUG(drm, "Load detected on head A\n"); in nv04_dac_detect()
233 struct nouveau_drm *drm = nouveau_drm(dev); in nv17_dac_sample_load() local
246 if (drm->vbios.tvdactestval) in nv17_dac_sample_load()
247 testval = drm->vbios.tvdactestval; in nv17_dac_sample_load()
251 if (drm->vbios.dactestval) in nv17_dac_sample_load()
252 testval = drm->vbios.dactestval; in nv17_dac_sample_load()
286 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CURIE) { in nv17_dac_sample_load()
333 struct nouveau_drm *drm = nouveau_drm(encoder->dev); in nv17_dac_detect() local
341 NV_DEBUG(drm, "Load detected on output %c\n", in nv17_dac_detect()
[all …]
Dtvnv17.c48 struct nouveau_drm *drm = nouveau_drm(dev); in nv42_tv_sample_load() local
49 struct nvkm_gpio *gpio = nvxx_gpio(&drm->device); in nv42_tv_sample_load()
58 if (drm->vbios.tvdactestval) in nv42_tv_sample_load()
59 testval = drm->vbios.tvdactestval; in nv42_tv_sample_load()
132 struct nouveau_drm *drm = nouveau_drm(dev); in get_tv_detect_quirks() local
133 struct nvif_device *device = &drm->device; in get_tv_detect_quirks()
155 struct nouveau_drm *drm = nouveau_drm(dev); in nv17_tv_detect() local
165 if (drm->device.info.chipset == 0x42 || in nv17_tv_detect()
166 drm->device.info.chipset == 0x43) in nv17_tv_detect()
200 NV_INFO(drm, "Load detected on output %c\n", in nv17_tv_detect()
[all …]
Dtvnv04.c56 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_tv_identify() local
57 struct nvkm_i2c *i2c = nvxx_i2c(&drm->device); in nv04_tv_identify()
74 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_tv_dpms() local
79 NV_DEBUG(drm, "Setting dpms mode %d on TV encoder (output %d)\n", in nv04_tv_dpms()
165 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_tv_commit() local
171 NV_DEBUG(drm, "Output %s is running on CRTC %d using output %c\n", in nv04_tv_commit()
206 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_tv_create() local
207 struct nvkm_i2c *i2c = nvxx_i2c(&drm->device); in nv04_tv_create()
Ddisp.h129 struct nouveau_drm *drm = nouveau_drm(dev); in nv_two_heads() local
132 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS && impl != 0x0100 && in nv_two_heads()
148 struct nouveau_drm *drm = nouveau_drm(dev); in nv_two_reg_pll() local
151 if (impl == 0x0310 || impl == 0x0340 || drm->device.info.family >= NV_DEVICE_INFO_V0_CURIE) in nv_two_reg_pll()
172 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_bios_run_init_table() local
173 struct nvkm_bios *bios = nvxx_bios(&drm->device); in nouveau_bios_run_init_table()
Ddfp.c285 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_dfp_mode_set() local
295 NV_DEBUG(drm, "Output mode on CRTC %d:\n", nv_crtc->index); in nv04_dfp_mode_set()
303 drm->vbios.digital_min_front_porch) in nv04_dfp_mode_set()
306 regp->fp_horiz_regs[FP_CRTC] = output_mode->hsync_start - drm->vbios.digital_min_front_porch - 1; in nv04_dfp_mode_set()
419 if (drm->device.info.chipset == 0x11) in nv04_dfp_mode_set()
430 if (drm->device.info.chipset != 0x11) { in nv04_dfp_mode_set()
447 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_dfp_commit() local
466 if (drm->device.info.chipset < 0x44) in nv04_dfp_commit()
479 NV_DEBUG(drm, "Output %s is running on CRTC %d using output %c\n", in nv04_dfp_commit()
515 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_lvds_dpms() local
[all …]
Darb.c200 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_update_arb() local
230 if (drm->device.info.family == NV_DEVICE_INFO_V0_TNT) in nv04_update_arb()
255 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_calc_arb() local
257 if (drm->device.info.family < NV_DEVICE_INFO_V0_KELVIN) in nouveau_calc_arb()
Dcursor.c41 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_cursor_set_offset() local
58 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) in nv04_cursor_set_offset()
Doverlay.c262 struct nouveau_drm *drm = nouveau_drm(device); in nv10_overlay_init() local
270 switch (drm->device.info.chipset) { in nv10_overlay_init()
339 NV_ERROR(drm, "Failed to create plane\n"); in nv10_overlay_init()
455 struct nouveau_drm *drm = nouveau_drm(device); in nv04_overlay_init() local
491 NV_ERROR(drm, "Failed to create plane\n"); in nv04_overlay_init()
/linux-4.1.27/drivers/gpu/drm/rcar-du/
DMakefile1 rcar-du-drm-y := rcar_du_crtc.o \
10 rcar-du-drm-$(CONFIG_DRM_RCAR_HDMI) += rcar_du_hdmicon.o \
12 rcar-du-drm-$(CONFIG_DRM_RCAR_LVDS) += rcar_du_lvdsenc.o
14 obj-$(CONFIG_DRM_RCAR_DU) += rcar-du-drm.o
DKconfig12 If M is selected the module will be called rcar-du-drm.
/linux-4.1.27/drivers/hid/
Dhid-wiimote-debug.c23 struct dentry *drm; member
106 __u8 drm; in wiidebug_drm_show() local
109 drm = dbg->wdata->state.drm; in wiidebug_drm_show()
112 if (drm < WIIPROTO_REQ_MAX) in wiidebug_drm_show()
113 str = wiidebug_drmmap[drm]; in wiidebug_drm_show()
192 dbg->drm = debugfs_create_file("drm", S_IRUSR, in wiidebug_init()
194 if (!dbg->drm) in wiidebug_init()
222 debugfs_remove(dbg->drm); in wiidebug_deinit()
Dhid-wiimote.h120 __u8 drm; member
264 extern void wiiproto_req_drm(struct wiimote_data *wdata, __u8 drm);
Dhid-wiimote-core.c243 void wiiproto_req_drm(struct wiimote_data *wdata, __u8 drm) in wiiproto_req_drm() argument
248 drm = wdata->state.drm; in wiiproto_req_drm()
249 else if (drm == WIIPROTO_REQ_NULL) in wiiproto_req_drm()
250 drm = select_drm(wdata); in wiiproto_req_drm()
254 cmd[2] = drm; in wiiproto_req_drm()
256 wdata->state.drm = drm; in wiiproto_req_drm()
1739 wdata->state.drm = WIIPROTO_REQ_DRM_K; in wiimote_create()
/linux-4.1.27/drivers/gpu/drm/sti/
Dsti_drm_drv.c43 struct drm_device *drm = private->drm_dev; in sti_drm_atomic_complete() local
61 drm_atomic_helper_commit_modeset_disables(drm, state); in sti_drm_atomic_complete()
62 drm_atomic_helper_commit_planes(drm, state); in sti_drm_atomic_complete()
63 drm_atomic_helper_commit_modeset_enables(drm, state); in sti_drm_atomic_complete()
65 drm_atomic_helper_wait_for_vblanks(drm, state); in sti_drm_atomic_complete()
67 drm_atomic_helper_cleanup_planes(drm, state); in sti_drm_atomic_complete()
79 static int sti_drm_atomic_commit(struct drm_device *drm, in sti_drm_atomic_commit() argument
82 struct sti_drm_private *private = drm->dev_private; in sti_drm_atomic_commit()
85 err = drm_atomic_helper_prepare_planes(drm, state); in sti_drm_atomic_commit()
99 drm_atomic_helper_swap_state(drm, state); in sti_drm_atomic_commit()
/linux-4.1.27/include/drm/
Ddrm_gem_cma_helper.h34 struct drm_device *drm,
39 struct drm_device *drm,
44 struct drm_device *drm, u32 handle,
51 struct drm_gem_cma_object *drm_gem_cma_create(struct drm_device *drm,
Ddrm_panel.h79 struct drm_device *drm; member
/linux-4.1.27/drivers/gpu/drm/bochs/
DMakefile1 ccflags-y := -Iinclude/drm
2 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
DKconfig12 If M is selected the module will be called bochs-drm.
/linux-4.1.27/drivers/gpu/drm/msm/adreno/
Dadreno_gpu.c303 int adreno_gpu_init(struct drm_device *drm, struct platform_device *pdev, in adreno_gpu_init() argument
327 ret = msm_gpu_init(drm, pdev, &adreno_gpu->base, &funcs->base, in adreno_gpu_init()
333 ret = request_firmware(&adreno_gpu->pm4, adreno_gpu->info->pm4fw, drm->dev); in adreno_gpu_init()
335 dev_err(drm->dev, "failed to load %s PM4 firmware: %d\n", in adreno_gpu_init()
340 ret = request_firmware(&adreno_gpu->pfp, adreno_gpu->info->pfpfw, drm->dev); in adreno_gpu_init()
342 dev_err(drm->dev, "failed to load %s PFP firmware: %d\n", in adreno_gpu_init()
355 mutex_lock(&drm->struct_mutex); in adreno_gpu_init()
356 adreno_gpu->memptrs_bo = msm_gem_new(drm, sizeof(*adreno_gpu->memptrs), in adreno_gpu_init()
358 mutex_unlock(&drm->struct_mutex); in adreno_gpu_init()
362 dev_err(drm->dev, "could not allocate memptrs: %d\n", ret); in adreno_gpu_init()
[all …]
Dadreno_gpu.h239 int adreno_gpu_init(struct drm_device *drm, struct platform_device *pdev,
/linux-4.1.27/drivers/gpu/drm/shmobile/
DMakefile1 shmob-drm-y := shmob_drm_backlight.o \
7 obj-$(CONFIG_DRM_SHMOBILE) += shmob-drm.o
DKconfig14 If M is selected the module will be called shmob-drm.
/linux-4.1.27/drivers/gpu/drm/msm/edp/
Dedp.c77 struct drm_device *drm = dev_get_drvdata(master); in edp_bind() local
78 struct msm_drm_private *priv = drm->dev_private; in edp_bind()
92 struct drm_device *drm = dev_get_drvdata(master); in edp_unbind() local
93 struct msm_drm_private *priv = drm->dev_private; in edp_unbind()
/linux-4.1.27/drivers/gpu/drm/msm/
Dmsm_gpu.c527 int msm_gpu_init(struct drm_device *drm, struct platform_device *pdev, in msm_gpu_init() argument
537 gpu->dev = drm; in msm_gpu_init()
567 dev_err(drm->dev, "failed to get irq: %d\n", ret); in msm_gpu_init()
574 dev_err(drm->dev, "failed to request IRQ%u: %d\n", gpu->irq, ret); in msm_gpu_init()
608 dev_info(drm->dev, "%s: using IOMMU\n", name); in msm_gpu_init()
611 dev_info(drm->dev, "%s: no IOMMU, fallback to VRAM carveout!\n", name); in msm_gpu_init()
613 gpu->id = msm_register_mmu(drm, gpu->mmu); in msm_gpu_init()
617 mutex_lock(&drm->struct_mutex); in msm_gpu_init()
619 mutex_unlock(&drm->struct_mutex); in msm_gpu_init()
623 dev_err(drm->dev, "could not create ringbuffer: %d\n", ret); in msm_gpu_init()
DMakefile1 ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/msm
DNOTES1 NOTES about msm drm/kms driver:
25 So, the approach is one drm driver, with some modularity. Different
43 Since the irq's that drm core mostly cares about are vblank/framedone,
Dmsm_gpu.h164 int msm_gpu_init(struct drm_device *drm, struct platform_device *pdev,
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
DMakefile5 ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/amd/include/
/linux-4.1.27/drivers/gpu/drm/msm/dsi/
Ddsi.c82 struct drm_device *drm = dev_get_drvdata(master); in dsi_bind() local
83 struct msm_drm_private *priv = drm->dev_private; in dsi_bind()
100 struct drm_device *drm = dev_get_drvdata(master); in dsi_unbind() local
101 struct msm_drm_private *priv = drm->dev_private; in dsi_unbind()
/linux-4.1.27/drivers/gpu/drm/exynos/
DMakefile5 ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/exynos
/linux-4.1.27/Documentation/ioctl/
Dbotching-up-ioctls.txt17 lessons learned while botching the job for the drm/i915 driver. Most of these
40 checks the structure size, which e.g. the drm core does.
62 the structure. The drm core checks the passed-in size for each ioctl call
81 Nowadays we don't have any excuse left any more for drm drivers being neat
105 how you handle ioctl restarting - e.g. drm has a tiny drmIoctl helper in its
126 the ioctls supported by the drm/i915 get this fully right, which means there's
129 * Use CLOCK_MONOTONIC as your reference time, always. It's what alsa, drm and
165 A full-blown drm driver essentially implements a little OS, but specialized to
180 are truly device-unique. One counterexample in the drm modeset interfaces is
186 * Think about uniqueness requirements for userspace handles. E.g. for most drm
[all …]
Dioctl-number.txt209 'd' 00-FF linux/char/drm/drm/h conflict!
/linux-4.1.27/drivers/gpu/
DMakefile5 obj-y += drm/ vga/
/linux-4.1.27/drivers/gpu/drm/tdfx/
DMakefile5 ccflags-y := -Iinclude/drm
/linux-4.1.27/drivers/gpu/drm/vgem/
DMakefile1 ccflags-y := -Iinclude/drm
/linux-4.1.27/drivers/gpu/drm/sis/
DMakefile5 ccflags-y = -Iinclude/drm
/linux-4.1.27/drivers/gpu/drm/i810/
DMakefile5 ccflags-y := -Iinclude/drm
/linux-4.1.27/drivers/gpu/drm/savage/
DMakefile5 ccflags-y = -Iinclude/drm
/linux-4.1.27/drivers/gpu/drm/bridge/
DMakefile1 ccflags-y := -Iinclude/drm
Ddw_hdmi.c1515 static int dw_hdmi_register(struct drm_device *drm, struct dw_hdmi *hdmi) in dw_hdmi_register() argument
1521 bridge = devm_kzalloc(drm->dev, sizeof(*bridge), GFP_KERNEL); in dw_hdmi_register()
1530 ret = drm_bridge_attach(drm, bridge); in dw_hdmi_register()
1541 drm_connector_init(drm, &hdmi->connector, &dw_hdmi_connector_funcs, in dw_hdmi_register()
1556 struct drm_device *drm = data; in dw_hdmi_bind() local
1670 ret = dw_hdmi_register(drm, hdmi); in dw_hdmi_bind()
/linux-4.1.27/drivers/gpu/drm/cirrus/
DMakefile1 ccflags-y := -Iinclude/drm
/linux-4.1.27/drivers/gpu/drm/r128/
DMakefile5 ccflags-y := -Iinclude/drm
/linux-4.1.27/drivers/gpu/drm/ast/
DMakefile5 ccflags-y := -Iinclude/drm
/linux-4.1.27/drivers/gpu/drm/mgag200/
DMakefile1 ccflags-y := -Iinclude/drm
/linux-4.1.27/drivers/gpu/drm/mga/
DMakefile5 ccflags-y := -Iinclude/drm
/linux-4.1.27/drivers/gpu/drm/via/
DMakefile5 ccflags-y := -Iinclude/drm
/linux-4.1.27/drivers/gpu/drm/tilcdc/
DMakefile1 ccflags-y := -Iinclude/drm
/linux-4.1.27/drivers/gpu/drm/udl/
DMakefile2 ccflags-y := -Iinclude/drm
DKconfig15 Say M/Y to add support for these devices via drm/kms interfaces.
/linux-4.1.27/drivers/gpu/drm/i2c/
DMakefile1 ccflags-y := -Iinclude/drm
Dtda998x_drv.c1499 struct drm_device *drm = data; in tda998x_bind() local
1511 crtcs = drm_of_find_possible_crtcs(drm, dev->of_node); in tda998x_bind()
1533 ret = drm_encoder_init(drm, &priv->encoder, &tda998x_encoder_funcs, in tda998x_bind()
1540 ret = drm_connector_init(drm, &priv->connector, in tda998x_bind()
/linux-4.1.27/drivers/gpu/drm/ttm/
DMakefile4 ccflags-y := -Iinclude/drm
/linux-4.1.27/drivers/gpu/drm/omapdrm/
DMakefile6 ccflags-y := -Iinclude/drm -Werror
/linux-4.1.27/drivers/gpu/drm/qxl/
DMakefile5 ccflags-y := -Iinclude/drm
/linux-4.1.27/drivers/gpu/drm/armada/
Darmada_fb.c45 #define FMT(drm, fmt, mod) \ in armada_framebuffer_create() argument
46 case DRM_FORMAT_##drm: \ in armada_framebuffer_create()
Darmada_crtc.c1049 int armada_drm_crtc_create(struct drm_device *drm, struct device *dev, in armada_drm_crtc_create() argument
1053 struct armada_private *priv = drm->dev_private; in armada_drm_crtc_create()
1058 ret = armada_drm_crtc_create_properties(drm); in armada_drm_crtc_create()
1072 if (dev != drm->dev) in armada_drm_crtc_create()
1077 dcrtc->num = drm->mode_config.num_crtc; in armada_drm_crtc_create()
1123 drm_crtc_init(drm, &dcrtc->crtc, &armada_crtc_funcs); in armada_drm_crtc_create()
1131 return armada_overlay_plane_create(drm, 1 << dcrtc->num); in armada_drm_crtc_create()
1138 struct drm_device *drm = data; in armada_lcd_bind() local
1177 return armada_drm_crtc_create(drm, dev, res, irq, variant, port); in armada_lcd_bind()
/linux-4.1.27/include/uapi/
DKbuild12 header-y += drm/
/linux-4.1.27/drivers/gpu/drm/msm/hdmi/
Dhdmi.c361 struct drm_device *drm = dev_get_drvdata(master); in hdmi_bind() local
362 struct msm_drm_private *priv = drm->dev_private; in hdmi_bind()
448 struct drm_device *drm = dev_get_drvdata(master); in hdmi_unbind() local
449 struct msm_drm_private *priv = drm->dev_private; in hdmi_unbind()
/linux-4.1.27/scripts/package/
Dmkspec21 PROVIDES=kernel-drm
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
DMakefile2 ccflags-y := -Iinclude/drm
/linux-4.1.27/drivers/gpu/drm/panel/
Dpanel-simple.c95 struct drm_device *drm = panel->base.drm; in panel_simple_get_fixed_modes() local
107 mode = drm_mode_create(drm); in panel_simple_get_fixed_modes()
109 dev_err(drm->dev, "failed to add mode %ux%u\n", in panel_simple_get_fixed_modes()
124 mode = drm_mode_duplicate(drm, m); in panel_simple_get_fixed_modes()
126 dev_err(drm->dev, "failed to add mode %ux%u@%u\n", in panel_simple_get_fixed_modes()
Dpanel-sharp-lq101r1sx01.c293 mode = drm_mode_duplicate(panel->drm, &default_mode); in sharp_panel_get_modes()
295 dev_err(panel->drm->dev, "failed to add mode %ux%ux@%u\n", in sharp_panel_get_modes()
/linux-4.1.27/include/uapi/drm/
DKbuild2 header-y += drm.h
/linux-4.1.27/drivers/staging/sm750fb/
DTODO9 - modify the code for drm framework
/linux-4.1.27/drivers/video/
DKconfig26 source "drivers/gpu/drm/Kconfig"
/linux-4.1.27/drivers/gpu/drm/gma500/
DMakefile4 ccflags-y += -I$(srctree)/include/drm
/linux-4.1.27/drivers/gpu/drm/radeon/
DMakefile5 ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/amd/include
/linux-4.1.27/Documentation/devicetree/bindings/mfd/
Datmel-hlcdc.txt14 - a Display Controller: see ../drm/atmel-hlcdc-dc.txt
/linux-4.1.27/drivers/gpu/drm/i915/
DMakefile5 ccflags-y := -Iinclude/drm
/linux-4.1.27/Documentation/devicetree/bindings/drm/bridge/
Ddw_hdmi.txt17 * Documentation/devicetree/bindings/drm/imx/hdmi.txt
/linux-4.1.27/Documentation/devicetree/bindings/video/
Dexynos_hdmi.txt1 Device-Tree bindings for drm hdmi driver
/linux-4.1.27/Documentation/EDID/
DHOWTO.txt20 (see drivers/gpu/drm/drm_edid_load.c) contains built-in data sets for
/linux-4.1.27/Documentation/zh_CN/
DHOWTO295 git.kernel.org:/pub/scm/linux/kernel/git/airlied/drm-2.6.git
/linux-4.1.27/arch/arm/mach-omap2/
DMakefile11 omap_device.o sram.o drm.o
/linux-4.1.27/
DMAINTAINERS494 T: git git://people.freedesktop.org/~airlied/linux (part of drm maint)
638 F: drivers/gpu/drm/amd/amdkfd/
639 F: drivers/gpu/drm/amd/include/cik_structs.h
640 F: drivers/gpu/drm/amd/include/kgd_kfd_interface.h
641 F: drivers/gpu/drm/radeon/radeon_kfd.c
642 F: drivers/gpu/drm/radeon/radeon_kfd.h
3352 F: drivers/gpu/drm/
3354 F: include/drm/
3355 F: include/uapi/drm/
3363 F: drivers/gpu/drm/radeon/
[all …]
/linux-4.1.27/Documentation/
Ddma-buf-sharing.txt240 and an imported one backed by a dma-buf. This is really important for drm
363 especially important for drm where the userspace part of contemporary OpenGL,