Lines Matching refs:syncobjs

961 static signed long drm_syncobj_array_wait_timeout(struct drm_syncobj **syncobjs,  in drm_syncobj_array_wait_timeout()  argument
1005 fence = drm_syncobj_fence_get(syncobjs[i]); in drm_syncobj_array_wait_timeout()
1043 drm_syncobj_fence_add_wait(syncobjs[i], &entries[i]); in drm_syncobj_array_wait_timeout()
1093 drm_syncobj_remove_wait(syncobjs[i], &entries[i]); in drm_syncobj_array_wait_timeout()
1144 struct drm_syncobj **syncobjs, bool timeline) in drm_syncobj_array_wait() argument
1151 timeout = drm_syncobj_array_wait_timeout(syncobjs, in drm_syncobj_array_wait()
1161 timeout = drm_syncobj_array_wait_timeout(syncobjs, in drm_syncobj_array_wait()
1179 struct drm_syncobj **syncobjs; in drm_syncobj_array_find() local
1192 syncobjs = kmalloc_array(count_handles, sizeof(*syncobjs), GFP_KERNEL); in drm_syncobj_array_find()
1193 if (syncobjs == NULL) { in drm_syncobj_array_find()
1199 syncobjs[i] = drm_syncobj_find(file_private, handles[i]); in drm_syncobj_array_find()
1200 if (!syncobjs[i]) { in drm_syncobj_array_find()
1207 *syncobjs_out = syncobjs; in drm_syncobj_array_find()
1212 drm_syncobj_put(syncobjs[i]); in drm_syncobj_array_find()
1213 kfree(syncobjs); in drm_syncobj_array_find()
1220 static void drm_syncobj_array_free(struct drm_syncobj **syncobjs, in drm_syncobj_array_free() argument
1226 drm_syncobj_put(syncobjs[i]); in drm_syncobj_array_free()
1227 kfree(syncobjs); in drm_syncobj_array_free()
1235 struct drm_syncobj **syncobjs; in drm_syncobj_wait_ioctl() local
1251 &syncobjs); in drm_syncobj_wait_ioctl()
1256 args, NULL, syncobjs, false); in drm_syncobj_wait_ioctl()
1258 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_wait_ioctl()
1268 struct drm_syncobj **syncobjs; in drm_syncobj_timeline_wait_ioctl() local
1285 &syncobjs); in drm_syncobj_timeline_wait_ioctl()
1290 NULL, args, syncobjs, true); in drm_syncobj_timeline_wait_ioctl()
1292 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_timeline_wait_ioctl()
1303 struct drm_syncobj **syncobjs; in drm_syncobj_reset_ioctl() local
1319 &syncobjs); in drm_syncobj_reset_ioctl()
1324 drm_syncobj_replace_fence(syncobjs[i], NULL); in drm_syncobj_reset_ioctl()
1326 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_reset_ioctl()
1336 struct drm_syncobj **syncobjs; in drm_syncobj_signal_ioctl() local
1352 &syncobjs); in drm_syncobj_signal_ioctl()
1357 ret = drm_syncobj_assign_null_handle(syncobjs[i]); in drm_syncobj_signal_ioctl()
1362 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_signal_ioctl()
1372 struct drm_syncobj **syncobjs; in drm_syncobj_timeline_signal_ioctl() local
1390 &syncobjs); in drm_syncobj_timeline_signal_ioctl()
1426 drm_syncobj_add_point(syncobjs[i], chains[i], in drm_syncobj_timeline_signal_ioctl()
1435 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_timeline_signal_ioctl()
1444 struct drm_syncobj **syncobjs; in drm_syncobj_query_ioctl() local
1461 &syncobjs); in drm_syncobj_query_ioctl()
1470 fence = drm_syncobj_fence_get(syncobjs[i]); in drm_syncobj_query_ioctl()
1504 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_query_ioctl()