Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/gpu/drm/i810/
Di810_dma.c65 drm_i810_buf_priv_t *buf_priv = buf->dev_private; in i810_freelist_get() local
67 used = cmpxchg(buf_priv->in_use, I810_BUF_FREE, in i810_freelist_get()
81 drm_i810_buf_priv_t *buf_priv = buf->dev_private; in i810_freelist_put() local
85 used = cmpxchg(buf_priv->in_use, I810_BUF_CLIENT, I810_BUF_FREE); in i810_freelist_put()
100 drm_i810_buf_priv_t *buf_priv; in i810_mmap_buffers() local
105 buf_priv = buf->dev_private; in i810_mmap_buffers()
109 buf_priv->currently_mapped = I810_BUF_MAPPED; in i810_mmap_buffers()
130 drm_i810_buf_priv_t *buf_priv = buf->dev_private; in i810_map_buffer() local
135 if (buf_priv->currently_mapped == I810_BUF_MAPPED) in i810_map_buffer()
142 buf_priv->virtual = (void *)vm_mmap(file_priv->filp, 0, buf->total, in i810_map_buffer()
[all …]
/Linux-v5.4/include/media/
Dvideobuf2-core.h123 void (*put)(void *buf_priv);
124 struct dma_buf *(*get_dmabuf)(void *buf_priv, unsigned long flags);
129 void (*put_userptr)(void *buf_priv);
131 void (*prepare)(void *buf_priv);
132 void (*finish)(void *buf_priv);
138 void (*detach_dmabuf)(void *buf_priv);
139 int (*map_dmabuf)(void *buf_priv);
140 void (*unmap_dmabuf)(void *buf_priv);
142 void *(*vaddr)(void *buf_priv);
143 void *(*cookie)(void *buf_priv);
[all …]
/Linux-v5.4/drivers/media/common/videobuf2/
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()
127 static void vb2_vmalloc_put_userptr(void *buf_priv) in vb2_vmalloc_put_userptr() argument
129 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_put_userptr()
151 static void *vb2_vmalloc_vaddr(void *buf_priv) in vb2_vmalloc_vaddr() argument
153 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_vaddr()
163 static unsigned int vb2_vmalloc_num_users(void *buf_priv) in vb2_vmalloc_num_users() argument
165 struct vb2_vmalloc_buf *buf = buf_priv; in vb2_vmalloc_num_users()
169 static int vb2_vmalloc_mmap(void *buf_priv, struct vm_area_struct *vma) in vb2_vmalloc_mmap() argument
[all …]
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()
281 static void vb2_dma_sg_put_userptr(void *buf_priv) in vb2_dma_sg_put_userptr() argument
283 struct vb2_dma_sg_buf *buf = buf_priv; in vb2_dma_sg_put_userptr()
302 static void *vb2_dma_sg_vaddr(void *buf_priv) in vb2_dma_sg_vaddr() 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-v5.4/drivers/gpu/drm/r128/
Dr128_state.c574 drm_r128_buf_priv_t *buf_priv = buf->dev_private; in r128_cce_dispatch_vertex() local
579 int prim = buf_priv->prim; in r128_cce_dispatch_vertex()
588 buf_priv->dispatched = 1; in r128_cce_dispatch_vertex()
617 if (buf_priv->discard) { in r128_cce_dispatch_vertex()
618 buf_priv->age = dev_priv->sarea_priv->last_dispatch; in r128_cce_dispatch_vertex()
624 OUT_RING(buf_priv->age); in r128_cce_dispatch_vertex()
631 buf_priv->dispatched = 0; in r128_cce_dispatch_vertex()
644 drm_r128_buf_priv_t *buf_priv = buf->dev_private; in r128_cce_dispatch_indirect() local
663 buf_priv->dispatched = 1; in r128_cce_dispatch_indirect()
675 if (buf_priv->discard) { in r128_cce_dispatch_indirect()
[all …]
Dr128_cce.c778 drm_r128_buf_priv_t *buf_priv;
790 buf_priv = buf->dev_private;
803 buf_priv->discard = 0;
804 buf_priv->dispatched = 0;
805 buf_priv->list_entry = entry;
822 drm_r128_buf_priv_t *buf_priv; in r128_freelist_get() local
830 buf_priv = buf->dev_private; in r128_freelist_get()
840 buf_priv = buf->dev_private; in r128_freelist_get()
841 if (buf->pending && buf_priv->age <= done_age) { in r128_freelist_get()
863 drm_r128_buf_priv_t *buf_priv = buf->dev_private; in r128_freelist_reset() local
[all …]
/Linux-v5.4/drivers/gpu/drm/mga/
Dmga_state.c625 drm_mga_buf_priv_t *buf_priv = buf->dev_private; in mga_dma_dispatch_vertex() local
634 buf_priv->dispatched = 1; in mga_dma_dispatch_vertex()
657 if (buf_priv->discard) { in mga_dma_dispatch_vertex()
658 AGE_BUFFER(buf_priv); in mga_dma_dispatch_vertex()
661 buf_priv->dispatched = 0; in mga_dma_dispatch_vertex()
673 drm_mga_buf_priv_t *buf_priv = buf->dev_private; in mga_dma_dispatch_indices() local
681 buf_priv->dispatched = 1; in mga_dma_dispatch_indices()
703 if (buf_priv->discard) { in mga_dma_dispatch_indices()
704 AGE_BUFFER(buf_priv); in mga_dma_dispatch_indices()
707 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.h366 #define AGE_BUFFER(buf_priv) \ argument
368 drm_mga_freelist_t *entry = (buf_priv)->list_entry; \
369 if ((buf_priv)->dispatched) { \
/Linux-v5.4/drivers/gpu/drm/savage/
Dsavage_bci.c1068 drm_savage_buf_priv_t *buf_priv = buf->dev_private; in savage_reclaim_buffers() local
1070 if (buf->file_priv == file_priv && buf_priv && in savage_reclaim_buffers()
1071 buf_priv->next == NULL && buf_priv->prev == NULL) { in savage_reclaim_buffers()
1075 SET_AGE(&buf_priv->age, event, dev_priv->event_wrap); in savage_reclaim_buffers()
Dsavage_state.c1155 drm_savage_buf_priv_t *buf_priv = dmabuf->dev_private; in savage_bci_cmdbuf() local
1158 SET_AGE(&buf_priv->age, event, dev_priv->event_wrap); in savage_bci_cmdbuf()