/drivers/gpu/drm/i810/ |
D | i810_dma.c | 58 drm_i810_buf_priv_t *buf_priv = buf->dev_private; in i810_freelist_get() local 60 used = cmpxchg(buf_priv->in_use, I810_BUF_FREE, in i810_freelist_get() 74 drm_i810_buf_priv_t *buf_priv = buf->dev_private; in i810_freelist_put() local 78 used = cmpxchg(buf_priv->in_use, I810_BUF_CLIENT, I810_BUF_FREE); in i810_freelist_put() 93 drm_i810_buf_priv_t *buf_priv; in i810_mmap_buffers() local 98 buf_priv = buf->dev_private; in i810_mmap_buffers() 102 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 *)vm_mmap(file_priv->filp, 0, buf->total, in i810_map_buffer() [all …]
|
/drivers/media/v4l2-core/ |
D | videobuf2-vmalloc.c | 36 static void vb2_vmalloc_put(void *buf_priv); 62 static void vb2_vmalloc_put(void *buf_priv) in vb2_vmalloc_put() argument 64 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_put() 137 static void vb2_vmalloc_put_userptr(void *buf_priv) in vb2_vmalloc_put_userptr() argument 139 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_put_userptr() 160 static void *vb2_vmalloc_vaddr(void *buf_priv) in vb2_vmalloc_vaddr() argument 162 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_vaddr() 173 static unsigned int vb2_vmalloc_num_users(void *buf_priv) in vb2_vmalloc_num_users() argument 175 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_num_users() 179 static int vb2_vmalloc_mmap(void *buf_priv, struct vm_area_struct *vma) in vb2_vmalloc_mmap() argument [all …]
|
D | videobuf2-dma-sg.c | 46 static void vb2_dma_sg_put(void *buf_priv); 141 static void vb2_dma_sg_put(void *buf_priv) in vb2_dma_sg_put() argument 143 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_put() 257 static void vb2_dma_sg_put_userptr(void *buf_priv) in vb2_dma_sg_put_userptr() argument 259 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_put_userptr() 278 static void *vb2_dma_sg_vaddr(void *buf_priv) in vb2_dma_sg_vaddr() argument 280 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_vaddr() 294 static unsigned int vb2_dma_sg_num_users(void *buf_priv) in vb2_dma_sg_num_users() argument 296 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_num_users() 301 static int vb2_dma_sg_mmap(void *buf_priv, struct vm_area_struct *vma) in vb2_dma_sg_mmap() argument [all …]
|
D | videobuf2-dma-contig.c | 90 static void *vb2_dc_cookie(void *buf_priv) in vb2_dc_cookie() argument 92 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_cookie() 97 static void *vb2_dc_vaddr(void *buf_priv) in vb2_dc_vaddr() argument 99 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_vaddr() 107 static unsigned int vb2_dc_num_users(void *buf_priv) in vb2_dc_num_users() argument 109 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_num_users() 114 static void vb2_dc_prepare(void *buf_priv) in vb2_dc_prepare() argument 116 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_prepare() 126 static void vb2_dc_finish(void *buf_priv) in vb2_dc_finish() argument 128 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_finish() [all …]
|
/drivers/gpu/drm/r128/ |
D | r128_state.c | 567 drm_r128_buf_priv_t *buf_priv = buf->dev_private; in r128_cce_dispatch_vertex() local 572 int prim = buf_priv->prim; in r128_cce_dispatch_vertex() 581 buf_priv->dispatched = 1; in r128_cce_dispatch_vertex() 610 if (buf_priv->discard) { in r128_cce_dispatch_vertex() 611 buf_priv->age = dev_priv->sarea_priv->last_dispatch; in r128_cce_dispatch_vertex() 617 OUT_RING(buf_priv->age); in r128_cce_dispatch_vertex() 624 buf_priv->dispatched = 0; in r128_cce_dispatch_vertex() 637 drm_r128_buf_priv_t *buf_priv = buf->dev_private; in r128_cce_dispatch_indirect() local 656 buf_priv->dispatched = 1; in r128_cce_dispatch_indirect() 668 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 …]
|
/drivers/gpu/drm/mga/ |
D | mga_state.c | 627 drm_mga_buf_priv_t *buf_priv = buf->dev_private; in mga_dma_dispatch_vertex() local 636 buf_priv->dispatched = 1; in mga_dma_dispatch_vertex() 659 if (buf_priv->discard) { in mga_dma_dispatch_vertex() 660 AGE_BUFFER(buf_priv); in mga_dma_dispatch_vertex() 663 buf_priv->dispatched = 0; in mga_dma_dispatch_vertex() 675 drm_mga_buf_priv_t *buf_priv = buf->dev_private; in mga_dma_dispatch_indices() local 683 buf_priv->dispatched = 1; in mga_dma_dispatch_indices() 705 if (buf_priv->discard) { in mga_dma_dispatch_indices() 706 AGE_BUFFER(buf_priv); in mga_dma_dispatch_indices() 709 buf_priv->dispatched = 0; in mga_dma_dispatch_indices() [all …]
|
D | mga_dma.c | 248 drm_mga_buf_priv_t *buf_priv; in mga_freelist_init() local 261 buf_priv = buf->dev_private; in mga_freelist_init() 277 buf_priv->list_entry = entry; in mga_freelist_init() 278 buf_priv->discard = 0; in mga_freelist_init() 279 buf_priv->dispatched = 0; in mga_freelist_init() 311 drm_mga_buf_priv_t *buf_priv; 316 buf_priv = buf->dev_private; 317 SET_AGE(&buf_priv->list_entry->age, MGA_BUFFER_FREE, 0); 358 drm_mga_buf_priv_t *buf_priv = buf->dev_private; in mga_freelist_put() local 362 (unsigned long)(buf_priv->list_entry->age.head - in mga_freelist_put() [all …]
|
D | mga_drv.h | 347 #define AGE_BUFFER(buf_priv) \ argument 349 drm_mga_freelist_t *entry = (buf_priv)->list_entry; \ 350 if ((buf_priv)->dispatched) { \
|
/drivers/gpu/drm/savage/ |
D | savage_bci.c | 1060 drm_savage_buf_priv_t *buf_priv = buf->dev_private; in savage_reclaim_buffers() local 1062 if (buf->file_priv == file_priv && buf_priv && in savage_reclaim_buffers() 1063 buf_priv->next == NULL && buf_priv->prev == NULL) { in savage_reclaim_buffers() 1067 SET_AGE(&buf_priv->age, event, dev_priv->event_wrap); in savage_reclaim_buffers()
|
D | savage_state.c | 1149 drm_savage_buf_priv_t *buf_priv = dmabuf->dev_private; in savage_bci_cmdbuf() local 1152 SET_AGE(&buf_priv->age, event, dev_priv->event_wrap); in savage_bci_cmdbuf()
|
/drivers/gpu/drm/radeon/ |
D | radeon_cp.c | 1923 drm_radeon_buf_priv_t *buf_priv; in radeon_freelist_get() local 1938 buf_priv = buf->dev_private; in radeon_freelist_get() 1940 buf_priv->age <= in radeon_freelist_get() 1968 drm_radeon_buf_priv_t *buf_priv = buf->dev_private; in radeon_freelist_reset() local 1969 buf_priv->age = 0; in radeon_freelist_reset()
|
D | r300_cmdbuf.c | 853 drm_radeon_buf_priv_t *buf_priv = buf->dev_private; in r300_discard_buffer() local 856 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()
|