Lines Matching full:exec
56 * @exec: Pointer to the drm_exec context
63 drm_exec_obj(struct drm_exec *exec, unsigned long index) in drm_exec_obj() argument
65 return index < exec->num_objects ? exec->objects[index] : NULL; in drm_exec_obj()
70 * @exec: drm_exec object
76 #define drm_exec_for_each_locked_object(exec, index, obj) \ argument
77 for ((index) = 0; ((obj) = drm_exec_obj(exec, index)); ++(index))
82 * @exec: drm_exec object
90 #define drm_exec_for_each_locked_object_reverse(exec, index, obj) \ argument
91 for ((index) = (exec)->num_objects - 1; \
92 ((obj) = drm_exec_obj(exec, index)); --(index))
96 * @exec: drm_exec object
105 #define drm_exec_until_all_locked(exec) \ argument
110 drm_exec_cleanup(exec); \
115 * @exec: drm_exec object
120 #define drm_exec_retry_on_contention(exec) \ argument
122 if (unlikely(drm_exec_is_contended(exec))) \
128 * @exec: drm_exec object
133 static inline bool drm_exec_is_contended(struct drm_exec *exec) in drm_exec_is_contended() argument
135 return !!exec->contended; in drm_exec_is_contended()
138 void drm_exec_init(struct drm_exec *exec, u32 flags, unsigned nr);
139 void drm_exec_fini(struct drm_exec *exec);
140 bool drm_exec_cleanup(struct drm_exec *exec);
141 int drm_exec_lock_obj(struct drm_exec *exec, struct drm_gem_object *obj);
142 void drm_exec_unlock_obj(struct drm_exec *exec, struct drm_gem_object *obj);
143 int drm_exec_prepare_obj(struct drm_exec *exec, struct drm_gem_object *obj,
145 int drm_exec_prepare_array(struct drm_exec *exec,