Lines Matching refs:fd_index
249 int fd_index = fd & HYPV_HANDLE_MASK; in hypv_ioctl() local
250 if (fd_index >= MAX_HVFE_HANDLE) { in hypv_ioctl()
251 HYP_VIDEO_MSG_ERROR("invalid fd_index = %d", fd_index); in hypv_ioctl()
254 rc = video_fe_ioctl(g_hvfe_handle[fd_index].handle, cmd, data); in hypv_ioctl()
256 fd, fd_index, cmd, data, rc); in hypv_ioctl()
288 int fd_index = pfds[0].fd & HYPV_HANDLE_MASK; in exit_thread() local
289 struct hypv_intercept *handle = &g_hvfe_handle[fd_index]; in exit_thread()
292 HYP_VIDEO_MSG_INFO("exit thread created. fd = %d", fd_index); in exit_thread()
320 int fd_index = fds[0].fd & HYPV_HANDLE_MASK; in hypv_poll() local
322 if (fd_index >= MAX_HVFE_HANDLE) { in hypv_poll()
323 HYP_VIDEO_MSG_ERROR("invalid fd index %d", fd_index); in hypv_poll()
326 struct hypv_intercept *handle = &g_hvfe_handle[fd_index]; in hypv_poll()
388 int fd_index = fd & HYPV_HANDLE_MASK; in hypv_close() local
390 if ((fd_index >= MAX_HVFE_HANDLE) || (fd_index < 0)) { in hypv_close()
391 HYP_VIDEO_MSG_ERROR("invalid fd %d", fd_index); in hypv_close()
395 rc = video_fe_close(g_hvfe_handle[fd_index].handle); in hypv_close()
396 g_hvfe_handle[fd_index].handle = 0; in hypv_close()
397 pthread_cond_destroy(&g_hvfe_handle[fd_index].cond); in hypv_close()
398 pthread_mutex_destroy(&g_hvfe_handle[fd_index].lock); in hypv_close()