Lines Matching refs:fence_ptr
320 struct drm_crtc *crtc, s32 __user *fence_ptr) in set_out_fence_for_crtc() argument
322 state->crtcs[drm_crtc_index(crtc)].out_fence_ptr = fence_ptr; in set_out_fence_for_crtc()
328 s32 __user *fence_ptr; in get_out_fence_for_crtc() local
330 fence_ptr = state->crtcs[drm_crtc_index(crtc)].out_fence_ptr; in get_out_fence_for_crtc()
333 return fence_ptr; in get_out_fence_for_crtc()
338 s32 __user *fence_ptr) in set_out_fence_for_connector() argument
342 if (!fence_ptr) in set_out_fence_for_connector()
345 if (put_user(-1, fence_ptr)) in set_out_fence_for_connector()
348 state->connectors[index].out_fence_ptr = fence_ptr; in set_out_fence_for_connector()
357 s32 __user *fence_ptr; in get_out_fence_for_connector() local
359 fence_ptr = state->connectors[index].out_fence_ptr; in get_out_fence_for_connector()
362 return fence_ptr; in get_out_fence_for_connector()
442 s32 __user *fence_ptr = u64_to_user_ptr(val); in drm_atomic_crtc_set_property() local
444 if (!fence_ptr) in drm_atomic_crtc_set_property()
447 if (put_user(-1, fence_ptr)) in drm_atomic_crtc_set_property()
450 set_out_fence_for_crtc(state->state, crtc, fence_ptr); in drm_atomic_crtc_set_property()
760 s32 __user *fence_ptr = u64_to_user_ptr(val); in drm_atomic_connector_set_property() local
763 fence_ptr); in drm_atomic_connector_set_property()
1125 s32 __user *fence_ptr; in prepare_signaling() local
1127 fence_ptr = get_out_fence_for_crtc(crtc_state->state, crtc); in prepare_signaling()
1129 if (arg->flags & DRM_MODE_PAGE_FLIP_EVENT || fence_ptr) { in prepare_signaling()
1154 if (fence_ptr) { in prepare_signaling()
1165 f[*num_fences].out_fence_ptr = fence_ptr; in prepare_signaling()
1188 s32 __user *fence_ptr; in prepare_signaling() local
1193 fence_ptr = get_out_fence_for_connector(state, conn); in prepare_signaling()
1194 if (!fence_ptr) in prepare_signaling()
1204 f[*num_fences].out_fence_ptr = fence_ptr; in prepare_signaling()