Lines Matching refs:fences
498 static int amdgpu_ioctl_wait_fences(struct amdgpu_cs_fence *fences, in amdgpu_ioctl_wait_fences() argument
506 amdgpu_device_handle dev = fences[0].context->dev; in amdgpu_ioctl_wait_fences()
513 drm_fences[i].ctx_id = fences[i].context->id; in amdgpu_ioctl_wait_fences()
514 drm_fences[i].ip_type = fences[i].ip_type; in amdgpu_ioctl_wait_fences()
515 drm_fences[i].ip_instance = fences[i].ip_instance; in amdgpu_ioctl_wait_fences()
516 drm_fences[i].ring = fences[i].ring; in amdgpu_ioctl_wait_fences()
517 drm_fences[i].seq_no = fences[i].fence; in amdgpu_ioctl_wait_fences()
521 args.in.fences = (uint64_t)(uintptr_t)drm_fences; in amdgpu_ioctl_wait_fences()
538 drm_public int amdgpu_cs_wait_fences(struct amdgpu_cs_fence *fences, in amdgpu_cs_wait_fences() argument
548 if (!fences || !status || !fence_count) in amdgpu_cs_wait_fences()
552 if (NULL == fences[i].context) in amdgpu_cs_wait_fences()
554 if (fences[i].ip_type >= AMDGPU_HW_IP_NUM) in amdgpu_cs_wait_fences()
556 if (fences[i].ring >= AMDGPU_CS_MAX_RINGS) in amdgpu_cs_wait_fences()
562 return amdgpu_ioctl_wait_fences(fences, fence_count, wait_all, in amdgpu_cs_wait_fences()