Lines Matching refs: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 */
73 * Initialize the object and make sure that we can track locked objects.
78 exec->objects = kmalloc(PAGE_SIZE, GFP_KERNEL);
81 exec->max_objects = exec->objects ? PAGE_SIZE / sizeof(void *) : 0;
92 * Unlock all locked objects, drop the references to objects and free all memory
98 kvfree(exec->objects);
112 * objects locked.
141 tmp = kvrealloc(exec->objects, size, size + PAGE_SIZE,
146 exec->objects = tmp;
150 exec->objects[exec->num_objects++] = obj;
250 * Unlock the GEM object and remove it from the collection of locked objects.
251 * Should only be used to unlock the most recently locked objects. It's not time
252 * efficient to unlock objects locked long ago.
259 if (exec->objects[i] == obj) {
262 exec->objects[i - 1] = exec->objects[i];
303 * drm_exec_prepare_array - helper to prepare an array of objects
305 * @objects: array of GEM object to prepare
306 * @num_objects: number of GEM objects in the array
309 * Prepares all GEM objects in an array, aborts on first error.
316 struct drm_gem_object **objects,
323 ret = drm_exec_prepare_obj(exec, objects[i], num_fences);