Lines Matching defs:objects
11 * multiple GEM objects while preparing hardware operations (e.g. command
15 * unlocks all previously locked GEM objects and locks the contended one first
16 * before locking any further objects.
53 /* Unlock all objects and drop references */
72 * @nr: the initial # of objects
74 * Initialize the object and make sure that we can track locked objects.
76 * If nr is non-zero then it is used as the initial objects table size.
85 exec->objects = kvmalloc_array(nr, sizeof(void *), GFP_KERNEL);
88 exec->max_objects = exec->objects ? nr : 0;
99 * Unlock all locked objects, drop the references to objects and free all memory
105 kvfree(exec->objects);
119 * objects locked.
148 tmp = kvrealloc(exec->objects, size, size + PAGE_SIZE,
153 exec->objects = tmp;
157 exec->objects[exec->num_objects++] = obj;
257 * Unlock the GEM object and remove it from the collection of locked objects.
258 * Should only be used to unlock the most recently locked objects. It's not time
259 * efficient to unlock objects locked long ago.
266 if (exec->objects[i] == obj) {
269 exec->objects[i - 1] = exec->objects[i];
310 * drm_exec_prepare_array - helper to prepare an array of objects
312 * @objects: array of GEM object to prepare
313 * @num_objects: number of GEM objects in the array
316 * Prepares all GEM objects in an array, aborts on first error.
323 struct drm_gem_object **objects,
330 ret = drm_exec_prepare_obj(exec, objects[i], num_fences);