Home
last modified time | relevance | path

Searched refs:kbo (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/gpu/drm/panthor/
H A Dpanthor_gem.c79 struct panthor_kernel_bo *kbo; in panthor_kernel_bo_create() local
86 kbo = kzalloc(sizeof(*kbo), GFP_KERNEL); in panthor_kernel_bo_create()
87 if (!kbo) in panthor_kernel_bo_create()
97 kbo->obj = &obj->base; in panthor_kernel_bo_create()
107 ret = panthor_vm_alloc_va(vm, gpu_va, size, &kbo->va_node); in panthor_kernel_bo_create()
111 ret = panthor_vm_map_bo_range(vm, bo, 0, size, kbo->va_node.start, vm_map_flags); in panthor_kernel_bo_create()
115 kbo->vm = panthor_vm_get(vm); in panthor_kernel_bo_create()
119 return kbo; in panthor_kernel_bo_create()
122 panthor_vm_free_va(vm, &kbo->va_node); in panthor_kernel_bo_create()
128 kfree(kbo); in panthor_kernel_bo_create()