Lines Matching refs:DRM
42 int DRM(agp_info)(struct inode *inode, struct file *filp, in DRM() function
69 int DRM(agp_acquire)(struct inode *inode, struct file *filp, in DRM() function
88 int DRM(agp_release)(struct inode *inode, struct file *filp, in DRM() function
102 void DRM(agp_do_release)(void) in DRM() function
107 int DRM(agp_enable)(struct inode *inode, struct file *filp, in DRM() function
127 int DRM(agp_alloc)(struct inode *inode, struct file *filp, in DRM() function
141 if (!(entry = DRM(alloc)(sizeof(*entry), DRM_MEM_AGPLISTS))) in DRM()
149 if (!(memory = DRM(alloc_agp)(pages, type))) { in DRM()
150 DRM(free)(entry, sizeof(*entry), DRM_MEM_AGPLISTS); in DRM()
169 DRM(free_agp)(memory, pages); in DRM()
170 DRM(free)(entry, sizeof(*entry), DRM_MEM_AGPLISTS); in DRM()
176 static drm_agp_mem_t *DRM(agp_lookup_entry)(drm_device_t *dev, in DRM() function
187 int DRM(agp_unbind)(struct inode *inode, struct file *filp, in DRM() function
198 if (!(entry = DRM(agp_lookup_entry)(dev, request.handle))) in DRM()
201 return DRM(unbind_agp)(entry->memory); in DRM()
204 int DRM(agp_bind)(struct inode *inode, struct file *filp, in DRM() function
218 if (!(entry = DRM(agp_lookup_entry)(dev, request.handle))) in DRM()
222 if ((retcode = DRM(bind_agp)(entry->memory, page))) return retcode; in DRM()
229 int DRM(agp_free)(struct inode *inode, struct file *filp, in DRM() function
240 if (!(entry = DRM(agp_lookup_entry)(dev, request.handle))) in DRM()
242 if (entry->bound) DRM(unbind_agp)(entry->memory); in DRM()
247 DRM(free_agp)(entry->memory, entry->pages); in DRM()
248 DRM(free)(entry, sizeof(*entry), DRM_MEM_AGPLISTS); in DRM()
252 drm_agp_head_t *DRM(agp_init)(void) in DRM() function
258 if (!(head = DRM(alloc)(sizeof(*head), DRM_MEM_AGPLISTS))) in DRM()
263 DRM(free)(head, sizeof(*head), DRM_MEM_AGPLISTS); in DRM()
280 void DRM(agp_uninit)(void) in DRM() function
286 agp_memory *DRM(agp_allocate_memory)(size_t pages, u32 type) in DRM() function
292 int DRM(agp_free_memory)(agp_memory *handle) in DRM() function
299 int DRM(agp_bind_memory)(agp_memory *handle, off_t start) in DRM() function
305 int DRM(agp_unbind_memory)(agp_memory *handle) in DRM() function