Home | History | Annotate | Download | only in libusbhost

Lines Matching refs:wds

70     int                         wds[MAX_USBFS_WD_COUNT];
139 int *wds, int wd_count)
144 wds[0] = inotify_add_watch(context->fd, USB_FS_DIR, IN_CREATE | IN_DELETE);
145 if (wds[0] < 0)
153 wds[i] = ret;
202 context->wds[i] = -1;
213 watch_existing_subdirs(context, context->wds, MAX_USBFS_WD_COUNT);
244 watch_existing_subdirs(context, context->wds, MAX_USBFS_WD_COUNT);
250 watch_existing_subdirs(context, context->wds, MAX_USBFS_WD_COUNT);
254 if (context->wds[i] >= 0) {
255 inotify_rm_watch(context->fd, context->wds[i]);
256 context->wds[i] = -1;
260 } else if (wd == context->wds[0]) {
270 context->wds[i] = ret;
274 inotify_rm_watch(context->fd, context->wds[i]);
275 context->wds[i] = -1;
280 if (wd == context->wds[i]) {