Searched refs:bo (Results 1 - 25 of 343) sorted by relevance

1234567891011>>

/external/libdrm/freedreno/
H A Dfreedreno_bo.c38 static void bo_del(struct fd_bo *bo);
41 static void set_name(struct fd_bo *bo, uint32_t name) argument
43 bo->name = name;
45 drmHashInsert(bo->dev->name_table, name, bo);
51 struct fd_bo *bo = NULL; local
52 if (!drmHashLookup(tbl, key, (void **)&bo)) {
54 bo = fd_bo_ref(bo);
56 return bo;
63 struct fd_bo *bo; local
93 struct fd_bo *bo; local
127 is_idle(struct fd_bo *bo) argument
138 struct fd_bo *bo = NULL; local
173 struct fd_bo *bo = NULL; local
207 struct fd_bo *bo = NULL; local
247 struct fd_bo *bo; local
275 fd_bo_ref(struct fd_bo *bo) argument
281 fd_bo_del(struct fd_bo *bo) argument
323 bo_del(struct fd_bo *bo) argument
345 fd_bo_get_name(struct fd_bo *bo, uint32_t *name) argument
368 fd_bo_handle(struct fd_bo *bo) argument
373 fd_bo_dmabuf(struct fd_bo *bo) argument
392 fd_bo_size(struct fd_bo *bo) argument
397 fd_bo_map(struct fd_bo *bo) argument
419 fd_bo_cpu_prep(struct fd_bo *bo, struct fd_pipe *pipe, uint32_t op) argument
424 fd_bo_cpu_fini(struct fd_bo *bo) argument
[all...]
/external/libdrm/rockchip/
H A Drockchip_drm.c94 struct rockchip_bo *bo; local
105 bo = calloc(1, sizeof(*bo));
106 if (!bo) {
107 fprintf(stderr, "failed to create bo[%s].\n",
112 bo->dev = dev;
120 bo->handle = req.handle;
121 bo->size = size;
122 bo->flags = flags;
124 return bo;
135 struct rockchip_bo *bo; local
162 rockchip_bo_destroy(struct rockchip_bo *bo) argument
197 struct rockchip_bo *bo; local
237 rockchip_bo_get_name(struct rockchip_bo *bo, uint32_t *name) argument
260 rockchip_bo_handle(struct rockchip_bo *bo) argument
273 rockchip_bo_map(struct rockchip_bo *bo) argument
[all...]
/external/libdrm/tests/radeon/
H A Drbo.c39 struct rbo *bo; local
42 bo = calloc(1, sizeof(*bo));
43 if (bo == NULL) {
46 list_inithead(&bo->list);
47 bo->fd = fd;
48 bo->size = size;
49 bo->handle = handle;
50 bo->refcount = 1;
51 bo
94 rbo_map(struct rbo *bo) argument
124 rbo_unmap(struct rbo *bo) argument
133 rbo_incref(struct rbo *bo) argument
139 rbo_decref(struct rbo *bo) argument
158 rbo_wait(struct rbo *bo) argument
[all...]
H A Dradeon_ttm.c32 /* allocate as many single page bo to try to starve the kernel
38 struct rbo *bo, *tmp; local
44 bo = rbo(fd, 0, 4096, 0, NULL);
45 if (bo == NULL) {
46 printf("failing after %d bo\n", nbo);
50 list_add(&bo->list, &list);
52 LIST_FOR_EACH_ENTRY_SAFE(bo, tmp, &list, list) {
53 list_del(&bo->list);
54 rbo_decref(bo);
H A Drbo.h44 int rbo_map(struct rbo *bo);
45 void rbo_unmap(struct rbo *bo);
46 struct rbo *rbo_incref(struct rbo *bo);
47 struct rbo *rbo_decref(struct rbo *bo);
48 int rbo_wait(struct rbo *bo);
/external/libdrm/omap/
H A Domap_drm.c60 /* The handle_table is used to track GEM bo handles associated w/
66 * to an invalid handle (and possible a GEM bo that is already
167 struct omap_bo *bo = NULL; local
168 if (!drmHashLookup(dev->handle_table, handle, (void **)&bo)) {
170 bo = omap_bo_ref(bo);
172 return bo;
179 struct omap_bo *bo = calloc(sizeof(*bo), 1); local
180 if (!bo) {
199 struct omap_bo *bo = NULL; local
261 omap_bo_ref(struct omap_bo *bo) argument
268 get_buffer_info(struct omap_bo *bo) argument
290 struct omap_bo *bo = NULL; local
324 struct omap_bo *bo = NULL; local
353 omap_bo_del(struct omap_bo *bo) argument
386 omap_bo_get_name(struct omap_bo *bo, uint32_t *name) argument
407 omap_bo_handle(struct omap_bo *bo) argument
415 omap_bo_dmabuf(struct omap_bo *bo) argument
434 omap_bo_size(struct omap_bo *bo) argument
442 omap_bo_map(struct omap_bo *bo) argument
458 omap_bo_cpu_prep(struct omap_bo *bo, enum omap_gem_op op) argument
468 omap_bo_cpu_fini(struct omap_bo *bo, enum omap_gem_op op) argument
[all...]
/external/libdrm/tests/modetest/
H A Dbuffers.h30 struct bo;
38 struct bo *bo_create(int fd, unsigned int format,
42 void bo_destroy(struct bo *bo);
/external/drm_gralloc/
H A Dgralloc_drm.cpp152 * Validate a buffer handle and return the associated bo.
165 struct gralloc_drm_bo_t *bo; local
175 bo = drm->drv->alloc(drm->drv, handle);
177 bo = NULL;
178 if (bo) {
179 bo->drm = drm;
180 bo->imported = 1;
181 bo->handle = handle;
182 bo->refcount = 1;
186 handle->data = bo;
205 struct gralloc_drm_bo_t *bo; local
249 struct gralloc_drm_bo_t *bo; local
277 gralloc_drm_bo_destroy(struct gralloc_drm_bo_t *bo) argument
299 gralloc_drm_bo_decref(struct gralloc_drm_bo_t *bo) argument
316 gralloc_drm_bo_get_handle(struct gralloc_drm_bo_t *bo, int *stride) argument
330 struct gralloc_drm_bo_t *bo = handle->data; local
342 gralloc_drm_bo_lock(struct gralloc_drm_bo_t *bo, int usage, int x, int y, int w, int h, void **addr) argument
385 gralloc_drm_bo_unlock(struct gralloc_drm_bo_t *bo) argument
[all...]
/external/libdrm/radeon/
H A Dradeon_bo_gem.h40 uint32_t radeon_gem_name_bo(struct radeon_bo *bo);
41 void *radeon_gem_get_reloc_in_cs(struct radeon_bo *bo);
42 int radeon_gem_set_domain(struct radeon_bo *bo, uint32_t read_domains, uint32_t write_domain);
43 int radeon_gem_get_kernel_name(struct radeon_bo *bo, uint32_t *name);
44 int radeon_gem_prime_share_bo(struct radeon_bo *bo, int *handle);
H A Dradeon_bo.h36 /* bo object */
53 void radeon_bo_debug(struct radeon_bo *bo, const char *op);
62 void radeon_bo_ref(struct radeon_bo *bo);
63 struct radeon_bo *radeon_bo_unref(struct radeon_bo *bo);
64 int radeon_bo_map(struct radeon_bo *bo, int write);
65 int radeon_bo_unmap(struct radeon_bo *bo);
66 int radeon_bo_wait(struct radeon_bo *bo);
67 int radeon_bo_is_busy(struct radeon_bo *bo, uint32_t *domain);
68 int radeon_bo_set_tiling(struct radeon_bo *bo, uint32_t tiling_flags, uint32_t pitch);
69 int radeon_bo_get_tiling(struct radeon_bo *bo, uint32_
[all...]
H A Dradeon_bo.c39 drm_public void radeon_bo_debug(struct radeon_bo *bo, const char *op) argument
41 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo;
44 op, bo, bo->handle, boi->size, boi->cref);
51 struct radeon_bo *bo; local
52 bo = bom->funcs->bo_open(bom, handle, size, alignment, domains, flags);
53 return bo;
56 drm_public void radeon_bo_ref(struct radeon_bo *bo) argument
58 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo;
63 drm_public struct radeon_bo *radeon_bo_unref(struct radeon_bo *bo) argument
73 radeon_bo_map(struct radeon_bo *bo, int write) argument
79 radeon_bo_unmap(struct radeon_bo *bo) argument
85 radeon_bo_wait(struct radeon_bo *bo) argument
93 radeon_bo_is_busy(struct radeon_bo *bo, uint32_t *domain) argument
100 radeon_bo_set_tiling(struct radeon_bo *bo, uint32_t tiling_flags, uint32_t pitch) argument
108 radeon_bo_get_tiling(struct radeon_bo *bo, uint32_t *tiling_flags, uint32_t *pitch) argument
115 radeon_bo_is_static(struct radeon_bo *bo) argument
124 radeon_bo_is_referenced_by_cs(struct radeon_bo *bo, struct radeon_cs *cs) argument
130 radeon_bo_get_handle(struct radeon_bo *bo) argument
135 radeon_bo_get_src_domain(struct radeon_bo *bo) argument
[all...]
/external/libdrm/tegra/
H A Dtegra.c42 static void drm_tegra_bo_free(struct drm_tegra_bo *bo) argument
44 struct drm_tegra *drm = bo->drm;
47 if (bo->map)
48 munmap(bo->map, bo->size);
51 args.handle = bo->handle;
55 free(bo);
115 struct drm_tegra_bo *bo; local
121 bo = calloc(1, sizeof(*bo));
153 struct drm_tegra_bo *bo; local
177 struct drm_tegra_bo *bo; local
207 drm_tegra_bo_name_get(struct drm_tegra_bo *bo, uint32_t *name) argument
231 drm_tegra_bo_ref(struct drm_tegra_bo *bo) argument
240 drm_tegra_bo_unref(struct drm_tegra_bo *bo) argument
247 drm_tegra_bo_get_handle(struct drm_tegra_bo *bo, uint32_t *handle) argument
258 drm_tegra_bo_map(struct drm_tegra_bo *bo, void **ptr) argument
291 drm_tegra_bo_unmap(struct drm_tegra_bo *bo) argument
308 drm_tegra_bo_get_flags(struct drm_tegra_bo *bo, uint32_t *flags) argument
332 drm_tegra_bo_set_flags(struct drm_tegra_bo *bo, uint32_t flags) argument
354 drm_tegra_bo_get_tiling(struct drm_tegra_bo *bo, struct drm_tegra_bo_tiling *tiling) argument
381 drm_tegra_bo_set_tiling(struct drm_tegra_bo *bo, const struct drm_tegra_bo_tiling *tiling) argument
[all...]
/external/libdrm/tests/planetest/
H A Dbo.c13 #include "bo.h"
16 void fill_bo(struct sp_bo *bo, uint8_t a, uint8_t r, uint8_t g, uint8_t b) argument
18 draw_rect(bo, 0, 0, bo->width, bo->height, a, r, g, b);
21 void draw_rect(struct sp_bo *bo, uint32_t x, uint32_t y, uint32_t width, argument
26 if (xmax > bo->width)
27 xmax = bo->width;
28 if (ymax > bo->height)
29 ymax = bo
54 add_fb_sp_bo(struct sp_bo *bo, uint32_t format) argument
73 map_sp_bo(struct sp_bo *bo) argument
102 struct sp_bo *bo; local
150 free_sp_bo(struct sp_bo *bo) argument
[all...]
/external/libdrm/libkms/
H A Dradeon.c82 struct radeon_bo *bo; local
110 bo = calloc(1, sizeof(*bo));
111 if (!bo)
126 bo->base.kms = kms;
127 bo->base.handle = arg.handle;
128 bo->base.size = size;
129 bo->base.pitch = pitch;
130 bo->base.offset = 0;
131 bo
143 radeon_bo_get_prop(struct kms_bo *bo, unsigned key, unsigned *out) argument
154 struct radeon_bo *bo = (struct radeon_bo *)_bo; local
190 struct radeon_bo *bo = (struct radeon_bo *)_bo; local
201 struct radeon_bo *bo = (struct radeon_bo *)_bo; local
[all...]
H A Dapi.c101 int kms_bo_get_prop(struct kms_bo *bo, unsigned key, unsigned *out) argument
105 *out = bo->pitch;
108 *out = bo->handle;
117 int kms_bo_map(struct kms_bo *bo, void **out) argument
119 return bo->kms->bo_map(bo, out);
122 int kms_bo_unmap(struct kms_bo *bo) argument
124 return bo->kms->bo_unmap(bo);
127 int kms_bo_destroy(struct kms_bo **bo) argument
[all...]
H A Dintel.c79 struct intel_bo *bo; local
93 bo = calloc(1, sizeof(*bo));
94 if (!bo)
105 free(bo);
116 bo->base.kms = kms;
117 bo->base.handle = arg.handle;
118 bo->base.size = size;
119 bo->base.pitch = pitch;
121 *out = &bo
147 intel_bo_get_prop(struct kms_bo *bo, unsigned key, unsigned *out) argument
158 struct intel_bo *bo = (struct intel_bo *)_bo; local
190 struct intel_bo *bo = (struct intel_bo *)_bo; local
198 struct intel_bo *bo = (struct intel_bo *)_bo; local
[all...]
H A Dvmwgfx.c75 struct vmwgfx_bo *bo; local
89 bo = calloc(1, sizeof(*bo));
90 if (!bo)
100 bo->base.size = req->size;
101 bo->base.pitch = width * 4;
102 bo->base.kms = kms;
105 ret = drmCommandWriteRead(bo->base.kms->fd,
113 bo->base.handle = rep->handle;
114 bo
129 vmwgfx_bo_get_prop(struct kms_bo *bo, unsigned key, unsigned *out) argument
140 struct vmwgfx_bo *bo = (struct vmwgfx_bo *)_bo; local
163 struct vmwgfx_bo *bo = (struct vmwgfx_bo *)_bo; local
171 struct vmwgfx_bo *bo = (struct vmwgfx_bo *)_bo; local
[all...]
H A Dnouveau.c80 struct nouveau_bo *bo; local
94 bo = calloc(1, sizeof(*bo));
95 if (!bo)
106 free(bo);
122 bo->base.kms = kms;
123 bo->base.handle = arg.info.handle;
124 bo->base.size = size;
125 bo->base.pitch = pitch;
126 bo
138 nouveau_bo_get_prop(struct kms_bo *bo, unsigned key, unsigned *out) argument
149 struct nouveau_bo *bo = (struct nouveau_bo *)_bo; local
172 struct nouveau_bo *bo = (struct nouveau_bo *)_bo; local
180 struct nouveau_bo *bo = (struct nouveau_bo *)_bo; local
[all...]
H A Ddumb.c76 struct dumb_bo *bo; local
91 bo = calloc(1, sizeof(*bo));
92 if (!bo)
106 bo->base.kms = kms;
107 bo->base.handle = arg.handle;
108 bo->base.size = arg.size;
109 bo->base.pitch = arg.pitch;
111 *out = &bo->base;
116 free(bo);
121 dumb_bo_get_prop(struct kms_bo *bo, unsigned key, unsigned *out) argument
132 struct dumb_bo *bo = (struct dumb_bo *)_bo; local
164 struct dumb_bo *bo = (struct dumb_bo *)_bo; local
172 struct dumb_bo *bo = (struct dumb_bo *)_bo; local
[all...]
H A Dexynos.c64 struct exynos_bo *bo; local
78 bo = calloc(1, sizeof(*bo));
79 if (!bo)
100 bo->base.kms = kms;
101 bo->base.handle = arg.handle;
102 bo->base.size = size;
103 bo->base.pitch = pitch;
105 *out = &bo->base;
110 free(bo);
115 exynos_bo_get_prop(struct kms_bo *bo, unsigned key, unsigned *out) argument
126 struct exynos_bo *bo = (struct exynos_bo *)_bo; local
158 struct exynos_bo *bo = (struct exynos_bo *)_bo; local
166 struct exynos_bo *bo = (struct exynos_bo *)_bo; local
[all...]
/external/libdrm/intel/
H A Dintel_bufmgr.c88 drm_intel_bo_reference(drm_intel_bo *bo) argument
90 bo->bufmgr->bo_reference(bo);
94 drm_intel_bo_unreference(drm_intel_bo *bo) argument
96 if (bo == NULL)
99 bo->bufmgr->bo_unreference(bo);
115 drm_intel_bo_subdata(drm_intel_bo *bo, unsigned long offset, argument
118 return bo->bufmgr->bo_subdata(bo, offse
122 drm_intel_bo_get_subdata(drm_intel_bo *bo, unsigned long offset, unsigned long size, void *data) argument
141 drm_intel_bo_wait_rendering(drm_intel_bo *bo) argument
153 drm_intel_bo_exec(drm_intel_bo *bo, int used, drm_clip_rect_t * cliprects, int num_cliprects, int DR4) argument
160 drm_intel_bo_mrb_exec(drm_intel_bo *bo, int used, drm_clip_rect_t *cliprects, int num_cliprects, int DR4, unsigned int rings) argument
192 drm_intel_bo_flink(drm_intel_bo *bo, uint32_t * name) argument
201 drm_intel_bo_emit_reloc(drm_intel_bo *bo, uint32_t offset, drm_intel_bo *target_bo, uint32_t target_offset, uint32_t read_domains, uint32_t write_domain) argument
212 drm_intel_bo_emit_reloc_fence(drm_intel_bo *bo, uint32_t offset, drm_intel_bo *target_bo, uint32_t target_offset, uint32_t read_domains, uint32_t write_domain) argument
223 drm_intel_bo_pin(drm_intel_bo *bo, uint32_t alignment) argument
232 drm_intel_bo_unpin(drm_intel_bo *bo) argument
241 drm_intel_bo_set_tiling(drm_intel_bo *bo, uint32_t * tiling_mode, uint32_t stride) argument
252 drm_intel_bo_get_tiling(drm_intel_bo *bo, uint32_t * tiling_mode, uint32_t * swizzle_mode) argument
264 drm_intel_bo_disable_reuse(drm_intel_bo *bo) argument
272 drm_intel_bo_is_reusable(drm_intel_bo *bo) argument
280 drm_intel_bo_busy(drm_intel_bo *bo) argument
288 drm_intel_bo_madvise(drm_intel_bo *bo, int madv) argument
296 drm_intel_bo_references(drm_intel_bo *bo, drm_intel_bo *target_bo) argument
[all...]
H A Dintel_bufmgr_priv.h99 void (*bo_reference) (drm_intel_bo *bo);
105 void (*bo_unreference) (drm_intel_bo *bo);
114 int (*bo_map) (drm_intel_bo *bo, int write_enable);
120 int (*bo_unmap) (drm_intel_bo *bo);
128 int (*bo_subdata) (drm_intel_bo *bo, unsigned long offset,
137 int (*bo_get_subdata) (drm_intel_bo *bo, unsigned long offset,
147 void (*bo_wait_rendering) (drm_intel_bo *bo);
160 * \param bo Buffer to write the relocation into.
174 int (*bo_emit_reloc) (drm_intel_bo *bo, uint32_t offset,
177 int (*bo_emit_reloc_fence)(drm_intel_bo *bo, uint32_
[all...]
/external/mesa3d/src/gallium/winsys/i915/drm/
H A Di915_drm_fence.c11 * been idled. If bo is NULL fence has expired.
16 drm_intel_bo *bo; member in struct:i915_drm_fence
21 i915_drm_fence_create(drm_intel_bo *bo) argument
26 /* bo is null if fence already expired */
27 if (bo) {
28 drm_intel_bo_reference(bo);
29 fence->bo = bo;
44 if (old->bo)
45 drm_intel_bo_unreference(old->bo);
[all...]
/external/drm_hwcomposer/
H A Ddrmgenericimporter.cpp88 int DrmGenericImporter::ImportBuffer(buffer_handle_t handle, hwc_drm_bo_t *bo) { argument
95 ALOGE("Could not get drm bo from handle");
106 memset(bo, 0, sizeof(hwc_drm_bo_t));
107 bo->width = gr_handle->width;
108 bo->height = gr_handle->height;
109 bo->format = ConvertHalFormatToDrm(gr_handle->format);
110 bo->pitches[0] = gr_handle->stride;
111 bo->gem_handles[0] = gem_handle;
112 bo->offsets[0] = 0;
114 ret = drmModeAddFB2(drm_->fd(), bo
124 ReleaseBuffer(hwc_drm_bo_t *bo) argument
[all...]
/external/mesa3d/src/mesa/drivers/dri/nouveau/
H A Dnouveau_scratch.c31 * Returns a pointer to a chunk of 'size' bytes long GART memory. 'bo'
36 struct nouveau_bo **bo, unsigned *offset)
44 nouveau_bo_ref(scratch->bo[scratch->index], bo);
52 nouveau_bo_ref(scratch->bo[scratch->index], bo);
54 nouveau_bo_map(*bo, NOUVEAU_BO_WR, client);
55 buf = scratch->buf = (*bo)->map;
62 NOUVEAU_BO_MAP, 0, size, NULL, bo); local
64 nouveau_bo_map(*bo, NOUVEAU_BO_W
35 nouveau_get_scratch(struct gl_context *ctx, unsigned size, struct nouveau_bo **bo, unsigned *offset) argument
[all...]

Completed in 393 milliseconds

1234567891011>>