Lines Matching defs:index
55 * drm_exec_obj() - Return the object for a give drm_exec index
57 * @index: The index.
59 * Return: Pointer to the locked object corresponding to @index if
60 * index is within the number of locked objects. NULL otherwise.
63 drm_exec_obj(struct drm_exec *exec, unsigned long index)
65 return index < exec->num_objects ? exec->objects[index] : NULL;
71 * @index: unsigned long index for the iteration
76 #define drm_exec_for_each_locked_object(exec, index, obj) \
77 for ((index) = 0; ((obj) = drm_exec_obj(exec, index)); ++(index))
83 * @index: unsigned long index for the iteration
87 * reverse locking order. Note that @index may go below zero and wrap,
90 #define drm_exec_for_each_locked_object_reverse(exec, index, obj) \
91 for ((index) = (exec)->num_objects - 1; \
92 ((obj) = drm_exec_obj(exec, index)); --(index))