Home
last modified time | relevance | path

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

/Linux-v4.19/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()
123 drm_i810_buf_priv_t *buf_priv = buf->dev_private; in i810_map_buffer() local
128 if (buf_priv->currently_mapped == I810_BUF_MAPPED) in i810_map_buffer()
135 buf_priv->virtual = (void *)vm_mmap(file_priv->filp, 0, buf->total, in i810_map_buffer()
[all …]
/Linux-v4.19/include/media/
Dvideobuf2-core.h121 void (*put)(void *buf_priv);
122 struct dma_buf *(*get_dmabuf)(void *buf_priv, unsigned long flags);
127 void (*put_userptr)(void *buf_priv);
129 void (*prepare)(void *buf_priv);
130 void (*finish)(void *buf_priv);
136 void (*detach_dmabuf)(void *buf_priv);
137 int (*map_dmabuf)(void *buf_priv);
138 void (*unmap_dmabuf)(void *buf_priv);
140 void *(*vaddr)(void *buf_priv);
141 void *(*cookie)(void *buf_priv);
[all …]
/Linux-v4.19/drivers/media/common/videobuf2/
Dvideobuf2-dma-sg.c56 static void vb2_dma_sg_put(void *buf_priv);
174 static void vb2_dma_sg_put(void *buf_priv) in vb2_dma_sg_put() argument
176 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_put()
196 static void vb2_dma_sg_prepare(void *buf_priv) in vb2_dma_sg_prepare() argument
198 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_prepare()
209 static void vb2_dma_sg_finish(void *buf_priv) in vb2_dma_sg_finish() argument
211 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_finish()
282 static void vb2_dma_sg_put_userptr(void *buf_priv) in vb2_dma_sg_put_userptr() argument
284 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_put_userptr()
303 static void *vb2_dma_sg_vaddr(void *buf_priv) in vb2_dma_sg_vaddr() argument
[all …]
Dvideobuf2-vmalloc.c35 static void vb2_vmalloc_put(void *buf_priv);
64 static void vb2_vmalloc_put(void *buf_priv) in vb2_vmalloc_put() argument
66 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_put()
128 static void vb2_vmalloc_put_userptr(void *buf_priv) in vb2_vmalloc_put_userptr() argument
130 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_put_userptr()
152 static void *vb2_vmalloc_vaddr(void *buf_priv) in vb2_vmalloc_vaddr() argument
154 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_vaddr()
164 static unsigned int vb2_vmalloc_num_users(void *buf_priv) in vb2_vmalloc_num_users() argument
166 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_num_users()
170 static int vb2_vmalloc_mmap(void *buf_priv, struct vm_area_struct *vma) in vb2_vmalloc_mmap() argument
[all …]
Dvideobuf2-dma-contig.c69 static void *vb2_dc_cookie(void *buf_priv) in vb2_dc_cookie() argument
71 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_cookie()
76 static void *vb2_dc_vaddr(void *buf_priv) in vb2_dc_vaddr() argument
78 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_vaddr()
86 static unsigned int vb2_dc_num_users(void *buf_priv) in vb2_dc_num_users() argument
88 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_num_users()
93 static void vb2_dc_prepare(void *buf_priv) in vb2_dc_prepare() argument
95 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_prepare()
106 static void vb2_dc_finish(void *buf_priv) in vb2_dc_finish() argument
108 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_finish()
[all …]
/Linux-v4.19/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.c769 drm_r128_buf_priv_t *buf_priv;
781 buf_priv = buf->dev_private;
794 buf_priv->discard = 0;
795 buf_priv->dispatched = 0;
796 buf_priv->list_entry = entry;
813 drm_r128_buf_priv_t *buf_priv; in r128_freelist_get() local
821 buf_priv = buf->dev_private; in r128_freelist_get()
831 buf_priv = buf->dev_private; in r128_freelist_get()
832 if (buf->pending && buf_priv->age <= done_age) { in r128_freelist_get()
854 drm_r128_buf_priv_t *buf_priv = buf->dev_private; in r128_freelist_reset() local
[all …]
/Linux-v4.19/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.h349 #define AGE_BUFFER(buf_priv) \ argument
351 drm_mga_freelist_t *entry = (buf_priv)->list_entry; \
352 if ((buf_priv)->dispatched) { \
/Linux-v4.19/drivers/gpu/drm/savage/
Dsavage_bci.c1059 drm_savage_buf_priv_t *buf_priv = buf->dev_private; in savage_reclaim_buffers() local
1061 if (buf->file_priv == file_priv && buf_priv && in savage_reclaim_buffers()
1062 buf_priv->next == NULL && buf_priv->prev == NULL) { in savage_reclaim_buffers()
1066 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()