aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drm_vm.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-07-11 01:53:27 -0400
committerDave Airlie <airlied@linux.ie>2007-07-11 01:53:27 -0400
commit84b1fd103dbbe01b5905db1444d3fc8afa9a7207 (patch)
tree2088f4c8e68553e2d4f5d55fa7a714eb3fa09f9e /drivers/char/drm/drm_vm.c
parentc60ce623bd16137627009d05e311d877729f2ad6 (diff)
drm: remove drm_file_t, drm_device_t and drm_head_t typedefs
some drivers still todo. Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_vm.c')
-rw-r--r--drivers/char/drm/drm_vm.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/drivers/char/drm/drm_vm.c b/drivers/char/drm/drm_vm.c
index 13bdb1393c36..f90ef788eed0 100644
--- a/drivers/char/drm/drm_vm.c
+++ b/drivers/char/drm/drm_vm.c
@@ -79,8 +79,8 @@ static pgprot_t drm_io_prot(uint32_t map_type, struct vm_area_struct *vma)
79static __inline__ struct page *drm_do_vm_nopage(struct vm_area_struct *vma, 79static __inline__ struct page *drm_do_vm_nopage(struct vm_area_struct *vma,
80 unsigned long address) 80 unsigned long address)
81{ 81{
82 drm_file_t *priv = vma->vm_file->private_data; 82 struct drm_file *priv = vma->vm_file->private_data;
83 drm_device_t *dev = priv->head->dev; 83 struct drm_device *dev = priv->head->dev;
84 struct drm_map *map = NULL; 84 struct drm_map *map = NULL;
85 drm_map_list_t *r_list; 85 drm_map_list_t *r_list;
86 drm_hash_item_t *hash; 86 drm_hash_item_t *hash;
@@ -194,8 +194,8 @@ static __inline__ struct page *drm_do_vm_shm_nopage(struct vm_area_struct *vma,
194 */ 194 */
195static void drm_vm_shm_close(struct vm_area_struct *vma) 195static void drm_vm_shm_close(struct vm_area_struct *vma)
196{ 196{
197 drm_file_t *priv = vma->vm_file->private_data; 197 struct drm_file *priv = vma->vm_file->private_data;
198 drm_device_t *dev = priv->head->dev; 198 struct drm_device *dev = priv->head->dev;
199 drm_vma_entry_t *pt, *temp; 199 drm_vma_entry_t *pt, *temp;
200 struct drm_map *map; 200 struct drm_map *map;
201 drm_map_list_t *r_list; 201 drm_map_list_t *r_list;
@@ -274,8 +274,8 @@ static void drm_vm_shm_close(struct vm_area_struct *vma)
274static __inline__ struct page *drm_do_vm_dma_nopage(struct vm_area_struct *vma, 274static __inline__ struct page *drm_do_vm_dma_nopage(struct vm_area_struct *vma,
275 unsigned long address) 275 unsigned long address)
276{ 276{
277 drm_file_t *priv = vma->vm_file->private_data; 277 struct drm_file *priv = vma->vm_file->private_data;
278 drm_device_t *dev = priv->head->dev; 278 struct drm_device *dev = priv->head->dev;
279 drm_device_dma_t *dma = dev->dma; 279 drm_device_dma_t *dma = dev->dma;
280 unsigned long offset; 280 unsigned long offset;
281 unsigned long page_nr; 281 unsigned long page_nr;
@@ -311,8 +311,8 @@ static __inline__ struct page *drm_do_vm_sg_nopage(struct vm_area_struct *vma,
311 unsigned long address) 311 unsigned long address)
312{ 312{
313 struct drm_map *map = (struct drm_map *) vma->vm_private_data; 313 struct drm_map *map = (struct drm_map *) vma->vm_private_data;
314 drm_file_t *priv = vma->vm_file->private_data; 314 struct drm_file *priv = vma->vm_file->private_data;
315 drm_device_t *dev = priv->head->dev; 315 struct drm_device *dev = priv->head->dev;
316 drm_sg_mem_t *entry = dev->sg; 316 drm_sg_mem_t *entry = dev->sg;
317 unsigned long offset; 317 unsigned long offset;
318 unsigned long map_offset; 318 unsigned long map_offset;
@@ -405,8 +405,8 @@ static struct vm_operations_struct drm_vm_sg_ops = {
405 */ 405 */
406static void drm_vm_open_locked(struct vm_area_struct *vma) 406static void drm_vm_open_locked(struct vm_area_struct *vma)
407{ 407{
408 drm_file_t *priv = vma->vm_file->private_data; 408 struct drm_file *priv = vma->vm_file->private_data;
409 drm_device_t *dev = priv->head->dev; 409 struct drm_device *dev = priv->head->dev;
410 drm_vma_entry_t *vma_entry; 410 drm_vma_entry_t *vma_entry;
411 411
412 DRM_DEBUG("0x%08lx,0x%08lx\n", 412 DRM_DEBUG("0x%08lx,0x%08lx\n",
@@ -423,8 +423,8 @@ static void drm_vm_open_locked(struct vm_area_struct *vma)
423 423
424static void drm_vm_open(struct vm_area_struct *vma) 424static void drm_vm_open(struct vm_area_struct *vma)
425{ 425{
426 drm_file_t *priv = vma->vm_file->private_data; 426 struct drm_file *priv = vma->vm_file->private_data;
427 drm_device_t *dev = priv->head->dev; 427 struct drm_device *dev = priv->head->dev;
428 428
429 mutex_lock(&dev->struct_mutex); 429 mutex_lock(&dev->struct_mutex);
430 drm_vm_open_locked(vma); 430 drm_vm_open_locked(vma);
@@ -441,8 +441,8 @@ static void drm_vm_open(struct vm_area_struct *vma)
441 */ 441 */
442static void drm_vm_close(struct vm_area_struct *vma) 442static void drm_vm_close(struct vm_area_struct *vma)
443{ 443{
444 drm_file_t *priv = vma->vm_file->private_data; 444 struct drm_file *priv = vma->vm_file->private_data;
445 drm_device_t *dev = priv->head->dev; 445 struct drm_device *dev = priv->head->dev;
446 drm_vma_entry_t *pt, *temp; 446 drm_vma_entry_t *pt, *temp;
447 447
448 DRM_DEBUG("0x%08lx,0x%08lx\n", 448 DRM_DEBUG("0x%08lx,0x%08lx\n",
@@ -472,8 +472,8 @@ static void drm_vm_close(struct vm_area_struct *vma)
472 */ 472 */
473static int drm_mmap_dma(struct file *filp, struct vm_area_struct *vma) 473static int drm_mmap_dma(struct file *filp, struct vm_area_struct *vma)
474{ 474{
475 drm_file_t *priv = filp->private_data; 475 struct drm_file *priv = filp->private_data;
476 drm_device_t *dev; 476 struct drm_device *dev;
477 drm_device_dma_t *dma; 477 drm_device_dma_t *dma;
478 unsigned long length = vma->vm_end - vma->vm_start; 478 unsigned long length = vma->vm_end - vma->vm_start;
479 479
@@ -545,8 +545,8 @@ EXPORT_SYMBOL(drm_core_get_reg_ofs);
545 */ 545 */
546static int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma) 546static int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma)
547{ 547{
548 drm_file_t *priv = filp->private_data; 548 struct drm_file *priv = filp->private_data;
549 drm_device_t *dev = priv->head->dev; 549 struct drm_device *dev = priv->head->dev;
550 struct drm_map *map = NULL; 550 struct drm_map *map = NULL;
551 unsigned long offset = 0; 551 unsigned long offset = 0;
552 drm_hash_item_t *hash; 552 drm_hash_item_t *hash;
@@ -663,8 +663,8 @@ static int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma)
663 663
664int drm_mmap(struct file *filp, struct vm_area_struct *vma) 664int drm_mmap(struct file *filp, struct vm_area_struct *vma)
665{ 665{
666 drm_file_t *priv = filp->private_data; 666 struct drm_file *priv = filp->private_data;
667 drm_device_t *dev = priv->head->dev; 667 struct drm_device *dev = priv->head->dev;
668 int ret; 668 int ret;
669 669
670 mutex_lock(&dev->struct_mutex); 670 mutex_lock(&dev->struct_mutex);