HomeSort by relevance Sort by last modified time
    Searched refs:bo (Results 1 - 25 of 387) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/libdrm/tests/modetest/
buffers.h 32 struct bo;
34 struct bo *bo_create(int fd, unsigned int format,
38 void bo_destroy(struct bo *bo);
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->handle = arg.handle
135 struct bo *bo; local
    [all...]
  /external/libdrm/freedreno/
freedreno_bo.c 38 static void bo_del(struct fd_bo *bo);
41 static void set_name(struct fd_bo *bo, uint32_t name)
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 was found in one *
66 struct fd_bo *bo; local
96 struct fd_bo *bo; local
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
    [all...]
  /external/libdrm/rockchip/
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
197 struct rockchip_bo *bo; local
    [all...]
  /external/libdrm/tests/planetest/
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,
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->pitch
157 struct sp_bo *bo; local
    [all...]
  /external/libdrm/tests/radeon/
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->alignment = alignment
    [all...]
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);
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/
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
291 struct omap_bo *bo = NULL; local
325 struct omap_bo *bo = NULL; local
    [all...]
  /external/libdrm/intel/
intel_bufmgr.c 90 drm_intel_bo_reference(drm_intel_bo *bo)
92 bo->bufmgr->bo_reference(bo);
96 drm_intel_bo_unreference(drm_intel_bo *bo)
98 if (bo == NULL)
101 bo->bufmgr->bo_unreference(bo);
117 drm_intel_bo_subdata(drm_intel_bo *bo, unsigned long offset,
120 return bo->bufmgr->bo_subdata(bo, offset, size, data)
    [all...]
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,
143 * This is not required for any access to the BO by bo_map,
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)
    [all...]
  /external/drm_gralloc/
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
330 struct gralloc_drm_bo_t *bo = handle->data; local
    [all...]
  /external/libdrm/radeon/
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);
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_t *tiling_flags, uint32_t *pitch)
    [all...]
  /external/libdrm/tegra/
tegra.c 42 static void drm_tegra_bo_free(struct drm_tegra_bo *bo)
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
    [all...]
  /external/libdrm/libkms/
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->map_count = 0
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...]
api.c 104 int kms_bo_get_prop(struct kms_bo *bo, unsigned key, unsigned *out)
108 *out = bo->pitch;
111 *out = bo->handle;
120 int kms_bo_map(struct kms_bo *bo, void **out)
122 return bo->kms->bo_map(bo, out);
125 int kms_bo_unmap(struct kms_bo *bo)
127 return bo->kms->bo_unmap(bo);
130 int kms_bo_destroy(struct kms_bo **bo)
    [all...]
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->base
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...]
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->map_handle = rep->map_handle
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...]
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->map_handle = arg.info.map_handle
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...]
  /frameworks/native/opengl/libagl/
BufferObjectManager.cpp 47 buffer_t* bo = mBuffers.valueAt(i); local
48 free(bo->data);
49 delete bo;
60 buffer_t* bo = new buffer_t; local
61 bo->data = 0;
62 bo->usage = GL_STATIC_DRAW;
63 bo->size = 0;
64 bo->name = buffer;
65 mBuffers.add(buffer, bo);
66 return bo;
93 buffer_t* bo = mBuffers.valueAt(index); local
    [all...]
  /external/mesa3d/src/gallium/winsys/i915/drm/
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)
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/
amdgpu_bo.c 56 drm_private void amdgpu_bo_free_internal(amdgpu_bo_handle bo)
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->cpu_map_count = 1
83 struct amdgpu_bo *bo; local
288 struct amdgpu_bo *bo = NULL; local
538 struct amdgpu_bo *bo; local
    [all...]
  /external/libdrm/freedreno/msm/
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)
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)
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)
86 .handle = bo->handle
131 struct fd_bo *bo; local
    [all...]
  /external/drm_hwcomposer/
platformdrmgeneric.cpp 88 int DrmGenericImporter::ImportBuffer(buffer_handle_t handle, hwc_drm_bo_t *bo) {
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->width, bo->height, bo->format
    [all...]

Completed in 1339 milliseconds

1 2 3 4 5 6 7 8 91011>>