Lines Matching refs:syncobjs
1033 static signed long drm_syncobj_array_wait_timeout(struct drm_syncobj **syncobjs, in drm_syncobj_array_wait_timeout() argument
1081 fence = drm_syncobj_fence_get(syncobjs[i]); in drm_syncobj_array_wait_timeout()
1121 drm_syncobj_fence_add_wait(syncobjs[i], &entries[i]); in drm_syncobj_array_wait_timeout()
1180 drm_syncobj_remove_wait(syncobjs[i], &entries[i]); in drm_syncobj_array_wait_timeout()
1231 struct drm_syncobj **syncobjs, bool timeline, in drm_syncobj_array_wait() argument
1239 timeout = drm_syncobj_array_wait_timeout(syncobjs, in drm_syncobj_array_wait()
1250 timeout = drm_syncobj_array_wait_timeout(syncobjs, in drm_syncobj_array_wait()
1269 struct drm_syncobj **syncobjs; in drm_syncobj_array_find() local
1282 syncobjs = kmalloc_array(count_handles, sizeof(*syncobjs), GFP_KERNEL); in drm_syncobj_array_find()
1283 if (syncobjs == NULL) { in drm_syncobj_array_find()
1289 syncobjs[i] = drm_syncobj_find(file_private, handles[i]); in drm_syncobj_array_find()
1290 if (!syncobjs[i]) { in drm_syncobj_array_find()
1297 *syncobjs_out = syncobjs; in drm_syncobj_array_find()
1302 drm_syncobj_put(syncobjs[i]); in drm_syncobj_array_find()
1303 kfree(syncobjs); in drm_syncobj_array_find()
1310 static void drm_syncobj_array_free(struct drm_syncobj **syncobjs, in drm_syncobj_array_free() argument
1316 drm_syncobj_put(syncobjs[i]); in drm_syncobj_array_free()
1317 kfree(syncobjs); in drm_syncobj_array_free()
1325 struct drm_syncobj **syncobjs; in drm_syncobj_wait_ioctl() local
1346 &syncobjs); in drm_syncobj_wait_ioctl()
1356 args, NULL, syncobjs, false, tp); in drm_syncobj_wait_ioctl()
1358 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_wait_ioctl()
1368 struct drm_syncobj **syncobjs; in drm_syncobj_timeline_wait_ioctl() local
1390 &syncobjs); in drm_syncobj_timeline_wait_ioctl()
1400 NULL, args, syncobjs, true, tp); in drm_syncobj_timeline_wait_ioctl()
1402 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_timeline_wait_ioctl()
1515 struct drm_syncobj **syncobjs; in drm_syncobj_reset_ioctl() local
1531 &syncobjs); in drm_syncobj_reset_ioctl()
1536 drm_syncobj_replace_fence(syncobjs[i], NULL); in drm_syncobj_reset_ioctl()
1538 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_reset_ioctl()
1548 struct drm_syncobj **syncobjs; in drm_syncobj_signal_ioctl() local
1564 &syncobjs); in drm_syncobj_signal_ioctl()
1569 ret = drm_syncobj_assign_null_handle(syncobjs[i]); in drm_syncobj_signal_ioctl()
1574 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_signal_ioctl()
1584 struct drm_syncobj **syncobjs; in drm_syncobj_timeline_signal_ioctl() local
1602 &syncobjs); in drm_syncobj_timeline_signal_ioctl()
1638 drm_syncobj_add_point(syncobjs[i], chains[i], in drm_syncobj_timeline_signal_ioctl()
1647 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_timeline_signal_ioctl()
1656 struct drm_syncobj **syncobjs; in drm_syncobj_query_ioctl() local
1673 &syncobjs); in drm_syncobj_query_ioctl()
1682 fence = drm_syncobj_fence_get(syncobjs[i]); in drm_syncobj_query_ioctl()
1716 drm_syncobj_array_free(syncobjs, args->count_handles); in drm_syncobj_query_ioctl()