Home
last modified time | relevance | path

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

/linux-4.4.14/Documentation/DocBook/
Dgpu.xml.db1 API-drm-put-dev
2 API-drm-dev-alloc
3 API-drm-dev-ref
4 API-drm-dev-unref
5 API-drm-dev-register
6 API-drm-dev-unregister
7 API-drm-dev-set-unique
8 API-drm-pci-alloc
9 API-drm-pci-free
10 API-drm-get-pci-dev
[all …]
D.gpu.xml.cmd2drm/drm_drv.c drivers/gpu/drm/drm_drv.c drivers/gpu/drm/drm_pci.c drivers/gpu/drm/drm_platform.c d…
/linux-4.4.14/drivers/gpu/drm/nouveau/
Dnouveau_drm.c139 nouveau_accel_fini(struct nouveau_drm *drm) in nouveau_accel_fini() argument
141 nouveau_channel_idle(drm->channel); in nouveau_accel_fini()
142 nvif_object_fini(&drm->ntfy); in nouveau_accel_fini()
143 nvkm_gpuobj_del(&drm->notify); in nouveau_accel_fini()
144 nvif_notify_fini(&drm->flip); in nouveau_accel_fini()
145 nvif_object_fini(&drm->nvsw); in nouveau_accel_fini()
146 nouveau_channel_del(&drm->channel); in nouveau_accel_fini()
148 nouveau_channel_idle(drm->cechan); in nouveau_accel_fini()
149 nvif_object_fini(&drm->ttm.copy); in nouveau_accel_fini()
150 nouveau_channel_del(&drm->cechan); in nouveau_accel_fini()
[all …]
Dnouveau_ttm.c38 struct nouveau_drm *drm = nouveau_bdev(man->bdev); in nouveau_vram_manager_init() local
39 struct nvkm_fb *fb = nvxx_fb(&drm->device); in nouveau_vram_manager_init()
69 struct nouveau_drm *drm = nouveau_bdev(man->bdev); in nouveau_vram_manager_del() local
70 struct nvkm_ram *ram = nvxx_fb(&drm->device)->ram; in nouveau_vram_manager_del()
81 struct nouveau_drm *drm = nouveau_bdev(man->bdev); in nouveau_vram_manager_new() local
82 struct nvkm_ram *ram = nvxx_fb(&drm->device)->ram; in nouveau_vram_manager_new()
88 if (drm->device.info.ram_size == 0) in nouveau_vram_manager_new()
143 struct nouveau_drm *drm = nouveau_bdev(bo->bdev); in nouveau_gart_manager_new() local
153 switch (drm->device.info.family) { in nouveau_gart_manager_new()
161 if (drm->device.info.chipset != 0x50) in nouveau_gart_manager_new()
[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_object *device = &drm->device.object; in nv40_get_intensity()
53 struct nouveau_drm *drm = bl_get_data(bd); in nv40_set_intensity() local
54 struct nvif_object *device = &drm->device.object; in nv40_set_intensity()
73 struct nouveau_drm *drm = nouveau_drm(connector->dev); in nv40_backlight_init() local
74 struct nvif_object *device = &drm->device.object; 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_object *device = &drm->device.object; 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_object *device = &drm->device.object; in call_lvds_script()
[all …]
Dnouveau_vga.c15 struct nouveau_drm *drm = nouveau_drm(priv); in nouveau_vga_set_decode() local
16 struct nvif_object *device = &drm->device.object; in nouveau_vga_set_decode()
18 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE && in nouveau_vga_set_decode()
19 drm->device.info.chipset >= 0x4c) in nouveau_vga_set_decode()
22 if (drm->device.info.chipset >= 0x40) in nouveau_vga_set_decode()
87 nouveau_vga_init(struct nouveau_drm *drm) in nouveau_vga_init() argument
89 struct drm_device *dev = drm->dev; in nouveau_vga_init()
105 vga_switcheroo_init_domain_pm_ops(drm->dev->dev, &drm->vga_pm_domain); in nouveau_vga_init()
109 nouveau_vga_fini(struct nouveau_drm *drm) in nouveau_vga_fini() argument
111 struct drm_device *dev = drm->dev; in nouveau_vga_fini()
[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_device *device = nvxx_device(&drm->device); in nv10_bo_update_tile_region()
69 struct nouveau_drm *drm = nouveau_drm(dev); in nv10_bo_get_tile_region() local
70 struct nouveau_drm_tile *tile = &drm->tile.reg[i]; in nv10_bo_get_tile_region()
72 spin_lock(&drm->tile.lock); in nv10_bo_get_tile_region()
80 spin_unlock(&drm->tile.lock); in nv10_bo_get_tile_region()
88 struct nouveau_drm *drm = nouveau_drm(dev); in nv10_bo_put_tile_region() local
91 spin_lock(&drm->tile.lock); in nv10_bo_put_tile_region()
94 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.h196 #define NV_FATAL(drm,f,a...) NV_PRINTK(crit, &(drm)->client, f, ##a) argument
197 #define NV_ERROR(drm,f,a...) NV_PRINTK(err, &(drm)->client, f, ##a) argument
198 #define NV_WARN(drm,f,a...) NV_PRINTK(warn, &(drm)->client, f, ##a) argument
199 #define NV_INFO(drm,f,a...) NV_PRINTK(info, &(drm)->client, f, ##a) argument
200 #define NV_DEBUG(drm,f,a...) do { \ argument
202 NV_PRINTK(info, &(drm)->client, f, ##a); \
Dnouveau_platform.c28 struct drm_device *drm; in nouveau_platform_probe() local
33 drm = nouveau_platform_device_create(func, pdev, &device); in nouveau_platform_probe()
34 if (IS_ERR(drm)) in nouveau_platform_probe()
35 return PTR_ERR(drm); in nouveau_platform_probe()
37 ret = drm_dev_register(drm, 0); in nouveau_platform_probe()
39 drm_dev_unref(drm); in nouveau_platform_probe()
Dnouveau_dp.c36 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_dp_probe_oui() local
43 NV_DEBUG(drm, "Sink OUI: %02hx%02hx%02hx\n", in nouveau_dp_probe_oui()
47 NV_DEBUG(drm, "Branch OUI: %02hx%02hx%02hx\n", in nouveau_dp_probe_oui()
56 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_dp_detect() local
72 NV_DEBUG(drm, "display: %dx%d dpcd 0x%02x\n", in nouveau_dp_detect()
74 NV_DEBUG(drm, "encoder: %dx%d\n", in nouveau_dp_detect()
83 NV_DEBUG(drm, "maximum: %dx%d\n", in nouveau_dp_detect()
Dnouveau_chan.c72 nouveau_fence(chan->drm)->context_del(chan); in nouveau_channel_del()
89 nouveau_channel_prep(struct nouveau_drm *drm, struct nvif_device *device, in nouveau_channel_prep() argument
104 chan->drm = drm; in nouveau_channel_prep()
111 ret = nouveau_bo_new(drm->dev, size, 0, target, 0, 0, NULL, NULL, in nouveau_channel_prep()
161 if (chan->drm->agp.bridge) { in nouveau_channel_prep()
164 args.start = chan->drm->agp.base; in nouveau_channel_prep()
165 args.limit = chan->drm->agp.base + in nouveau_channel_prep()
166 chan->drm->agp.size - 1; in nouveau_channel_prep()
186 nouveau_channel_ind(struct nouveau_drm *drm, struct nvif_device *device, in nouveau_channel_ind() argument
206 ret = nouveau_channel_prep(drm, device, 0x12000, &chan); in nouveau_channel_ind()
[all …]
Dnouveau_display.c364 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_display_init() local
382 nvif_notify_get(&drm->flip); in nouveau_display_init()
390 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_display_fini() local
399 nvif_notify_put(&drm->flip); in nouveau_display_fini()
450 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_display_create() local
451 struct nvkm_device *device = nvxx_device(&drm->device); in nouveau_display_create()
455 disp = drm->display = kzalloc(sizeof(*disp), GFP_KERNEL); in nouveau_display_create()
468 if (drm->device.info.family < NV_DEVICE_INFO_V0_CELSIUS) { in nouveau_display_create()
472 if (drm->device.info.family < NV_DEVICE_INFO_V0_TESLA) { in nouveau_display_create()
476 if (drm->device.info.family < NV_DEVICE_INFO_V0_FERMI) { in nouveau_display_create()
[all …]
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_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.c91 nv04_fence_destroy(struct nouveau_drm *drm) in nv04_fence_destroy() argument
93 struct nv04_fence_priv *priv = drm->fence; in nv04_fence_destroy()
94 drm->fence = NULL; in nv04_fence_destroy()
99 nv04_fence_create(struct nouveau_drm *drm) in nv04_fence_create() argument
103 priv = drm->fence = kzalloc(sizeof(*priv), GFP_KERNEL); in nv04_fence_create()
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_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()
140 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_fbcon_accel_init() local
141 struct nouveau_channel *chan = drm->channel; in nv04_fbcon_accel_init()
142 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()
155 struct nouveau_drm *drm = nouveau_drm(dev); in nv50_fbcon_accel_init() local
156 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()
155 struct nouveau_drm *drm = nouveau_drm(dev); in nvc0_fbcon_accel_init() local
156 struct nouveau_channel *chan = drm->channel; in nvc0_fbcon_accel_init()
Dnouveau_abi16.c86 nouveau_abi16_swclass(struct nouveau_drm *drm) in nouveau_abi16_swclass() argument
88 switch (drm->device.info.family) { in nouveau_abi16_swclass()
174 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_abi16_ioctl_getparam() local
175 struct nvif_device *device = &drm->device; in nouveau_abi16_ioctl_getparam()
208 getparam->value = drm->gem.vram_available; in nouveau_abi16_ioctl_getparam()
211 getparam->value = drm->gem.gart_available; in nouveau_abi16_ioctl_getparam()
247 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_abi16_ioctl_channel_alloc() local
256 if (!drm->channel) in nouveau_abi16_ioctl_channel_alloc()
286 ret = nouveau_channel_new(drm, device, init->fb_ctxdma_handle, in nouveau_abi16_ioctl_channel_alloc()
501 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_abi16_ioctl_notifierobj_alloc() local
[all …]
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()
151 struct nouveau_drm *drm = nouveau_bdev(nvbo->bo.bdev); in nouveau_gem_object_close() local
152 struct device *dev = drm->dev->dev; in nouveau_gem_object_close()
182 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_gem_new() local
209 if (drm->device.info.family >= NV_DEVICE_INFO_V0_TESLA) in nouveau_gem_new()
258 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_gem_ioctl_new() local
260 struct nvkm_fb *fb = 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()
261 struct nouveau_fence_priv *priv = (void*)chan->drm->fence; in nouveau_fence_emit()
413 f = nouveau_local_fence(fence, chan->drm); in nouveau_fence_sync()
438 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()
Dnv50_display.c1231 struct nouveau_drm *drm = nouveau_drm(crtc->dev); in nv50_crtc_mode_set_base() local
1236 NV_DEBUG(drm, "No FB bound\n"); in nv50_crtc_mode_set_base()
1430 struct nouveau_drm *drm = nouveau_drm(dev); in nv50_crtc_create() local
1431 struct nvif_device *device = &drm->device; in nv50_crtc_create()
1700 struct nouveau_drm *drm = nouveau_drm(connector->dev); in nv50_dac_create() local
1701 struct nvkm_i2c *i2c = nvxx_i2c(&drm->device); in nv50_dac_create()
1950 struct nouveau_drm *drm = nouveau_drm(dev); in nv50_sor_mode_set() local
1952 struct nvbios *bios = &drm->vbios; in nv50_sor_mode_set()
2089 struct nouveau_drm *drm = nouveau_drm(connector->dev); in nv50_sor_create() local
2090 struct nvkm_i2c *i2c = nvxx_i2c(&drm->device); in nv50_sor_create()
[all …]
Dnouveau_bios.h39 struct nouveau_drm *drm = nouveau_drm((d)); \
40 ROM16(x) ? &drm->vbios.data[ROM16(x)] : NULL; \
Dnouveau_chan.h9 struct nouveau_drm *drm; member
DKbuild1 ccflags-y := -Iinclude/drm
/linux-4.4.14/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, false); 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()
229 dev_err(drm->dev, "failed to allocate framebuffer info\n"); in tegra_fbdev_probe()
234 fbdev->fb = tegra_fb_alloc(drm, &cmd, &bo, 1); 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 …]
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,
Ddrm.h41 struct drm_device *drm; member
76 struct drm_tegra_submit *args, struct drm_device *drm,
81 struct drm_tegra_submit *args, struct drm_device *drm,
102 int tegra_drm_init(struct tegra_drm *tegra, struct drm_device *drm);
231 int tegra_dc_rgb_init(struct drm_device *drm, struct tegra_dc *dc);
237 int tegra_output_init(struct drm_device *drm, struct tegra_output *output);
269 struct drm_framebuffer *tegra_fb_create(struct drm_device *drm,
272 int tegra_drm_fb_prepare(struct drm_device *drm);
273 void tegra_drm_fb_free(struct drm_device *drm);
274 int tegra_drm_fb_init(struct drm_device *drm);
[all …]
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.c633 static struct drm_plane *tegra_dc_primary_plane_create(struct drm_device *drm, in tegra_dc_primary_plane_create() argument
648 unsigned long possible_crtcs = 1 << drm->mode_config.num_crtc; in tegra_dc_primary_plane_create()
661 err = drm_universal_plane_init(drm, &plane->base, possible_crtcs, in tegra_dc_primary_plane_create()
804 static struct drm_plane *tegra_dc_cursor_plane_create(struct drm_device *drm, in tegra_dc_cursor_plane_create() argument
828 err = drm_universal_plane_init(drm, &plane->base, 1 << dc->pipe, in tegra_dc_cursor_plane_create()
873 static struct drm_plane *tegra_dc_overlay_plane_create(struct drm_device *drm, in tegra_dc_overlay_plane_create() argument
891 err = drm_universal_plane_init(drm, &plane->base, 1 << dc->pipe, in tegra_dc_overlay_plane_create()
904 static int tegra_dc_add_planes(struct drm_device *drm, struct tegra_dc *dc) in tegra_dc_add_planes() argument
910 plane = tegra_dc_overlay_plane_create(drm, dc, 1 + i); in tegra_dc_add_planes()
955 struct drm_device *drm = dc->base.dev; in tegra_dc_finish_page_flip() local
[all …]
Drgb.c275 int tegra_dc_rgb_init(struct drm_device *drm, struct tegra_dc *dc) in tegra_dc_rgb_init() argument
283 drm_connector_init(drm, &output->connector, &tegra_rgb_connector_funcs, in tegra_dc_rgb_init()
289 drm_encoder_init(drm, &output->encoder, &tegra_rgb_encoder_funcs, in tegra_dc_rgb_init()
298 err = tegra_output_init(drm, output); in tegra_dc_rgb_init()
Dhdmi.c1070 struct drm_device *drm = node->minor->dev; in tegra_hdmi_show_regs() local
1073 drm_modeset_lock_all(drm); in tegra_hdmi_show_regs()
1246 drm_modeset_unlock_all(drm); in tegra_hdmi_show_regs()
1309 struct drm_device *drm = dev_get_drvdata(client->parent); in tegra_hdmi_init() local
1315 drm_connector_init(drm, &hdmi->output.connector, in tegra_hdmi_init()
1322 drm_encoder_init(drm, &hdmi->output.encoder, &tegra_hdmi_encoder_funcs, in tegra_hdmi_init()
1331 err = tegra_output_init(drm, &hdmi->output); in tegra_hdmi_init()
1340 err = tegra_hdmi_debugfs_init(hdmi, drm->primary); in tegra_hdmi_init()
Ddsi.c123 struct drm_device *drm = node->minor->dev; in tegra_dsi_show_regs() local
126 drm_modeset_lock_all(drm); in tegra_dsi_show_regs()
222 drm_modeset_unlock_all(drm); in tegra_dsi_show_regs()
1001 struct drm_device *drm = dev_get_drvdata(client->parent); in tegra_dsi_init() local
1017 drm_connector_init(drm, &dsi->output.connector, in tegra_dsi_init()
1024 drm_encoder_init(drm, &dsi->output.encoder, in tegra_dsi_init()
1034 err = tegra_output_init(drm, &dsi->output); in tegra_dsi_init()
1046 err = tegra_dsi_debugfs_init(dsi, drm->primary); in tegra_dsi_init()
DKconfig15 will be called tegra-drm.
Dsor.c805 struct drm_device *drm = node->minor->dev; in tegra_sor_show_crc() local
809 drm_modeset_lock_all(drm); in tegra_sor_show_crc()
838 drm_modeset_unlock_all(drm); in tegra_sor_show_crc()
847 struct drm_device *drm = node->minor->dev; in tegra_sor_show_regs() local
850 drm_modeset_lock_all(drm); in tegra_sor_show_regs()
979 drm_modeset_unlock_all(drm); in tegra_sor_show_regs()
2144 struct drm_device *drm = dev_get_drvdata(client->parent); in tegra_sor_init() local
2173 drm_connector_init(drm, &sor->output.connector, in tegra_sor_init()
2180 drm_encoder_init(drm, &sor->output.encoder, &tegra_sor_encoder_funcs, in tegra_sor_init()
2188 err = tegra_output_init(drm, &sor->output); in tegra_sor_init()
[all …]
Doutput.c191 int tegra_output_init(struct drm_device *drm, struct tegra_output *output) in tegra_output_init() argument
/linux-4.4.14/drivers/gpu/drm/imx/
Dimx-drm-core.c41 struct drm_device *drm; member
62 static void imx_drm_driver_lastclose(struct drm_device *drm) in imx_drm_driver_lastclose() argument
65 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.h27 int imx_drm_add_crtc(struct drm_device *drm, struct drm_crtc *crtc,
40 void imx_drm_mode_config_init(struct drm_device *drm);
51 int imx_drm_encoder_parse_of(struct drm_device *drm,
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()
219 spin_unlock_irqrestore(&drm->event_lock, flags); in ipu_crtc_handle_pageflip()
348 struct ipu_client_platformdata *pdata, struct drm_device *drm) in ipu_crtc_init() argument
363 ipu_crtc->plane[0] = ipu_plane_init(drm, ipu, pdata->dma[0], dp, 0, in ipu_crtc_init()
370 ret = imx_drm_add_crtc(drm, &ipu_crtc->base, &ipu_crtc->imx_crtc, in ipu_crtc_init()
387 ipu_crtc->plane[1] = ipu_plane_init(drm, ipu, pdata->dma[1], in ipu_crtc_init()
418 struct drm_device *drm = data; in ipu_drm_bind() local
428 ret = ipu_crtc_init(ipu_crtc, pdata, drm); in ipu_drm_bind()
Dparallel-display.c176 static int imx_pd_register(struct drm_device *drm, in imx_pd_register() argument
181 ret = imx_drm_encoder_parse_of(drm, &imxpd->encoder, in imx_pd_register()
194 drm_encoder_init(drm, &imxpd->encoder, &imx_pd_encoder_funcs, in imx_pd_register()
199 drm_connector_init(drm, &imxpd->connector, &imx_pd_connector_funcs, in imx_pd_register()
214 struct drm_device *drm = data; in imx_pd_bind() local
259 ret = imx_pd_register(drm, imxpd); in imx_pd_bind()
Ddw_hdmi-imx.c209 struct drm_device *drm = data; in dw_hdmi_imx_bind() local
238 encoder->possible_crtcs = drm_of_find_possible_crtcs(drm, dev->of_node); in dw_hdmi_imx_bind()
253 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.4.14/drivers/gpu/drm/vc4/
Dvc4_drv.c153 struct drm_device *drm; in vc4_drm_bind() local
164 drm = drm_dev_alloc(&vc4_drm_driver, dev); in vc4_drm_bind()
165 if (!drm) in vc4_drm_bind()
167 platform_set_drvdata(pdev, drm); in vc4_drm_bind()
168 vc4->dev = drm; in vc4_drm_bind()
169 drm->dev_private = vc4; in vc4_drm_bind()
171 drm_dev_set_unique(drm, dev_name(dev)); in vc4_drm_bind()
173 drm_mode_config_init(drm); in vc4_drm_bind()
177 ret = component_bind_all(dev, drm); in vc4_drm_bind()
181 ret = drm_dev_register(drm, 0); in vc4_drm_bind()
[all …]
Dvc4_hvs.c106 struct drm_device *drm = dev_get_drvdata(master); in vc4_hvs_bind() local
107 struct vc4_dev *vc4 = drm->dev_private; in vc4_hvs_bind()
129 struct drm_device *drm = dev_get_drvdata(master); in vc4_hvs_unbind() local
130 struct vc4_dev *vc4 = drm->dev_private; in vc4_hvs_unbind()
Dvc4_plane.c41 u32 drm; /* DRM_FORMAT_* */ member
47 .drm = DRM_FORMAT_XRGB8888, .hvs = HVS_PIXEL_FORMAT_RGBA8888,
51 .drm = DRM_FORMAT_ARGB8888, .hvs = HVS_PIXEL_FORMAT_RGBA8888,
61 if (hvs_formats[i].drm == drm_format) in vc4_get_hvs_format()
315 formats[i] = hvs_formats[i].drm; in vc4_plane_init()
Dvc4_crtc.c544 static void vc4_set_crtc_possible_masks(struct drm_device *drm, in vc4_set_crtc_possible_masks() argument
550 drm_for_each_encoder(encoder, drm) { in vc4_set_crtc_possible_masks()
566 struct drm_device *drm = dev_get_drvdata(master); in vc4_crtc_bind() local
567 struct vc4_dev *vc4 = to_vc4_dev(drm); in vc4_crtc_bind()
594 primary_plane = vc4_plane_init(drm, DRM_PLANE_TYPE_PRIMARY); in vc4_crtc_bind()
601 cursor_plane = vc4_plane_init(drm, DRM_PLANE_TYPE_CURSOR); in vc4_crtc_bind()
608 drm_crtc_init_with_planes(drm, crtc, primary_plane, cursor_plane, in vc4_crtc_bind()
623 vc4_set_crtc_possible_masks(drm, crtc); in vc4_crtc_bind()
Dvc4_hdmi.c437 struct drm_device *drm = dev_get_drvdata(master); in vc4_hdmi_bind() local
438 struct vc4_dev *vc4 = drm->dev_private; in vc4_hdmi_bind()
521 drm_encoder_init(drm, hdmi->encoder, &vc4_hdmi_encoder_funcs, in vc4_hdmi_bind()
525 hdmi->connector = vc4_hdmi_connector_init(drm, hdmi->encoder); in vc4_hdmi_bind()
548 struct drm_device *drm = dev_get_drvdata(master); in vc4_hdmi_unbind() local
549 struct vc4_dev *vc4 = drm->dev_private; in vc4_hdmi_unbind()
DMakefile1 ccflags-y := -Iinclude/drm
/linux-4.4.14/drivers/gpu/drm/fsl-dcu/
Dfsl_dcu_drm_drv.c66 static int fsl_dcu_load(struct drm_device *drm, unsigned long flags) in fsl_dcu_load() argument
68 struct device *dev = drm->dev; in fsl_dcu_load()
69 struct fsl_dcu_drm_device *fsl_dev = drm->dev_private; in fsl_dcu_load()
78 ret = drm_vblank_init(drm, drm->mode_config.num_crtc); in fsl_dcu_load()
83 drm->vblank_disable_allowed = true; in fsl_dcu_load()
85 ret = fsl_dcu_drm_irq_init(drm); in fsl_dcu_load()
88 drm->irq_enabled = true; in fsl_dcu_load()
90 fsl_dcu_fbdev_init(drm); in fsl_dcu_load()
95 drm_mode_config_cleanup(drm); in fsl_dcu_load()
96 drm_vblank_cleanup(drm); in fsl_dcu_load()
[all …]
Dfsl_dcu_drm_kms.c28 drm_mode_config_init(fsl_dev->drm); in fsl_dcu_drm_modeset_init()
30 fsl_dev->drm->mode_config.min_width = 0; in fsl_dcu_drm_modeset_init()
31 fsl_dev->drm->mode_config.min_height = 0; in fsl_dcu_drm_modeset_init()
32 fsl_dev->drm->mode_config.max_width = 2031; in fsl_dcu_drm_modeset_init()
33 fsl_dev->drm->mode_config.max_height = 2047; in fsl_dcu_drm_modeset_init()
34 fsl_dev->drm->mode_config.funcs = &fsl_dcu_drm_mode_config_funcs; in fsl_dcu_drm_modeset_init()
36 drm_kms_helper_poll_init(fsl_dev->drm); in fsl_dcu_drm_modeset_init()
40 drm_mode_config_reset(fsl_dev->drm); in fsl_dcu_drm_modeset_init()
DMakefile1 fsl-dcu-drm-y := fsl_dcu_drm_drv.o \
7 obj-$(CONFIG_DRM_FSL_DCU) += fsl-dcu-drm.o
Dfsl_dcu_drm_rgb.c59 ret = drm_encoder_init(fsl_dev->drm, encoder, &encoder_funcs, in fsl_dcu_drm_encoder_create()
134 struct drm_mode_config mode_config = fsl_dev->drm->mode_config; in fsl_dcu_drm_connector_create()
140 ret = drm_connector_init(fsl_dev->drm, connector, in fsl_dcu_drm_connector_create()
DKconfig18 If M is selected the module will be called fsl-dcu-drm.
Dfsl_dcu_drm_crtc.c176 primary = fsl_dcu_drm_primary_create_plane(fsl_dev->drm); in fsl_dcu_drm_crtc_create()
177 ret = drm_crtc_init_with_planes(fsl_dev->drm, crtc, primary, NULL, in fsl_dcu_drm_crtc_create()
Dfsl_dcu_drm_drv.h186 struct drm_device *drm; member
/linux-4.4.14/drivers/gpu/drm/rockchip/
Drockchip_drm_drv.c93 static struct drm_crtc *rockchip_crtc_from_pipe(struct drm_device *drm, in rockchip_crtc_from_pipe() argument
99 list_for_each_entry(crtc, &drm->mode_config.crtc_list, head) in rockchip_crtc_from_pipe()
309 struct drm_device *drm = dev_get_drvdata(dev); in rockchip_drm_sys_suspend() local
312 if (!drm) in rockchip_drm_sys_suspend()
315 drm_modeset_lock_all(drm); in rockchip_drm_sys_suspend()
316 list_for_each_entry(connector, &drm->mode_config.connector_list, head) { in rockchip_drm_sys_suspend()
325 drm_modeset_unlock_all(drm); in rockchip_drm_sys_suspend()
332 struct drm_device *drm = dev_get_drvdata(dev); in rockchip_drm_sys_resume() local
337 if (!drm) in rockchip_drm_sys_resume()
340 drm_modeset_lock_all(drm); in rockchip_drm_sys_resume()
[all …]
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
72 ret = dma_mmap_attrs(drm->dev, vma, rk_obj->kvaddr, rk_obj->dma_addr, in rockchip_drm_gem_object_mmap()
108 rockchip_gem_create_object(struct drm_device *drm, unsigned int size, in rockchip_gem_create_object() argument
123 drm_gem_private_object_init(drm, obj, size); in rockchip_gem_create_object()
162 struct drm_device *drm, unsigned int size, in rockchip_gem_create_with_handle() argument
169 rk_obj = rockchip_gem_create_object(drm, size, false); in rockchip_gem_create_with_handle()
[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.c1288 struct drm_device *drm = crtc->dev; in vop_win_state_complete() local
1292 spin_lock_irqsave(&drm->event_lock, flags); in vop_win_state_complete()
1294 spin_unlock_irqrestore(&drm->event_lock, flags); in vop_win_state_complete()
/linux-4.4.14/drivers/gpu/drm/
DKconfig100 source "drivers/gpu/drm/i2c/Kconfig"
140 source "drivers/gpu/drm/radeon/Kconfig"
162 source "drivers/gpu/drm/amd/amdgpu/Kconfig"
164 source "drivers/gpu/drm/nouveau/Kconfig"
175 source "drivers/gpu/drm/i915/Kconfig"
218 source "drivers/gpu/drm/exynos/Kconfig"
220 source "drivers/gpu/drm/rockchip/Kconfig"
222 source "drivers/gpu/drm/vmwgfx/Kconfig"
224 source "drivers/gpu/drm/gma500/Kconfig"
226 source "drivers/gpu/drm/udl/Kconfig"
[all …]
DMakefile5 drm-y := drm_auth.o drm_bufs.o drm_cache.o \
17 drm-$(CONFIG_COMPAT) += drm_ioc32.o
18 drm-$(CONFIG_DRM_GEM_CMA_HELPER) += drm_gem_cma_helper.o
19 drm-$(CONFIG_PCI) += ati_pcigart.o
20 drm-$(CONFIG_DRM_PANEL) += drm_panel.o
21 drm-$(CONFIG_OF) += drm_of.o
22 drm-$(CONFIG_AGP) += drm_agpsupport.o
24 drm-y += $(drm-m)
36 obj-$(CONFIG_DRM) += drm.o
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 %zu\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 …]
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.4.14/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_object *device = &drm->device.object; in nouveau_hw_get_pllvals()
169 struct nvkm_bios *bios = nvxx_bios(&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
[all …]
Ddac.c68 struct nouveau_drm *drm = nouveau_drm(dev); in sample_load_twice() local
69 struct nvif_object *device = &drm->device.object; in sample_load_twice()
83 if (nvif_msec(&drm->device, 10, in sample_load_twice()
89 if (nvif_msec(&drm->device, 10, in sample_load_twice()
95 if (nvif_msec(&drm->device, 10, in sample_load_twice()
137 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_dac_detect() local
228 NV_DEBUG(drm, "Load detected on head A\n"); in nv04_dac_detect()
238 struct nouveau_drm *drm = nouveau_drm(dev); in nv17_dac_sample_load() local
240 struct nvkm_gpio *gpio = nvxx_gpio(&drm->device); in nv17_dac_sample_load()
251 if (drm->vbios.tvdactestval) in nv17_dac_sample_load()
[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(&drm->device.object); 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()
128 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_display_destroy() local
156 nvif_object_unmap(&drm->device.object); 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 …]
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 nvkm_device *device = nvxx_device(&drm->device); in get_tv_detect_quirks()
147 struct nouveau_drm *drm = nouveau_drm(dev); in nv17_tv_detect() local
157 if (drm->device.info.chipset == 0x42 || in nv17_tv_detect()
158 drm->device.info.chipset == 0x43) in nv17_tv_detect()
192 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()
78 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_tv_dpms() local
83 NV_DEBUG(drm, "Setting dpms mode %d on TV encoder (output %d)\n", in nv04_tv_dpms()
169 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_tv_commit() local
175 NV_DEBUG(drm, "Output %s is running on CRTC %d using output %c\n", in nv04_tv_commit()
210 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_tv_create() local
211 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 …]
Doverlay.c99 struct nouveau_drm *drm = nouveau_drm(plane->dev); in nv10_update_plane() local
100 struct nvif_object *dev = &drm->device.object; in nv10_update_plane()
122 if (drm->device.info.chipset >= 0x30) { in nv10_update_plane()
263 struct nouveau_drm *drm = nouveau_drm(device); in nv10_overlay_init() local
271 switch (drm->device.info.chipset) { in nv10_overlay_init()
340 NV_ERROR(drm, "Failed to create plane\n"); in nv10_overlay_init()
456 struct nouveau_drm *drm = nouveau_drm(device); in nv04_overlay_init() local
492 NV_ERROR(drm, "Failed to create plane\n"); in nv04_overlay_init()
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()
/linux-4.4.14/drivers/gpu/drm/sti/
Dsti_drv.c43 struct drm_device *drm = private->drm_dev; in sti_atomic_complete() local
61 drm_atomic_helper_commit_modeset_disables(drm, state); in sti_atomic_complete()
62 drm_atomic_helper_commit_planes(drm, state, false); in sti_atomic_complete()
63 drm_atomic_helper_commit_modeset_enables(drm, state); in sti_atomic_complete()
65 drm_atomic_helper_wait_for_vblanks(drm, state); in sti_atomic_complete()
67 drm_atomic_helper_cleanup_planes(drm, state); in sti_atomic_complete()
79 static int sti_atomic_commit(struct drm_device *drm, in sti_atomic_commit() argument
82 struct sti_private *private = drm->dev_private; in sti_atomic_commit()
85 err = drm_atomic_helper_prepare_planes(drm, state); in sti_atomic_commit()
99 drm_atomic_helper_swap_state(drm, state); in sti_atomic_commit()
DMakefile1 sti-drm-y := \
23 obj-$(CONFIG_DRM_STI) = sti-drm.o
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/gpu/drm/msm/adreno/
Dadreno_gpu.c331 int adreno_gpu_init(struct drm_device *drm, struct platform_device *pdev, in adreno_gpu_init() argument
355 ret = msm_gpu_init(drm, pdev, &adreno_gpu->base, &funcs->base, in adreno_gpu_init()
361 ret = request_firmware(&adreno_gpu->pm4, adreno_gpu->info->pm4fw, drm->dev); in adreno_gpu_init()
363 dev_err(drm->dev, "failed to load %s PM4 firmware: %d\n", in adreno_gpu_init()
368 ret = request_firmware(&adreno_gpu->pfp, adreno_gpu->info->pfpfw, drm->dev); in adreno_gpu_init()
370 dev_err(drm->dev, "failed to load %s PFP firmware: %d\n", in adreno_gpu_init()
383 mutex_lock(&drm->struct_mutex); in adreno_gpu_init()
384 adreno_gpu->memptrs_bo = msm_gem_new(drm, sizeof(*adreno_gpu->memptrs), in adreno_gpu_init()
386 mutex_unlock(&drm->struct_mutex); in adreno_gpu_init()
390 dev_err(drm->dev, "could not allocate memptrs: %d\n", ret); in adreno_gpu_init()
[all …]
Dadreno_gpu.h246 int adreno_gpu_init(struct drm_device *drm, struct platform_device *pdev,
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
DMakefile5 ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/amd/include/asic_reg \
6 -Idrivers/gpu/drm/amd/include \
7 -Idrivers/gpu/drm/amd/amdgpu \
8 -Idrivers/gpu/drm/amd/scheduler
/linux-4.4.14/drivers/gpu/drm/amd/amdkfd/
DMakefile5 ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/amd/include/ \
6 -Idrivers/gpu/drm/amd/include/asic_reg
/linux-4.4.14/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.4.14/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.4.14/drivers/gpu/drm/msm/
Dmsm_gpu.c569 int msm_gpu_init(struct drm_device *drm, struct platform_device *pdev, in msm_gpu_init() argument
579 gpu->dev = drm; in msm_gpu_init()
611 dev_err(drm->dev, "failed to get irq: %d\n", ret); in msm_gpu_init()
618 dev_err(drm->dev, "failed to request IRQ%u: %d\n", gpu->irq, ret); in msm_gpu_init()
652 dev_info(drm->dev, "%s: using IOMMU\n", name); in msm_gpu_init()
656 dev_err(drm->dev, "failed to init iommu: %d\n", ret); in msm_gpu_init()
663 dev_info(drm->dev, "%s: no IOMMU, fallback to VRAM carveout!\n", name); in msm_gpu_init()
665 gpu->id = msm_register_mmu(drm, gpu->mmu); in msm_gpu_init()
669 mutex_lock(&drm->struct_mutex); in msm_gpu_init()
671 mutex_unlock(&drm->struct_mutex); in msm_gpu_init()
[all …]
DMakefile1 ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/msm
2 ccflags-$(CONFIG_DRM_MSM_DSI) += -Idrivers/gpu/drm/msm/dsi
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.h166 int msm_gpu_init(struct drm_device *drm, struct platform_device *pdev,
/linux-4.4.14/drivers/gpu/drm/exynos/
DMakefile5 ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/exynos
/linux-4.4.14/drivers/gpu/drm/msm/dsi/
Ddsi.c115 struct drm_device *drm = dev_get_drvdata(master); in dsi_bind() local
116 struct msm_drm_private *priv = drm->dev_private; in dsi_bind()
133 struct drm_device *drm = dev_get_drvdata(master); in dsi_unbind() local
134 struct msm_drm_private *priv = drm->dev_private; in dsi_unbind()
/linux-4.4.14/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.txt215 'd' 00-FF linux/char/drm/drm/h conflict!
/linux-4.4.14/drivers/gpu/drm/tdfx/
DMakefile5 ccflags-y := -Iinclude/drm
/linux-4.4.14/drivers/gpu/
DMakefile5 obj-y += drm/ vga/
/linux-4.4.14/drivers/gpu/drm/vgem/
DMakefile1 ccflags-y := -Iinclude/drm
/linux-4.4.14/drivers/gpu/drm/sis/
DMakefile5 ccflags-y = -Iinclude/drm
/linux-4.4.14/drivers/gpu/drm/i810/
DMakefile5 ccflags-y := -Iinclude/drm
/linux-4.4.14/drivers/gpu/drm/savage/
DMakefile5 ccflags-y = -Iinclude/drm
/linux-4.4.14/drivers/gpu/drm/cirrus/
DMakefile1 ccflags-y := -Iinclude/drm
/linux-4.4.14/drivers/gpu/drm/r128/
DMakefile5 ccflags-y := -Iinclude/drm
/linux-4.4.14/drivers/gpu/drm/ast/
DMakefile5 ccflags-y := -Iinclude/drm
/linux-4.4.14/drivers/gpu/drm/mga/
DMakefile5 ccflags-y := -Iinclude/drm
/linux-4.4.14/drivers/gpu/drm/mgag200/
DMakefile1 ccflags-y := -Iinclude/drm
/linux-4.4.14/drivers/gpu/drm/bridge/
DMakefile1 ccflags-y := -Iinclude/drm
Ddw_hdmi.c1622 static int dw_hdmi_register(struct drm_device *drm, struct dw_hdmi *hdmi) in dw_hdmi_register() argument
1628 bridge = devm_kzalloc(drm->dev, sizeof(*bridge), GFP_KERNEL); in dw_hdmi_register()
1637 ret = drm_bridge_attach(drm, bridge); in dw_hdmi_register()
1648 drm_connector_init(drm, &hdmi->connector, &dw_hdmi_connector_funcs, in dw_hdmi_register()
1663 struct drm_device *drm = data; in dw_hdmi_bind() local
1786 ret = dw_hdmi_register(drm, hdmi); in dw_hdmi_bind()
/linux-4.4.14/drivers/gpu/drm/via/
DMakefile5 ccflags-y := -Iinclude/drm
/linux-4.4.14/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.4.14/drivers/gpu/drm/armada/
Darmada_crtc.c1131 static int armada_drm_crtc_create(struct drm_device *drm, struct device *dev, in armada_drm_crtc_create() argument
1135 struct armada_private *priv = drm->dev_private; in armada_drm_crtc_create()
1141 ret = armada_drm_crtc_create_properties(drm); in armada_drm_crtc_create()
1155 if (dev != drm->dev) in armada_drm_crtc_create()
1160 dcrtc->num = drm->mode_config.num_crtc; in armada_drm_crtc_create()
1215 ret = drm_universal_plane_init(drm, &primary->base, 0, in armada_drm_crtc_create()
1225 ret = drm_crtc_init_with_planes(drm, &dcrtc->crtc, &primary->base, NULL, in armada_drm_crtc_create()
1237 return armada_overlay_plane_create(drm, 1 << dcrtc->num); in armada_drm_crtc_create()
1248 struct drm_device *drm = data; in armada_lcd_bind() local
1287 return armada_drm_crtc_create(drm, dev, res, irq, variant, port); in armada_lcd_bind()
Darmada_fb.c45 #define FMT(drm, fmt, mod) \ in armada_framebuffer_create() argument
46 case DRM_FORMAT_##drm: \ in armada_framebuffer_create()
/linux-4.4.14/drivers/gpu/drm/i2c/
DMakefile1 ccflags-y := -Iinclude/drm
Dtda998x_drv.c1406 struct drm_device *drm = data; in tda998x_bind() local
1418 crtcs = drm_of_find_possible_crtcs(drm, dev->of_node); in tda998x_bind()
1439 ret = drm_encoder_init(drm, &priv->encoder, &tda998x_encoder_funcs, in tda998x_bind()
1446 ret = drm_connector_init(drm, &priv->connector, in tda998x_bind()
/linux-4.4.14/drivers/gpu/drm/tilcdc/
DMakefile1 ccflags-y := -Iinclude/drm
/linux-4.4.14/drivers/gpu/drm/ttm/
DMakefile4 ccflags-y := -Iinclude/drm
/linux-4.4.14/drivers/gpu/drm/omapdrm/
DMakefile6 ccflags-y := -Iinclude/drm -Werror
/linux-4.4.14/drivers/gpu/drm/virtio/
DMakefile5 ccflags-y := -Iinclude/drm
/linux-4.4.14/drivers/gpu/drm/qxl/
DMakefile5 ccflags-y := -Iinclude/drm
/linux-4.4.14/include/uapi/
DKbuild12 header-y += drm/
/linux-4.4.14/scripts/package/
Dmkspec21 PROVIDES=kernel-drm
/linux-4.4.14/drivers/gpu/drm/panel/
Dpanel-lg-lg4573.c217 mode = drm_mode_duplicate(panel->drm, &default_mode); in lg4573_get_modes()
219 dev_err(panel->drm->dev, "failed to add mode %ux%ux@%u\n", in lg4573_get_modes()
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.4.14/drivers/gpu/drm/vmwgfx/
DMakefile2 ccflags-y := -Iinclude/drm
/linux-4.4.14/include/uapi/drm/
DKbuild2 header-y += drm.h
/linux-4.4.14/drivers/gpu/drm/msm/hdmi/
Dhdmi.c420 struct drm_device *drm = dev_get_drvdata(master); in hdmi_bind() local
421 struct msm_drm_private *priv = drm->dev_private; in hdmi_bind()
508 struct drm_device *drm = dev_get_drvdata(master); in hdmi_unbind() local
509 struct msm_drm_private *priv = drm->dev_private; in hdmi_unbind()
/linux-4.4.14/drivers/video/
DKconfig25 source "drivers/gpu/drm/Kconfig"
/linux-4.4.14/drivers/staging/sm750fb/
DTODO10 - modify the code for drm framework
/linux-4.4.14/drivers/gpu/drm/gma500/
DMakefile4 ccflags-y += -I$(srctree)/include/drm
/linux-4.4.14/drivers/gpu/drm/radeon/
DMakefile5 ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/amd/include
/linux-4.4.14/Documentation/devicetree/bindings/display/exynos/
Dexynos_hdmi.txt1 Device-Tree bindings for drm hdmi driver
/linux-4.4.14/Documentation/EDID/
DHOWTO.txt20 (see drivers/gpu/drm/drm_edid_load.c) contains built-in data sets for
/linux-4.4.14/Documentation/zh_CN/
DHOWTO295 git.kernel.org:/pub/scm/linux/kernel/git/airlied/drm-2.6.git
/linux-4.4.14/arch/arm/mach-omap2/
DMakefile11 omap_device.o sram.o drm.o
/linux-4.4.14/
DMAINTAINERS502 T: git git://people.freedesktop.org/~airlied/linux (part of drm maint)
651 F: drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
652 F: drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
653 F: drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c
654 F: drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
655 F: drivers/gpu/drm/amd/amdkfd/
656 F: drivers/gpu/drm/amd/include/cik_structs.h
657 F: drivers/gpu/drm/amd/include/kgd_kfd_interface.h
658 F: drivers/gpu/drm/amd/include/vi_structs.h
659 F: drivers/gpu/drm/radeon/radeon_kfd.c
[all …]
/linux-4.4.14/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,