Home
last modified time | relevance | path

Searched refs:buf_priv (Results 1 – 11 of 11) sorted by relevance

/drivers/gpu/drm/i810/
Di810_dma.c58 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/
Dvideobuf2-dma-sg.c55 static void vb2_dma_sg_put(void *buf_priv);
173 static void vb2_dma_sg_put(void *buf_priv) in vb2_dma_sg_put() argument
175 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_put()
195 static void vb2_dma_sg_prepare(void *buf_priv) in vb2_dma_sg_prepare() argument
197 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_prepare()
208 static void vb2_dma_sg_finish(void *buf_priv) in vb2_dma_sg_finish() argument
210 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_finish()
280 static void vb2_dma_sg_put_userptr(void *buf_priv) in vb2_dma_sg_put_userptr() argument
282 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_put_userptr()
301 static void *vb2_dma_sg_vaddr(void *buf_priv) in vb2_dma_sg_vaddr() argument
[all …]
Dvideobuf2-vmalloc.c34 static void vb2_vmalloc_put(void *buf_priv);
63 static void vb2_vmalloc_put(void *buf_priv) in vb2_vmalloc_put() argument
65 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_put()
126 static void vb2_vmalloc_put_userptr(void *buf_priv) in vb2_vmalloc_put_userptr() argument
128 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_put_userptr()
149 static void *vb2_vmalloc_vaddr(void *buf_priv) in vb2_vmalloc_vaddr() argument
151 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_vaddr()
162 static unsigned int vb2_vmalloc_num_users(void *buf_priv) in vb2_vmalloc_num_users() argument
164 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_num_users()
168 static int vb2_vmalloc_mmap(void *buf_priv, struct vm_area_struct *vma) in vb2_vmalloc_mmap() argument
[all …]
Dvideobuf2-dma-contig.c68 static void *vb2_dc_cookie(void *buf_priv) in vb2_dc_cookie() argument
70 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_cookie()
75 static void *vb2_dc_vaddr(void *buf_priv) in vb2_dc_vaddr() argument
77 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_vaddr()
85 static unsigned int vb2_dc_num_users(void *buf_priv) in vb2_dc_num_users() argument
87 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_num_users()
92 static void vb2_dc_prepare(void *buf_priv) in vb2_dc_prepare() argument
94 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_prepare()
105 static void vb2_dc_finish(void *buf_priv) in vb2_dc_finish() argument
107 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_finish()
[all …]
/drivers/gpu/drm/r128/
Dr128_state.c567 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 …]
Dr128_cce.c770 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/
Dmga_state.c627 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 …]
Dmga_dma.c248 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 …]
Dmga_drv.h347 #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/
Dsavage_bci.c1060 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()
Dsavage_state.c1144 drm_savage_buf_priv_t *buf_priv = dmabuf->dev_private; in savage_bci_cmdbuf() local
1147 SET_AGE(&buf_priv->age, event, dev_priv->event_wrap); in savage_bci_cmdbuf()