Lines Matching refs:child

191 	device_t child = NULL;
195 while ((child = list_get_next_item(&dev->children, child)) != NULL) {
210 while ((child = list_get_next_item(&dev->children, child)) != NULL) {
211 list[count] = child;
364 device_t child = NULL;
368 child = new_device(&miibus_driver);
378 child = new_device(*driver);
383 child = new_device(_driver);
385 child = new_device(NULL);
387 if (child == NULL)
391 strlcpy(child->device_name, name, sizeof(child->device_name));
393 child->parent = parent;
396 list_add_item(&parent->children, child);
397 child->root = parent->root;
401 list_add_item(&sRootDevices, child);
404 return child;
415 /*! Delete the child and all of its children. Detach as necessary.
418 device_delete_child(device_t parent, device_t child)
422 if (child == NULL)
426 list_remove_item(&parent->children, child);
428 list_remove_item(&sRootDevices, child);
437 parent = child;
438 child = NULL;
441 while ((child = list_get_next_item(&parent->children, child)) != NULL) {
442 device_detach(child);
451 while ((child = list_get_first_item(&parent->children)) != NULL) {
452 device_delete_child(parent, child);
526 device_t child = NULL;
528 while ((child = list_get_next_item(&dev->children, child)) != NULL) {
529 if (child->driver == NULL) {
530 driver_t *driver = __haiku_select_miibus_driver(child);
532 struct mii_attach_args *ma = device_get_ivars(child);
537 device_set_driver(child, driver);
539 child->methods.probe(child);
541 if (child->driver != NULL) {
542 int result = device_attach(child);
555 device_t child = NULL;
561 child = list_get_next_item(&device->children, child);
562 if (child == NULL)
565 device_detach(child);