Home | History | Annotate | Download | only in libusbhost

Lines Matching refs:wds

74     int                         wds[MAX_USBFS_WD_COUNT];
145 int *wds, int wd_count)
150 wds[0] = inotify_add_watch(context->fd, USB_FS_DIR, IN_CREATE | IN_DELETE);
151 if (wds[0] < 0)
159 wds[i] = ret;
208 context->wds[i] = -1;
219 watch_existing_subdirs(context, context->wds, MAX_USBFS_WD_COUNT);
250 watch_existing_subdirs(context, context->wds, MAX_USBFS_WD_COUNT);
256 watch_existing_subdirs(context, context->wds, MAX_USBFS_WD_COUNT);
260 if (context->wds[i] >= 0) {
261 inotify_rm_watch(context->fd, context->wds[i]);
262 context->wds[i] = -1;
266 } else if (wd == context->wds[0]) {
277 context->wds[i] = local_ret;
281 inotify_rm_watch(context->fd, context->wds[i]);
282 context->wds[i] = -1;
287 if (wd == context->wds[i]) {