Lines Matching refs:DRM

57 int DRM(order)( unsigned long size )  in DRM()  function
70 int DRM(addmap)( struct inode *inode, struct file *filp, in DRM() function
80 map = DRM(alloc)( sizeof(*map), DRM_MEM_MAPS ); in DRM()
85 DRM(free)( map, sizeof(*map), DRM_MEM_MAPS ); in DRM()
94 DRM(free)( map, sizeof(*map), DRM_MEM_MAPS ); in DRM()
100 DRM(free)( map, sizeof(*map), DRM_MEM_MAPS ); in DRM()
112 DRM(free)( map, sizeof(*map), DRM_MEM_MAPS ); in DRM()
126 map->handle = DRM(ioremap)( map->offset, map->size, dev ); in DRM()
132 map->size, DRM(order)( map->size ), map->handle ); in DRM()
134 DRM(free)( map, sizeof(*map), DRM_MEM_MAPS ); in DRM()
154 DRM(free)(map, sizeof(*map), DRM_MEM_MAPS); in DRM()
161 DRM(free)( map, sizeof(*map), DRM_MEM_MAPS ); in DRM()
165 list = DRM(alloc)(sizeof(*list), DRM_MEM_MAPS); in DRM()
167 DRM(free)(map, sizeof(*map), DRM_MEM_MAPS); in DRM()
193 int DRM(rmmap)(struct inode *inode, struct file *filp, in DRM() function
229 DRM(free)(list, sizeof(*list), DRM_MEM_MAPS); in DRM()
248 DRM(ioremapfree)(map->handle, map->size, dev); in DRM()
257 DRM(free)(map, sizeof(*map), DRM_MEM_MAPS); in DRM()
266 static void DRM(cleanup_buf_error)(drm_buf_entry_t *entry) in DRM() function
272 DRM(free_pages)(entry->seglist[i], in DRM()
276 DRM(free)(entry->seglist, in DRM()
287 DRM(free)(entry->buflist[i].dev_private, in DRM()
292 DRM(free)(entry->buflist, in DRM()
298 DRM(freelist_destroy)(&entry->freelist); in DRM()
306 int DRM(addbufs_agp)( struct inode *inode, struct file *filp, in DRM() function
334 order = DRM(order)( request.size ); in DRM()
378 entry->buflist = DRM(alloc)( count * sizeof(*entry->buflist), in DRM()
409 buf->dev_private = DRM(alloc)( sizeof(DRIVER_BUF_PRIV_T), in DRM()
414 DRM(cleanup_buf_error)(entry); in DRM()
434 temp_buflist = DRM(realloc)( dma->buflist, in DRM()
441 DRM(cleanup_buf_error)(entry); in DRM()
459 DRM(freelist_create)( &entry->freelist, entry->buf_count ); in DRM()
461 DRM(freelist_put)( dev, &entry->freelist, &entry->buflist[i] ); in DRM()
480 int DRM(addbufs_pci)( struct inode *inode, struct file *filp, in DRM() function
510 order = DRM(order)( request.size ); in DRM()
547 entry->buflist = DRM(alloc)( count * sizeof(*entry->buflist), in DRM()
556 entry->seglist = DRM(alloc)( count * sizeof(*entry->seglist), in DRM()
559 DRM(free)( entry->buflist, in DRM()
568 temp_pagelist = DRM(realloc)( dma->pagelist, in DRM()
574 DRM(free)( entry->buflist, in DRM()
577 DRM(free)( entry->seglist, in DRM()
595 page = DRM(alloc_pages)( page_order, DRM_MEM_DMA ); in DRM()
632 temp_buflist = DRM(realloc)( dma->buflist, in DRM()
639 DRM(cleanup_buf_error)(entry); in DRM()
656 DRM(freelist_create)( &entry->freelist, entry->buf_count ); in DRM()
658 DRM(freelist_put)( dev, &entry->freelist, &entry->buflist[i] ); in DRM()
676 int DRM(addbufs_sg)( struct inode *inode, struct file *filp, in DRM() function
704 order = DRM(order)( request.size ); in DRM()
748 entry->buflist = DRM(alloc)( count * sizeof(*entry->buflist), in DRM()
779 buf->dev_private = DRM(alloc)( sizeof(DRIVER_BUF_PRIV_T), in DRM()
784 DRM(cleanup_buf_error)(entry); in DRM()
808 temp_buflist = DRM(realloc)( dma->buflist, in DRM()
815 DRM(cleanup_buf_error)(entry); in DRM()
833 DRM(freelist_create)( &entry->freelist, entry->buf_count ); in DRM()
835 DRM(freelist_put)( dev, &entry->freelist, &entry->buflist[i] ); in DRM()
853 int DRM(addbufs)( struct inode *inode, struct file *filp, in DRM() function
864 return DRM(addbufs_agp)( inode, filp, cmd, arg ); in DRM()
869 return DRM(addbufs_sg)( inode, filp, cmd, arg ); in DRM()
873 return DRM(addbufs_pci)( inode, filp, cmd, arg ); in DRM()
879 int DRM(infobufs)( struct inode *inode, struct file *filp, in DRM() function
950 int DRM(markbufs)( struct inode *inode, struct file *filp, in DRM() function
969 order = DRM(order)( request.size ); in DRM()
984 int DRM(freebufs)( struct inode *inode, struct file *filp, in DRM() function
1019 DRM(free_buffer)( dev, buf ); in DRM()
1025 int DRM(mapbufs)( struct inode *inode, struct file *filp, in DRM() function