Home
last modified time | relevance | path

Searched refs:queuelist (Results 1 – 20 of 20) sorted by relevance

/linux-2.4.37.9/drivers/char/drm-4.0/
Dcontext.c85 atomic_inc(&dev->queuelist[i]->use_count); in drm_alloc_queue()
86 if (atomic_read(&dev->queuelist[i]->use_count) == 1 in drm_alloc_queue()
87 && !atomic_read(&dev->queuelist[i]->finalization)) { in drm_alloc_queue()
91 atomic_dec(&dev->queuelist[i]->use_count); in drm_alloc_queue()
105 oldslots = dev->queue_slots * sizeof(*dev->queuelist); in drm_alloc_queue()
108 newslots = dev->queue_slots * sizeof(*dev->queuelist); in drm_alloc_queue()
110 dev->queuelist = drm_realloc(dev->queuelist, in drm_alloc_queue()
114 if (!dev->queuelist) { in drm_alloc_queue()
120 dev->queuelist[dev->queue_count-1] = queue; in drm_alloc_queue()
165 drm_init_queue(dev, dev->queuelist[ctx.handle], &ctx); in drm_addctx()
[all …]
Dgamma_drv.c168 dev->queuelist = NULL; in gamma_setup()
283 if (dev->queuelist) { in gamma_takedown()
285 drm_waitlist_destroy(&dev->queuelist[i]->waitlist); in gamma_takedown()
286 if (dev->queuelist[i]) { in gamma_takedown()
287 drm_free(dev->queuelist[i], in gamma_takedown()
288 sizeof(*dev->queuelist[0]), in gamma_takedown()
290 dev->queuelist[i] = NULL; in gamma_takedown()
293 drm_free(dev->queuelist, in gamma_takedown()
294 dev->queue_slots * sizeof(*dev->queuelist), in gamma_takedown()
296 dev->queuelist = NULL; in gamma_takedown()
Di810_drv.c177 dev->queuelist = NULL; in i810_setup()
309 if (dev->queuelist) { in i810_takedown()
311 drm_waitlist_destroy(&dev->queuelist[i]->waitlist); in i810_takedown()
312 if (dev->queuelist[i]) { in i810_takedown()
313 drm_free(dev->queuelist[i], in i810_takedown()
314 sizeof(*dev->queuelist[0]), in i810_takedown()
316 dev->queuelist[i] = NULL; in i810_takedown()
319 drm_free(dev->queuelist, in i810_takedown()
320 dev->queue_slots * sizeof(*dev->queuelist), in i810_takedown()
322 dev->queuelist = NULL; in i810_takedown()
Dmga_drv.c178 dev->queuelist = NULL; in mga_setup()
309 if (dev->queuelist) { in mga_takedown()
311 drm_waitlist_destroy(&dev->queuelist[i]->waitlist); in mga_takedown()
312 if (dev->queuelist[i]) { in mga_takedown()
313 drm_free(dev->queuelist[i], in mga_takedown()
314 sizeof(*dev->queuelist[0]), in mga_takedown()
316 dev->queuelist[i] = NULL; in mga_takedown()
319 drm_free(dev->queuelist, in mga_takedown()
320 dev->queue_slots * sizeof(*dev->queuelist), in mga_takedown()
322 dev->queuelist = NULL; in mga_takedown()
Ddma.c237 q = dev->queuelist[new]; in drm_context_switch()
308 if (!dev->queuelist || !dev->queuelist[DRM_KERNEL_CONTEXT]) { in drm_select_queue()
394 q = dev->queuelist[DRM_KERNEL_CONTEXT]; in drm_dma_enqueue()
397 q = dev->queuelist[d->context]; in drm_dma_enqueue()
Dlock.c118 drm_queue_t *q = dev->queuelist[context]; in drm_flush_queue()
150 drm_queue_t *q = dev->queuelist[context]; in drm_flush_unblock_queue()
Dgamma_dma.c240 && !(dev->queuelist[buf->context]->flags in gamma_do_dma()
346 q = dev->queuelist[next]; in gamma_dma_schedule()
466 && !(dev->queuelist[buf->context]->flags in gamma_dma_priority()
762 q = dev->queuelist[lock.context]; in gamma_lock()
DdrmP.h295 #define DRM_WAITCOUNT(dev,idx) DRM_BUFCOUNT(&dev->queuelist[idx]->waitlist)
570 drm_queue_t **queuelist; /* Vector of pointers to DMA queues */ member
Dproc.c228 q = dev->queuelist[i]; in _drm_queues_info()
Dr128_drv.c185 dev->queuelist = NULL; in r128_setup()
Dtdfx_drv.c160 dev->queuelist = NULL; in tdfx_setup()
Dradeon_drv.c183 dev->queuelist = NULL; in radeon_setup()
Dffb_drv.c520 dev->queuelist = NULL; in ffb_setup()
/linux-2.4.37.9/drivers/char/drm/
Ddrm_context.h447 q = dev->queuelist[new]; in DRM()
546 atomic_inc(&dev->queuelist[i]->use_count); in DRM()
547 if (atomic_read(&dev->queuelist[i]->use_count) == 1 in DRM()
548 && !atomic_read(&dev->queuelist[i]->finalization)) { in DRM()
552 atomic_dec(&dev->queuelist[i]->use_count); in DRM()
563 oldslots = dev->queue_slots * sizeof(*dev->queuelist); in DRM()
566 newslots = dev->queue_slots * sizeof(*dev->queuelist); in DRM()
568 dev->queuelist = DRM(realloc)(dev->queuelist, in DRM()
572 if (!dev->queuelist) { in DRM()
578 dev->queuelist[dev->queue_count-1] = queue; in DRM()
[all …]
Ddrm_drv.h318 dev->queuelist = NULL; in DRM()
476 if ( dev->queuelist ) { in DRM()
478 DRM(waitlist_destroy)( &dev->queuelist[i]->waitlist ); in DRM()
479 if ( dev->queuelist[i] ) { in DRM()
480 DRM(free)( dev->queuelist[i], in DRM()
481 sizeof(*dev->queuelist[0]), in DRM()
483 dev->queuelist[i] = NULL; in DRM()
486 DRM(free)( dev->queuelist, in DRM()
487 dev->queue_slots * sizeof(*dev->queuelist), in DRM()
489 dev->queuelist = NULL; in DRM()
[all …]
Ddrm_lock.h117 drm_queue_t *q = dev->queuelist[context]; in DRM()
148 drm_queue_t *q = dev->queuelist[context]; in DRM()
Ddrm_dma.h263 if (!dev->queuelist || !dev->queuelist[DRM_KERNEL_CONTEXT]) { in DRM()
349 q = dev->queuelist[DRM_KERNEL_CONTEXT]; in DRM()
352 q = dev->queuelist[d->context]; in DRM()
Dgamma_dma.c203 && !(dev->queuelist[buf->context]->flags in gamma_do_dma()
308 q = dev->queuelist[next]; in gamma_dma_schedule()
425 && !(dev->queuelist[buf->context]->flags in gamma_dma_priority()
DdrmP.h333 #define DRM_WAITCOUNT(dev,idx) DRM_BUFCOUNT(&dev->queuelist[idx]->waitlist)
644 drm_queue_t **queuelist; /* Vector of pointers to DMA queues */ member
Ddrm_proc.h247 q = dev->queuelist[i]; in DRM()