Home | History | Annotate | Download | only in libusbhost

Lines Matching refs:wds

78     int                         wds[MAX_USBFS_WD_COUNT];
147 int *wds, int wd_count)
152 wds[0] = inotify_add_watch(context->fd, USB_FS_DIR, IN_CREATE | IN_DELETE);
153 if (wds[0] < 0)
161 wds[i] = ret;
210 context->wds[i] = -1;
221 watch_existing_subdirs(context, context->wds, MAX_USBFS_WD_COUNT);
252 watch_existing_subdirs(context, context->wds, MAX_USBFS_WD_COUNT);
258 watch_existing_subdirs(context, context->wds, MAX_USBFS_WD_COUNT);
262 if (context->wds[i] >= 0) {
263 inotify_rm_watch(context->fd, context->wds[i]);
264 context->wds[i] = -1;
268 } else if (wd == context->wds[0]) {
279 context->wds[i] = local_ret;
283 inotify_rm_watch(context->fd, context->wds[i]);
284 context->wds[i] = -1;
289 if (wd == context->wds[i]) {