Lines Matching refs:found

542 	struct devfs_node *found = node;  in devfs_alias_getvp()  local
545 while ((found->node_type == Nlink) && (found->link_target)) { in devfs_alias_getvp()
551 found = found->link_target; in devfs_alias_getvp()
555 return found->v_node; in devfs_alias_getvp()
913 cdev_t found = NULL; in devfs_find_device_by_name() local
928 found = msg->mdv_cdev; in devfs_find_device_by_name()
932 return found; in devfs_find_device_by_name()
943 cdev_t found = NULL; in devfs_find_device_by_devid() local
949 found = msg->mdv_cdev; in devfs_find_device_by_devid()
954 ((found) ? found->si_name:"NO")); in devfs_find_device_by_devid()
955 return found; in devfs_find_device_by_devid()
1632 cdev_t found = NULL; in devfs_find_device_by_name_worker() local
1636 found = dev; in devfs_find_device_by_name_worker()
1640 if (found == NULL) { in devfs_find_device_by_name_worker()
1643 found = alias->dev_target; in devfs_find_device_by_name_worker()
1648 devfs_msg->mdv_cdev = found; in devfs_find_device_by_name_worker()
1662 cdev_t found = NULL; in devfs_find_device_by_devid_worker() local
1666 found = dev; in devfs_find_device_by_devid_worker()
1670 devfs_msg->mdv_cdev = found; in devfs_find_device_by_devid_worker()
1685 int found = 0; in devfs_make_alias_worker() local
1692 found = 1; in devfs_make_alias_worker()
1697 if (!found) { in devfs_make_alias_worker()
1724 int found = 0; in devfs_destroy_alias_worker() local
1731 found = 1; in devfs_destroy_alias_worker()
1736 if (!found) { in devfs_destroy_alias_worker()
1965 struct devfs_node *node, *found = NULL; in devfs_resolve_or_create_dir() local
1972 found = node; in devfs_resolve_or_create_dir()
1977 if ((found == NULL) && (create)) { in devfs_resolve_or_create_dir()
1978 found = devfs_allocp(Ndir, dir_name, parent, parent->mp, NULL); in devfs_resolve_or_create_dir()
1981 return found; in devfs_resolve_or_create_dir()
2076 int i, found; in devfs_create_device_node() local
2142 found = 0; in devfs_create_device_node()
2145 found = 1; in devfs_create_device_node()
2149 if (found) in devfs_create_device_node()
2180 struct devfs_node *node, *found = NULL; in devfs_find_device_node_by_name() local
2188 found = node; in devfs_find_device_node_by_name()
2193 return found; in devfs_find_device_node_by_name()
2613 struct devfs_dev_ops *found = NULL; in devfs_reference_ops() local
2618 found = devops; in devfs_reference_ops()
2623 if (!found) { in devfs_reference_ops()
2624 found = kmalloc(sizeof(struct devfs_dev_ops), in devfs_reference_ops()
2626 found->ops = ops; in devfs_reference_ops()
2627 found->ref_count = 0; in devfs_reference_ops()
2628 TAILQ_INSERT_TAIL(&devfs_dev_ops_list, found, link); in devfs_reference_ops()
2631 KKASSERT(found); in devfs_reference_ops()
2633 if (found->ref_count == 0) { in devfs_reference_ops()
2634 found->id = in devfs_reference_ops()
2636 if (found->id == -1) { in devfs_reference_ops()
2643 unit = found->id; in devfs_reference_ops()
2644 ++found->ref_count; in devfs_reference_ops()
2655 struct devfs_dev_ops *found = NULL; in devfs_release_ops() local
2660 found = devops; in devfs_release_ops()
2665 KKASSERT(found); in devfs_release_ops()
2667 --found->ref_count; in devfs_release_ops()
2669 if (found->ref_count == 0) { in devfs_release_ops()
2670 TAILQ_REMOVE(&devfs_dev_ops_list, found, link); in devfs_release_ops()
2672 devfs_clone_bitmap_put(&DEVFS_CLONE_BITMAP(ops_id), found->id); in devfs_release_ops()
2674 kfree(found, M_DEVFS); in devfs_release_ops()
2774 cdev_t found; in devfs_sysctl_devname_helper() local
2786 if ((found = devfs_find_device_by_devid(udev)) == NULL) in devfs_sysctl_devname_helper()
2789 return(SYSCTL_OUT(req, found->si_name, strlen(found->si_name) + 1)); in devfs_sysctl_devname_helper()