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()
121 struct kgsl_bo *kgsl_bo = to_kgsl_bo(bo); in kgsl_bo_destroy() local
122 free(kgsl_bo); in kgsl_bo_destroy()
161 struct kgsl_bo *kgsl_bo; in kgsl_bo_from_handle() local
165 kgsl_bo = calloc(1, sizeof(*kgsl_bo)); in kgsl_bo_from_handle()
166 if (!kgsl_bo) in kgsl_bo_from_handle()
169 bo = &kgsl_bo->base; in kgsl_bo_from_handle()
172 for (i = 0; i < ARRAY_SIZE(kgsl_bo->list); i++) in kgsl_bo_from_handle()
173 list_inithead(&kgsl_bo->list[i]); in kgsl_bo_from_handle()
201 struct kgsl_bo *kgsl_bo = to_kgsl_bo(bo); in fd_bo_from_fbdev() local
210 kgsl_bo->gpuaddr = req.gpuaddr; in fd_bo_from_fbdev()
221 uint32_t kgsl_bo_gpuaddr(struct kgsl_bo *kgsl_bo, uint32_t offset) in kgsl_bo_gpuaddr() argument
223 struct fd_bo *bo = &kgsl_bo->base; in kgsl_bo_gpuaddr()
224 if (!kgsl_bo->gpuaddr) { in kgsl_bo_gpuaddr()
230 ret = bo_alloc(kgsl_bo); in kgsl_bo_gpuaddr()
242 kgsl_bo->gpuaddr = req.gpuaddr[0]; in kgsl_bo_gpuaddr()
244 return kgsl_bo->gpuaddr + offset; in kgsl_bo_gpuaddr()
270 void kgsl_bo_set_timestamp(struct kgsl_bo *kgsl_bo, uint32_t timestamp) in kgsl_bo_set_timestamp() argument
272 struct fd_bo *bo = &kgsl_bo->base; in kgsl_bo_set_timestamp()
288 uint32_t kgsl_bo_get_timestamp(struct kgsl_bo *kgsl_bo) in kgsl_bo_get_timestamp() argument
290 struct fd_bo *bo = &kgsl_bo->base; in kgsl_bo_get_timestamp()