Lines Matching refs:bos

35 	size_t sz = size_vstruct(nr_bos, sizeof(submit->bos[0]), sizeof(*submit));  in submit_create()
74 submit->bos[i].flags = bo->flags; in submit_lookup_objects()
81 submit->bos[i].va = bo->presumed; in submit_lookup_objects()
101 submit->bos[i].obj = to_etnaviv_bo(obj); in submit_lookup_objects()
113 if (submit->bos[i].flags & BO_LOCKED) { in submit_unlock_object()
114 struct drm_gem_object *obj = &submit->bos[i].obj->base; in submit_unlock_object()
117 submit->bos[i].flags &= ~BO_LOCKED; in submit_unlock_object()
128 struct drm_gem_object *obj = &submit->bos[i].obj->base; in submit_lock_objects()
135 if (!(submit->bos[i].flags & BO_LOCKED)) { in submit_lock_objects()
142 submit->bos[i].flags |= BO_LOCKED; in submit_lock_objects()
160 obj = &submit->bos[contended].obj->base; in submit_lock_objects()
165 submit->bos[contended].flags |= BO_LOCKED; in submit_lock_objects()
179 struct etnaviv_gem_submit_bo *bo = &submit->bos[i]; in submit_fence_sync()
204 struct drm_gem_object *obj = &submit->bos[i].obj->base; in submit_attach_object_fences()
205 bool write = submit->bos[i].flags & ETNA_SUBMIT_BO_WRITE; in submit_attach_object_fences()
218 struct etnaviv_gem_object *etnaviv_obj = submit->bos[i].obj; in submit_pin_objects()
223 submit->bos[i].va); in submit_pin_objects()
230 submit->bos[i].va != mapping->iova) { in submit_pin_objects()
237 submit->bos[i].flags |= BO_PINNED; in submit_pin_objects()
238 submit->bos[i].mapping = mapping; in submit_pin_objects()
253 *bo = &submit->bos[idx]; in submit_bo()
378 struct etnaviv_gem_object *etnaviv_obj = submit->bos[i].obj; in submit_cleanup()
381 if (submit->bos[i].flags & BO_PINNED) { in submit_cleanup()
382 etnaviv_gem_mapping_unreference(submit->bos[i].mapping); in submit_cleanup()
384 submit->bos[i].mapping = NULL; in submit_cleanup()
385 submit->bos[i].flags &= ~BO_PINNED; in submit_cleanup()
419 struct drm_etnaviv_gem_submit_bo *bos; in etnaviv_ioctl_gem_submit() local
469 bos = kvmalloc_array(args->nr_bos, sizeof(*bos), GFP_KERNEL); in etnaviv_ioctl_gem_submit()
473 if (!bos || !relocs || !pmrs || !stream) { in etnaviv_ioctl_gem_submit()
478 ret = copy_from_user(bos, u64_to_user_ptr(args->bos), in etnaviv_ioctl_gem_submit()
479 args->nr_bos * sizeof(*bos)); in etnaviv_ioctl_gem_submit()
538 ret = submit_lookup_objects(submit, file, bos, args->nr_bos); in etnaviv_ioctl_gem_submit()
627 kvfree(bos); in etnaviv_ioctl_gem_submit()