Lines Matching refs:DRM

44 void DRM(ctxbitmap_free)( drm_device_t *dev, int ctx_handle )  in DRM()  function
62 int DRM(ctxbitmap_next)( drm_device_t *dev ) in DRM() function
78 ctx_sareas = DRM(realloc)(dev->context_sareas, in DRM()
93 dev->context_sareas = DRM(alloc)( in DRM()
112 int DRM(ctxbitmap_init)( drm_device_t *dev ) in DRM() function
118 dev->ctx_bitmap = (unsigned long *) DRM(alloc)( PAGE_SIZE, in DRM()
130 temp = DRM(ctxbitmap_next)( dev ); in DRM()
137 void DRM(ctxbitmap_cleanup)( drm_device_t *dev ) in DRM() function
140 if( dev->context_sareas ) DRM(free)( dev->context_sareas, in DRM()
144 DRM(free)( (void *)dev->ctx_bitmap, PAGE_SIZE, DRM_MEM_CTXBITMAP ); in DRM()
152 int DRM(getsareactx)(struct inode *inode, struct file *filp, in DRM() function
180 int DRM(setsareactx)(struct inode *inode, struct file *filp, in DRM() function
222 int DRM(context_switch)( drm_device_t *dev, int old, int new ) in DRM() function
242 if ( DRM(flags) & DRM_FLAG_NOCTX ) { in DRM()
243 DRM(context_switch_complete)( dev, new ); in DRM()
246 DRM(write_string)( dev, buf ); in DRM()
252 int DRM(context_switch_complete)( drm_device_t *dev, int new ) in DRM() function
265 atomic_inc( &dev->histo.ctx[DRM(histogram_slot)(get_cycles() in DRM()
275 int DRM(resctx)( struct inode *inode, struct file *filp, in DRM() function
301 int DRM(addctx)( struct inode *inode, struct file *filp, in DRM() function
311 ctx.handle = DRM(ctxbitmap_next)( dev ); in DRM()
314 ctx.handle = DRM(ctxbitmap_next)( dev ); in DRM()
332 int DRM(modctx)( struct inode *inode, struct file *filp, in DRM() function
339 int DRM(getctx)( struct inode *inode, struct file *filp, in DRM() function
355 int DRM(switchctx)( struct inode *inode, struct file *filp, in DRM() function
366 return DRM(context_switch)( dev, dev->last_context, ctx.handle ); in DRM()
369 int DRM(newctx)( struct inode *inode, struct file *filp, in DRM() function
380 DRM(context_switch_complete)( dev, ctx.handle ); in DRM()
385 int DRM(rmctx)( struct inode *inode, struct file *filp, in DRM() function
403 DRM(ctxbitmap_free)( dev, ctx.handle ); in DRM()
417 int DRM(context_switch)(drm_device_t *dev, int old, int new) in DRM() function
455 if (DRM(flags) & DRM_FLAG_NOCTX) { in DRM()
456 DRM(context_switch_complete)(dev, new); in DRM()
459 DRM(write_string)(dev, buf); in DRM()
467 int DRM(context_switch_complete)(drm_device_t *dev, int new) in DRM() function
479 if (DRM(lock_free)(dev, &dev->lock.hw_lock->lock, in DRM()
486 atomic_inc(&dev->histo.ctx[DRM(histogram_slot)(get_cycles() in DRM()
496 static int DRM(init_queue)(drm_device_t *dev, drm_queue_t *q, drm_ctx_t *ctx) in DRM() function
523 DRM(waitlist_create)(&q->waitlist, dev->dma->buf_count); in DRM()
538 static int DRM(alloc_queue)(drm_device_t *dev) in DRM() function
557 queue = DRM(alloc)(sizeof(*queue), DRM_MEM_QUEUES); in DRM()
568 dev->queuelist = DRM(realloc)(dev->queuelist, in DRM()
585 int DRM(resctx)(struct inode *inode, struct file *filp, in DRM() function
611 int DRM(addctx)(struct inode *inode, struct file *filp, in DRM() function
620 if ((ctx.handle = DRM(alloc_queue)(dev)) == DRM_KERNEL_CONTEXT) { in DRM()
622 DRM(init_queue)(dev, dev->queuelist[ctx.handle], &ctx); in DRM()
623 ctx.handle = DRM(alloc_queue)(dev); in DRM()
625 DRM(init_queue)(dev, dev->queuelist[ctx.handle], &ctx); in DRM()
632 int DRM(modctx)(struct inode *inode, struct file *filp, in DRM() function
666 int DRM(getctx)(struct inode *inode, struct file *filp, in DRM() function
698 int DRM(switchctx)(struct inode *inode, struct file *filp, in DRM() function
708 return DRM(context_switch)(dev, dev->last_context, ctx.handle); in DRM()
711 int DRM(newctx)(struct inode *inode, struct file *filp, in DRM() function
721 DRM(context_switch_complete)(dev, ctx.handle); in DRM()
726 int DRM(rmctx)(struct inode *inode, struct file *filp, in DRM() function
761 while ((buf = DRM(waitlist_get)(&q->waitlist))) { in DRM()
762 DRM(free_buffer)(dev, buf); in DRM()