Home
last modified time | relevance | path

Searched refs:pb_buffer (Results 1 – 25 of 58) sorted by relevance

123

/external/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_buffer.h111 struct pb_buffer struct
135 void (*destroy)(struct pb_buffer *buf); argument
141 void *(*map)(struct pb_buffer *buf,
144 void (*unmap)(struct pb_buffer *buf);
146 enum pipe_error (*validate)(struct pb_buffer *buf,
150 void (*fence)(struct pb_buffer *buf,
164 void (*get_base_buffer)(struct pb_buffer *buf,
165 struct pb_buffer **base_buf,
174 pb_map(struct pb_buffer *buf, enum pb_usage_flags flags, void *flush_ctx) in pb_map()
185 pb_unmap(struct pb_buffer *buf) in pb_unmap()
[all …]
Dpb_bufmgr_cache.c53 struct pb_buffer base;
54 struct pb_buffer *buffer;
69 pb_cache_buffer(struct pb_buffer *buf) in pb_cache_buffer()
85 pb_cache_manager_remove_buffer(struct pb_buffer *pb_buf) in pb_cache_manager_remove_buffer()
97 _pb_cache_buffer_destroy(struct pb_buffer *pb_buf) in _pb_cache_buffer_destroy()
108 pb_cache_buffer_destroy(struct pb_buffer *_buf) in pb_cache_buffer_destroy()
124 pb_cache_buffer_map(struct pb_buffer *_buf, in pb_cache_buffer_map()
133 pb_cache_buffer_unmap(struct pb_buffer *_buf) in pb_cache_buffer_unmap()
141 pb_cache_buffer_validate(struct pb_buffer *_buf, in pb_cache_buffer_validate()
151 pb_cache_buffer_fence(struct pb_buffer *_buf, in pb_cache_buffer_fence()
[all …]
Dpb_cache.h42 struct pb_buffer *buffer; /**< Pointer to the structure this is part of. */
64 void (*destroy_buffer)(struct pb_buffer *buf);
65 bool (*can_reclaim)(struct pb_buffer *buf);
69 struct pb_buffer *pb_cache_reclaim_buffer(struct pb_cache *mgr, pb_size size,
74 struct pb_buffer *buf, unsigned bucket_index);
78 void (*destroy_buffer)(struct pb_buffer *buf),
79 bool (*can_reclaim)(struct pb_buffer *buf));
Dpb_bufmgr_mm.c63 struct pb_buffer *buffer;
78 struct pb_buffer base;
87 mm_buffer(struct pb_buffer *buf) in mm_buffer()
95 mm_buffer_destroy(struct pb_buffer *buf) in mm_buffer_destroy()
110 mm_buffer_map(struct pb_buffer *buf, in mm_buffer_map()
124 mm_buffer_unmap(struct pb_buffer *buf) in mm_buffer_unmap()
131 mm_buffer_validate(struct pb_buffer *buf, in mm_buffer_validate()
142 mm_buffer_fence(struct pb_buffer *buf, in mm_buffer_fence()
152 mm_buffer_get_base_buffer(struct pb_buffer *buf, in mm_buffer_get_base_buffer()
153 struct pb_buffer **base_buf, in mm_buffer_get_base_buffer()
[all …]
Dpb_bufmgr.h70 struct pb_buffer *
86 struct pb_buffer *buf );
106 mm_bufmgr_create_from_buffer(struct pb_buffer *buffer,
147 pb_cache_manager_remove_buffer(struct pb_buffer *buf);
Dpb_bufmgr_debug.c70 struct pb_buffer base;
72 struct pb_buffer *buffer;
103 pb_debug_buffer(struct pb_buffer *buf) in pb_debug_buffer()
229 pb_debug_buffer_destroy(struct pb_buffer *_buf) in pb_debug_buffer_destroy()
250 pb_debug_buffer_map(struct pb_buffer *_buf, in pb_debug_buffer_map()
272 pb_debug_buffer_unmap(struct pb_buffer *_buf) in pb_debug_buffer_unmap()
289 pb_debug_buffer_get_base_buffer(struct pb_buffer *_buf, in pb_debug_buffer_get_base_buffer()
290 struct pb_buffer **base_buf, in pb_debug_buffer_get_base_buffer()
300 pb_debug_buffer_validate(struct pb_buffer *_buf, in pb_debug_buffer_validate()
323 pb_debug_buffer_fence(struct pb_buffer *_buf, in pb_debug_buffer_fence()
[all …]
Dpb_cache.c41 struct pb_buffer *buf = entry->buffer; in destroy_buffer_locked()
87 struct pb_buffer *buf = entry->buffer; in pb_cache_add_buffer()
123 struct pb_buffer *buf = entry->buffer; in pb_cache_is_buffer_compat()
146 struct pb_buffer *
208 struct pb_buffer *buf = entry->buffer; in pb_cache_reclaim_buffer()
251 struct pb_buffer *buf, unsigned bucket_index) in pb_cache_init_entry()
283 void (*destroy_buffer)(struct pb_buffer *buf), in pb_cache_init()
284 bool (*can_reclaim)(struct pb_buffer *buf)) in pb_cache_init()
Dpb_bufmgr_slab.c60 struct pb_buffer base;
87 struct pb_buffer *bo;
162 pb_slab_buffer(struct pb_buffer *buf) in pb_slab_buffer()
190 pb_slab_buffer_destroy(struct pb_buffer *_buf) in pb_slab_buffer_destroy()
225 pb_slab_buffer_map(struct pb_buffer *_buf, in pb_slab_buffer_map()
239 pb_slab_buffer_unmap(struct pb_buffer *_buf) in pb_slab_buffer_unmap()
248 pb_slab_buffer_validate(struct pb_buffer *_buf, in pb_slab_buffer_validate()
258 pb_slab_buffer_fence(struct pb_buffer *_buf, in pb_slab_buffer_fence()
267 pb_slab_buffer_get_base_buffer(struct pb_buffer *_buf, in pb_slab_buffer_get_base_buffer()
268 struct pb_buffer **base_buf, in pb_slab_buffer_get_base_buffer()
[all …]
Dpb_validate.h47 struct pb_buffer;
62 struct pb_buffer *buf,
69 enum pipe_error (*callback)(struct pb_buffer *buf, void *data),
Dpb_buffer_fenced.c116 struct pb_buffer base;
128 struct pb_buffer *buffer;
162 fenced_buffer(struct pb_buffer *buf) in fenced_buffer()
648 fenced_buffer_destroy(struct pb_buffer *buf) in fenced_buffer_destroy()
664 fenced_buffer_map(struct pb_buffer *buf, in fenced_buffer_map()
719 fenced_buffer_unmap(struct pb_buffer *buf) in fenced_buffer_unmap()
740 fenced_buffer_validate(struct pb_buffer *buf, in fenced_buffer_validate()
812 fenced_buffer_fence(struct pb_buffer *buf, in fenced_buffer_fence()
849 fenced_buffer_get_base_buffer(struct pb_buffer *buf, in fenced_buffer_get_base_buffer()
850 struct pb_buffer **base_buf, in fenced_buffer_get_base_buffer()
[all …]
Dpb_validate.c51 struct pb_buffer *buf;
66 struct pb_buffer *buf, in pb_validate_add_buffer()
129 enum pipe_error (*callback)(struct pb_buffer *buf, void *data), in pb_validate_foreach()
/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_buffer.c59 struct pb_buffer base;
74 vmw_gmr_buffer(struct pb_buffer *buf) in vmw_gmr_buffer()
104 vmw_gmr_buffer_destroy(struct pb_buffer *_buf) in vmw_gmr_buffer_destroy()
121 vmw_gmr_buffer_map(struct pb_buffer *_buf, in vmw_gmr_buffer_map()
150 vmw_gmr_buffer_unmap(struct pb_buffer *_buf) in vmw_gmr_buffer_unmap()
171 vmw_gmr_buffer_get_base_buffer(struct pb_buffer *buf, in vmw_gmr_buffer_get_base_buffer()
172 struct pb_buffer **base_buf, in vmw_gmr_buffer_get_base_buffer()
181 vmw_gmr_buffer_validate( struct pb_buffer *_buf, in vmw_gmr_buffer_validate()
191 vmw_gmr_buffer_fence( struct pb_buffer *_buf, in vmw_gmr_buffer_fence()
209 static struct pb_buffer *
[all …]
Dvmw_buffer.h41 struct pb_buffer;
55 struct pb_buffer *
58 vmw_svga_winsys_buffer_wrap(struct pb_buffer *buffer);
63 static inline struct pb_buffer *
67 return (struct pb_buffer *)buffer; in vmw_pb_buffer()
72 vmw_svga_winsys_buffer_wrap(struct pb_buffer *buffer) in vmw_svga_winsys_buffer_wrap()
94 vmw_gmr_bufmgr_region_ptr(struct pb_buffer *buf,
Dpb_buffer_simple_fenced.c101 struct pb_buffer base;
113 struct pb_buffer *buffer;
140 fenced_buffer(struct pb_buffer *buf) in fenced_buffer()
504 fenced_buffer_destroy(struct pb_buffer *buf) in fenced_buffer_destroy()
520 fenced_buffer_map(struct pb_buffer *buf, in fenced_buffer_map()
574 fenced_buffer_unmap(struct pb_buffer *buf) in fenced_buffer_unmap()
595 fenced_buffer_validate(struct pb_buffer *buf, in fenced_buffer_validate()
645 fenced_buffer_fence(struct pb_buffer *buf, in fenced_buffer_fence()
684 fenced_buffer_get_base_buffer(struct pb_buffer *buf, in fenced_buffer_get_base_buffer()
685 struct pb_buffer **base_buf, in fenced_buffer_get_base_buffer()
[all …]
Dvmw_context.c71 struct pb_buffer *buffer;
371 struct pb_buffer *pb_buf, in vmw_swc_add_validate_buffer()
432 struct pb_buffer *pb_buffer = vmw_pb_buffer(buffer); in vmw_swc_mob_relocation() local
445 reloc->buffer = pb_buffer; in vmw_swc_mob_relocation()
451 if (vmw_swc_add_validate_buffer(vswc, pb_buffer, flags)) { in vmw_swc_mob_relocation()
452 vswc->seen_mobs += pb_buffer->size; in vmw_swc_mob_relocation()
/external/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_bo.h59 struct pb_buffer base;
127 bool amdgpu_bo_can_reclaim(struct pb_buffer *_buf);
128 struct pb_buffer *amdgpu_bo_create(struct amdgpu_winsys *ws,
133 void amdgpu_bo_destroy(struct pb_buffer *_buf);
134 void *amdgpu_bo_map(struct pb_buffer *buf,
137 void amdgpu_bo_unmap(struct pb_buffer *buf);
150 struct amdgpu_winsys_bo *amdgpu_winsys_bo(struct pb_buffer *bo) in amdgpu_winsys_bo()
165 pb_reference((struct pb_buffer**)dst, (struct pb_buffer*)src); in amdgpu_winsys_bo_reference()
Damdgpu_bo.c50 static bool amdgpu_bo_wait(struct pb_buffer *_buf, uint64_t timeout, in amdgpu_bo_wait()
144 struct pb_buffer *buf) in amdgpu_bo_get_initial_domain()
150 struct pb_buffer *buf) in amdgpu_bo_get_flags()
165 void amdgpu_bo_destroy(struct pb_buffer *_buf) in amdgpu_bo_destroy()
225 static void amdgpu_bo_destroy_or_cache(struct pb_buffer *_buf) in amdgpu_bo_destroy_or_cache()
271 void *amdgpu_bo_map(struct pb_buffer *buf, in amdgpu_bo_map()
300 if (!amdgpu_bo_wait((struct pb_buffer*)bo, 0, in amdgpu_bo_map()
311 if (!amdgpu_bo_wait((struct pb_buffer*)bo, 0, in amdgpu_bo_map()
339 amdgpu_bo_wait((struct pb_buffer*)bo, PIPE_TIMEOUT_INFINITE, in amdgpu_bo_map()
354 amdgpu_bo_wait((struct pb_buffer*)bo, PIPE_TIMEOUT_INFINITE, in amdgpu_bo_map()
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_winsys.h312 struct pb_buffer *(*buffer_create)(struct radeon_winsys *ws, uint64_t size, unsigned alignment,
327 void *(*buffer_map)(struct pb_buffer *buf, struct radeon_cmdbuf *cs,
335 void (*buffer_unmap)(struct pb_buffer *buf);
345 bool (*buffer_wait)(struct pb_buffer *buf, uint64_t timeout, enum radeon_bo_usage usage);
354 void (*buffer_get_metadata)(struct pb_buffer *buf, struct radeon_bo_metadata *md,
364 void (*buffer_set_metadata)(struct pb_buffer *buf, struct radeon_bo_metadata *md,
375 struct pb_buffer *(*buffer_from_handle)(struct radeon_winsys *ws, struct winsys_handle *whandle,
386 struct pb_buffer *(*buffer_from_ptr)(struct radeon_winsys *ws, void *pointer, uint64_t size);
394 bool (*buffer_is_user_ptr)(struct pb_buffer *buf);
397 bool (*buffer_is_suballocated)(struct pb_buffer *buf);
[all …]
Dradeon_vcn_dec_jpeg.c38 static struct pb_buffer *radeon_jpeg_get_decode_param(struct radeon_decoder *dec, in radeon_jpeg_get_decode_param()
65 static void send_cmd_bitstream(struct radeon_decoder *dec, struct pb_buffer *buf, uint32_t off, in send_cmd_bitstream()
108 static void send_cmd_target(struct radeon_decoder *dec, struct pb_buffer *buf, uint32_t off, in send_cmd_target()
187 static void send_cmd_bitstream_direct(struct radeon_decoder *dec, struct pb_buffer *buf, in send_cmd_bitstream_direct()
227 static void send_cmd_target_direct(struct radeon_decoder *dec, struct pb_buffer *buf, uint32_t off, in send_cmd_target_direct()
284 struct pb_buffer *dt; in send_cmd_jpeg()
Dradeon_uvd_enc.h325 typedef void (*radeon_uvd_enc_get_buffer)(struct pipe_resource *resource, struct pb_buffer **handle,
402 struct pb_buffer *handle;
406 struct pb_buffer *bs_handle;
/external/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_bo.h36 struct pb_buffer base;
79 void radeon_bo_destroy(struct pb_buffer *_buf);
80 bool radeon_bo_can_reclaim(struct pb_buffer *_buf);
92 pb_reference((struct pb_buffer**)dst, (struct pb_buffer*)src); in radeon_bo_reference()
Dradeon_drm_bo.c45 static struct pb_buffer *
52 static inline struct radeon_bo *radeon_bo(struct pb_buffer *bo) in radeon_bo()
132 static bool radeon_bo_wait(struct pb_buffer *_buf, uint64_t timeout, in radeon_bo_wait()
177 struct pb_buffer *buf) in radeon_bo_get_initial_domain()
353 void radeon_bo_destroy(struct pb_buffer *_buf) in radeon_bo_destroy()
422 static void radeon_bo_destroy_or_cache(struct pb_buffer *_buf) in radeon_bo_destroy_or_cache()
499 static void *radeon_bo_map(struct pb_buffer *buf, in radeon_bo_map()
524 if (!radeon_bo_wait((struct pb_buffer*)bo, 0, in radeon_bo_map()
535 if (!radeon_bo_wait((struct pb_buffer*)bo, 0, in radeon_bo_map()
555 radeon_bo_wait((struct pb_buffer*)bo, PIPE_TIMEOUT_INFINITE, in radeon_bo_map()
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dr600_uvd.c64 struct pb_buffer **pbs[VL_NUM_COMPONENTS] = {}; in r600_video_buffer_create()
159 static struct pb_buffer* r600_uvd_set_dtb(struct ruvd_msg *msg, struct vl_video_buffer *buf) in r600_uvd_set_dtb()
175 struct pb_buffer **handle, in r600_vce_get_buffer()
Dradeon_vce.h55 struct pb_buffer **handle,
394 struct pb_buffer* handle;
398 struct pb_buffer* bs_handle;
433 void rvce_add_buffer(struct rvce_encoder *enc, struct pb_buffer *buf,
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_uvd.c51 static struct pb_buffer *si_uvd_set_dtb(struct ruvd_msg *msg, struct vl_video_buffer *buf) in si_uvd_set_dtb()
67 static void si_vce_get_buffer(struct pipe_resource *resource, struct pb_buffer **handle, in si_vce_get_buffer()

123