• Home
  • Raw
  • Download

Lines Matching refs:done

104     int done = 0;  in find_existing_devices_bus()  local
109 while ((de = readdir(devdir)) && !done) { in find_existing_devices_bus()
113 done = added_cb(devname, client_data); in find_existing_devices_bus()
117 return done; in find_existing_devices_bus()
127 int done = 0; in find_existing_devices() local
132 while ((de = readdir(busdir)) != 0 && !done) { in find_existing_devices()
136 done = find_existing_devices_bus(busname, added_cb, in find_existing_devices()
141 return done; in find_existing_devices()
196 int done = 0; in usb_host_load() local
216 return done; in usb_host_load()
222 done = find_existing_devices(added_cb, client_data); in usb_host_load()
224 done |= discovery_done_cb(client_data); in usb_host_load()
226 return done; in usb_host_load()
234 int i, ret, done = 0; in usb_host_read_event() local
240 while (offset < ret && !done) { in usb_host_read_event()
242 done = 0; in usb_host_read_event()
248 done = 1; in usb_host_read_event()
251 done = find_existing_devices(context->cb_added, context->data); in usb_host_read_event()
257 done = find_existing_devices(context->cb_added, context->data); in usb_host_read_event()
278 done = find_existing_devices_bus(path, context->cb_added, in usb_host_read_event()
286 for (i = 1; (i < MAX_USBFS_WD_COUNT) && !done; i++) { in usb_host_read_event()
291 done = context->cb_added(path, context->data); in usb_host_read_event()
294 done = context->cb_removed(path, context->data); in usb_host_read_event()
304 return done; in usb_host_read_event()
313 int done; in usb_host_run() local
315 done = usb_host_load(context, added_cb, removed_cb, discovery_done_cb, client_data); in usb_host_run()
317 while (!done) { in usb_host_run()
319 done = usb_host_read_event(context); in usb_host_run()