• Home
  • Raw
  • Download

Lines Matching refs:hnd

73         private_handle_t *hnd = reinterpret_cast<private_handle_t*>  in perform_lock_unlock_operation()  local
75 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in perform_lock_unlock_operation()
76 if (hnd->genlockPrivFd < 0) { in perform_lock_unlock_operation()
86 lock.fd = hnd->genlockHandle; in perform_lock_unlock_operation()
89 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_DREADLOCK, &lock)) { in perform_lock_unlock_operation()
92 lockType, strerror(errno), hnd->fd); in perform_lock_unlock_operation()
100 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_LOCK, &lock)) { in perform_lock_unlock_operation()
102 ,__FUNCTION__, lockType, strerror(errno), hnd->fd); in perform_lock_unlock_operation()
144 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_create_lock() local
145 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_create_lock()
174 hnd->genlockPrivFd = fd; in genlock_create_lock()
175 hnd->genlockHandle = lock.fd; in genlock_create_lock()
177 hnd->genlockHandle = 0; in genlock_create_lock()
199 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_release_lock() local
200 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_release_lock()
201 if (hnd->genlockPrivFd < 0) { in genlock_release_lock()
207 close_genlock_fd_and_handle(hnd->genlockPrivFd, hnd->genlockHandle); in genlock_release_lock()
229 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_attach_lock() local
230 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_attach_lock()
241 lock.fd = hnd->genlockHandle; in genlock_attach_lock()
250 hnd->genlockPrivFd = fd; in genlock_attach_lock()
322 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_wait() local
323 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_wait()
324 if (hnd->genlockPrivFd < 0) { in genlock_wait()
333 lock.fd = hnd->genlockHandle; in genlock_wait()
335 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_WAIT, &lock)) { in genlock_wait()