Lines Matching refs:syncobjs

869 static signed long drm_syncobj_array_wait_timeout(struct drm_syncobj **syncobjs,  in drm_syncobj_array_wait_timeout()  argument
910 fence = drm_syncobj_fence_get(syncobjs[i]); in drm_syncobj_array_wait_timeout()
948 drm_syncobj_fence_add_wait(syncobjs[i], &entries[i]); in drm_syncobj_array_wait_timeout()
998 drm_syncobj_remove_wait(syncobjs[i], &entries[i]); in drm_syncobj_array_wait_timeout()
1049 struct drm_syncobj **syncobjs, bool timeline) in drm_syncobj_array_wait() argument
1056 timeout = drm_syncobj_array_wait_timeout(syncobjs, in drm_syncobj_array_wait()
1066 timeout = drm_syncobj_array_wait_timeout(syncobjs, in drm_syncobj_array_wait()
1084 struct drm_syncobj **syncobjs; in drm_syncobj_array_find() local
1097 syncobjs = kmalloc_array(count_handles, sizeof(*syncobjs), GFP_KERNEL); in drm_syncobj_array_find()
1098 if (syncobjs == NULL) { in drm_syncobj_array_find()
1104 syncobjs[i] = drm_syncobj_find(file_private, handles[i]); in drm_syncobj_array_find()
1105 if (!syncobjs[i]) { in drm_syncobj_array_find()
1112 *syncobjs_out = syncobjs; in drm_syncobj_array_find()
1117 drm_syncobj_put(syncobjs[i]); in drm_syncobj_array_find()
1118 kfree(syncobjs); in drm_syncobj_array_find()
1125 static void drm_syncobj_array_free(struct drm_syncobj **syncobjs, in drm_syncobj_array_free() argument
1130 drm_syncobj_put(syncobjs[i]); in drm_syncobj_array_free()
1131 kfree(syncobjs); in drm_syncobj_array_free()
1139 struct drm_syncobj **syncobjs; in drm_syncobj_wait_ioctl() local
1155 &syncobjs); in drm_syncobj_wait_ioctl()
1160 args, NULL, syncobjs, false); in drm_syncobj_wait_ioctl()
1162 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_wait_ioctl()
1172 struct drm_syncobj **syncobjs; in drm_syncobj_timeline_wait_ioctl() local
1189 &syncobjs); in drm_syncobj_timeline_wait_ioctl()
1194 NULL, args, syncobjs, true); in drm_syncobj_timeline_wait_ioctl()
1196 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_timeline_wait_ioctl()
1207 struct drm_syncobj **syncobjs; in drm_syncobj_reset_ioctl() local
1223 &syncobjs); in drm_syncobj_reset_ioctl()
1228 drm_syncobj_replace_fence(syncobjs[i], NULL); in drm_syncobj_reset_ioctl()
1230 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_reset_ioctl()
1240 struct drm_syncobj **syncobjs; in drm_syncobj_signal_ioctl() local
1256 &syncobjs); in drm_syncobj_signal_ioctl()
1261 drm_syncobj_assign_null_handle(syncobjs[i]); in drm_syncobj_signal_ioctl()
1263 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_signal_ioctl()
1273 struct drm_syncobj **syncobjs; in drm_syncobj_timeline_signal_ioctl() local
1291 &syncobjs); in drm_syncobj_timeline_signal_ioctl()
1327 drm_syncobj_add_point(syncobjs[i], chains[i], in drm_syncobj_timeline_signal_ioctl()
1336 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_timeline_signal_ioctl()
1345 struct drm_syncobj **syncobjs; in drm_syncobj_query_ioctl() local
1362 &syncobjs); in drm_syncobj_query_ioctl()
1371 fence = drm_syncobj_fence_get(syncobjs[i]); in drm_syncobj_query_ioctl()
1398 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_query_ioctl()