/freebsd/sys/fs/tarfs/ |
H A D | tarfs_subr.c | 93 tarfs_lookup_node(struct tarfs_node *tnp, struct tarfs_node *f, in tarfs_lookup_node() argument 103 TAILQ_FOREACH(entry, &tnp->dir.dirhead, dirents) { in tarfs_lookup_node() 131 tarfs_lookup_dir(struct tarfs_node *tnp, off_t cookie) in tarfs_lookup_dir() argument 135 TARFS_DPF(LOOKUP, "%s: tarfs_node %p, cookie %jd\n", __func__, tnp, in tarfs_lookup_dir() 138 (tnp->name == NULL) ? "<<root>>" : tnp->name); in tarfs_lookup_dir() 140 if (cookie == tnp->dir.lastcookie && in tarfs_lookup_dir() 141 tnp->dir.lastnode != NULL) { in tarfs_lookup_dir() 143 "cookie %jd\n", __func__, tnp->dir.lastnode, in tarfs_lookup_dir() 144 tnp->dir.lastcookie); in tarfs_lookup_dir() 145 return (tnp->dir.lastnode); in tarfs_lookup_dir() [all …]
|
H A D | tarfs_vnops.c | 49 struct tarfs_node *tnp; in tarfs_open() local 54 tnp = VP_TO_TARFS_NODE(vp); in tarfs_open() 57 tnp, tnp->name, ap->a_mode); in tarfs_open() 62 vnode_create_vobject(vp, tnp->size, ap->a_td); in tarfs_open() 70 struct tarfs_node *tnp; in tarfs_close() local 76 tnp = VP_TO_TARFS_NODE(vp); in tarfs_close() 79 tnp, tnp->name); in tarfs_close() 89 struct tarfs_node *tnp; in tarfs_access() local 100 tnp = VP_TO_TARFS_NODE(vp); in tarfs_access() 103 tnp, tnp->name, accmode); in tarfs_access() [all …]
|
H A D | tarfs_vfsops.c | 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() [all …]
|
H A D | tarfs.h | 169 #define TARFS_NODE_LOCK(tnp) \ argument 170 mtx_lock(&(tnp)->lock) 171 #define TARFS_NODE_UNLOCK(tnp) \ argument 172 mtx_unlock(&(tnp)->lock) 173 #define TARFS_ALLNODES_LOCK(tnp) \ argument 175 #define TARFS_ALLNODES_UNLOCK(tnp) \ argument 233 int tarfs_load_blockmap(struct tarfs_node *tnp, size_t realsize); 234 void tarfs_free_node(struct tarfs_node *tnp); 236 tarfs_lookup_dir(struct tarfs_node *tnp, off_t cookie); 238 tarfs_lookup_node(struct tarfs_node *tnp, struct tarfs_node *f, [all …]
|
/freebsd/sys/fs/tmpfs/ |
H A D | tmpfs_vnops.c | 1747 tmpfs_vptocnp_dir(struct tmpfs_node *tn, struct tmpfs_node *tnp, in tmpfs_vptocnp_dir() 1753 for (de = tmpfs_dir_first(tnp, &dc); de != NULL; in tmpfs_vptocnp_dir() 1754 de = tmpfs_dir_next(tnp, &dc)) { in tmpfs_vptocnp_dir() 1765 struct tmpfs_node *tnp, char *buf, size_t *buflen, struct vnode **dvp) in tmpfs_vptocnp_fill() 1770 error = vn_vget_ino_gen(vp, tmpfs_vn_get_ino_alloc, tnp, LK_SHARED, in tmpfs_vptocnp_fill() 1774 error = tmpfs_vptocnp_dir(tn, tnp, &de); in tmpfs_vptocnp_fill() 1801 struct tmpfs_node *tn, *tnp, *tnp1; in tmpfs_vptocnp() 1816 tnp = tn->tn_dir.tn_parent; in tmpfs_vptocnp() 1817 if (tnp == NULL) in tmpfs_vptocnp() 1819 tmpfs_ref_node(tnp); in tmpfs_vptocnp() 1746 tmpfs_vptocnp_dir(struct tmpfs_node * tn,struct tmpfs_node * tnp,struct tmpfs_dirent ** pde) tmpfs_vptocnp_dir() argument 1764 tmpfs_vptocnp_fill(struct vnode * vp,struct tmpfs_node * tn,struct tmpfs_node * tnp,char * buf,size_t * buflen,struct vnode ** dvp) tmpfs_vptocnp_fill() argument 1800 struct tmpfs_node *tn, *tnp, *tnp1; tmpfs_vptocnp() local [all...] |
/freebsd/contrib/elftoolchain/libdwarf/ |
H A D | libdwarf_nametbl.c | 36 Dwarf_NamePair np, tnp; in _dwarf_nametbl_cleanup() local 43 STAILQ_FOREACH_SAFE(np, &nt->nt_nplist, np_next, tnp) { in _dwarf_nametbl_cleanup() 239 Dwarf_NamePair np, tnp; in _dwarf_nametbl_pro_cleanup() local 245 STAILQ_FOREACH_SAFE(np, &nt->nt_nplist, np_next, tnp) { in _dwarf_nametbl_pro_cleanup()
|
/freebsd/sys/dev/axgbe/ |
H A D | xgbe-dev.c | 1462 unsigned int tnp = XGMAC_GET_BITS(packet->attributes, in xgbe_dev_read() local 1473 } else if (tnp && ((etlt == 0x09) || (etlt == 0x0a))) { in xgbe_dev_read() 1483 __func__, tnp, l34t, err, etlt); in xgbe_dev_read()
|