Lines Matching refs:hnd
76 private_handle_t *hnd = reinterpret_cast<private_handle_t*> in perform_lock_unlock_operation() local
78 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in perform_lock_unlock_operation()
79 if (hnd->genlockPrivFd < 0) { in perform_lock_unlock_operation()
89 lock.fd = hnd->genlockHandle; in perform_lock_unlock_operation()
92 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_DREADLOCK, &lock)) { in perform_lock_unlock_operation()
95 lockType, strerror(errno), hnd->fd); in perform_lock_unlock_operation()
103 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_LOCK, &lock)) { in perform_lock_unlock_operation()
105 ,__FUNCTION__, lockType, strerror(errno), hnd->fd); in perform_lock_unlock_operation()
151 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_create_lock() local
152 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_create_lock()
181 hnd->genlockPrivFd = fd; in genlock_create_lock()
182 hnd->genlockHandle = lock.fd; in genlock_create_lock()
184 hnd->genlockHandle = 0; in genlock_create_lock()
206 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_release_lock() local
207 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_release_lock()
208 if (hnd->genlockPrivFd < 0) { in genlock_release_lock()
214 close_genlock_fd_and_handle(hnd->genlockPrivFd, hnd->genlockHandle); in genlock_release_lock()
236 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_attach_lock() local
237 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_attach_lock()
248 lock.fd = hnd->genlockHandle; in genlock_attach_lock()
257 hnd->genlockPrivFd = fd; in genlock_attach_lock()
329 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_wait() local
330 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_wait()
331 if (hnd->genlockPrivFd < 0) { in genlock_wait()
340 lock.fd = hnd->genlockHandle; in genlock_wait()
342 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_WAIT, &lock)) { in genlock_wait()