Lines Matching refs:buffer_handle
67 genlock_status_t perform_lock_unlock_operation(native_handle_t *buffer_handle, in perform_lock_unlock_operation() argument
71 if (private_handle_t::validate(buffer_handle)) { in perform_lock_unlock_operation()
77 (buffer_handle); in perform_lock_unlock_operation()
142 genlock_status_t genlock_create_lock(native_handle_t *buffer_handle) in genlock_create_lock() argument
146 if (private_handle_t::validate(buffer_handle)) { in genlock_create_lock()
151 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_create_lock()
197 genlock_status_t genlock_release_lock(native_handle_t *buffer_handle) in genlock_release_lock() argument
201 if (private_handle_t::validate(buffer_handle)) { in genlock_release_lock()
206 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_release_lock()
227 genlock_status_t genlock_attach_lock(native_handle_t *buffer_handle) in genlock_attach_lock() argument
231 if (private_handle_t::validate(buffer_handle)) { in genlock_attach_lock()
236 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_attach_lock()
275 genlock_status_t genlock_lock_buffer(native_handle_t *buffer_handle, in genlock_lock_buffer() argument
292 ret = perform_lock_unlock_operation(buffer_handle, kLockType, timeout, 0); in genlock_lock_buffer()
304 genlock_status_t genlock_unlock_buffer(native_handle_t *buffer_handle) in genlock_unlock_buffer() argument
310 ret = perform_lock_unlock_operation(buffer_handle, GENLOCK_UNLOCK, 0, 0); in genlock_unlock_buffer()
322 genlock_status_t genlock_wait(native_handle_t *buffer_handle, int timeout) { in genlock_wait() argument
324 if (private_handle_t::validate(buffer_handle)) { in genlock_wait()
329 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_wait()
359 genlock_status_t genlock_write_to_read(native_handle_t *buffer_handle, in genlock_write_to_read() argument
368 ret = perform_lock_unlock_operation(buffer_handle, GENLOCK_RDLOCK, timeout, in genlock_write_to_read()
372 ret = perform_lock_unlock_operation(buffer_handle, GENLOCK_RDLOCK, in genlock_write_to_read()