Lines Matching full: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); in drm_exec_init()
81 exec->max_objects = exec->objects ? PAGE_SIZE / sizeof(void *) : 0; in drm_exec_init()
92 * Unlock all locked objects, drop the references to objects and free all memory
98 kvfree(exec->objects); in drm_exec_fini()
112 * objects locked.
141 tmp = kvrealloc(exec->objects, size, size + PAGE_SIZE, in drm_exec_obj_locked()
146 exec->objects = tmp; in drm_exec_obj_locked()
150 exec->objects[exec->num_objects++] = obj; in drm_exec_obj_locked()
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) { in drm_exec_unlock_obj()
262 exec->objects[i - 1] = exec->objects[i]; in drm_exec_unlock_obj()
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, in drm_exec_prepare_array() argument
323 ret = drm_exec_prepare_obj(exec, objects[i], num_fences); in drm_exec_prepare_array()