Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+432 -432
+2 -2
drivers/char/drm/ati_pcigart.c
··· 73 73 free_pages((unsigned long)address, order); 74 74 } 75 75 76 - int drm_ati_pcigart_cleanup(drm_device_t *dev, drm_ati_pcigart_info *gart_info) 76 + int drm_ati_pcigart_cleanup(struct drm_device *dev, drm_ati_pcigart_info *gart_info) 77 77 { 78 78 drm_sg_mem_t *entry = dev->sg; 79 79 unsigned long pages; ··· 122 122 } 123 123 EXPORT_SYMBOL(drm_ati_pcigart_cleanup); 124 124 125 - int drm_ati_pcigart_init(drm_device_t *dev, drm_ati_pcigart_info *gart_info) 125 + int drm_ati_pcigart_init(struct drm_device *dev, drm_ati_pcigart_info *gart_info) 126 126 { 127 127 drm_sg_mem_t *entry = dev->sg; 128 128 void *address = NULL;
+68 -68
drivers/char/drm/drmP.h
··· 366 366 } drm_buf_entry_t; 367 367 368 368 /** File private data */ 369 - typedef struct drm_file { 369 + struct drm_file { 370 370 int authenticated; 371 371 int master; 372 372 int minor; ··· 379 379 int remove_auth_on_close; 380 380 unsigned long lock_count; 381 381 void *driver_priv; 382 - } drm_file_t; 382 + }; 383 383 384 384 /** Wait queue */ 385 385 typedef struct drm_queue { ··· 498 498 typedef struct drm_ctx_list { 499 499 struct list_head head; /**< list head */ 500 500 drm_context_t handle; /**< context handle */ 501 - drm_file_t *tag; /**< associated fd private data */ 501 + struct drm_file *tag; /**< associated fd private data */ 502 502 } drm_ctx_list_t; 503 503 504 504 typedef struct drm_vbl_sig { ··· 553 553 struct drm_driver { 554 554 int (*load) (struct drm_device *, unsigned long flags); 555 555 int (*firstopen) (struct drm_device *); 556 - int (*open) (struct drm_device *, drm_file_t *); 556 + int (*open) (struct drm_device *, struct drm_file *); 557 557 void (*preclose) (struct drm_device *, struct file * filp); 558 - void (*postclose) (struct drm_device *, drm_file_t *); 558 + void (*postclose) (struct drm_device *, struct drm_file *); 559 559 void (*lastclose) (struct drm_device *); 560 560 int (*unload) (struct drm_device *); 561 561 int (*dma_ioctl) (DRM_IOCTL_ARGS); 562 562 void (*dma_ready) (struct drm_device *); 563 563 int (*dma_quiescent) (struct drm_device *); 564 - int (*context_ctor) (struct drm_device * dev, int context); 565 - int (*context_dtor) (struct drm_device * dev, int context); 566 - int (*kernel_context_switch) (struct drm_device * dev, int old, 564 + int (*context_ctor) (struct drm_device *dev, int context); 565 + int (*context_dtor) (struct drm_device *dev, int context); 566 + int (*kernel_context_switch) (struct drm_device *dev, int old, 567 567 int new); 568 - void (*kernel_context_switch_unlock) (struct drm_device * dev); 569 - int (*vblank_wait) (struct drm_device * dev, unsigned int *sequence); 570 - int (*vblank_wait2) (struct drm_device * dev, unsigned int *sequence); 568 + void (*kernel_context_switch_unlock) (struct drm_device *dev); 569 + int (*vblank_wait) (struct drm_device *dev, unsigned int *sequence); 570 + int (*vblank_wait2) (struct drm_device *dev, unsigned int *sequence); 571 571 int (*dri_library_name) (struct drm_device *dev, char *buf); 572 572 573 573 /** ··· 581 581 * card is absolutely \b not AGP (return of 0), absolutely \b is AGP 582 582 * (return of 1), or may or may not be AGP (return of 2). 583 583 */ 584 - int (*device_is_agp) (struct drm_device * dev); 584 + int (*device_is_agp) (struct drm_device *dev); 585 585 586 586 /* these have to be filled in */ 587 587 588 588 irqreturn_t(*irq_handler) (DRM_IRQ_ARGS); 589 - void (*irq_preinstall) (struct drm_device * dev); 590 - void (*irq_postinstall) (struct drm_device * dev); 591 - void (*irq_uninstall) (struct drm_device * dev); 592 - void (*reclaim_buffers) (struct drm_device * dev, struct file * filp); 589 + void (*irq_preinstall) (struct drm_device *dev); 590 + void (*irq_postinstall) (struct drm_device *dev); 591 + void (*irq_uninstall) (struct drm_device *dev); 592 + void (*reclaim_buffers) (struct drm_device *dev, struct file * filp); 593 593 void (*reclaim_buffers_locked) (struct drm_device *dev, 594 594 struct file *filp); 595 595 void (*reclaim_buffers_idlelocked) (struct drm_device *dev, 596 596 struct file * filp); 597 597 unsigned long (*get_map_ofs) (struct drm_map * map); 598 - unsigned long (*get_reg_ofs) (struct drm_device * dev); 599 - void (*set_version) (struct drm_device * dev, 598 + unsigned long (*get_reg_ofs) (struct drm_device *dev); 599 + void (*set_version) (struct drm_device *dev, 600 600 struct drm_set_version *sv); 601 601 602 602 int major; ··· 619 619 * that may contain multiple heads. Embed one per head of these in the 620 620 * private drm_device structure. 621 621 */ 622 - typedef struct drm_head { 622 + struct drm_head { 623 623 int minor; /**< Minor device number */ 624 624 struct drm_device *dev; 625 625 struct proc_dir_entry *dev_root; /**< proc directory entry */ 626 626 dev_t device; /**< Device number for mknod */ 627 627 struct class_device *dev_class; 628 - } drm_head_t; 628 + }; 629 629 630 630 /** 631 631 * DRM device structure. This structure represent a complete card that 632 632 * may contain multiple heads. 633 633 */ 634 - typedef struct drm_device { 634 + struct drm_device { 635 635 char *unique; /**< Unique identifier: e.g., busid */ 636 636 int unique_len; /**< Length of unique field */ 637 637 char *devname; /**< For /proc/interrupts */ ··· 749 749 struct drm_driver *driver; 750 750 drm_local_map_t *agp_buffer_map; 751 751 unsigned int agp_buffer_token; 752 - drm_head_t primary; /**< primary screen head */ 752 + struct drm_head primary; /**< primary screen head */ 753 753 754 754 /** \name Drawable information */ 755 755 /*@{ */ ··· 759 759 unsigned int drw_info_length; 760 760 struct drm_drawable_info **drw_info; 761 761 /*@} */ 762 - } drm_device_t; 762 + }; 763 763 764 764 static __inline__ int drm_core_check_feature(struct drm_device *dev, 765 765 int feature) ··· 831 831 unsigned int cmd, unsigned long arg); 832 832 extern long drm_compat_ioctl(struct file *filp, 833 833 unsigned int cmd, unsigned long arg); 834 - extern int drm_lastclose(drm_device_t *dev); 834 + extern int drm_lastclose(struct drm_device *dev); 835 835 836 836 /* Device support (drm_fops.h) */ 837 837 extern int drm_open(struct inode *inode, struct file *filp); ··· 850 850 int request, int *eof, void *data); 851 851 extern void *drm_realloc(void *oldpt, size_t oldsize, size_t size, int area); 852 852 853 - extern DRM_AGP_MEM *drm_alloc_agp(drm_device_t * dev, int pages, u32 type); 853 + extern DRM_AGP_MEM *drm_alloc_agp(struct drm_device *dev, int pages, u32 type); 854 854 extern int drm_free_agp(DRM_AGP_MEM * handle, int pages); 855 855 extern int drm_bind_agp(DRM_AGP_MEM * handle, unsigned int start); 856 856 extern int drm_unbind_agp(DRM_AGP_MEM * handle); ··· 889 889 extern int drm_rmctx(struct inode *inode, struct file *filp, 890 890 unsigned int cmd, unsigned long arg); 891 891 892 - extern int drm_ctxbitmap_init(drm_device_t * dev); 893 - extern void drm_ctxbitmap_cleanup(drm_device_t * dev); 894 - extern void drm_ctxbitmap_free(drm_device_t * dev, int ctx_handle); 892 + extern int drm_ctxbitmap_init(struct drm_device *dev); 893 + extern void drm_ctxbitmap_cleanup(struct drm_device *dev); 894 + extern void drm_ctxbitmap_free(struct drm_device *dev, int ctx_handle); 895 895 896 896 extern int drm_setsareactx(struct inode *inode, struct file *filp, 897 897 unsigned int cmd, unsigned long arg); ··· 905 905 unsigned int cmd, unsigned long arg); 906 906 extern int drm_update_drawable_info(struct inode *inode, struct file *filp, 907 907 unsigned int cmd, unsigned long arg); 908 - extern struct drm_drawable_info *drm_get_drawable_info(drm_device_t *dev, 908 + extern struct drm_drawable_info *drm_get_drawable_info(struct drm_device *dev, 909 909 drm_drawable_t id); 910 910 911 911 /* Authentication IOCTL support (drm_auth.h) */ ··· 933 933 extern int drm_kernel_take_hw_lock(struct file *filp); 934 934 935 935 /* Buffer management support (drm_bufs.h) */ 936 - extern int drm_addbufs_agp(drm_device_t * dev, struct drm_buf_desc * request); 937 - extern int drm_addbufs_pci(drm_device_t * dev, struct drm_buf_desc * request); 938 - extern int drm_addmap(drm_device_t * dev, unsigned int offset, 936 + extern int drm_addbufs_agp(struct drm_device *dev, struct drm_buf_desc * request); 937 + extern int drm_addbufs_pci(struct drm_device *dev, struct drm_buf_desc * request); 938 + extern int drm_addmap(struct drm_device *dev, unsigned int offset, 939 939 unsigned int size, enum drm_map_type type, 940 940 enum drm_map_flags flags, drm_local_map_t ** map_ptr); 941 941 extern int drm_addmap_ioctl(struct inode *inode, struct file *filp, 942 942 unsigned int cmd, unsigned long arg); 943 - extern int drm_rmmap(drm_device_t * dev, drm_local_map_t * map); 944 - extern int drm_rmmap_locked(drm_device_t * dev, drm_local_map_t * map); 943 + extern int drm_rmmap(struct drm_device *dev, drm_local_map_t * map); 944 + extern int drm_rmmap_locked(struct drm_device *dev, drm_local_map_t * map); 945 945 extern int drm_rmmap_ioctl(struct inode *inode, struct file *filp, 946 946 unsigned int cmd, unsigned long arg); 947 947 ··· 956 956 unsigned int cmd, unsigned long arg); 957 957 extern int drm_mapbufs(struct inode *inode, struct file *filp, 958 958 unsigned int cmd, unsigned long arg); 959 - extern unsigned long drm_get_resource_start(drm_device_t * dev, 959 + extern unsigned long drm_get_resource_start(struct drm_device *dev, 960 960 unsigned int resource); 961 - extern unsigned long drm_get_resource_len(drm_device_t * dev, 961 + extern unsigned long drm_get_resource_len(struct drm_device *dev, 962 962 unsigned int resource); 963 963 964 964 /* DMA support (drm_dma.h) */ 965 - extern int drm_dma_setup(drm_device_t * dev); 966 - extern void drm_dma_takedown(drm_device_t * dev); 967 - extern void drm_free_buffer(drm_device_t * dev, drm_buf_t * buf); 968 - extern void drm_core_reclaim_buffers(drm_device_t * dev, struct file *filp); 965 + extern int drm_dma_setup(struct drm_device *dev); 966 + extern void drm_dma_takedown(struct drm_device *dev); 967 + extern void drm_free_buffer(struct drm_device *dev, drm_buf_t * buf); 968 + extern void drm_core_reclaim_buffers(struct drm_device *dev, struct file *filp); 969 969 970 970 /* IRQ support (drm_irq.h) */ 971 971 extern int drm_control(struct inode *inode, struct file *filp, 972 972 unsigned int cmd, unsigned long arg); 973 973 extern irqreturn_t drm_irq_handler(DRM_IRQ_ARGS); 974 - extern int drm_irq_uninstall(drm_device_t * dev); 975 - extern void drm_driver_irq_preinstall(drm_device_t * dev); 976 - extern void drm_driver_irq_postinstall(drm_device_t * dev); 977 - extern void drm_driver_irq_uninstall(drm_device_t * dev); 974 + extern int drm_irq_uninstall(struct drm_device *dev); 975 + extern void drm_driver_irq_preinstall(struct drm_device *dev); 976 + extern void drm_driver_irq_postinstall(struct drm_device *dev); 977 + extern void drm_driver_irq_uninstall(struct drm_device *dev); 978 978 979 979 extern int drm_wait_vblank(struct inode *inode, struct file *filp, 980 980 unsigned int cmd, unsigned long arg); 981 - extern int drm_vblank_wait(drm_device_t * dev, unsigned int *vbl_seq); 982 - extern void drm_vbl_send_signals(drm_device_t * dev); 983 - extern void drm_locked_tasklet(drm_device_t *dev, void(*func)(drm_device_t*)); 981 + extern int drm_vblank_wait(struct drm_device *dev, unsigned int *vbl_seq); 982 + extern void drm_vbl_send_signals(struct drm_device *dev); 983 + extern void drm_locked_tasklet(struct drm_device *dev, void(*func)(struct drm_device*)); 984 984 985 985 /* AGP/GART support (drm_agpsupport.h) */ 986 - extern drm_agp_head_t *drm_agp_init(drm_device_t * dev); 987 - extern int drm_agp_acquire(drm_device_t * dev); 986 + extern drm_agp_head_t *drm_agp_init(struct drm_device *dev); 987 + extern int drm_agp_acquire(struct drm_device *dev); 988 988 extern int drm_agp_acquire_ioctl(struct inode *inode, struct file *filp, 989 989 unsigned int cmd, unsigned long arg); 990 - extern int drm_agp_release(drm_device_t * dev); 990 + extern int drm_agp_release(struct drm_device *dev); 991 991 extern int drm_agp_release_ioctl(struct inode *inode, struct file *filp, 992 992 unsigned int cmd, unsigned long arg); 993 - extern int drm_agp_enable(drm_device_t * dev, struct drm_agp_mode mode); 993 + extern int drm_agp_enable(struct drm_device *dev, struct drm_agp_mode mode); 994 994 extern int drm_agp_enable_ioctl(struct inode *inode, struct file *filp, 995 995 unsigned int cmd, unsigned long arg); 996 - extern int drm_agp_info(drm_device_t * dev, struct drm_agp_info * info); 996 + extern int drm_agp_info(struct drm_device *dev, struct drm_agp_info * info); 997 997 extern int drm_agp_info_ioctl(struct inode *inode, struct file *filp, 998 998 unsigned int cmd, unsigned long arg); 999 - extern int drm_agp_alloc(drm_device_t *dev, struct drm_agp_buffer *request); 999 + extern int drm_agp_alloc(struct drm_device *dev, struct drm_agp_buffer *request); 1000 1000 extern int drm_agp_alloc_ioctl(struct inode *inode, struct file *filp, 1001 1001 unsigned int cmd, unsigned long arg); 1002 - extern int drm_agp_free(drm_device_t *dev, struct drm_agp_buffer *request); 1002 + extern int drm_agp_free(struct drm_device *dev, struct drm_agp_buffer *request); 1003 1003 extern int drm_agp_free_ioctl(struct inode *inode, struct file *filp, 1004 1004 unsigned int cmd, unsigned long arg); 1005 - extern int drm_agp_unbind(drm_device_t *dev, struct drm_agp_binding *request); 1005 + extern int drm_agp_unbind(struct drm_device *dev, struct drm_agp_binding *request); 1006 1006 extern int drm_agp_unbind_ioctl(struct inode *inode, struct file *filp, 1007 1007 unsigned int cmd, unsigned long arg); 1008 - extern int drm_agp_bind(drm_device_t *dev, struct drm_agp_binding *request); 1008 + extern int drm_agp_bind(struct drm_device *dev, struct drm_agp_binding *request); 1009 1009 extern int drm_agp_bind_ioctl(struct inode *inode, struct file *filp, 1010 1010 unsigned int cmd, unsigned long arg); 1011 1011 extern DRM_AGP_MEM *drm_agp_allocate_memory(struct agp_bridge_data *bridge, ··· 1017 1017 /* Stub support (drm_stub.h) */ 1018 1018 extern int drm_get_dev(struct pci_dev *pdev, const struct pci_device_id *ent, 1019 1019 struct drm_driver *driver); 1020 - extern int drm_put_dev(drm_device_t * dev); 1021 - extern int drm_put_head(drm_head_t * head); 1020 + extern int drm_put_dev(struct drm_device *dev); 1021 + extern int drm_put_head(struct drm_head *head); 1022 1022 extern unsigned int drm_debug; 1023 1023 extern unsigned int drm_cards_limit; 1024 - extern drm_head_t **drm_heads; 1024 + extern struct drm_head **drm_heads; 1025 1025 extern struct class *drm_class; 1026 1026 extern struct proc_dir_entry *drm_proc_root; 1027 1027 1028 1028 extern drm_local_map_t *drm_getsarea(struct drm_device *dev); 1029 1029 1030 1030 /* Proc support (drm_proc.h) */ 1031 - extern int drm_proc_init(drm_device_t * dev, 1031 + extern int drm_proc_init(struct drm_device *dev, 1032 1032 int minor, 1033 1033 struct proc_dir_entry *root, 1034 1034 struct proc_dir_entry **dev_root); ··· 1044 1044 unsigned int cmd, unsigned long arg); 1045 1045 1046 1046 /* ATI PCIGART support (ati_pcigart.h) */ 1047 - extern int drm_ati_pcigart_init(drm_device_t * dev, 1047 + extern int drm_ati_pcigart_init(struct drm_device *dev, 1048 1048 drm_ati_pcigart_info * gart_info); 1049 - extern int drm_ati_pcigart_cleanup(drm_device_t * dev, 1049 + extern int drm_ati_pcigart_cleanup(struct drm_device *dev, 1050 1050 drm_ati_pcigart_info * gart_info); 1051 1051 1052 - extern drm_dma_handle_t *drm_pci_alloc(drm_device_t * dev, size_t size, 1052 + extern drm_dma_handle_t *drm_pci_alloc(struct drm_device *dev, size_t size, 1053 1053 size_t align, dma_addr_t maxaddr); 1054 - extern void __drm_pci_free(drm_device_t * dev, drm_dma_handle_t * dmah); 1055 - extern void drm_pci_free(drm_device_t * dev, drm_dma_handle_t * dmah); 1054 + extern void __drm_pci_free(struct drm_device *dev, drm_dma_handle_t * dmah); 1055 + extern void drm_pci_free(struct drm_device *dev, drm_dma_handle_t * dmah); 1056 1056 1057 1057 /* sysfs support (drm_sysfs.c) */ 1058 1058 extern struct class *drm_sysfs_create(struct module *owner, char *name); 1059 1059 extern void drm_sysfs_destroy(struct class *cs); 1060 1060 extern struct class_device *drm_sysfs_device_add(struct class *cs, 1061 - drm_head_t *head); 1061 + struct drm_head *head); 1062 1062 extern void drm_sysfs_device_remove(struct class_device *class_dev); 1063 1063 1064 1064 /* ··· 1090 1090 return NULL; 1091 1091 } 1092 1092 1093 - static __inline__ int drm_device_is_agp(drm_device_t * dev) 1093 + static __inline__ int drm_device_is_agp(struct drm_device *dev) 1094 1094 { 1095 1095 if (dev->driver->device_is_agp != NULL) { 1096 1096 int err = (*dev->driver->device_is_agp) (dev); ··· 1103 1103 return pci_find_capability(dev->pdev, PCI_CAP_ID_AGP); 1104 1104 } 1105 1105 1106 - static __inline__ int drm_device_is_pcie(drm_device_t * dev) 1106 + static __inline__ int drm_device_is_pcie(struct drm_device *dev) 1107 1107 { 1108 1108 return pci_find_capability(dev->pdev, PCI_CAP_ID_EXP); 1109 1109 }
+26 -26
drivers/char/drm/drm_agpsupport.c
··· 48 48 * Verifies the AGP device has been initialized and acquired and fills in the 49 49 * drm_agp_info structure with the information in drm_agp_head::agp_info. 50 50 */ 51 - int drm_agp_info(drm_device_t * dev, struct drm_agp_info * info) 51 + int drm_agp_info(struct drm_device *dev, struct drm_agp_info *info) 52 52 { 53 53 DRM_AGP_KERN *kern; 54 54 ··· 74 74 int drm_agp_info_ioctl(struct inode *inode, struct file *filp, 75 75 unsigned int cmd, unsigned long arg) 76 76 { 77 - drm_file_t *priv = filp->private_data; 78 - drm_device_t *dev = priv->head->dev; 77 + struct drm_file *priv = filp->private_data; 78 + struct drm_device *dev = priv->head->dev; 79 79 struct drm_agp_info info; 80 80 int err; 81 81 ··· 97 97 * Verifies the AGP device hasn't been acquired before and calls 98 98 * \c agp_backend_acquire. 99 99 */ 100 - int drm_agp_acquire(drm_device_t * dev) 100 + int drm_agp_acquire(struct drm_device * dev) 101 101 { 102 102 if (!dev->agp) 103 103 return -ENODEV; ··· 126 126 int drm_agp_acquire_ioctl(struct inode *inode, struct file *filp, 127 127 unsigned int cmd, unsigned long arg) 128 128 { 129 - drm_file_t *priv = filp->private_data; 129 + struct drm_file *priv = filp->private_data; 130 130 131 - return drm_agp_acquire((drm_device_t *) priv->head->dev); 131 + return drm_agp_acquire((struct drm_device *) priv->head->dev); 132 132 } 133 133 134 134 /** ··· 139 139 * 140 140 * Verifies the AGP device has been acquired and calls \c agp_backend_release. 141 141 */ 142 - int drm_agp_release(drm_device_t * dev) 142 + int drm_agp_release(struct drm_device * dev) 143 143 { 144 144 if (!dev->agp || !dev->agp->acquired) 145 145 return -EINVAL; ··· 152 152 int drm_agp_release_ioctl(struct inode *inode, struct file *filp, 153 153 unsigned int cmd, unsigned long arg) 154 154 { 155 - drm_file_t *priv = filp->private_data; 156 - drm_device_t *dev = priv->head->dev; 155 + struct drm_file *priv = filp->private_data; 156 + struct drm_device *dev = priv->head->dev; 157 157 158 158 return drm_agp_release(dev); 159 159 } ··· 168 168 * Verifies the AGP device has been acquired but not enabled, and calls 169 169 * \c agp_enable. 170 170 */ 171 - int drm_agp_enable(drm_device_t * dev, struct drm_agp_mode mode) 171 + int drm_agp_enable(struct drm_device * dev, struct drm_agp_mode mode) 172 172 { 173 173 if (!dev->agp || !dev->agp->acquired) 174 174 return -EINVAL; ··· 185 185 int drm_agp_enable_ioctl(struct inode *inode, struct file *filp, 186 186 unsigned int cmd, unsigned long arg) 187 187 { 188 - drm_file_t *priv = filp->private_data; 189 - drm_device_t *dev = priv->head->dev; 188 + struct drm_file *priv = filp->private_data; 189 + struct drm_device *dev = priv->head->dev; 190 190 struct drm_agp_mode mode; 191 191 192 192 if (copy_from_user(&mode, (struct drm_agp_mode __user *) arg, sizeof(mode))) ··· 207 207 * Verifies the AGP device is present and has been acquired, allocates the 208 208 * memory via alloc_agp() and creates a drm_agp_mem entry for it. 209 209 */ 210 - int drm_agp_alloc(drm_device_t *dev, struct drm_agp_buffer *request) 210 + int drm_agp_alloc(struct drm_device *dev, struct drm_agp_buffer *request) 211 211 { 212 212 drm_agp_mem_t *entry; 213 213 DRM_AGP_MEM *memory; ··· 244 244 int drm_agp_alloc_ioctl(struct inode *inode, struct file *filp, 245 245 unsigned int cmd, unsigned long arg) 246 246 { 247 - drm_file_t *priv = filp->private_data; 248 - drm_device_t *dev = priv->head->dev; 247 + struct drm_file *priv = filp->private_data; 248 + struct drm_device *dev = priv->head->dev; 249 249 struct drm_agp_buffer request; 250 250 struct drm_agp_buffer __user *argp = (void __user *)arg; 251 251 int err; ··· 281 281 * 282 282 * Walks through drm_agp_head::memory until finding a matching handle. 283 283 */ 284 - static drm_agp_mem_t *drm_agp_lookup_entry(drm_device_t * dev, 284 + static drm_agp_mem_t *drm_agp_lookup_entry(struct drm_device * dev, 285 285 unsigned long handle) 286 286 { 287 287 drm_agp_mem_t *entry; ··· 305 305 * Verifies the AGP device is present and acquired, looks-up the AGP memory 306 306 * entry and passes it to the unbind_agp() function. 307 307 */ 308 - int drm_agp_unbind(drm_device_t *dev, struct drm_agp_binding *request) 308 + int drm_agp_unbind(struct drm_device *dev, struct drm_agp_binding *request) 309 309 { 310 310 drm_agp_mem_t *entry; 311 311 int ret; ··· 326 326 int drm_agp_unbind_ioctl(struct inode *inode, struct file *filp, 327 327 unsigned int cmd, unsigned long arg) 328 328 { 329 - drm_file_t *priv = filp->private_data; 330 - drm_device_t *dev = priv->head->dev; 329 + struct drm_file *priv = filp->private_data; 330 + struct drm_device *dev = priv->head->dev; 331 331 struct drm_agp_binding request; 332 332 333 333 if (copy_from_user ··· 350 350 * is currently bound into the GATT. Looks-up the AGP memory entry and passes 351 351 * it to bind_agp() function. 352 352 */ 353 - int drm_agp_bind(drm_device_t *dev, struct drm_agp_binding *request) 353 + int drm_agp_bind(struct drm_device *dev, struct drm_agp_binding *request) 354 354 { 355 355 drm_agp_mem_t *entry; 356 356 int retcode; ··· 375 375 int drm_agp_bind_ioctl(struct inode *inode, struct file *filp, 376 376 unsigned int cmd, unsigned long arg) 377 377 { 378 - drm_file_t *priv = filp->private_data; 379 - drm_device_t *dev = priv->head->dev; 378 + struct drm_file *priv = filp->private_data; 379 + struct drm_device *dev = priv->head->dev; 380 380 struct drm_agp_binding request; 381 381 382 382 if (copy_from_user ··· 400 400 * unbind_agp(). Frees it via free_agp() as well as the entry itself 401 401 * and unlinks from the doubly linked list it's inserted in. 402 402 */ 403 - int drm_agp_free(drm_device_t *dev, struct drm_agp_buffer *request) 403 + int drm_agp_free(struct drm_device *dev, struct drm_agp_buffer *request) 404 404 { 405 405 drm_agp_mem_t *entry; 406 406 ··· 422 422 int drm_agp_free_ioctl(struct inode *inode, struct file *filp, 423 423 unsigned int cmd, unsigned long arg) 424 424 { 425 - drm_file_t *priv = filp->private_data; 426 - drm_device_t *dev = priv->head->dev; 425 + struct drm_file *priv = filp->private_data; 426 + struct drm_device *dev = priv->head->dev; 427 427 struct drm_agp_buffer request; 428 428 429 429 if (copy_from_user ··· 442 442 * via the inter_module_* functions. Creates and initializes a drm_agp_head 443 443 * structure. 444 444 */ 445 - drm_agp_head_t *drm_agp_init(drm_device_t * dev) 445 + drm_agp_head_t *drm_agp_init(struct drm_device *dev) 446 446 { 447 447 drm_agp_head_t *head = NULL; 448 448
+9 -9
drivers/char/drm/drm_auth.c
··· 45 45 * the one with matching magic number, while holding the drm_device::struct_mutex 46 46 * lock. 47 47 */ 48 - static drm_file_t *drm_find_file(drm_device_t * dev, drm_magic_t magic) 48 + static struct drm_file *drm_find_file(struct drm_device * dev, drm_magic_t magic) 49 49 { 50 - drm_file_t *retval = NULL; 50 + struct drm_file *retval = NULL; 51 51 drm_magic_entry_t *pt; 52 52 drm_hash_item_t *hash; 53 53 ··· 71 71 * associated the magic number hash key in drm_device::magiclist, while holding 72 72 * the drm_device::struct_mutex lock. 73 73 */ 74 - static int drm_add_magic(drm_device_t * dev, drm_file_t * priv, 74 + static int drm_add_magic(struct drm_device * dev, struct drm_file * priv, 75 75 drm_magic_t magic) 76 76 { 77 77 drm_magic_entry_t *entry; ··· 102 102 * Searches and unlinks the entry in drm_device::magiclist with the magic 103 103 * number hash key, while holding the drm_device::struct_mutex lock. 104 104 */ 105 - static int drm_remove_magic(drm_device_t * dev, drm_magic_t magic) 105 + static int drm_remove_magic(struct drm_device * dev, drm_magic_t magic) 106 106 { 107 107 drm_magic_entry_t *pt; 108 108 drm_hash_item_t *hash; ··· 142 142 { 143 143 static drm_magic_t sequence = 0; 144 144 static DEFINE_SPINLOCK(lock); 145 - drm_file_t *priv = filp->private_data; 146 - drm_device_t *dev = priv->head->dev; 145 + struct drm_file *priv = filp->private_data; 146 + struct drm_device *dev = priv->head->dev; 147 147 struct drm_auth auth; 148 148 149 149 /* Find unique magic */ ··· 181 181 int drm_authmagic(struct inode *inode, struct file *filp, 182 182 unsigned int cmd, unsigned long arg) 183 183 { 184 - drm_file_t *priv = filp->private_data; 185 - drm_device_t *dev = priv->head->dev; 184 + struct drm_file *priv = filp->private_data; 185 + struct drm_device *dev = priv->head->dev; 186 186 struct drm_auth auth; 187 - drm_file_t *file; 187 + struct drm_file *file; 188 188 189 189 if (copy_from_user(&auth, (struct drm_auth __user *) arg, sizeof(auth))) 190 190 return -EFAULT;
+28 -28
drivers/char/drm/drm_bufs.c
··· 36 36 #include <linux/vmalloc.h> 37 37 #include "drmP.h" 38 38 39 - unsigned long drm_get_resource_start(drm_device_t *dev, unsigned int resource) 39 + unsigned long drm_get_resource_start(struct drm_device *dev, unsigned int resource) 40 40 { 41 41 return pci_resource_start(dev->pdev, resource); 42 42 } 43 43 EXPORT_SYMBOL(drm_get_resource_start); 44 44 45 - unsigned long drm_get_resource_len(drm_device_t *dev, unsigned int resource) 45 + unsigned long drm_get_resource_len(struct drm_device *dev, unsigned int resource) 46 46 { 47 47 return pci_resource_len(dev->pdev, resource); 48 48 } 49 49 50 50 EXPORT_SYMBOL(drm_get_resource_len); 51 51 52 - static drm_map_list_t *drm_find_matching_map(drm_device_t *dev, 52 + static drm_map_list_t *drm_find_matching_map(struct drm_device *dev, 53 53 drm_local_map_t *map) 54 54 { 55 55 drm_map_list_t *entry; ··· 64 64 return NULL; 65 65 } 66 66 67 - static int drm_map_handle(drm_device_t *dev, drm_hash_item_t *hash, 67 + static int drm_map_handle(struct drm_device *dev, drm_hash_item_t *hash, 68 68 unsigned long user_token, int hashed_handle) 69 69 { 70 70 int use_hashed_handle; ··· 101 101 * type. Adds the map to the map list drm_device::maplist. Adds MTRR's where 102 102 * applicable and if supported by the kernel. 103 103 */ 104 - static int drm_addmap_core(drm_device_t * dev, unsigned int offset, 104 + static int drm_addmap_core(struct drm_device * dev, unsigned int offset, 105 105 unsigned int size, enum drm_map_type type, 106 106 enum drm_map_flags flags, drm_map_list_t ** maplist) 107 107 { ··· 310 310 return 0; 311 311 } 312 312 313 - int drm_addmap(drm_device_t * dev, unsigned int offset, 313 + int drm_addmap(struct drm_device * dev, unsigned int offset, 314 314 unsigned int size, enum drm_map_type type, 315 315 enum drm_map_flags flags, drm_local_map_t ** map_ptr) 316 316 { ··· 328 328 int drm_addmap_ioctl(struct inode *inode, struct file *filp, 329 329 unsigned int cmd, unsigned long arg) 330 330 { 331 - drm_file_t *priv = filp->private_data; 332 - drm_device_t *dev = priv->head->dev; 331 + struct drm_file *priv = filp->private_data; 332 + struct drm_device *dev = priv->head->dev; 333 333 struct drm_map map; 334 334 drm_map_list_t *maplist; 335 335 struct drm_map __user *argp = (void __user *)arg; ··· 376 376 * 377 377 * \sa drm_addmap 378 378 */ 379 - int drm_rmmap_locked(drm_device_t *dev, drm_local_map_t *map) 379 + int drm_rmmap_locked(struct drm_device *dev, drm_local_map_t *map) 380 380 { 381 381 drm_map_list_t *r_list = NULL, *list_t; 382 382 drm_dma_handle_t dmah; ··· 426 426 return 0; 427 427 } 428 428 429 - int drm_rmmap(drm_device_t *dev, drm_local_map_t *map) 429 + int drm_rmmap(struct drm_device *dev, drm_local_map_t *map) 430 430 { 431 431 int ret; 432 432 ··· 449 449 int drm_rmmap_ioctl(struct inode *inode, struct file *filp, 450 450 unsigned int cmd, unsigned long arg) 451 451 { 452 - drm_file_t *priv = filp->private_data; 453 - drm_device_t *dev = priv->head->dev; 452 + struct drm_file *priv = filp->private_data; 453 + struct drm_device *dev = priv->head->dev; 454 454 struct drm_map request; 455 455 drm_local_map_t *map = NULL; 456 456 drm_map_list_t *r_list; ··· 504 504 * 505 505 * Frees any pages and buffers associated with the given entry. 506 506 */ 507 - static void drm_cleanup_buf_error(drm_device_t * dev, drm_buf_entry_t * entry) 507 + static void drm_cleanup_buf_error(struct drm_device * dev, drm_buf_entry_t * entry) 508 508 { 509 509 int i; 510 510 ··· 541 541 /** 542 542 * Add AGP buffers for DMA transfers. 543 543 * 544 - * \param dev drm_device_t to which the buffers are to be added. 544 + * \param dev struct drm_device to which the buffers are to be added. 545 545 * \param request pointer to a struct drm_buf_desc describing the request. 546 546 * \return zero on success or a negative number on failure. 547 547 * ··· 549 549 * reallocates the buffer list of the same size order to accommodate the new 550 550 * buffers. 551 551 */ 552 - int drm_addbufs_agp(drm_device_t * dev, struct drm_buf_desc * request) 552 + int drm_addbufs_agp(struct drm_device * dev, struct drm_buf_desc * request) 553 553 { 554 554 drm_device_dma_t *dma = dev->dma; 555 555 drm_buf_entry_t *entry; ··· 719 719 EXPORT_SYMBOL(drm_addbufs_agp); 720 720 #endif /* __OS_HAS_AGP */ 721 721 722 - int drm_addbufs_pci(drm_device_t * dev, struct drm_buf_desc * request) 722 + int drm_addbufs_pci(struct drm_device * dev, struct drm_buf_desc * request) 723 723 { 724 724 drm_device_dma_t *dma = dev->dma; 725 725 int count; ··· 945 945 } 946 946 EXPORT_SYMBOL(drm_addbufs_pci); 947 947 948 - static int drm_addbufs_sg(drm_device_t * dev, struct drm_buf_desc * request) 948 + static int drm_addbufs_sg(struct drm_device * dev, struct drm_buf_desc * request) 949 949 { 950 950 drm_device_dma_t *dma = dev->dma; 951 951 drm_buf_entry_t *entry; ··· 1107 1107 return 0; 1108 1108 } 1109 1109 1110 - static int drm_addbufs_fb(drm_device_t * dev, struct drm_buf_desc * request) 1110 + static int drm_addbufs_fb(struct drm_device * dev, struct drm_buf_desc * request) 1111 1111 { 1112 1112 drm_device_dma_t *dma = dev->dma; 1113 1113 drm_buf_entry_t *entry; ··· 1286 1286 unsigned int cmd, unsigned long arg) 1287 1287 { 1288 1288 struct drm_buf_desc request; 1289 - drm_file_t *priv = filp->private_data; 1290 - drm_device_t *dev = priv->head->dev; 1289 + struct drm_file *priv = filp->private_data; 1290 + struct drm_device *dev = priv->head->dev; 1291 1291 int ret; 1292 1292 1293 1293 if (!drm_core_check_feature(dev, DRIVER_HAVE_DMA)) ··· 1337 1337 int drm_infobufs(struct inode *inode, struct file *filp, 1338 1338 unsigned int cmd, unsigned long arg) 1339 1339 { 1340 - drm_file_t *priv = filp->private_data; 1341 - drm_device_t *dev = priv->head->dev; 1340 + struct drm_file *priv = filp->private_data; 1341 + struct drm_device *dev = priv->head->dev; 1342 1342 drm_device_dma_t *dma = dev->dma; 1343 1343 struct drm_buf_info request; 1344 1344 struct drm_buf_info __user *argp = (void __user *)arg; ··· 1425 1425 int drm_markbufs(struct inode *inode, struct file *filp, 1426 1426 unsigned int cmd, unsigned long arg) 1427 1427 { 1428 - drm_file_t *priv = filp->private_data; 1429 - drm_device_t *dev = priv->head->dev; 1428 + struct drm_file *priv = filp->private_data; 1429 + struct drm_device *dev = priv->head->dev; 1430 1430 drm_device_dma_t *dma = dev->dma; 1431 1431 struct drm_buf_desc request; 1432 1432 int order; ··· 1475 1475 int drm_freebufs(struct inode *inode, struct file *filp, 1476 1476 unsigned int cmd, unsigned long arg) 1477 1477 { 1478 - drm_file_t *priv = filp->private_data; 1479 - drm_device_t *dev = priv->head->dev; 1478 + struct drm_file *priv = filp->private_data; 1479 + struct drm_device *dev = priv->head->dev; 1480 1480 drm_device_dma_t *dma = dev->dma; 1481 1481 struct drm_buf_free request; 1482 1482 int i; ··· 1531 1531 int drm_mapbufs(struct inode *inode, struct file *filp, 1532 1532 unsigned int cmd, unsigned long arg) 1533 1533 { 1534 - drm_file_t *priv = filp->private_data; 1535 - drm_device_t *dev = priv->head->dev; 1534 + struct drm_file *priv = filp->private_data; 1535 + struct drm_device *dev = priv->head->dev; 1536 1536 drm_device_dma_t *dma = dev->dma; 1537 1537 struct drm_buf_map __user *argp = (void __user *)arg; 1538 1538 int retcode = 0;
+18 -18
drivers/char/drm/drm_context.c
··· 56 56 * in drm_device::context_sareas, while holding the drm_device::struct_mutex 57 57 * lock. 58 58 */ 59 - void drm_ctxbitmap_free(drm_device_t * dev, int ctx_handle) 59 + void drm_ctxbitmap_free(struct drm_device * dev, int ctx_handle) 60 60 { 61 61 if (ctx_handle < 0) 62 62 goto failed; ··· 85 85 * drm_device::context_sareas to accommodate the new entry while holding the 86 86 * drm_device::struct_mutex lock. 87 87 */ 88 - static int drm_ctxbitmap_next(drm_device_t * dev) 88 + static int drm_ctxbitmap_next(struct drm_device * dev) 89 89 { 90 90 int bit; 91 91 ··· 147 147 * Allocates and initialize drm_device::ctx_bitmap and drm_device::context_sareas, while holding 148 148 * the drm_device::struct_mutex lock. 149 149 */ 150 - int drm_ctxbitmap_init(drm_device_t * dev) 150 + int drm_ctxbitmap_init(struct drm_device * dev) 151 151 { 152 152 int i; 153 153 int temp; ··· 180 180 * Frees drm_device::ctx_bitmap and drm_device::context_sareas, while holding 181 181 * the drm_device::struct_mutex lock. 182 182 */ 183 - void drm_ctxbitmap_cleanup(drm_device_t * dev) 183 + void drm_ctxbitmap_cleanup(struct drm_device * dev) 184 184 { 185 185 mutex_lock(&dev->struct_mutex); 186 186 if (dev->context_sareas) ··· 212 212 int drm_getsareactx(struct inode *inode, struct file *filp, 213 213 unsigned int cmd, unsigned long arg) 214 214 { 215 - drm_file_t *priv = filp->private_data; 216 - drm_device_t *dev = priv->head->dev; 215 + struct drm_file *priv = filp->private_data; 216 + struct drm_device *dev = priv->head->dev; 217 217 struct drm_ctx_priv_map __user *argp = (void __user *)arg; 218 218 struct drm_ctx_priv_map request; 219 219 struct drm_map *map; ··· 263 263 int drm_setsareactx(struct inode *inode, struct file *filp, 264 264 unsigned int cmd, unsigned long arg) 265 265 { 266 - drm_file_t *priv = filp->private_data; 267 - drm_device_t *dev = priv->head->dev; 266 + struct drm_file *priv = filp->private_data; 267 + struct drm_device *dev = priv->head->dev; 268 268 struct drm_ctx_priv_map request; 269 269 struct drm_map *map = NULL; 270 270 drm_map_list_t *r_list = NULL; ··· 313 313 * 314 314 * Attempt to set drm_device::context_flag. 315 315 */ 316 - static int drm_context_switch(drm_device_t * dev, int old, int new) 316 + static int drm_context_switch(struct drm_device * dev, int old, int new) 317 317 { 318 318 if (test_and_set_bit(0, &dev->context_flag)) { 319 319 DRM_ERROR("Reentering -- FIXME\n"); ··· 341 341 * hardware lock is held, clears the drm_device::context_flag and wakes up 342 342 * drm_device::context_wait. 343 343 */ 344 - static int drm_context_switch_complete(drm_device_t * dev, int new) 344 + static int drm_context_switch_complete(struct drm_device * dev, int new) 345 345 { 346 346 dev->last_context = new; /* PRE/POST: This is the _only_ writer. */ 347 347 dev->last_switch = jiffies; ··· 408 408 int drm_addctx(struct inode *inode, struct file *filp, 409 409 unsigned int cmd, unsigned long arg) 410 410 { 411 - drm_file_t *priv = filp->private_data; 412 - drm_device_t *dev = priv->head->dev; 411 + struct drm_file *priv = filp->private_data; 412 + struct drm_device *dev = priv->head->dev; 413 413 drm_ctx_list_t *ctx_entry; 414 414 struct drm_ctx __user *argp = (void __user *)arg; 415 415 struct drm_ctx ctx; ··· 504 504 int drm_switchctx(struct inode *inode, struct file *filp, 505 505 unsigned int cmd, unsigned long arg) 506 506 { 507 - drm_file_t *priv = filp->private_data; 508 - drm_device_t *dev = priv->head->dev; 507 + struct drm_file *priv = filp->private_data; 508 + struct drm_device *dev = priv->head->dev; 509 509 struct drm_ctx ctx; 510 510 511 511 if (copy_from_user(&ctx, (struct drm_ctx __user *) arg, sizeof(ctx))) ··· 529 529 int drm_newctx(struct inode *inode, struct file *filp, 530 530 unsigned int cmd, unsigned long arg) 531 531 { 532 - drm_file_t *priv = filp->private_data; 533 - drm_device_t *dev = priv->head->dev; 532 + struct drm_file *priv = filp->private_data; 533 + struct drm_device *dev = priv->head->dev; 534 534 struct drm_ctx ctx; 535 535 536 536 if (copy_from_user(&ctx, (struct drm_ctx __user *) arg, sizeof(ctx))) ··· 556 556 int drm_rmctx(struct inode *inode, struct file *filp, 557 557 unsigned int cmd, unsigned long arg) 558 558 { 559 - drm_file_t *priv = filp->private_data; 560 - drm_device_t *dev = priv->head->dev; 559 + struct drm_file *priv = filp->private_data; 560 + struct drm_device *dev = priv->head->dev; 561 561 struct drm_ctx ctx; 562 562 563 563 if (copy_from_user(&ctx, (struct drm_ctx __user *) arg, sizeof(ctx)))
+4 -4
drivers/char/drm/drm_dma.c
··· 43 43 * 44 44 * Allocate and initialize a drm_device_dma structure. 45 45 */ 46 - int drm_dma_setup(drm_device_t * dev) 46 + int drm_dma_setup(struct drm_device *dev) 47 47 { 48 48 int i; 49 49 ··· 67 67 * Free all pages associated with DMA buffers, the buffers and pages lists, and 68 68 * finally the drm_device::dma structure itself. 69 69 */ 70 - void drm_dma_takedown(drm_device_t * dev) 70 + void drm_dma_takedown(struct drm_device *dev) 71 71 { 72 72 drm_device_dma_t *dma = dev->dma; 73 73 int i, j; ··· 129 129 * 130 130 * Resets the fields of \p buf. 131 131 */ 132 - void drm_free_buffer(drm_device_t * dev, drm_buf_t * buf) 132 + void drm_free_buffer(struct drm_device *dev, drm_buf_t * buf) 133 133 { 134 134 if (!buf) 135 135 return; ··· 152 152 * 153 153 * Frees each buffer associated with \p filp not already on the hardware. 154 154 */ 155 - void drm_core_reclaim_buffers(drm_device_t * dev, struct file *filp) 155 + void drm_core_reclaim_buffers(struct drm_device *dev, struct file *filp) 156 156 { 157 157 drm_device_dma_t *dma = dev->dma; 158 158 int i;
+1 -1
drivers/char/drm/drm_drawable.c
··· 322 322 /** 323 323 * Caller must hold the drawable spinlock! 324 324 */ 325 - struct drm_drawable_info *drm_get_drawable_info(drm_device_t *dev, drm_drawable_t id) { 325 + struct drm_drawable_info *drm_get_drawable_info(struct drm_device *dev, drm_drawable_t id) { 326 326 u32 *bitfield = dev->drw_bitfield; 327 327 unsigned int idx, shift; 328 328
+8 -8
drivers/char/drm/drm_drv.c
··· 129 129 * 130 130 * \sa drm_device 131 131 */ 132 - int drm_lastclose(drm_device_t * dev) 132 + int drm_lastclose(struct drm_device * dev) 133 133 { 134 134 drm_magic_entry_t *pt, *next; 135 135 drm_map_list_t *r_list, *list_t; ··· 290 290 * 291 291 * \sa drm_init 292 292 */ 293 - static void drm_cleanup(drm_device_t * dev) 293 + static void drm_cleanup(struct drm_device * dev) 294 294 { 295 295 DRM_DEBUG("\n"); 296 296 ··· 330 330 void drm_exit(struct drm_driver *driver) 331 331 { 332 332 int i; 333 - drm_device_t *dev = NULL; 334 - drm_head_t *head; 333 + struct drm_device *dev = NULL; 334 + struct drm_head *head; 335 335 336 336 DRM_DEBUG("\n"); 337 337 ··· 430 430 static int drm_version(struct inode *inode, struct file *filp, 431 431 unsigned int cmd, unsigned long arg) 432 432 { 433 - drm_file_t *priv = filp->private_data; 434 - drm_device_t *dev = priv->head->dev; 433 + struct drm_file *priv = filp->private_data; 434 + struct drm_device *dev = priv->head->dev; 435 435 struct drm_version __user *argp = (void __user *)arg; 436 436 struct drm_version version; 437 437 int len; ··· 466 466 int drm_ioctl(struct inode *inode, struct file *filp, 467 467 unsigned int cmd, unsigned long arg) 468 468 { 469 - drm_file_t *priv = filp->private_data; 470 - drm_device_t *dev = priv->head->dev; 469 + struct drm_file *priv = filp->private_data; 470 + struct drm_device *dev = priv->head->dev; 471 471 drm_ioctl_desc_t *ioctl; 472 472 drm_ioctl_t *func; 473 473 unsigned int nr = DRM_IOCTL_NR(cmd);
+11 -11
drivers/char/drm/drm_fops.c
··· 39 39 #include <linux/poll.h> 40 40 41 41 static int drm_open_helper(struct inode *inode, struct file *filp, 42 - drm_device_t * dev); 42 + struct drm_device * dev); 43 43 44 - static int drm_setup(drm_device_t * dev) 44 + static int drm_setup(struct drm_device * dev) 45 45 { 46 46 drm_local_map_t *map; 47 47 int i; ··· 128 128 */ 129 129 int drm_open(struct inode *inode, struct file *filp) 130 130 { 131 - drm_device_t *dev = NULL; 131 + struct drm_device *dev = NULL; 132 132 int minor = iminor(inode); 133 133 int retcode = 0; 134 134 ··· 167 167 */ 168 168 int drm_stub_open(struct inode *inode, struct file *filp) 169 169 { 170 - drm_device_t *dev = NULL; 170 + struct drm_device *dev = NULL; 171 171 int minor = iminor(inode); 172 172 int err = -ENODEV; 173 173 const struct file_operations *old_fops; ··· 223 223 * filp and add it into the double linked list in \p dev. 224 224 */ 225 225 static int drm_open_helper(struct inode *inode, struct file *filp, 226 - drm_device_t * dev) 226 + struct drm_device * dev) 227 227 { 228 228 int minor = iminor(inode); 229 - drm_file_t *priv; 229 + struct drm_file *priv; 230 230 int ret; 231 231 232 232 if (filp->f_flags & O_EXCL) ··· 295 295 /** No-op. */ 296 296 int drm_fasync(int fd, struct file *filp, int on) 297 297 { 298 - drm_file_t *priv = filp->private_data; 299 - drm_device_t *dev = priv->head->dev; 298 + struct drm_file *priv = filp->private_data; 299 + struct drm_device *dev = priv->head->dev; 300 300 int retcode; 301 301 302 302 DRM_DEBUG("fd = %d, device = 0x%lx\n", fd, ··· 322 322 */ 323 323 int drm_release(struct inode *inode, struct file *filp) 324 324 { 325 - drm_file_t *priv = filp->private_data; 326 - drm_device_t *dev; 325 + struct drm_file *priv = filp->private_data; 326 + struct drm_device *dev; 327 327 int retcode = 0; 328 328 329 329 lock_kernel(); ··· 422 422 423 423 mutex_lock(&dev->struct_mutex); 424 424 if (priv->remove_auth_on_close == 1) { 425 - drm_file_t *temp; 425 + struct drm_file *temp; 426 426 427 427 list_for_each_entry(temp, &dev->filelist, lhead) 428 428 temp->authenticated = 0;
+12 -12
drivers/char/drm/drm_ioctl.c
··· 52 52 int drm_getunique(struct inode *inode, struct file *filp, 53 53 unsigned int cmd, unsigned long arg) 54 54 { 55 - drm_file_t *priv = filp->private_data; 56 - drm_device_t *dev = priv->head->dev; 55 + struct drm_file *priv = filp->private_data; 56 + struct drm_device *dev = priv->head->dev; 57 57 struct drm_unique __user *argp = (void __user *)arg; 58 58 struct drm_unique u; 59 59 ··· 86 86 int drm_setunique(struct inode *inode, struct file *filp, 87 87 unsigned int cmd, unsigned long arg) 88 88 { 89 - drm_file_t *priv = filp->private_data; 90 - drm_device_t *dev = priv->head->dev; 89 + struct drm_file *priv = filp->private_data; 90 + struct drm_device *dev = priv->head->dev; 91 91 struct drm_unique u; 92 92 int domain, bus, slot, func, ret; 93 93 ··· 136 136 return 0; 137 137 } 138 138 139 - static int drm_set_busid(drm_device_t * dev) 139 + static int drm_set_busid(struct drm_device * dev) 140 140 { 141 141 int len; 142 142 ··· 184 184 int drm_getmap(struct inode *inode, struct file *filp, 185 185 unsigned int cmd, unsigned long arg) 186 186 { 187 - drm_file_t *priv = filp->private_data; 188 - drm_device_t *dev = priv->head->dev; 187 + struct drm_file *priv = filp->private_data; 188 + struct drm_device *dev = priv->head->dev; 189 189 struct drm_map __user *argp = (void __user *)arg; 190 190 struct drm_map map; 191 191 drm_map_list_t *r_list = NULL; ··· 245 245 int drm_getclient(struct inode *inode, struct file *filp, 246 246 unsigned int cmd, unsigned long arg) 247 247 { 248 - drm_file_t *priv = filp->private_data; 249 - drm_device_t *dev = priv->head->dev; 248 + struct drm_file *priv = filp->private_data; 249 + struct drm_device *dev = priv->head->dev; 250 250 struct drm_client __user *argp = (struct drm_client __user *)arg; 251 251 struct drm_client client; 252 - drm_file_t *pt; 252 + struct drm_file *pt; 253 253 int idx; 254 254 int i; 255 255 ··· 294 294 int drm_getstats(struct inode *inode, struct file *filp, 295 295 unsigned int cmd, unsigned long arg) 296 296 { 297 - drm_file_t *priv = filp->private_data; 298 - drm_device_t *dev = priv->head->dev; 297 + struct drm_file *priv = filp->private_data; 298 + struct drm_device *dev = priv->head->dev; 299 299 struct drm_stats stats; 300 300 int i; 301 301
+11 -11
drivers/char/drm/drm_irq.c
··· 53 53 int drm_irq_by_busid(struct inode *inode, struct file *filp, 54 54 unsigned int cmd, unsigned long arg) 55 55 { 56 - drm_file_t *priv = filp->private_data; 57 - drm_device_t *dev = priv->head->dev; 56 + struct drm_file *priv = filp->private_data; 57 + struct drm_device *dev = priv->head->dev; 58 58 struct drm_irq_busid __user *argp = (void __user *)arg; 59 59 struct drm_irq_busid p; 60 60 ··· 87 87 * \c drm_driver_irq_preinstall() and \c drm_driver_irq_postinstall() functions 88 88 * before and after the installation. 89 89 */ 90 - static int drm_irq_install(drm_device_t * dev) 90 + static int drm_irq_install(struct drm_device * dev) 91 91 { 92 92 int ret; 93 93 unsigned long sh_flags = 0; ··· 155 155 * 156 156 * Calls the driver's \c drm_driver_irq_uninstall() function, and stops the irq. 157 157 */ 158 - int drm_irq_uninstall(drm_device_t * dev) 158 + int drm_irq_uninstall(struct drm_device * dev) 159 159 { 160 160 int irq_enabled; 161 161 ··· 197 197 int drm_control(struct inode *inode, struct file *filp, 198 198 unsigned int cmd, unsigned long arg) 199 199 { 200 - drm_file_t *priv = filp->private_data; 201 - drm_device_t *dev = priv->head->dev; 200 + struct drm_file *priv = filp->private_data; 201 + struct drm_device *dev = priv->head->dev; 202 202 struct drm_control ctl; 203 203 204 204 /* if we haven't irq we fallback for compatibility reasons - this used to be a separate function in drm_dma.h */ ··· 244 244 */ 245 245 int drm_wait_vblank(DRM_IOCTL_ARGS) 246 246 { 247 - drm_file_t *priv = filp->private_data; 248 - drm_device_t *dev = priv->head->dev; 247 + struct drm_file *priv = filp->private_data; 248 + struct drm_device *dev = priv->head->dev; 249 249 union drm_wait_vblank __user *argp = (void __user *)data; 250 250 union drm_wait_vblank vblwait; 251 251 struct timeval now; ··· 371 371 * 372 372 * If a signal is not requested, then calls vblank_wait(). 373 373 */ 374 - void drm_vbl_send_signals(drm_device_t * dev) 374 + void drm_vbl_send_signals(struct drm_device * dev) 375 375 { 376 376 unsigned long flags; 377 377 int i; ··· 416 416 */ 417 417 static void drm_locked_tasklet_func(unsigned long data) 418 418 { 419 - drm_device_t *dev = (drm_device_t*)data; 419 + struct drm_device *dev = (struct drm_device *)data; 420 420 unsigned long irqflags; 421 421 422 422 spin_lock_irqsave(&dev->tasklet_lock, irqflags); ··· 453 453 * context, it must not make any assumptions about this. Also, the HW lock will 454 454 * be held with the kernel context or any client context. 455 455 */ 456 - void drm_locked_tasklet(drm_device_t *dev, void (*func)(drm_device_t*)) 456 + void drm_locked_tasklet(struct drm_device *dev, void (*func)(struct drm_device *)) 457 457 { 458 458 unsigned long irqflags; 459 459 static DECLARE_TASKLET(drm_tasklet, drm_locked_tasklet_func, 0);
+4 -4
drivers/char/drm/drm_lock.c
··· 51 51 int drm_lock(struct inode *inode, struct file *filp, 52 52 unsigned int cmd, unsigned long arg) 53 53 { 54 - drm_file_t *priv = filp->private_data; 55 - drm_device_t *dev = priv->head->dev; 54 + struct drm_file *priv = filp->private_data; 55 + struct drm_device *dev = priv->head->dev; 56 56 DECLARE_WAITQUEUE(entry, current); 57 57 struct drm_lock lock; 58 58 int ret = 0; ··· 152 152 int drm_unlock(struct inode *inode, struct file *filp, 153 153 unsigned int cmd, unsigned long arg) 154 154 { 155 - drm_file_t *priv = filp->private_data; 156 - drm_device_t *dev = priv->head->dev; 155 + struct drm_file *priv = filp->private_data; 156 + struct drm_device *dev = priv->head->dev; 157 157 struct drm_lock lock; 158 158 unsigned long irqflags; 159 159
+3 -3
drivers/char/drm/drm_memory.c
··· 80 80 81 81 #if __OS_HAS_AGP 82 82 static void *agp_remap(unsigned long offset, unsigned long size, 83 - drm_device_t * dev) 83 + struct drm_device * dev) 84 84 { 85 85 unsigned long *phys_addr_map, i, num_pages = 86 86 PAGE_ALIGN(size) / PAGE_SIZE; ··· 123 123 } 124 124 125 125 /** Wrapper around agp_allocate_memory() */ 126 - DRM_AGP_MEM *drm_alloc_agp(drm_device_t * dev, int pages, u32 type) 126 + DRM_AGP_MEM *drm_alloc_agp(struct drm_device * dev, int pages, u32 type) 127 127 { 128 128 return drm_agp_allocate_memory(dev->agp->bridge, pages, type); 129 129 } ··· 148 148 149 149 #else /* __OS_HAS_AGP */ 150 150 static inline void *agp_remap(unsigned long offset, unsigned long size, 151 - drm_device_t * dev) 151 + struct drm_device * dev) 152 152 { 153 153 return NULL; 154 154 }
+2 -2
drivers/char/drm/drm_os_linux.h
··· 34 34 /** Read/write memory barrier */ 35 35 #define DRM_MEMORYBARRIER() mb() 36 36 /** DRM device local declaration */ 37 - #define DRM_DEVICE drm_file_t *priv = filp->private_data; \ 38 - drm_device_t *dev = priv->head->dev 37 + #define DRM_DEVICE struct drm_file *priv = filp->private_data; \ 38 + struct drm_device *dev = priv->head->dev 39 39 40 40 /** IRQ handler arguments and return type and values */ 41 41 #define DRM_IRQ_ARGS int irq, void *arg
+3 -3
drivers/char/drm/drm_pci.c
··· 47 47 /** 48 48 * \brief Allocate a PCI consistent memory block, for DMA. 49 49 */ 50 - drm_dma_handle_t *drm_pci_alloc(drm_device_t * dev, size_t size, size_t align, 50 + drm_dma_handle_t *drm_pci_alloc(struct drm_device * dev, size_t size, size_t align, 51 51 dma_addr_t maxaddr) 52 52 { 53 53 drm_dma_handle_t *dmah; ··· 126 126 * 127 127 * This function is for internal use in the Linux-specific DRM core code. 128 128 */ 129 - void __drm_pci_free(drm_device_t * dev, drm_dma_handle_t * dmah) 129 + void __drm_pci_free(struct drm_device * dev, drm_dma_handle_t * dmah) 130 130 { 131 131 #if 1 132 132 unsigned long addr; ··· 172 172 /** 173 173 * \brief Free a PCI consistent memory block 174 174 */ 175 - void drm_pci_free(drm_device_t * dev, drm_dma_handle_t * dmah) 175 + void drm_pci_free(struct drm_device * dev, drm_dma_handle_t * dmah) 176 176 { 177 177 __drm_pci_free(dev, dmah); 178 178 kfree(dmah);
+13 -13
drivers/char/drm/drm_proc.c
··· 87 87 * "/proc/dri/%minor%/", and each entry in proc_list as 88 88 * "/proc/dri/%minor%/%name%". 89 89 */ 90 - int drm_proc_init(drm_device_t * dev, int minor, 90 + int drm_proc_init(struct drm_device * dev, int minor, 91 91 struct proc_dir_entry *root, struct proc_dir_entry **dev_root) 92 92 { 93 93 struct proc_dir_entry *ent; ··· 163 163 static int drm_name_info(char *buf, char **start, off_t offset, int request, 164 164 int *eof, void *data) 165 165 { 166 - drm_device_t *dev = (drm_device_t *) data; 166 + struct drm_device *dev = (struct drm_device *) data; 167 167 int len = 0; 168 168 169 169 if (offset > DRM_PROC_LIMIT) { ··· 205 205 static int drm__vm_info(char *buf, char **start, off_t offset, int request, 206 206 int *eof, void *data) 207 207 { 208 - drm_device_t *dev = (drm_device_t *) data; 208 + struct drm_device *dev = (struct drm_device *) data; 209 209 int len = 0; 210 210 struct drm_map *map; 211 211 drm_map_list_t *r_list; ··· 261 261 static int drm_vm_info(char *buf, char **start, off_t offset, int request, 262 262 int *eof, void *data) 263 263 { 264 - drm_device_t *dev = (drm_device_t *) data; 264 + struct drm_device *dev = (struct drm_device *) data; 265 265 int ret; 266 266 267 267 mutex_lock(&dev->struct_mutex); ··· 284 284 static int drm__queues_info(char *buf, char **start, off_t offset, 285 285 int request, int *eof, void *data) 286 286 { 287 - drm_device_t *dev = (drm_device_t *) data; 287 + struct drm_device *dev = (struct drm_device *) data; 288 288 int len = 0; 289 289 int i; 290 290 drm_queue_t *q; ··· 334 334 static int drm_queues_info(char *buf, char **start, off_t offset, int request, 335 335 int *eof, void *data) 336 336 { 337 - drm_device_t *dev = (drm_device_t *) data; 337 + struct drm_device *dev = (struct drm_device *) data; 338 338 int ret; 339 339 340 340 mutex_lock(&dev->struct_mutex); ··· 357 357 static int drm__bufs_info(char *buf, char **start, off_t offset, int request, 358 358 int *eof, void *data) 359 359 { 360 - drm_device_t *dev = (drm_device_t *) data; 360 + struct drm_device *dev = (struct drm_device *) data; 361 361 int len = 0; 362 362 drm_device_dma_t *dma = dev->dma; 363 363 int i; ··· 406 406 static int drm_bufs_info(char *buf, char **start, off_t offset, int request, 407 407 int *eof, void *data) 408 408 { 409 - drm_device_t *dev = (drm_device_t *) data; 409 + struct drm_device *dev = (struct drm_device *) data; 410 410 int ret; 411 411 412 412 mutex_lock(&dev->struct_mutex); ··· 429 429 static int drm__clients_info(char *buf, char **start, off_t offset, 430 430 int request, int *eof, void *data) 431 431 { 432 - drm_device_t *dev = (drm_device_t *) data; 432 + struct drm_device *dev = (struct drm_device *) data; 433 433 int len = 0; 434 - drm_file_t *priv; 434 + struct drm_file *priv; 435 435 436 436 if (offset > DRM_PROC_LIMIT) { 437 437 *eof = 1; ··· 462 462 static int drm_clients_info(char *buf, char **start, off_t offset, 463 463 int request, int *eof, void *data) 464 464 { 465 - drm_device_t *dev = (drm_device_t *) data; 465 + struct drm_device *dev = (struct drm_device *) data; 466 466 int ret; 467 467 468 468 mutex_lock(&dev->struct_mutex); ··· 476 476 static int drm__vma_info(char *buf, char **start, off_t offset, int request, 477 477 int *eof, void *data) 478 478 { 479 - drm_device_t *dev = (drm_device_t *) data; 479 + struct drm_device *dev = (struct drm_device *) data; 480 480 int len = 0; 481 481 drm_vma_entry_t *pt; 482 482 struct vm_area_struct *vma; ··· 535 535 static int drm_vma_info(char *buf, char **start, off_t offset, int request, 536 536 int *eof, void *data) 537 537 { 538 - drm_device_t *dev = (drm_device_t *) data; 538 + struct drm_device *dev = (struct drm_device *) data; 539 539 int ret; 540 540 541 541 mutex_lock(&dev->struct_mutex);
+4 -4
drivers/char/drm/drm_scatter.c
··· 65 65 int drm_sg_alloc(struct inode *inode, struct file *filp, 66 66 unsigned int cmd, unsigned long arg) 67 67 { 68 - drm_file_t *priv = filp->private_data; 69 - drm_device_t *dev = priv->head->dev; 68 + struct drm_file *priv = filp->private_data; 69 + struct drm_device *dev = priv->head->dev; 70 70 struct drm_scatter_gather __user *argp = (void __user *)arg; 71 71 struct drm_scatter_gather request; 72 72 drm_sg_mem_t *entry; ··· 201 201 int drm_sg_free(struct inode *inode, struct file *filp, 202 202 unsigned int cmd, unsigned long arg) 203 203 { 204 - drm_file_t *priv = filp->private_data; 205 - drm_device_t *dev = priv->head->dev; 204 + struct drm_file *priv = filp->private_data; 205 + struct drm_device *dev = priv->head->dev; 206 206 struct drm_scatter_gather request; 207 207 drm_sg_mem_t *entry; 208 208
+10 -10
drivers/char/drm/drm_stub.c
··· 49 49 module_param_named(cards_limit, drm_cards_limit, int, 0444); 50 50 module_param_named(debug, drm_debug, int, 0600); 51 51 52 - drm_head_t **drm_heads; 52 + struct drm_head **drm_heads; 53 53 struct class *drm_class; 54 54 struct proc_dir_entry *drm_proc_root; 55 55 56 - static int drm_fill_in_dev(drm_device_t * dev, struct pci_dev *pdev, 56 + static int drm_fill_in_dev(struct drm_device * dev, struct pci_dev *pdev, 57 57 const struct pci_device_id *ent, 58 58 struct drm_driver *driver) 59 59 { ··· 143 143 * create the proc init entry via proc_init(). This routines assigns 144 144 * minor numbers to secondary heads of multi-headed cards 145 145 */ 146 - static int drm_get_head(drm_device_t * dev, drm_head_t * head) 146 + static int drm_get_head(struct drm_device * dev, struct drm_head * head) 147 147 { 148 - drm_head_t **heads = drm_heads; 148 + struct drm_head **heads = drm_heads; 149 149 int ret; 150 150 int minor; 151 151 ··· 154 154 for (minor = 0; minor < drm_cards_limit; minor++, heads++) { 155 155 if (!*heads) { 156 156 157 - *head = (drm_head_t) { 157 + *head = (struct drm_head) { 158 158 .dev = dev,.device = 159 159 MKDEV(DRM_MAJOR, minor),.minor = minor,}; 160 160 ··· 184 184 err_g2: 185 185 drm_proc_cleanup(minor, drm_proc_root, head->dev_root); 186 186 err_g1: 187 - *head = (drm_head_t) { 187 + *head = (struct drm_head) { 188 188 .dev = NULL}; 189 189 return ret; 190 190 } ··· 203 203 int drm_get_dev(struct pci_dev *pdev, const struct pci_device_id *ent, 204 204 struct drm_driver *driver) 205 205 { 206 - drm_device_t *dev; 206 + struct drm_device *dev; 207 207 int ret; 208 208 209 209 DRM_DEBUG("\n"); ··· 246 246 * "drm" data, otherwise unregisters the "drm" data, frees the dev list and 247 247 * unregisters the character device. 248 248 */ 249 - int drm_put_dev(drm_device_t * dev) 249 + int drm_put_dev(struct drm_device * dev) 250 250 { 251 251 DRM_DEBUG("release primary %s\n", dev->driver->pci_driver.name); 252 252 ··· 274 274 * last minor released. 275 275 * 276 276 */ 277 - int drm_put_head(drm_head_t * head) 277 + int drm_put_head(struct drm_head * head) 278 278 { 279 279 int minor = head->minor; 280 280 ··· 283 283 drm_proc_cleanup(minor, drm_proc_root, head->dev_root); 284 284 drm_sysfs_device_remove(head->dev_class); 285 285 286 - *head = (drm_head_t) {.dev = NULL}; 286 + *head = (struct drm_head) {.dev = NULL}; 287 287 288 288 drm_heads[minor] = NULL; 289 289
+2 -2
drivers/char/drm/drm_sysfs.c
··· 80 80 81 81 static ssize_t show_dri(struct class_device *class_device, char *buf) 82 82 { 83 - drm_device_t * dev = ((drm_head_t *)class_get_devdata(class_device))->dev; 83 + struct drm_device * dev = ((struct drm_head *)class_get_devdata(class_device))->dev; 84 84 if (dev->driver->dri_library_name) 85 85 return dev->driver->dri_library_name(dev, buf); 86 86 return snprintf(buf, PAGE_SIZE, "%s\n", dev->driver->pci_driver.name); ··· 104 104 * Note: the struct class passed to this function must have previously been 105 105 * created with a call to drm_sysfs_create(). 106 106 */ 107 - struct class_device *drm_sysfs_device_add(struct class *cs, drm_head_t *head) 107 + struct class_device *drm_sysfs_device_add(struct class *cs, struct drm_head *head) 108 108 { 109 109 struct class_device *class_dev; 110 110 int i, j, err;
+20 -20
drivers/char/drm/drm_vm.c
··· 79 79 static __inline__ struct page *drm_do_vm_nopage(struct vm_area_struct *vma, 80 80 unsigned long address) 81 81 { 82 - drm_file_t *priv = vma->vm_file->private_data; 83 - drm_device_t *dev = priv->head->dev; 82 + struct drm_file *priv = vma->vm_file->private_data; 83 + struct drm_device *dev = priv->head->dev; 84 84 struct drm_map *map = NULL; 85 85 drm_map_list_t *r_list; 86 86 drm_hash_item_t *hash; ··· 194 194 */ 195 195 static void drm_vm_shm_close(struct vm_area_struct *vma) 196 196 { 197 - drm_file_t *priv = vma->vm_file->private_data; 198 - drm_device_t *dev = priv->head->dev; 197 + struct drm_file *priv = vma->vm_file->private_data; 198 + struct drm_device *dev = priv->head->dev; 199 199 drm_vma_entry_t *pt, *temp; 200 200 struct drm_map *map; 201 201 drm_map_list_t *r_list; ··· 274 274 static __inline__ struct page *drm_do_vm_dma_nopage(struct vm_area_struct *vma, 275 275 unsigned long address) 276 276 { 277 - drm_file_t *priv = vma->vm_file->private_data; 278 - drm_device_t *dev = priv->head->dev; 277 + struct drm_file *priv = vma->vm_file->private_data; 278 + struct drm_device *dev = priv->head->dev; 279 279 drm_device_dma_t *dma = dev->dma; 280 280 unsigned long offset; 281 281 unsigned long page_nr; ··· 311 311 unsigned long address) 312 312 { 313 313 struct drm_map *map = (struct drm_map *) vma->vm_private_data; 314 - drm_file_t *priv = vma->vm_file->private_data; 315 - drm_device_t *dev = priv->head->dev; 314 + struct drm_file *priv = vma->vm_file->private_data; 315 + struct drm_device *dev = priv->head->dev; 316 316 drm_sg_mem_t *entry = dev->sg; 317 317 unsigned long offset; 318 318 unsigned long map_offset; ··· 405 405 */ 406 406 static void drm_vm_open_locked(struct vm_area_struct *vma) 407 407 { 408 - drm_file_t *priv = vma->vm_file->private_data; 409 - drm_device_t *dev = priv->head->dev; 408 + struct drm_file *priv = vma->vm_file->private_data; 409 + struct drm_device *dev = priv->head->dev; 410 410 drm_vma_entry_t *vma_entry; 411 411 412 412 DRM_DEBUG("0x%08lx,0x%08lx\n", ··· 423 423 424 424 static void drm_vm_open(struct vm_area_struct *vma) 425 425 { 426 - drm_file_t *priv = vma->vm_file->private_data; 427 - drm_device_t *dev = priv->head->dev; 426 + struct drm_file *priv = vma->vm_file->private_data; 427 + struct drm_device *dev = priv->head->dev; 428 428 429 429 mutex_lock(&dev->struct_mutex); 430 430 drm_vm_open_locked(vma); ··· 441 441 */ 442 442 static void drm_vm_close(struct vm_area_struct *vma) 443 443 { 444 - drm_file_t *priv = vma->vm_file->private_data; 445 - drm_device_t *dev = priv->head->dev; 444 + struct drm_file *priv = vma->vm_file->private_data; 445 + struct drm_device *dev = priv->head->dev; 446 446 drm_vma_entry_t *pt, *temp; 447 447 448 448 DRM_DEBUG("0x%08lx,0x%08lx\n", ··· 472 472 */ 473 473 static int drm_mmap_dma(struct file *filp, struct vm_area_struct *vma) 474 474 { 475 - drm_file_t *priv = filp->private_data; 476 - drm_device_t *dev; 475 + struct drm_file *priv = filp->private_data; 476 + struct drm_device *dev; 477 477 drm_device_dma_t *dma; 478 478 unsigned long length = vma->vm_end - vma->vm_start; 479 479 ··· 545 545 */ 546 546 static int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma) 547 547 { 548 - drm_file_t *priv = filp->private_data; 549 - drm_device_t *dev = priv->head->dev; 548 + struct drm_file *priv = filp->private_data; 549 + struct drm_device *dev = priv->head->dev; 550 550 struct drm_map *map = NULL; 551 551 unsigned long offset = 0; 552 552 drm_hash_item_t *hash; ··· 663 663 664 664 int drm_mmap(struct file *filp, struct vm_area_struct *vma) 665 665 { 666 - drm_file_t *priv = filp->private_data; 667 - drm_device_t *dev = priv->head->dev; 666 + struct drm_file *priv = filp->private_data; 667 + struct drm_device *dev = priv->head->dev; 668 668 int ret; 669 669 670 670 mutex_lock(&dev->struct_mutex);
+16 -16
drivers/char/drm/i915_dma.c
··· 47 47 * the head pointer changes, so that EBUSY only happens if the ring 48 48 * actually stalls for (eg) 3 seconds. 49 49 */ 50 - int i915_wait_ring(drm_device_t * dev, int n, const char *caller) 50 + int i915_wait_ring(struct drm_device * dev, int n, const char *caller) 51 51 { 52 52 drm_i915_private_t *dev_priv = dev->dev_private; 53 53 drm_i915_ring_buffer_t *ring = &(dev_priv->ring); ··· 73 73 return DRM_ERR(EBUSY); 74 74 } 75 75 76 - void i915_kernel_lost_context(drm_device_t * dev) 76 + void i915_kernel_lost_context(struct drm_device * dev) 77 77 { 78 78 drm_i915_private_t *dev_priv = dev->dev_private; 79 79 drm_i915_ring_buffer_t *ring = &(dev_priv->ring); ··· 88 88 dev_priv->sarea_priv->perf_boxes |= I915_BOX_RING_EMPTY; 89 89 } 90 90 91 - static int i915_dma_cleanup(drm_device_t * dev) 91 + static int i915_dma_cleanup(struct drm_device * dev) 92 92 { 93 93 /* Make sure interrupts are disabled here because the uninstall ioctl 94 94 * may not have been called from userspace and after dev_private ··· 126 126 return 0; 127 127 } 128 128 129 - static int i915_initialize(drm_device_t * dev, 129 + static int i915_initialize(struct drm_device * dev, 130 130 drm_i915_private_t * dev_priv, 131 131 drm_i915_init_t * init) 132 132 { ··· 211 211 return 0; 212 212 } 213 213 214 - static int i915_dma_resume(drm_device_t * dev) 214 + static int i915_dma_resume(struct drm_device * dev) 215 215 { 216 216 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 217 217 ··· 357 357 return ret; 358 358 } 359 359 360 - static int i915_emit_cmds(drm_device_t * dev, int __user * buffer, int dwords) 360 + static int i915_emit_cmds(struct drm_device * dev, int __user * buffer, int dwords) 361 361 { 362 362 drm_i915_private_t *dev_priv = dev->dev_private; 363 363 int i; ··· 396 396 return 0; 397 397 } 398 398 399 - static int i915_emit_box(drm_device_t * dev, 399 + static int i915_emit_box(struct drm_device * dev, 400 400 struct drm_clip_rect __user * boxes, 401 401 int i, int DR1, int DR4) 402 402 { ··· 439 439 * emit. For now, do it in both places: 440 440 */ 441 441 442 - static void i915_emit_breadcrumb(drm_device_t *dev) 442 + static void i915_emit_breadcrumb(struct drm_device *dev) 443 443 { 444 444 drm_i915_private_t *dev_priv = dev->dev_private; 445 445 RING_LOCALS; ··· 457 457 ADVANCE_LP_RING(); 458 458 } 459 459 460 - static int i915_dispatch_cmdbuffer(drm_device_t * dev, 460 + static int i915_dispatch_cmdbuffer(struct drm_device * dev, 461 461 drm_i915_cmdbuffer_t * cmd) 462 462 { 463 463 int nbox = cmd->num_cliprects; ··· 489 489 return 0; 490 490 } 491 491 492 - static int i915_dispatch_batchbuffer(drm_device_t * dev, 492 + static int i915_dispatch_batchbuffer(struct drm_device * dev, 493 493 drm_i915_batchbuffer_t * batch) 494 494 { 495 495 drm_i915_private_t *dev_priv = dev->dev_private; ··· 535 535 return 0; 536 536 } 537 537 538 - static int i915_dispatch_flip(drm_device_t * dev) 538 + static int i915_dispatch_flip(struct drm_device * dev) 539 539 { 540 540 drm_i915_private_t *dev_priv = dev->dev_private; 541 541 RING_LOCALS; ··· 583 583 return 0; 584 584 } 585 585 586 - static int i915_quiescent(drm_device_t * dev) 586 + static int i915_quiescent(struct drm_device * dev) 587 587 { 588 588 drm_i915_private_t *dev_priv = dev->dev_private; 589 589 ··· 792 792 return 0; 793 793 } 794 794 795 - int i915_driver_load(drm_device_t *dev, unsigned long flags) 795 + int i915_driver_load(struct drm_device *dev, unsigned long flags) 796 796 { 797 797 /* i915 has 4 more counters */ 798 798 dev->counters += 4; ··· 804 804 return 0; 805 805 } 806 806 807 - void i915_driver_lastclose(drm_device_t * dev) 807 + void i915_driver_lastclose(struct drm_device * dev) 808 808 { 809 809 if (dev->dev_private) { 810 810 drm_i915_private_t *dev_priv = dev->dev_private; ··· 813 813 i915_dma_cleanup(dev); 814 814 } 815 815 816 - void i915_driver_preclose(drm_device_t * dev, DRMFILE filp) 816 + void i915_driver_preclose(struct drm_device * dev, DRMFILE filp) 817 817 { 818 818 if (dev->dev_private) { 819 819 drm_i915_private_t *dev_priv = dev->dev_private; ··· 854 854 * \returns 855 855 * A value of 1 is always retured to indictate every i9x5 is AGP. 856 856 */ 857 - int i915_driver_device_is_agp(drm_device_t * dev) 857 + int i915_driver_device_is_agp(struct drm_device * dev) 858 858 { 859 859 return 1; 860 860 }
+11 -11
drivers/char/drm/i915_drv.h
··· 120 120 extern int i915_max_ioctl; 121 121 122 122 /* i915_dma.c */ 123 - extern void i915_kernel_lost_context(drm_device_t * dev); 123 + extern void i915_kernel_lost_context(struct drm_device * dev); 124 124 extern int i915_driver_load(struct drm_device *, unsigned long flags); 125 - extern void i915_driver_lastclose(drm_device_t * dev); 126 - extern void i915_driver_preclose(drm_device_t * dev, DRMFILE filp); 127 - extern int i915_driver_device_is_agp(drm_device_t * dev); 125 + extern void i915_driver_lastclose(struct drm_device * dev); 126 + extern void i915_driver_preclose(struct drm_device * dev, DRMFILE filp); 127 + extern int i915_driver_device_is_agp(struct drm_device * dev); 128 128 extern long i915_compat_ioctl(struct file *filp, unsigned int cmd, 129 129 unsigned long arg); 130 130 ··· 132 132 extern int i915_irq_emit(DRM_IOCTL_ARGS); 133 133 extern int i915_irq_wait(DRM_IOCTL_ARGS); 134 134 135 - extern int i915_driver_vblank_wait(drm_device_t *dev, unsigned int *sequence); 136 - extern int i915_driver_vblank_wait2(drm_device_t *dev, unsigned int *sequence); 135 + extern int i915_driver_vblank_wait(struct drm_device *dev, unsigned int *sequence); 136 + extern int i915_driver_vblank_wait2(struct drm_device *dev, unsigned int *sequence); 137 137 extern irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS); 138 - extern void i915_driver_irq_preinstall(drm_device_t * dev); 139 - extern void i915_driver_irq_postinstall(drm_device_t * dev); 140 - extern void i915_driver_irq_uninstall(drm_device_t * dev); 138 + extern void i915_driver_irq_preinstall(struct drm_device * dev); 139 + extern void i915_driver_irq_postinstall(struct drm_device * dev); 140 + extern void i915_driver_irq_uninstall(struct drm_device * dev); 141 141 extern int i915_vblank_pipe_set(DRM_IOCTL_ARGS); 142 142 extern int i915_vblank_pipe_get(DRM_IOCTL_ARGS); 143 143 extern int i915_vblank_swap(DRM_IOCTL_ARGS); ··· 148 148 extern int i915_mem_init_heap(DRM_IOCTL_ARGS); 149 149 extern int i915_mem_destroy_heap(DRM_IOCTL_ARGS); 150 150 extern void i915_mem_takedown(struct mem_block **heap); 151 - extern void i915_mem_release(drm_device_t * dev, 151 + extern void i915_mem_release(struct drm_device * dev, 152 152 DRMFILE filp, struct mem_block *heap); 153 153 154 154 #define I915_READ(reg) DRM_READ32(dev_priv->mmio_map, (reg)) ··· 188 188 I915_WRITE(LP_RING + RING_TAIL, outring); \ 189 189 } while(0) 190 190 191 - extern int i915_wait_ring(drm_device_t * dev, int n, const char *caller); 191 + extern int i915_wait_ring(struct drm_device * dev, int n, const char *caller); 192 192 193 193 #define GFX_OP_USER_INTERRUPT ((0<<29)|(2<<23)) 194 194 #define GFX_OP_BREAKPOINT_INTERRUPT ((0<<29)|(1<<23))
+11 -11
drivers/char/drm/i915_irq.c
··· 42 42 * 43 43 * This function will be called with the HW lock held. 44 44 */ 45 - static void i915_vblank_tasklet(drm_device_t *dev) 45 + static void i915_vblank_tasklet(struct drm_device *dev) 46 46 { 47 47 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 48 48 unsigned long irqflags; ··· 211 211 212 212 irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS) 213 213 { 214 - drm_device_t *dev = (drm_device_t *) arg; 214 + struct drm_device *dev = (struct drm_device *) arg; 215 215 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 216 216 u16 temp; 217 217 ··· 257 257 return IRQ_HANDLED; 258 258 } 259 259 260 - static int i915_emit_irq(drm_device_t * dev) 260 + static int i915_emit_irq(struct drm_device * dev) 261 261 { 262 262 drm_i915_private_t *dev_priv = dev->dev_private; 263 263 RING_LOCALS; ··· 283 283 return dev_priv->counter; 284 284 } 285 285 286 - static int i915_wait_irq(drm_device_t * dev, int irq_nr) 286 + static int i915_wait_irq(struct drm_device * dev, int irq_nr) 287 287 { 288 288 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 289 289 int ret = 0; ··· 309 309 return ret; 310 310 } 311 311 312 - static int i915_driver_vblank_do_wait(drm_device_t *dev, unsigned int *sequence, 312 + static int i915_driver_vblank_do_wait(struct drm_device *dev, unsigned int *sequence, 313 313 atomic_t *counter) 314 314 { 315 315 drm_i915_private_t *dev_priv = dev->dev_private; ··· 331 331 } 332 332 333 333 334 - int i915_driver_vblank_wait(drm_device_t *dev, unsigned int *sequence) 334 + int i915_driver_vblank_wait(struct drm_device *dev, unsigned int *sequence) 335 335 { 336 336 return i915_driver_vblank_do_wait(dev, sequence, &dev->vbl_received); 337 337 } 338 338 339 - int i915_driver_vblank_wait2(drm_device_t *dev, unsigned int *sequence) 339 + int i915_driver_vblank_wait2(struct drm_device *dev, unsigned int *sequence) 340 340 { 341 341 return i915_driver_vblank_do_wait(dev, sequence, &dev->vbl_received2); 342 342 } ··· 389 389 return i915_wait_irq(dev, irqwait.irq_seq); 390 390 } 391 391 392 - static void i915_enable_interrupt (drm_device_t *dev) 392 + static void i915_enable_interrupt (struct drm_device *dev) 393 393 { 394 394 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 395 395 u16 flag; ··· 569 569 570 570 /* drm_dma.h hooks 571 571 */ 572 - void i915_driver_irq_preinstall(drm_device_t * dev) 572 + void i915_driver_irq_preinstall(struct drm_device * dev) 573 573 { 574 574 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 575 575 ··· 578 578 I915_WRITE16(I915REG_INT_ENABLE_R, 0x0); 579 579 } 580 580 581 - void i915_driver_irq_postinstall(drm_device_t * dev) 581 + void i915_driver_irq_postinstall(struct drm_device * dev) 582 582 { 583 583 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 584 584 ··· 592 592 DRM_INIT_WAITQUEUE(&dev_priv->irq_queue); 593 593 } 594 594 595 - void i915_driver_irq_uninstall(drm_device_t * dev) 595 + void i915_driver_irq_uninstall(struct drm_device * dev) 596 596 { 597 597 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 598 598 u16 temp;
+2 -2
drivers/char/drm/i915_mem.c
··· 43 43 * block to allocate, and the ring is drained prior to allocations -- 44 44 * in other words allocation is expensive. 45 45 */ 46 - static void mark_block(drm_device_t * dev, struct mem_block *p, int in_use) 46 + static void mark_block(struct drm_device * dev, struct mem_block *p, int in_use) 47 47 { 48 48 drm_i915_private_t *dev_priv = dev->dev_private; 49 49 drm_i915_sarea_t *sarea_priv = dev_priv->sarea_priv; ··· 208 208 209 209 /* Free all blocks associated with the releasing file. 210 210 */ 211 - void i915_mem_release(drm_device_t * dev, DRMFILE filp, struct mem_block *heap) 211 + void i915_mem_release(struct drm_device * dev, DRMFILE filp, struct mem_block *heap) 212 212 { 213 213 struct mem_block *p; 214 214
+3 -3
drivers/char/drm/r300_cmdbuf.c
··· 706 706 * The actual age emit is done by r300_do_cp_cmdbuf, which is why you must 707 707 * be careful about how this function is called. 708 708 */ 709 - static void r300_discard_buffer(drm_device_t * dev, drm_buf_t * buf) 709 + static void r300_discard_buffer(struct drm_device * dev, drm_buf_t * buf) 710 710 { 711 711 drm_radeon_private_t *dev_priv = dev->dev_private; 712 712 drm_radeon_buf_priv_t *buf_priv = buf->dev_private; ··· 779 779 * commands on the DMA ring buffer. 780 780 * Called by the ioctl handler function radeon_cp_cmdbuf. 781 781 */ 782 - int r300_do_cp_cmdbuf(drm_device_t *dev, 782 + int r300_do_cp_cmdbuf(struct drm_device *dev, 783 783 DRMFILE filp, 784 - drm_file_t *filp_priv, 784 + struct drm_file *filp_priv, 785 785 drm_radeon_kcmd_buffer_t *cmdbuf) 786 786 { 787 787 drm_radeon_private_t *dev_priv = dev->dev_private;
+12 -12
drivers/char/drm/radeon_cp.c
··· 36 36 37 37 #define RADEON_FIFO_DEBUG 0 38 38 39 - static int radeon_do_cleanup_cp(drm_device_t * dev); 39 + static int radeon_do_cleanup_cp(struct drm_device * dev); 40 40 41 41 /* CP microcode (from ATI) */ 42 42 static const u32 R200_cp_microcode[][2] = { ··· 816 816 {0000000000, 0000000000}, 817 817 }; 818 818 819 - static int RADEON_READ_PLL(drm_device_t * dev, int addr) 819 + static int RADEON_READ_PLL(struct drm_device * dev, int addr) 820 820 { 821 821 drm_radeon_private_t *dev_priv = dev->dev_private; 822 822 ··· 1066 1066 1067 1067 /* Reset the engine. This will stop the CP if it is running. 1068 1068 */ 1069 - static int radeon_do_engine_reset(drm_device_t * dev) 1069 + static int radeon_do_engine_reset(struct drm_device * dev) 1070 1070 { 1071 1071 drm_radeon_private_t *dev_priv = dev->dev_private; 1072 1072 u32 clock_cntl_index, mclk_cntl, rbbm_soft_reset; ··· 1122 1122 return 0; 1123 1123 } 1124 1124 1125 - static void radeon_cp_init_ring_buffer(drm_device_t * dev, 1125 + static void radeon_cp_init_ring_buffer(struct drm_device * dev, 1126 1126 drm_radeon_private_t * dev_priv) 1127 1127 { 1128 1128 u32 ring_start, cur_read_ptr; ··· 1384 1384 } 1385 1385 } 1386 1386 1387 - static int radeon_do_init_cp(drm_device_t * dev, drm_radeon_init_t * init) 1387 + static int radeon_do_init_cp(struct drm_device * dev, drm_radeon_init_t * init) 1388 1388 { 1389 1389 drm_radeon_private_t *dev_priv = dev->dev_private; 1390 1390 ··· 1735 1735 return 0; 1736 1736 } 1737 1737 1738 - static int radeon_do_cleanup_cp(drm_device_t * dev) 1738 + static int radeon_do_cleanup_cp(struct drm_device * dev) 1739 1739 { 1740 1740 drm_radeon_private_t *dev_priv = dev->dev_private; 1741 1741 DRM_DEBUG("\n"); ··· 1791 1791 * 1792 1792 * Charl P. Botha <http://cpbotha.net> 1793 1793 */ 1794 - static int radeon_do_resume_cp(drm_device_t * dev) 1794 + static int radeon_do_resume_cp(struct drm_device * dev) 1795 1795 { 1796 1796 drm_radeon_private_t *dev_priv = dev->dev_private; 1797 1797 ··· 1918 1918 return 0; 1919 1919 } 1920 1920 1921 - void radeon_do_release(drm_device_t * dev) 1921 + void radeon_do_release(struct drm_device * dev) 1922 1922 { 1923 1923 drm_radeon_private_t *dev_priv = dev->dev_private; 1924 1924 int i, ret; ··· 2046 2046 * they can't get the lock. 2047 2047 */ 2048 2048 2049 - drm_buf_t *radeon_freelist_get(drm_device_t * dev) 2049 + drm_buf_t *radeon_freelist_get(struct drm_device * dev) 2050 2050 { 2051 2051 drm_device_dma_t *dma = dev->dma; 2052 2052 drm_radeon_private_t *dev_priv = dev->dev_private; ··· 2086 2086 } 2087 2087 2088 2088 #if 0 2089 - drm_buf_t *radeon_freelist_get(drm_device_t * dev) 2089 + drm_buf_t *radeon_freelist_get(struct drm_device * dev) 2090 2090 { 2091 2091 drm_device_dma_t *dma = dev->dma; 2092 2092 drm_radeon_private_t *dev_priv = dev->dev_private; ··· 2120 2120 } 2121 2121 #endif 2122 2122 2123 - void radeon_freelist_reset(drm_device_t * dev) 2123 + void radeon_freelist_reset(struct drm_device * dev) 2124 2124 { 2125 2125 drm_device_dma_t *dma = dev->dma; 2126 2126 drm_radeon_private_t *dev_priv = dev->dev_private; ··· 2170 2170 return DRM_ERR(EBUSY); 2171 2171 } 2172 2172 2173 - static int radeon_cp_get_buffers(DRMFILE filp, drm_device_t * dev, 2173 + static int radeon_cp_get_buffers(DRMFILE filp, struct drm_device * dev, 2174 2174 struct drm_dma * d) 2175 2175 { 2176 2176 int i;
+16 -16
drivers/char/drm/radeon_drv.h
··· 336 336 extern int radeon_fullscreen(DRM_IOCTL_ARGS); 337 337 extern int radeon_cp_buffers(DRM_IOCTL_ARGS); 338 338 339 - extern void radeon_freelist_reset(drm_device_t * dev); 340 - extern drm_buf_t *radeon_freelist_get(drm_device_t * dev); 339 + extern void radeon_freelist_reset(struct drm_device * dev); 340 + extern drm_buf_t *radeon_freelist_get(struct drm_device * dev); 341 341 342 342 extern int radeon_wait_ring(drm_radeon_private_t * dev_priv, int n); 343 343 ··· 357 357 extern int radeon_irq_emit(DRM_IOCTL_ARGS); 358 358 extern int radeon_irq_wait(DRM_IOCTL_ARGS); 359 359 360 - extern void radeon_do_release(drm_device_t * dev); 361 - extern int radeon_driver_vblank_wait(drm_device_t * dev, 360 + extern void radeon_do_release(struct drm_device * dev); 361 + extern int radeon_driver_vblank_wait(struct drm_device * dev, 362 362 unsigned int *sequence); 363 - extern int radeon_driver_vblank_wait2(drm_device_t * dev, 363 + extern int radeon_driver_vblank_wait2(struct drm_device * dev, 364 364 unsigned int *sequence); 365 365 extern irqreturn_t radeon_driver_irq_handler(DRM_IRQ_ARGS); 366 - extern void radeon_driver_irq_preinstall(drm_device_t * dev); 367 - extern void radeon_driver_irq_postinstall(drm_device_t * dev); 368 - extern void radeon_driver_irq_uninstall(drm_device_t * dev); 369 - extern int radeon_vblank_crtc_get(drm_device_t *dev); 370 - extern int radeon_vblank_crtc_set(drm_device_t *dev, int64_t value); 366 + extern void radeon_driver_irq_preinstall(struct drm_device * dev); 367 + extern void radeon_driver_irq_postinstall(struct drm_device * dev); 368 + extern void radeon_driver_irq_uninstall(struct drm_device * dev); 369 + extern int radeon_vblank_crtc_get(struct drm_device *dev); 370 + extern int radeon_vblank_crtc_set(struct drm_device *dev, int64_t value); 371 371 372 372 extern int radeon_driver_load(struct drm_device *dev, unsigned long flags); 373 373 extern int radeon_driver_unload(struct drm_device *dev); 374 374 extern int radeon_driver_firstopen(struct drm_device *dev); 375 - extern void radeon_driver_preclose(drm_device_t * dev, DRMFILE filp); 376 - extern void radeon_driver_postclose(drm_device_t * dev, drm_file_t * filp); 377 - extern void radeon_driver_lastclose(drm_device_t * dev); 378 - extern int radeon_driver_open(drm_device_t * dev, drm_file_t * filp_priv); 375 + extern void radeon_driver_preclose(struct drm_device * dev, DRMFILE filp); 376 + extern void radeon_driver_postclose(struct drm_device * dev, struct drm_file * filp); 377 + extern void radeon_driver_lastclose(struct drm_device * dev); 378 + extern int radeon_driver_open(struct drm_device * dev, struct drm_file * filp_priv); 379 379 extern long radeon_compat_ioctl(struct file *filp, unsigned int cmd, 380 380 unsigned long arg); 381 381 382 382 /* r300_cmdbuf.c */ 383 383 extern void r300_init_reg_flags(void); 384 384 385 - extern int r300_do_cp_cmdbuf(drm_device_t * dev, DRMFILE filp, 386 - drm_file_t * filp_priv, 385 + extern int r300_do_cp_cmdbuf(struct drm_device * dev, DRMFILE filp, 386 + struct drm_file * filp_priv, 387 387 drm_radeon_kcmd_buffer_t * cmdbuf); 388 388 389 389 /* Flags for stats.boxes
+12 -12
drivers/char/drm/radeon_irq.c
··· 64 64 65 65 irqreturn_t radeon_driver_irq_handler(DRM_IRQ_ARGS) 66 66 { 67 - drm_device_t *dev = (drm_device_t *) arg; 67 + struct drm_device *dev = (struct drm_device *) arg; 68 68 drm_radeon_private_t *dev_priv = 69 69 (drm_radeon_private_t *) dev->dev_private; 70 70 u32 stat; ··· 109 109 return IRQ_HANDLED; 110 110 } 111 111 112 - static int radeon_emit_irq(drm_device_t * dev) 112 + static int radeon_emit_irq(struct drm_device * dev) 113 113 { 114 114 drm_radeon_private_t *dev_priv = dev->dev_private; 115 115 unsigned int ret; ··· 127 127 return ret; 128 128 } 129 129 130 - static int radeon_wait_irq(drm_device_t * dev, int swi_nr) 130 + static int radeon_wait_irq(struct drm_device * dev, int swi_nr) 131 131 { 132 132 drm_radeon_private_t *dev_priv = 133 133 (drm_radeon_private_t *) dev->dev_private; ··· 144 144 return ret; 145 145 } 146 146 147 - int radeon_driver_vblank_do_wait(drm_device_t * dev, unsigned int *sequence, 147 + int radeon_driver_vblank_do_wait(struct drm_device * dev, unsigned int *sequence, 148 148 int crtc) 149 149 { 150 150 drm_radeon_private_t *dev_priv = ··· 184 184 return ret; 185 185 } 186 186 187 - int radeon_driver_vblank_wait(drm_device_t *dev, unsigned int *sequence) 187 + int radeon_driver_vblank_wait(struct drm_device *dev, unsigned int *sequence) 188 188 { 189 189 return radeon_driver_vblank_do_wait(dev, sequence, DRM_RADEON_VBLANK_CRTC1); 190 190 } 191 191 192 - int radeon_driver_vblank_wait2(drm_device_t *dev, unsigned int *sequence) 192 + int radeon_driver_vblank_wait2(struct drm_device *dev, unsigned int *sequence) 193 193 { 194 194 return radeon_driver_vblank_do_wait(dev, sequence, DRM_RADEON_VBLANK_CRTC2); 195 195 } ··· 242 242 return radeon_wait_irq(dev, irqwait.irq_seq); 243 243 } 244 244 245 - static void radeon_enable_interrupt(drm_device_t *dev) 245 + static void radeon_enable_interrupt(struct drm_device *dev) 246 246 { 247 247 drm_radeon_private_t *dev_priv = (drm_radeon_private_t *) dev->dev_private; 248 248 ··· 259 259 260 260 /* drm_dma.h hooks 261 261 */ 262 - void radeon_driver_irq_preinstall(drm_device_t * dev) 262 + void radeon_driver_irq_preinstall(struct drm_device * dev) 263 263 { 264 264 drm_radeon_private_t *dev_priv = 265 265 (drm_radeon_private_t *) dev->dev_private; ··· 273 273 RADEON_CRTC2_VBLANK_STAT)); 274 274 } 275 275 276 - void radeon_driver_irq_postinstall(drm_device_t * dev) 276 + void radeon_driver_irq_postinstall(struct drm_device * dev) 277 277 { 278 278 drm_radeon_private_t *dev_priv = 279 279 (drm_radeon_private_t *) dev->dev_private; ··· 284 284 radeon_enable_interrupt(dev); 285 285 } 286 286 287 - void radeon_driver_irq_uninstall(drm_device_t * dev) 287 + void radeon_driver_irq_uninstall(struct drm_device * dev) 288 288 { 289 289 drm_radeon_private_t *dev_priv = 290 290 (drm_radeon_private_t *) dev->dev_private; ··· 298 298 } 299 299 300 300 301 - int radeon_vblank_crtc_get(drm_device_t *dev) 301 + int radeon_vblank_crtc_get(struct drm_device *dev) 302 302 { 303 303 drm_radeon_private_t *dev_priv = (drm_radeon_private_t *) dev->dev_private; 304 304 u32 flag; ··· 315 315 return value; 316 316 } 317 317 318 - int radeon_vblank_crtc_set(drm_device_t *dev, int64_t value) 318 + int radeon_vblank_crtc_set(struct drm_device *dev, int64_t value) 319 319 { 320 320 drm_radeon_private_t *dev_priv = (drm_radeon_private_t *) dev->dev_private; 321 321 if (value & ~(DRM_RADEON_VBLANK_CRTC1 | DRM_RADEON_VBLANK_CRTC2)) {
+31 -31
drivers/char/drm/radeon_state.c
··· 39 39 40 40 static __inline__ int radeon_check_and_fixup_offset(drm_radeon_private_t * 41 41 dev_priv, 42 - drm_file_t * filp_priv, 42 + struct drm_file * filp_priv, 43 43 u32 *offset) 44 44 { 45 45 u64 off = *offset; ··· 90 90 91 91 static __inline__ int radeon_check_and_fixup_packets(drm_radeon_private_t * 92 92 dev_priv, 93 - drm_file_t * filp_priv, 93 + struct drm_file * filp_priv, 94 94 int id, u32 *data) 95 95 { 96 96 switch (id) { ··· 264 264 265 265 static __inline__ int radeon_check_and_fixup_packet3(drm_radeon_private_t * 266 266 dev_priv, 267 - drm_file_t *filp_priv, 267 + struct drm_file *filp_priv, 268 268 drm_radeon_kcmd_buffer_t * 269 269 cmdbuf, 270 270 unsigned int *cmdsz) ··· 439 439 /* Emit 1.1 state 440 440 */ 441 441 static int radeon_emit_state(drm_radeon_private_t * dev_priv, 442 - drm_file_t * filp_priv, 442 + struct drm_file * filp_priv, 443 443 drm_radeon_context_regs_t * ctx, 444 444 drm_radeon_texture_regs_t * tex, 445 445 unsigned int dirty) ··· 608 608 /* Emit 1.2 state 609 609 */ 610 610 static int radeon_emit_state2(drm_radeon_private_t * dev_priv, 611 - drm_file_t * filp_priv, 611 + struct drm_file * filp_priv, 612 612 drm_radeon_state_t * state) 613 613 { 614 614 RING_LOCALS; ··· 844 844 * CP command dispatch functions 845 845 */ 846 846 847 - static void radeon_cp_dispatch_clear(drm_device_t * dev, 847 + static void radeon_cp_dispatch_clear(struct drm_device * dev, 848 848 drm_radeon_clear_t * clear, 849 849 drm_radeon_clear_rect_t * depth_boxes) 850 850 { ··· 1335 1335 ADVANCE_RING(); 1336 1336 } 1337 1337 1338 - static void radeon_cp_dispatch_swap(drm_device_t * dev) 1338 + static void radeon_cp_dispatch_swap(struct drm_device * dev) 1339 1339 { 1340 1340 drm_radeon_private_t *dev_priv = dev->dev_private; 1341 1341 drm_radeon_sarea_t *sarea_priv = dev_priv->sarea_priv; ··· 1412 1412 ADVANCE_RING(); 1413 1413 } 1414 1414 1415 - static void radeon_cp_dispatch_flip(drm_device_t * dev) 1415 + static void radeon_cp_dispatch_flip(struct drm_device * dev) 1416 1416 { 1417 1417 drm_radeon_private_t *dev_priv = dev->dev_private; 1418 1418 drm_sarea_t *sarea = (drm_sarea_t *) dev_priv->sarea->handle; ··· 1491 1491 unsigned int vc_format; 1492 1492 } drm_radeon_tcl_prim_t; 1493 1493 1494 - static void radeon_cp_dispatch_vertex(drm_device_t * dev, 1494 + static void radeon_cp_dispatch_vertex(struct drm_device * dev, 1495 1495 drm_buf_t * buf, 1496 1496 drm_radeon_tcl_prim_t * prim) 1497 1497 { ··· 1537 1537 } while (i < nbox); 1538 1538 } 1539 1539 1540 - static void radeon_cp_discard_buffer(drm_device_t * dev, drm_buf_t * buf) 1540 + static void radeon_cp_discard_buffer(struct drm_device * dev, drm_buf_t * buf) 1541 1541 { 1542 1542 drm_radeon_private_t *dev_priv = dev->dev_private; 1543 1543 drm_radeon_buf_priv_t *buf_priv = buf->dev_private; ··· 1554 1554 buf->used = 0; 1555 1555 } 1556 1556 1557 - static void radeon_cp_dispatch_indirect(drm_device_t * dev, 1557 + static void radeon_cp_dispatch_indirect(struct drm_device * dev, 1558 1558 drm_buf_t * buf, int start, int end) 1559 1559 { 1560 1560 drm_radeon_private_t *dev_priv = dev->dev_private; ··· 1588 1588 } 1589 1589 } 1590 1590 1591 - static void radeon_cp_dispatch_indices(drm_device_t * dev, 1591 + static void radeon_cp_dispatch_indices(struct drm_device * dev, 1592 1592 drm_buf_t * elt_buf, 1593 1593 drm_radeon_tcl_prim_t * prim) 1594 1594 { ··· 1647 1647 #define RADEON_MAX_TEXTURE_SIZE RADEON_BUFFER_SIZE 1648 1648 1649 1649 static int radeon_cp_dispatch_texture(DRMFILE filp, 1650 - drm_device_t * dev, 1650 + struct drm_device * dev, 1651 1651 drm_radeon_texture_t * tex, 1652 1652 drm_radeon_tex_image_t * image) 1653 1653 { 1654 1654 drm_radeon_private_t *dev_priv = dev->dev_private; 1655 - drm_file_t *filp_priv; 1655 + struct drm_file *filp_priv; 1656 1656 drm_buf_t *buf; 1657 1657 u32 format; 1658 1658 u32 *buffer; ··· 1881 1881 return 0; 1882 1882 } 1883 1883 1884 - static void radeon_cp_dispatch_stipple(drm_device_t * dev, u32 * stipple) 1884 + static void radeon_cp_dispatch_stipple(struct drm_device * dev, u32 * stipple) 1885 1885 { 1886 1886 drm_radeon_private_t *dev_priv = dev->dev_private; 1887 1887 int i; ··· 2134 2134 2135 2135 /* Not sure why this isn't set all the time: 2136 2136 */ 2137 - static int radeon_do_init_pageflip(drm_device_t * dev) 2137 + static int radeon_do_init_pageflip(struct drm_device * dev) 2138 2138 { 2139 2139 drm_radeon_private_t *dev_priv = dev->dev_private; 2140 2140 RING_LOCALS; ··· 2206 2206 { 2207 2207 DRM_DEVICE; 2208 2208 drm_radeon_private_t *dev_priv = dev->dev_private; 2209 - drm_file_t *filp_priv; 2209 + struct drm_file *filp_priv; 2210 2210 drm_radeon_sarea_t *sarea_priv = dev_priv->sarea_priv; 2211 2211 drm_device_dma_t *dma = dev->dma; 2212 2212 drm_buf_t *buf; ··· 2289 2289 { 2290 2290 DRM_DEVICE; 2291 2291 drm_radeon_private_t *dev_priv = dev->dev_private; 2292 - drm_file_t *filp_priv; 2292 + struct drm_file *filp_priv; 2293 2293 drm_radeon_sarea_t *sarea_priv = dev_priv->sarea_priv; 2294 2294 drm_device_dma_t *dma = dev->dma; 2295 2295 drm_buf_t *buf; ··· 2507 2507 { 2508 2508 DRM_DEVICE; 2509 2509 drm_radeon_private_t *dev_priv = dev->dev_private; 2510 - drm_file_t *filp_priv; 2510 + struct drm_file *filp_priv; 2511 2511 drm_radeon_sarea_t *sarea_priv = dev_priv->sarea_priv; 2512 2512 drm_device_dma_t *dma = dev->dma; 2513 2513 drm_buf_t *buf; ··· 2603 2603 } 2604 2604 2605 2605 static int radeon_emit_packets(drm_radeon_private_t * dev_priv, 2606 - drm_file_t * filp_priv, 2606 + struct drm_file * filp_priv, 2607 2607 drm_radeon_cmd_header_t header, 2608 2608 drm_radeon_kcmd_buffer_t *cmdbuf) 2609 2609 { ··· 2728 2728 return 0; 2729 2729 } 2730 2730 2731 - static int radeon_emit_packet3(drm_device_t * dev, 2732 - drm_file_t * filp_priv, 2731 + static int radeon_emit_packet3(struct drm_device * dev, 2732 + struct drm_file * filp_priv, 2733 2733 drm_radeon_kcmd_buffer_t *cmdbuf) 2734 2734 { 2735 2735 drm_radeon_private_t *dev_priv = dev->dev_private; ··· 2754 2754 return 0; 2755 2755 } 2756 2756 2757 - static int radeon_emit_packet3_cliprect(drm_device_t *dev, 2758 - drm_file_t *filp_priv, 2757 + static int radeon_emit_packet3_cliprect(struct drm_device *dev, 2758 + struct drm_file *filp_priv, 2759 2759 drm_radeon_kcmd_buffer_t *cmdbuf, 2760 2760 int orig_nbox) 2761 2761 { ··· 2816 2816 return 0; 2817 2817 } 2818 2818 2819 - static int radeon_emit_wait(drm_device_t * dev, int flags) 2819 + static int radeon_emit_wait(struct drm_device * dev, int flags) 2820 2820 { 2821 2821 drm_radeon_private_t *dev_priv = dev->dev_private; 2822 2822 RING_LOCALS; ··· 2849 2849 { 2850 2850 DRM_DEVICE; 2851 2851 drm_radeon_private_t *dev_priv = dev->dev_private; 2852 - drm_file_t *filp_priv; 2852 + struct drm_file *filp_priv; 2853 2853 drm_device_dma_t *dma = dev->dma; 2854 2854 drm_buf_t *buf = NULL; 2855 2855 int idx; ··· 3105 3105 { 3106 3106 DRM_DEVICE; 3107 3107 drm_radeon_private_t *dev_priv = dev->dev_private; 3108 - drm_file_t *filp_priv; 3108 + struct drm_file *filp_priv; 3109 3109 drm_radeon_setparam_t sp; 3110 3110 struct drm_radeon_driver_file_fields *radeon_priv; 3111 3111 ··· 3162 3162 * 3163 3163 * DRM infrastructure takes care of reclaiming dma buffers. 3164 3164 */ 3165 - void radeon_driver_preclose(drm_device_t * dev, DRMFILE filp) 3165 + void radeon_driver_preclose(struct drm_device *dev, DRMFILE filp) 3166 3166 { 3167 3167 if (dev->dev_private) { 3168 3168 drm_radeon_private_t *dev_priv = dev->dev_private; ··· 3173 3173 } 3174 3174 } 3175 3175 3176 - void radeon_driver_lastclose(drm_device_t * dev) 3176 + void radeon_driver_lastclose(struct drm_device *dev) 3177 3177 { 3178 3178 if (dev->dev_private) { 3179 3179 drm_radeon_private_t *dev_priv = dev->dev_private; ··· 3186 3186 radeon_do_release(dev); 3187 3187 } 3188 3188 3189 - int radeon_driver_open(drm_device_t * dev, drm_file_t * filp_priv) 3189 + int radeon_driver_open(struct drm_device *dev, struct drm_file *filp_priv) 3190 3190 { 3191 3191 drm_radeon_private_t *dev_priv = dev->dev_private; 3192 3192 struct drm_radeon_driver_file_fields *radeon_priv; ··· 3208 3208 return 0; 3209 3209 } 3210 3210 3211 - void radeon_driver_postclose(drm_device_t * dev, drm_file_t * filp_priv) 3211 + void radeon_driver_postclose(struct drm_device *dev, struct drm_file *filp_priv) 3212 3212 { 3213 3213 struct drm_radeon_driver_file_fields *radeon_priv = 3214 3214 filp_priv->driver_priv;
+2 -2
drivers/char/drm/sis_drv.c
··· 35 35 sisdrv_PCI_IDS 36 36 }; 37 37 38 - static int sis_driver_load(drm_device_t *dev, unsigned long chipset) 38 + static int sis_driver_load(struct drm_device *dev, unsigned long chipset) 39 39 { 40 40 drm_sis_private_t *dev_priv; 41 41 int ret; ··· 54 54 return ret; 55 55 } 56 56 57 - static int sis_driver_unload(drm_device_t *dev) 57 + static int sis_driver_unload(struct drm_device *dev) 58 58 { 59 59 drm_sis_private_t *dev_priv = dev->dev_private; 60 60
+3 -3
drivers/char/drm/sis_drv.h
··· 61 61 unsigned long agp_offset; 62 62 } drm_sis_private_t; 63 63 64 - extern int sis_idle(drm_device_t *dev); 65 - extern void sis_reclaim_buffers_locked(drm_device_t *dev, struct file *filp); 66 - extern void sis_lastclose(drm_device_t *dev); 64 + extern int sis_idle(struct drm_device *dev); 65 + extern void sis_reclaim_buffers_locked(struct drm_device *dev, struct file *filp); 66 + extern void sis_lastclose(struct drm_device *dev); 67 67 68 68 extern drm_ioctl_desc_t sis_ioctls[]; 69 69 extern int sis_max_ioctl;
+5 -5
drivers/char/drm/sis_mm.c
··· 123 123 return 0; 124 124 } 125 125 126 - static int sis_drm_alloc(drm_device_t * dev, drm_file_t * priv, 126 + static int sis_drm_alloc(struct drm_device *dev, struct drm_file * priv, 127 127 unsigned long data, int pool) 128 128 { 129 129 drm_sis_private_t *dev_priv = dev->dev_private; ··· 229 229 return sis_drm_alloc(dev, priv, data, AGP_TYPE); 230 230 } 231 231 232 - static drm_local_map_t *sis_reg_init(drm_device_t *dev) 232 + static drm_local_map_t *sis_reg_init(struct drm_device *dev) 233 233 { 234 234 drm_map_list_t *entry; 235 235 drm_local_map_t *map; ··· 245 245 return NULL; 246 246 } 247 247 248 - int sis_idle(drm_device_t *dev) 248 + int sis_idle(struct drm_device *dev) 249 249 { 250 250 drm_sis_private_t *dev_priv = dev->dev_private; 251 251 uint32_t idle_reg; ··· 314 314 mutex_unlock(&dev->struct_mutex); 315 315 } 316 316 317 - void sis_reclaim_buffers_locked(drm_device_t * dev, struct file *filp) 317 + void sis_reclaim_buffers_locked(struct drm_device * dev, struct file *filp) 318 318 { 319 319 drm_sis_private_t *dev_priv = dev->dev_private; 320 - drm_file_t *priv = filp->private_data; 320 + struct drm_file *priv = filp->private_data; 321 321 322 322 mutex_lock(&dev->struct_mutex); 323 323 if (drm_sman_owner_clean(&dev_priv->sman, (unsigned long)priv)) {
+5 -5
drivers/char/drm/via_dma.c
··· 151 151 return (uint32_t *) (dev_priv->dma_ptr + dev_priv->dma_low); 152 152 } 153 153 154 - int via_dma_cleanup(drm_device_t * dev) 154 + int via_dma_cleanup(struct drm_device * dev) 155 155 { 156 156 if (dev->dev_private) { 157 157 drm_via_private_t *dev_priv = ··· 169 169 return 0; 170 170 } 171 171 172 - static int via_initialize(drm_device_t * dev, 172 + static int via_initialize(struct drm_device * dev, 173 173 drm_via_private_t * dev_priv, 174 174 drm_via_dma_init_t * init) 175 175 { ··· 262 262 return retcode; 263 263 } 264 264 265 - static int via_dispatch_cmdbuffer(drm_device_t * dev, drm_via_cmdbuffer_t * cmd) 265 + static int via_dispatch_cmdbuffer(struct drm_device * dev, drm_via_cmdbuffer_t * cmd) 266 266 { 267 267 drm_via_private_t *dev_priv; 268 268 uint32_t *vb; ··· 316 316 return 0; 317 317 } 318 318 319 - int via_driver_dma_quiescent(drm_device_t * dev) 319 + int via_driver_dma_quiescent(struct drm_device * dev) 320 320 { 321 321 drm_via_private_t *dev_priv = dev->dev_private; 322 322 ··· 356 356 return 0; 357 357 } 358 358 359 - static int via_dispatch_pci_cmdbuffer(drm_device_t * dev, 359 + static int via_dispatch_pci_cmdbuffer(struct drm_device * dev, 360 360 drm_via_cmdbuffer_t * cmd) 361 361 { 362 362 drm_via_private_t *dev_priv = dev->dev_private;
+10 -10
drivers/char/drm/via_dmablit.c
··· 207 207 */ 208 208 209 209 static void 210 - via_fire_dmablit(drm_device_t *dev, drm_via_sg_info_t *vsg, int engine) 210 + via_fire_dmablit(struct drm_device *dev, drm_via_sg_info_t *vsg, int engine) 211 211 { 212 212 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private; 213 213 ··· 289 289 } 290 290 291 291 static void 292 - via_abort_dmablit(drm_device_t *dev, int engine) 292 + via_abort_dmablit(struct drm_device *dev, int engine) 293 293 { 294 294 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private; 295 295 ··· 297 297 } 298 298 299 299 static void 300 - via_dmablit_engine_off(drm_device_t *dev, int engine) 300 + via_dmablit_engine_off(struct drm_device *dev, int engine) 301 301 { 302 302 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private; 303 303 ··· 314 314 */ 315 315 316 316 void 317 - via_dmablit_handler(drm_device_t *dev, int engine, int from_irq) 317 + via_dmablit_handler(struct drm_device *dev, int engine, int from_irq) 318 318 { 319 319 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private; 320 320 drm_via_blitq_t *blitq = dev_priv->blit_queues + engine; ··· 433 433 */ 434 434 435 435 static int 436 - via_dmablit_sync(drm_device_t *dev, uint32_t handle, int engine) 436 + via_dmablit_sync(struct drm_device *dev, uint32_t handle, int engine) 437 437 { 438 438 439 439 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private; ··· 466 466 via_dmablit_timer(unsigned long data) 467 467 { 468 468 drm_via_blitq_t *blitq = (drm_via_blitq_t *) data; 469 - drm_device_t *dev = blitq->dev; 469 + struct drm_device *dev = blitq->dev; 470 470 int engine = (int) 471 471 (blitq - ((drm_via_private_t *)dev->dev_private)->blit_queues); 472 472 ··· 502 502 via_dmablit_workqueue(struct work_struct *work) 503 503 { 504 504 drm_via_blitq_t *blitq = container_of(work, drm_via_blitq_t, wq); 505 - drm_device_t *dev = blitq->dev; 505 + struct drm_device *dev = blitq->dev; 506 506 unsigned long irqsave; 507 507 drm_via_sg_info_t *cur_sg; 508 508 int cur_released; ··· 545 545 546 546 547 547 void 548 - via_init_dmablit(drm_device_t *dev) 548 + via_init_dmablit(struct drm_device *dev) 549 549 { 550 550 int i,j; 551 551 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private; ··· 582 582 583 583 584 584 static int 585 - via_build_sg_info(drm_device_t *dev, drm_via_sg_info_t *vsg, drm_via_dmablit_t *xfer) 585 + via_build_sg_info(struct drm_device *dev, drm_via_sg_info_t *vsg, drm_via_dmablit_t *xfer) 586 586 { 587 587 int draw = xfer->to_fb; 588 588 int ret = 0; ··· 730 730 731 731 732 732 static int 733 - via_dmablit(drm_device_t *dev, drm_via_dmablit_t *xfer) 733 + via_dmablit(struct drm_device *dev, drm_via_dmablit_t *xfer) 734 734 { 735 735 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private; 736 736 drm_via_sg_info_t *vsg;
+1 -1
drivers/char/drm/via_dmablit.h
··· 59 59 } drm_via_sg_info_t; 60 60 61 61 typedef struct _drm_via_blitq { 62 - drm_device_t *dev; 62 + struct drm_device *dev; 63 63 uint32_t cur_blit_handle; 64 64 uint32_t done_blit_handle; 65 65 unsigned serviced;
+15 -15
drivers/char/drm/via_drv.h
··· 123 123 extern int via_dma_blit_sync( DRM_IOCTL_ARGS ); 124 124 extern int via_dma_blit( DRM_IOCTL_ARGS ); 125 125 126 - extern int via_driver_load(drm_device_t *dev, unsigned long chipset); 127 - extern int via_driver_unload(drm_device_t *dev); 126 + extern int via_driver_load(struct drm_device *dev, unsigned long chipset); 127 + extern int via_driver_unload(struct drm_device *dev); 128 128 129 - extern int via_init_context(drm_device_t * dev, int context); 130 - extern int via_final_context(drm_device_t * dev, int context); 129 + extern int via_init_context(struct drm_device * dev, int context); 130 + extern int via_final_context(struct drm_device * dev, int context); 131 131 132 - extern int via_do_cleanup_map(drm_device_t * dev); 133 - extern int via_driver_vblank_wait(drm_device_t * dev, unsigned int *sequence); 132 + extern int via_do_cleanup_map(struct drm_device * dev); 133 + extern int via_driver_vblank_wait(struct drm_device * dev, unsigned int *sequence); 134 134 135 135 extern irqreturn_t via_driver_irq_handler(DRM_IRQ_ARGS); 136 - extern void via_driver_irq_preinstall(drm_device_t * dev); 137 - extern void via_driver_irq_postinstall(drm_device_t * dev); 138 - extern void via_driver_irq_uninstall(drm_device_t * dev); 136 + extern void via_driver_irq_preinstall(struct drm_device * dev); 137 + extern void via_driver_irq_postinstall(struct drm_device * dev); 138 + extern void via_driver_irq_uninstall(struct drm_device * dev); 139 139 140 - extern int via_dma_cleanup(drm_device_t * dev); 140 + extern int via_dma_cleanup(struct drm_device * dev); 141 141 extern void via_init_command_verifier(void); 142 - extern int via_driver_dma_quiescent(drm_device_t * dev); 142 + extern int via_driver_dma_quiescent(struct drm_device * dev); 143 143 extern void via_init_futex(drm_via_private_t * dev_priv); 144 144 extern void via_cleanup_futex(drm_via_private_t * dev_priv); 145 145 extern void via_release_futex(drm_via_private_t * dev_priv, int context); 146 146 147 - extern void via_reclaim_buffers_locked(drm_device_t *dev, struct file *filp); 148 - extern void via_lastclose(drm_device_t *dev); 147 + extern void via_reclaim_buffers_locked(struct drm_device *dev, struct file *filp); 148 + extern void via_lastclose(struct drm_device *dev); 149 149 150 - extern void via_dmablit_handler(drm_device_t *dev, int engine, int from_irq); 151 - extern void via_init_dmablit(drm_device_t *dev); 150 + extern void via_dmablit_handler(struct drm_device *dev, int engine, int from_irq); 151 + extern void via_init_dmablit(struct drm_device *dev); 152 152 153 153 #endif
+6 -6
drivers/char/drm/via_irq.c
··· 98 98 99 99 irqreturn_t via_driver_irq_handler(DRM_IRQ_ARGS) 100 100 { 101 - drm_device_t *dev = (drm_device_t *) arg; 101 + struct drm_device *dev = (struct drm_device *) arg; 102 102 drm_via_private_t *dev_priv = (drm_via_private_t *) dev->dev_private; 103 103 u32 status; 104 104 int handled = 0; ··· 163 163 } 164 164 } 165 165 166 - int via_driver_vblank_wait(drm_device_t * dev, unsigned int *sequence) 166 + int via_driver_vblank_wait(struct drm_device * dev, unsigned int *sequence) 167 167 { 168 168 drm_via_private_t *dev_priv = (drm_via_private_t *) dev->dev_private; 169 169 unsigned int cur_vblank; ··· 191 191 } 192 192 193 193 static int 194 - via_driver_irq_wait(drm_device_t * dev, unsigned int irq, int force_sequence, 194 + via_driver_irq_wait(struct drm_device * dev, unsigned int irq, int force_sequence, 195 195 unsigned int *sequence) 196 196 { 197 197 drm_via_private_t *dev_priv = (drm_via_private_t *) dev->dev_private; ··· 244 244 * drm_dma.h hooks 245 245 */ 246 246 247 - void via_driver_irq_preinstall(drm_device_t * dev) 247 + void via_driver_irq_preinstall(struct drm_device * dev) 248 248 { 249 249 drm_via_private_t *dev_priv = (drm_via_private_t *) dev->dev_private; 250 250 u32 status; ··· 293 293 } 294 294 } 295 295 296 - void via_driver_irq_postinstall(drm_device_t * dev) 296 + void via_driver_irq_postinstall(struct drm_device * dev) 297 297 { 298 298 drm_via_private_t *dev_priv = (drm_via_private_t *) dev->dev_private; 299 299 u32 status; ··· 312 312 } 313 313 } 314 314 315 - void via_driver_irq_uninstall(drm_device_t * dev) 315 + void via_driver_irq_uninstall(struct drm_device * dev) 316 316 { 317 317 drm_via_private_t *dev_priv = (drm_via_private_t *) dev->dev_private; 318 318 u32 status;
+4 -4
drivers/char/drm/via_map.c
··· 25 25 #include "via_drm.h" 26 26 #include "via_drv.h" 27 27 28 - static int via_do_init_map(drm_device_t * dev, drm_via_init_t * init) 28 + static int via_do_init_map(struct drm_device * dev, drm_via_init_t * init) 29 29 { 30 30 drm_via_private_t *dev_priv = dev->dev_private; 31 31 ··· 68 68 return 0; 69 69 } 70 70 71 - int via_do_cleanup_map(drm_device_t * dev) 71 + int via_do_cleanup_map(struct drm_device * dev) 72 72 { 73 73 via_dma_cleanup(dev); 74 74 ··· 95 95 return -EINVAL; 96 96 } 97 97 98 - int via_driver_load(drm_device_t *dev, unsigned long chipset) 98 + int via_driver_load(struct drm_device *dev, unsigned long chipset) 99 99 { 100 100 drm_via_private_t *dev_priv; 101 101 int ret = 0; ··· 115 115 return ret; 116 116 } 117 117 118 - int via_driver_unload(drm_device_t *dev) 118 + int via_driver_unload(struct drm_device *dev) 119 119 { 120 120 drm_via_private_t *dev_priv = dev->dev_private; 121 121
+2 -2
drivers/char/drm/via_mm.c
··· 188 188 } 189 189 190 190 191 - void via_reclaim_buffers_locked(drm_device_t * dev, struct file *filp) 191 + void via_reclaim_buffers_locked(struct drm_device * dev, struct file *filp) 192 192 { 193 193 drm_via_private_t *dev_priv = dev->dev_private; 194 - drm_file_t *priv = filp->private_data; 194 + struct drm_file *priv = filp->private_data; 195 195 196 196 mutex_lock(&dev->struct_mutex); 197 197 if (drm_sman_owner_clean(&dev_priv->sman, (unsigned long)priv)) {
+3 -3
drivers/char/drm/via_verifier.c
··· 252 252 static __inline__ drm_local_map_t *via_drm_lookup_agp_map(drm_via_state_t *seq, 253 253 unsigned long offset, 254 254 unsigned long size, 255 - drm_device_t * dev) 255 + struct drm_device * dev) 256 256 { 257 257 drm_map_list_t *r_list; 258 258 drm_local_map_t *map = seq->map_cache; ··· 962 962 963 963 int 964 964 via_verify_command_stream(const uint32_t * buf, unsigned int size, 965 - drm_device_t * dev, int agp) 965 + struct drm_device * dev, int agp) 966 966 { 967 967 968 968 drm_via_private_t *dev_priv = (drm_via_private_t *) dev->dev_private; ··· 1037 1037 } 1038 1038 1039 1039 int 1040 - via_parse_command_stream(drm_device_t * dev, const uint32_t * buf, 1040 + via_parse_command_stream(struct drm_device * dev, const uint32_t * buf, 1041 1041 unsigned int size) 1042 1042 { 1043 1043
+3 -3
drivers/char/drm/via_verifier.h
··· 47 47 drm_via_sequence_t unfinished; 48 48 int agp_texture; 49 49 int multitex; 50 - drm_device_t *dev; 50 + struct drm_device *dev; 51 51 drm_local_map_t *map_cache; 52 52 uint32_t vertex_count; 53 53 int agp; ··· 55 55 } drm_via_state_t; 56 56 57 57 extern int via_verify_command_stream(const uint32_t * buf, unsigned int size, 58 - drm_device_t * dev, int agp); 59 - extern int via_parse_command_stream(drm_device_t *dev, const uint32_t *buf, 58 + struct drm_device * dev, int agp); 59 + extern int via_parse_command_stream(struct drm_device *dev, const uint32_t *buf, 60 60 unsigned int size); 61 61 62 62 #endif