• Home
  • Raw
  • Download

Lines Matching refs:iter

286 void class_dev_iter_init(struct class_dev_iter *iter, struct class *class,  in class_dev_iter_init()  argument
293 klist_iter_init_node(&class->p->klist_devices, &iter->ki, start_knode); in class_dev_iter_init()
294 iter->type = type; in class_dev_iter_init()
310 struct device *class_dev_iter_next(struct class_dev_iter *iter) in class_dev_iter_next() argument
316 knode = klist_next(&iter->ki); in class_dev_iter_next()
320 if (!iter->type || iter->type == dev->type) in class_dev_iter_next()
333 void class_dev_iter_exit(struct class_dev_iter *iter) in class_dev_iter_exit() argument
335 klist_iter_exit(&iter->ki); in class_dev_iter_exit()
360 struct class_dev_iter iter; in class_for_each_device() local
372 class_dev_iter_init(&iter, class, start, NULL); in class_for_each_device()
373 while ((dev = class_dev_iter_next(&iter))) { in class_for_each_device()
378 class_dev_iter_exit(&iter); in class_for_each_device()
408 struct class_dev_iter iter; in class_find_device() local
419 class_dev_iter_init(&iter, class, start, NULL); in class_find_device()
420 while ((dev = class_dev_iter_next(&iter))) { in class_find_device()
426 class_dev_iter_exit(&iter); in class_find_device()
435 struct class_dev_iter iter; in class_interface_register() local
448 class_dev_iter_init(&iter, parent, NULL, NULL); in class_interface_register()
449 while ((dev = class_dev_iter_next(&iter))) in class_interface_register()
451 class_dev_iter_exit(&iter); in class_interface_register()
461 struct class_dev_iter iter; in class_interface_unregister() local
470 class_dev_iter_init(&iter, parent, NULL, NULL); in class_interface_unregister()
471 while ((dev = class_dev_iter_next(&iter))) in class_interface_unregister()
473 class_dev_iter_exit(&iter); in class_interface_unregister()