/linux-2.6.39/drivers/media/video/ |
D | videobuf2-vmalloc.c | 28 static void vb2_vmalloc_put(void *buf_priv); 57 static void vb2_vmalloc_put(void *buf_priv) in vb2_vmalloc_put() argument 59 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_put() 69 static void *vb2_vmalloc_vaddr(void *buf_priv) in vb2_vmalloc_vaddr() argument 71 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_vaddr() 83 static unsigned int vb2_vmalloc_num_users(void *buf_priv) in vb2_vmalloc_num_users() argument 85 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_num_users() 89 static int vb2_vmalloc_mmap(void *buf_priv, struct vm_area_struct *vma) in vb2_vmalloc_mmap() argument 91 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_mmap()
|
D | videobuf2-dma-contig.c | 34 static void vb2_dma_contig_put(void *buf_priv); 66 static void vb2_dma_contig_put(void *buf_priv) in vb2_dma_contig_put() argument 68 struct vb2_dc_buf *buf = buf_priv; in vb2_dma_contig_put() 77 static void *vb2_dma_contig_cookie(void *buf_priv) in vb2_dma_contig_cookie() argument 79 struct vb2_dc_buf *buf = buf_priv; in vb2_dma_contig_cookie() 84 static void *vb2_dma_contig_vaddr(void *buf_priv) in vb2_dma_contig_vaddr() argument 86 struct vb2_dc_buf *buf = buf_priv; in vb2_dma_contig_vaddr() 93 static unsigned int vb2_dma_contig_num_users(void *buf_priv) in vb2_dma_contig_num_users() argument 95 struct vb2_dc_buf *buf = buf_priv; in vb2_dma_contig_num_users() 100 static int vb2_dma_contig_mmap(void *buf_priv, struct vm_area_struct *vma) in vb2_dma_contig_mmap() argument [all …]
|
D | videobuf2-dma-sg.c | 34 static void vb2_dma_sg_put(void *buf_priv); 101 static void vb2_dma_sg_put(void *buf_priv) in vb2_dma_sg_put() argument 103 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_put() 194 static void vb2_dma_sg_put_userptr(void *buf_priv) in vb2_dma_sg_put_userptr() argument 196 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_put_userptr() 213 static void *vb2_dma_sg_vaddr(void *buf_priv) in vb2_dma_sg_vaddr() argument 215 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_vaddr() 229 static unsigned int vb2_dma_sg_num_users(void *buf_priv) in vb2_dma_sg_num_users() argument 231 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_num_users() 236 static int vb2_dma_sg_mmap(void *buf_priv, struct vm_area_struct *vma) in vb2_dma_sg_mmap() argument [all …]
|
/linux-2.6.39/drivers/gpu/drm/i810/ |
D | i810_dma.c | 59 drm_i810_buf_priv_t *buf_priv = buf->dev_private; in i810_freelist_get() local 61 used = cmpxchg(buf_priv->in_use, I810_BUF_FREE, in i810_freelist_get() 75 drm_i810_buf_priv_t *buf_priv = buf->dev_private; in i810_freelist_put() local 79 used = cmpxchg(buf_priv->in_use, I810_BUF_CLIENT, I810_BUF_FREE); in i810_freelist_put() 94 drm_i810_buf_priv_t *buf_priv; in i810_mmap_buffers() local 99 buf_priv = buf->dev_private; in i810_mmap_buffers() 104 buf_priv->currently_mapped = I810_BUF_MAPPED; in i810_mmap_buffers() 125 drm_i810_buf_priv_t *buf_priv = buf->dev_private; in i810_map_buffer() local 130 if (buf_priv->currently_mapped == I810_BUF_MAPPED) in i810_map_buffer() 137 buf_priv->virtual = (void *)do_mmap(file_priv->filp, 0, buf->total, in i810_map_buffer() [all …]
|
/linux-2.6.39/drivers/gpu/drm/r128/ |
D | r128_state.c | 568 drm_r128_buf_priv_t *buf_priv = buf->dev_private; in r128_cce_dispatch_vertex() local 573 int prim = buf_priv->prim; in r128_cce_dispatch_vertex() 582 buf_priv->dispatched = 1; in r128_cce_dispatch_vertex() 611 if (buf_priv->discard) { in r128_cce_dispatch_vertex() 612 buf_priv->age = dev_priv->sarea_priv->last_dispatch; in r128_cce_dispatch_vertex() 618 OUT_RING(buf_priv->age); in r128_cce_dispatch_vertex() 625 buf_priv->dispatched = 0; in r128_cce_dispatch_vertex() 638 drm_r128_buf_priv_t *buf_priv = buf->dev_private; in r128_cce_dispatch_indirect() local 657 buf_priv->dispatched = 1; in r128_cce_dispatch_indirect() 669 if (buf_priv->discard) { in r128_cce_dispatch_indirect() [all …]
|
D | r128_cce.c | 770 drm_r128_buf_priv_t *buf_priv; 782 buf_priv = buf->dev_private; 795 buf_priv->discard = 0; 796 buf_priv->dispatched = 0; 797 buf_priv->list_entry = entry; 814 drm_r128_buf_priv_t *buf_priv; in r128_freelist_get() local 822 buf_priv = buf->dev_private; in r128_freelist_get() 832 buf_priv = buf->dev_private; in r128_freelist_get() 833 if (buf->pending && buf_priv->age <= done_age) { in r128_freelist_get() 855 drm_r128_buf_priv_t *buf_priv = buf->dev_private; in r128_freelist_reset() local [all …]
|
/linux-2.6.39/drivers/gpu/drm/mga/ |
D | mga_state.c | 628 drm_mga_buf_priv_t *buf_priv = buf->dev_private; in mga_dma_dispatch_vertex() local 637 buf_priv->dispatched = 1; in mga_dma_dispatch_vertex() 660 if (buf_priv->discard) { in mga_dma_dispatch_vertex() 661 AGE_BUFFER(buf_priv); in mga_dma_dispatch_vertex() 664 buf_priv->dispatched = 0; in mga_dma_dispatch_vertex() 676 drm_mga_buf_priv_t *buf_priv = buf->dev_private; in mga_dma_dispatch_indices() local 684 buf_priv->dispatched = 1; in mga_dma_dispatch_indices() 706 if (buf_priv->discard) { in mga_dma_dispatch_indices() 707 AGE_BUFFER(buf_priv); in mga_dma_dispatch_indices() 710 buf_priv->dispatched = 0; in mga_dma_dispatch_indices() [all …]
|
D | mga_dma.c | 250 drm_mga_buf_priv_t *buf_priv; in mga_freelist_init() local 263 buf_priv = buf->dev_private; in mga_freelist_init() 279 buf_priv->list_entry = entry; in mga_freelist_init() 280 buf_priv->discard = 0; in mga_freelist_init() 281 buf_priv->dispatched = 0; in mga_freelist_init() 313 drm_mga_buf_priv_t *buf_priv; 318 buf_priv = buf->dev_private; 319 SET_AGE(&buf_priv->list_entry->age, MGA_BUFFER_FREE, 0); 360 drm_mga_buf_priv_t *buf_priv = buf->dev_private; in mga_freelist_put() local 364 (unsigned long)(buf_priv->list_entry->age.head - in mga_freelist_put() [all …]
|
D | mga_drv.h | 364 #define AGE_BUFFER(buf_priv) \ argument 366 drm_mga_freelist_t *entry = (buf_priv)->list_entry; \ 367 if ((buf_priv)->dispatched) { \
|
/linux-2.6.39/include/media/ |
D | videobuf2-core.h | 62 void (*put)(void *buf_priv); 66 void (*put_userptr)(void *buf_priv); 68 void *(*vaddr)(void *buf_priv); 69 void *(*cookie)(void *buf_priv); 71 unsigned int (*num_users)(void *buf_priv); 73 int (*mmap)(void *buf_priv, struct vm_area_struct *vma);
|
/linux-2.6.39/drivers/gpu/drm/savage/ |
D | savage_bci.c | 1069 drm_savage_buf_priv_t *buf_priv = buf->dev_private; in savage_reclaim_buffers() local 1071 if (buf->file_priv == file_priv && buf_priv && in savage_reclaim_buffers() 1072 buf_priv->next == NULL && buf_priv->prev == NULL) { in savage_reclaim_buffers() 1076 SET_AGE(&buf_priv->age, event, dev_priv->event_wrap); in savage_reclaim_buffers()
|
D | savage_state.c | 1148 drm_savage_buf_priv_t *buf_priv = dmabuf->dev_private; in savage_bci_cmdbuf() local 1151 SET_AGE(&buf_priv->age, event, dev_priv->event_wrap); in savage_bci_cmdbuf()
|
/linux-2.6.39/drivers/gpu/drm/radeon/ |
D | radeon_cp.c | 1939 drm_radeon_buf_priv_t *buf_priv; in radeon_freelist_get() local 1954 buf_priv = buf->dev_private; in radeon_freelist_get() 1956 buf_priv->age <= in radeon_freelist_get() 1984 drm_radeon_buf_priv_t *buf_priv = buf->dev_private; in radeon_freelist_reset() local 1985 buf_priv->age = 0; in radeon_freelist_reset()
|
D | r300_cmdbuf.c | 852 drm_radeon_buf_priv_t *buf_priv = buf->dev_private; in r300_discard_buffer() local 855 buf_priv->age = ++master_priv->sarea_priv->last_dispatch; in r300_discard_buffer()
|
D | radeon_state.c | 1582 drm_radeon_buf_priv_t *buf_priv = buf->dev_private; in radeon_cp_discard_buffer() local 1585 buf_priv->age = ++master_priv->sarea_priv->last_dispatch; in radeon_cp_discard_buffer() 1590 R600_DISPATCH_AGE(buf_priv->age); in radeon_cp_discard_buffer() 1594 RADEON_DISPATCH_AGE(buf_priv->age); in radeon_cp_discard_buffer()
|