/external/libdrm/tests/modetest/ |
H A D | buffers.h | 32 struct bo; 34 struct bo *bo_create(int fd, unsigned int format, 38 void bo_destroy(struct bo *bo);
|
H A D | buffers.c | 47 struct bo struct 61 static struct bo * 65 struct bo *bo; local 68 bo = calloc(1, sizeof(*bo)); 69 if (bo == NULL) { 83 free(bo); 87 bo->fd = fd; 88 bo 95 bo_map(struct bo *bo, void **out) argument 119 bo_unmap(struct bo *bo) argument 135 struct bo *bo; local 332 bo_destroy(struct bo *bo) argument [all...] |
/external/libdrm/freedreno/ |
H A D | freedreno_bo.c | 38 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 /* don't break the bucket if this bo wa 66 struct fd_bo *bo; local 96 struct fd_bo *bo; local 130 is_idle(struct fd_bo *bo) argument 141 struct fd_bo *bo = NULL; local 176 struct fd_bo *bo = NULL; local 210 struct fd_bo *bo = NULL; local 231 struct fd_bo *bo; local 260 struct fd_bo *bo; local 288 fd_bo_ref(struct fd_bo *bo) argument 294 fd_bo_del(struct fd_bo *bo) argument 331 bo_del(struct fd_bo *bo) argument 353 fd_bo_get_name(struct fd_bo *bo, uint32_t *name) argument 377 fd_bo_handle(struct fd_bo *bo) argument 382 fd_bo_dmabuf(struct fd_bo *bo) argument 398 fd_bo_size(struct fd_bo *bo) argument 403 fd_bo_map(struct fd_bo *bo) argument 425 fd_bo_cpu_prep(struct fd_bo *bo, struct fd_pipe *pipe, uint32_t op) argument 430 fd_bo_cpu_fini(struct fd_bo *bo) argument [all...] |
/external/libdrm/rockchip/ |
H A D | rockchip_drm.c | 94 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/planetest/ |
H A D | bo.c | 13 #include "bo.h" 23 static void draw_rect_yuv(struct sp_bo *bo, uint32_t x, uint32_t y, uint32_t width, argument 28 if (xmax > bo->width) 29 xmax = bo->width; 30 if (ymax > bo->height) 31 ymax = bo->height; 34 uint8_t *luma = bo->map_addr + i * bo->pitch; 41 uint8_t *chroma = bo->map_addr + (i + height) * bo 50 fill_bo(struct sp_bo *bo, uint8_t a, uint8_t r, uint8_t g, uint8_t b) argument 58 draw_rect(struct sp_bo *bo, uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint8_t a, uint8_t r, uint8_t g, uint8_t b) argument 91 add_fb_sp_bo(struct sp_bo *bo, uint32_t format) argument 115 map_sp_bo(struct sp_bo *bo) argument 157 struct sp_bo *bo; local 209 free_sp_bo(struct sp_bo *bo) argument [all...] |
/external/libdrm/tests/radeon/ |
H A D | rbo.c | 39 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 D | radeon_ttm.c | 32 /* 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 D | rbo.h | 44 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 D | omap_drm.c | 60 /* 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) { 200 struct omap_bo *bo = NULL; local 262 omap_bo_ref(struct omap_bo *bo) argument 269 get_buffer_info(struct omap_bo *bo) argument 291 struct omap_bo *bo = NULL; local 325 struct omap_bo *bo = NULL; local 354 omap_bo_del(struct omap_bo *bo) argument 387 omap_bo_get_name(struct omap_bo *bo, uint32_t *name) argument 408 omap_bo_handle(struct omap_bo *bo) argument 416 omap_bo_dmabuf(struct omap_bo *bo) argument 435 omap_bo_size(struct omap_bo *bo) argument 443 omap_bo_map(struct omap_bo *bo) argument 459 omap_bo_cpu_prep(struct omap_bo *bo, enum omap_gem_op op) argument 469 omap_bo_cpu_fini(struct omap_bo *bo, enum omap_gem_op op) argument [all...] |
/external/libdrm/intel/ |
H A D | intel_bufmgr.c | 90 drm_intel_bo_reference(drm_intel_bo *bo) argument 92 bo->bufmgr->bo_reference(bo); 96 drm_intel_bo_unreference(drm_intel_bo *bo) argument 98 if (bo == NULL) 101 bo->bufmgr->bo_unreference(bo); 117 drm_intel_bo_subdata(drm_intel_bo *bo, unsigned long offset, argument 120 return bo->bufmgr->bo_subdata(bo, offse 124 drm_intel_bo_get_subdata(drm_intel_bo *bo, unsigned long offset, unsigned long size, void *data) argument 143 drm_intel_bo_wait_rendering(drm_intel_bo *bo) argument 155 drm_intel_bo_exec(drm_intel_bo *bo, int used, drm_clip_rect_t * cliprects, int num_cliprects, int DR4) argument 162 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 194 drm_intel_bo_flink(drm_intel_bo *bo, uint32_t * name) argument 203 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 214 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 225 drm_intel_bo_pin(drm_intel_bo *bo, uint32_t alignment) argument 234 drm_intel_bo_unpin(drm_intel_bo *bo) argument 243 drm_intel_bo_set_tiling(drm_intel_bo *bo, uint32_t * tiling_mode, uint32_t stride) argument 254 drm_intel_bo_get_tiling(drm_intel_bo *bo, uint32_t * tiling_mode, uint32_t * swizzle_mode) argument 266 drm_intel_bo_set_softpin_offset(drm_intel_bo *bo, uint64_t offset) argument 275 drm_intel_bo_disable_reuse(drm_intel_bo *bo) argument 283 drm_intel_bo_is_reusable(drm_intel_bo *bo) argument 291 drm_intel_bo_busy(drm_intel_bo *bo) argument 299 drm_intel_bo_madvise(drm_intel_bo *bo, int madv) argument 307 drm_intel_bo_use_48b_address_range(drm_intel_bo *bo, uint32_t enable) argument 318 drm_intel_bo_references(drm_intel_bo *bo, drm_intel_bo *target_bo) argument [all...] |
H A D | intel_bufmgr_priv.h | 99 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); 163 * \param bo Buffer to set the use_48b_address_range flag. 166 void (*bo_use_48b_address_range) (drm_intel_bo *bo, uint32_t enable); 174 * \param bo Buffe [all...] |
/external/drm_gralloc/ |
H A D | gralloc_drm.cpp | 152 * 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 D | radeon_bo_gem.h | 40 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 D | radeon_bo.h | 36 /* 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...] |
/external/libdrm/tegra/ |
H A D | tegra.c | 42 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); 112 struct drm_tegra_bo *bo; local 118 bo = calloc(1, sizeof(*bo)); 149 struct drm_tegra_bo *bo; local 172 struct drm_tegra_bo *bo; local 201 drm_tegra_bo_name_get(struct drm_tegra_bo *bo, uint32_t *name) argument 224 drm_tegra_bo_ref(struct drm_tegra_bo *bo) argument 232 drm_tegra_bo_unref(struct drm_tegra_bo *bo) argument 238 drm_tegra_bo_get_handle(struct drm_tegra_bo *bo, uint32_t *handle) argument 248 drm_tegra_bo_map(struct drm_tegra_bo *bo, void **ptr) argument 280 drm_tegra_bo_unmap(struct drm_tegra_bo *bo) argument 296 drm_tegra_bo_get_flags(struct drm_tegra_bo *bo, uint32_t *flags) argument 319 drm_tegra_bo_set_flags(struct drm_tegra_bo *bo, uint32_t flags) argument 340 drm_tegra_bo_get_tiling(struct drm_tegra_bo *bo, struct drm_tegra_bo_tiling *tiling) argument 366 drm_tegra_bo_set_tiling(struct drm_tegra_bo *bo, const struct drm_tegra_bo_tiling *tiling) argument [all...] |
/external/libdrm/libkms/ |
H A D | radeon.c | 82 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 D | api.c | 104 int kms_bo_get_prop(struct kms_bo *bo, unsigned key, unsigned *out) argument 108 *out = bo->pitch; 111 *out = bo->handle; 120 int kms_bo_map(struct kms_bo *bo, void **out) argument 122 return bo->kms->bo_map(bo, out); 125 int kms_bo_unmap(struct kms_bo *bo) argument 127 return bo->kms->bo_unmap(bo); 130 int kms_bo_destroy(struct kms_bo **bo) argument [all...] |
H A D | intel.c | 79 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 D | vmwgfx.c | 75 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 D | nouveau.c | 80 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 D | dumb.c | 76 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...] |
/external/mesa3d/src/gallium/winsys/i915/drm/ |
H A D | i915_drm_fence.c | 11 * 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/libdrm/amdgpu/ |
H A D | amdgpu_bo.c | 56 drm_private void amdgpu_bo_free_internal(amdgpu_bo_handle bo) argument 59 pthread_mutex_lock(&bo->dev->bo_table_mutex); 60 util_hash_table_remove(bo->dev->bo_handles, 61 (void*)(uintptr_t)bo->handle); 62 if (bo->flink_name) { 63 util_hash_table_remove(bo->dev->bo_flink_names, 64 (void*)(uintptr_t)bo->flink_name); 66 pthread_mutex_unlock(&bo->dev->bo_table_mutex); 69 if (bo->cpu_map_count > 0) { 70 bo 83 struct amdgpu_bo *bo; local 124 amdgpu_bo_set_metadata(amdgpu_bo_handle bo, struct amdgpu_bo_metadata *info) argument 147 amdgpu_bo_query_info(amdgpu_bo_handle bo, struct amdgpu_bo_info *info) argument 198 amdgpu_add_handle_to_table(amdgpu_bo_handle bo) argument 206 amdgpu_bo_export_flink(amdgpu_bo_handle bo) argument 254 amdgpu_bo_export(amdgpu_bo_handle bo, enum amdgpu_bo_handle_type type, uint32_t *shared_handle) argument 288 struct amdgpu_bo *bo = NULL; local 427 amdgpu_bo_cpu_map(amdgpu_bo_handle bo, void **cpu) argument 475 amdgpu_bo_cpu_unmap(amdgpu_bo_handle bo) argument 509 amdgpu_bo_wait_for_idle(amdgpu_bo_handle bo, uint64_t timeout_ns, bool *busy) argument 538 struct amdgpu_bo *bo; local 686 amdgpu_bo_va_op(amdgpu_bo_handle bo, uint64_t offset, uint64_t size, uint64_t addr, uint64_t flags, uint32_t ops) argument [all...] |
/external/libdrm/freedreno/msm/ |
H A D | msm_bo.c | 37 struct fd_bo *bo = &msm_bo->base; local 40 .handle = bo->handle, 48 ret = drmCommandWriteRead(bo->dev->fd, DRM_MSM_GEM_INFO, 61 static int msm_bo_offset(struct fd_bo *bo, uint64_t *offset) argument 63 struct msm_bo *msm_bo = to_msm_bo(bo); 71 static int msm_bo_cpu_prep(struct fd_bo *bo, struct fd_pipe *pipe, uint32_t op) argument 74 .handle = bo->handle, 80 return drmCommandWrite(bo->dev->fd, DRM_MSM_GEM_CPU_PREP, &req, sizeof(req)); 83 static void msm_bo_cpu_fini(struct fd_bo *bo) argument 86 .handle = bo 92 msm_bo_destroy(struct fd_bo *bo) argument 131 struct fd_bo *bo; local [all...] |
/external/drm_hwcomposer/ |
H A D | platformdrmgeneric.cpp | 88 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...] |