Lines Matching refs:hnd

75         private_handle_t *hnd = reinterpret_cast<private_handle_t*>  in perform_lock_unlock_operation()  local
77 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in perform_lock_unlock_operation()
78 if (hnd->genlockPrivFd < 0) { in perform_lock_unlock_operation()
88 lock.fd = hnd->genlockHandle; in perform_lock_unlock_operation()
91 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_DREADLOCK, &lock)) { in perform_lock_unlock_operation()
94 lockType, strerror(errno), hnd->fd); in perform_lock_unlock_operation()
102 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_LOCK, &lock)) { in perform_lock_unlock_operation()
104 ,__FUNCTION__, lockType, strerror(errno), hnd->fd); in perform_lock_unlock_operation()
146 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_create_lock() local
147 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_create_lock()
176 hnd->genlockPrivFd = fd; in genlock_create_lock()
177 hnd->genlockHandle = lock.fd; in genlock_create_lock()
179 hnd->genlockHandle = 0; in genlock_create_lock()
201 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_release_lock() local
202 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_release_lock()
203 if (hnd->genlockPrivFd < 0) { in genlock_release_lock()
209 close_genlock_fd_and_handle(hnd->genlockPrivFd, hnd->genlockHandle); in genlock_release_lock()
231 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_attach_lock() local
232 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_attach_lock()
243 lock.fd = hnd->genlockHandle; in genlock_attach_lock()
252 hnd->genlockPrivFd = fd; in genlock_attach_lock()
324 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_wait() local
325 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_wait()
326 if (hnd->genlockPrivFd < 0) { in genlock_wait()
335 lock.fd = hnd->genlockHandle; in genlock_wait()
337 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_WAIT, &lock)) { in genlock_wait()