Lines Matching refs:tnp
280 struct tarfs_node *parent, *tnp; in tarfs_lookup_path() local
290 parent = tnp = tmp->root; in tarfs_lookup_path()
291 if (tnp == NULL) in tarfs_lookup_path()
311 if (tnp != NULL && tnp->type != VDIR) { in tarfs_lookup_path()
313 (int)tnp->namelen, tnp->name); in tarfs_lookup_path()
331 if (tnp == tmp->root) { in tarfs_lookup_path()
335 tnp = parent; in tarfs_lookup_path()
336 parent = tnp->parent; in tarfs_lookup_path()
337 cn.cn_nameptr = tnp->name; in tarfs_lookup_path()
338 cn.cn_namelen = tnp->namelen; in tarfs_lookup_path()
341 (int)tnp->namelen, tnp->name); in tarfs_lookup_path()
353 DEFDIRMODE, 0, NULL, NODEV, parent, &tnp); in tarfs_lookup_path()
358 parent = tnp; in tarfs_lookup_path()
359 tnp = NULL; in tarfs_lookup_path()
366 tnp = tarfs_lookup_node(parent, NULL, &cn); in tarfs_lookup_path()
367 if (tnp == NULL) { in tarfs_lookup_path()
379 TARFS_DPF(LOOKUP, "%s: parent %p node %p\n", __func__, parent, tnp); in tarfs_lookup_path()
384 *retnode = tnp; in tarfs_lookup_path()
403 struct tarfs_node *tnp, *tnp_next; in tarfs_free_mount() local
410 TAILQ_FOREACH_SAFE(tnp, &tmp->allnodes, entries, tnp_next) { in tarfs_free_mount()
411 tarfs_free_node(tnp); in tarfs_free_mount()
443 struct tarfs_node *parent, *tnp, *other; in tarfs_alloc_one() local
698 &sep, &parent, &tnp, true); in tarfs_alloc_one()
705 if (tnp != NULL) { in tarfs_alloc_one()
719 parent, &tnp); in tarfs_alloc_one()
724 flags, NULL, 0, parent, &tnp); in tarfs_alloc_one()
726 error = tarfs_load_blockmap(tnp, realsize); in tarfs_alloc_one()
750 0, 0, 0, 0, 0, 0, 0, NULL, 0, parent, &tnp); in tarfs_alloc_one()
752 tnp->other = other; in tarfs_alloc_one()
753 tnp->other->nlink++; in tarfs_alloc_one()
769 parent, &tnp); in tarfs_alloc_one()
791 parent, &tnp); in tarfs_alloc_one()
813 parent, &tnp); in tarfs_alloc_one()
1145 struct tarfs_node *tnp; in tarfs_vget() local
1176 TAILQ_FOREACH(tnp, &tmp->allnodes, entries) { in tarfs_vget()
1177 if (tnp->ino == ino) in tarfs_vget()
1180 TARFS_DPF(FS, "%s: search of all nodes found %p\n", __func__, tnp); in tarfs_vget()
1181 if (tnp == NULL) in tarfs_vget()
1186 vp->v_data = tnp; in tarfs_vget()
1187 vp->v_type = tnp->type; in tarfs_vget()
1188 tnp->vnode = vp; in tarfs_vget()
1211 struct tarfs_node *tnp; in tarfs_fhtovp() local
1226 tnp = VP_TO_TARFS_NODE(nvp); in tarfs_fhtovp()
1227 if (tnp->mode == 0 || in tarfs_fhtovp()
1228 tnp->gen != tfp->gen || in tarfs_fhtovp()
1229 tnp->nlink <= 0) { in tarfs_fhtovp()