• Home
  • Raw
  • Download

Lines Matching refs:kgsl_bo

48 static int bo_alloc(struct kgsl_bo *kgsl_bo)  in bo_alloc()  argument
50 struct fd_bo *bo = &kgsl_bo->base; in bo_alloc()
51 if (!kgsl_bo->offset) { in bo_alloc()
68 kgsl_bo->offset = req.offset; in bo_alloc()
76 struct kgsl_bo *kgsl_bo = to_kgsl_bo(bo); in kgsl_bo_offset() local
77 int ret = bo_alloc(kgsl_bo); in kgsl_bo_offset()
80 *offset = kgsl_bo->offset; in kgsl_bo_offset()
126 struct kgsl_bo *kgsl_bo = to_kgsl_bo(bo); in kgsl_bo_destroy() local
127 free(kgsl_bo); in kgsl_bo_destroy()
167 struct kgsl_bo *kgsl_bo; in kgsl_bo_from_handle() local
171 kgsl_bo = calloc(1, sizeof(*kgsl_bo)); in kgsl_bo_from_handle()
172 if (!kgsl_bo) in kgsl_bo_from_handle()
175 bo = &kgsl_bo->base; in kgsl_bo_from_handle()
178 for (i = 0; i < ARRAY_SIZE(kgsl_bo->list); i++) in kgsl_bo_from_handle()
179 list_inithead(&kgsl_bo->list[i]); in kgsl_bo_from_handle()
207 struct kgsl_bo *kgsl_bo = to_kgsl_bo(bo); in fd_bo_from_fbdev() local
216 kgsl_bo->gpuaddr = req.gpuaddr; in fd_bo_from_fbdev()
227 drm_private uint32_t kgsl_bo_gpuaddr(struct kgsl_bo *kgsl_bo, uint32_t offset) in kgsl_bo_gpuaddr() argument
229 struct fd_bo *bo = &kgsl_bo->base; in kgsl_bo_gpuaddr()
230 if (!kgsl_bo->gpuaddr) { in kgsl_bo_gpuaddr()
236 ret = bo_alloc(kgsl_bo); in kgsl_bo_gpuaddr()
248 kgsl_bo->gpuaddr = req.gpuaddr[0]; in kgsl_bo_gpuaddr()
250 return kgsl_bo->gpuaddr + offset; in kgsl_bo_gpuaddr()
276 drm_private void kgsl_bo_set_timestamp(struct kgsl_bo *kgsl_bo, in kgsl_bo_set_timestamp() argument
279 struct fd_bo *bo = &kgsl_bo->base; in kgsl_bo_set_timestamp()
295 drm_private uint32_t kgsl_bo_get_timestamp(struct kgsl_bo *kgsl_bo) in kgsl_bo_get_timestamp() argument
297 struct fd_bo *bo = &kgsl_bo->base; in kgsl_bo_get_timestamp()