Home
last modified time | relevance | path

Searched full:np (Results 1 – 25 of 531) sorted by relevance

12345678910>>...22

/freebsd/sbin/ipf/libipf/
H A Dprintnat.c20 printnat(ipnat_t *np, int opts) in printnat() argument
27 if (np->in_v[0] == 4) in printnat()
30 else if (np->in_v[0] == 6) in printnat()
36 if (np->in_flags & IPN_NO) in printnat()
39 switch (np->in_redir) in printnat()
43 proto = np->in_pr[0]; in printnat()
47 proto = np->in_pr[1]; in printnat()
51 proto = np->in_pr[0]; in printnat()
55 proto = np->in_pr[1]; in printnat()
59 proto = np->in_pr[0]; in printnat()
[all …]
H A Dprintpoolnode.c12 printpoolnode(ip_pool_node_t *np, int opts, wordtab_t *fields) argument
18 printpoolfield(np, IPLT_POOL, i);
25 if (np->ipn_info == 1)
27 printip(np->ipn_addr.adf_family,
28 (u_32_t *)&np->ipn_addr.adf_addr.in4);
29 printmask(np->ipn_addr.adf_family,
30 (u_32_t *)&np->ipn_mask.adf_addr);
33 if (np->ipn_addr.adf_family == AF_INET6) {
38 str = inet_ntop(AF_INET6, &np->ipn_addr.adf_addr.in6,
42 PRINTF("\tAddress: %s%s", np->ipn_info ? "! " : "",
[all …]
H A Dprintdstlistnode.c14 ipf_dstnode_t node, *np; in printdstlistnode() local
24 np = calloc(1, node.ipfd_size); in printdstlistnode()
25 if (np == NULL) in printdstlistnode()
27 if ((*copyfunc)(inp, np, node.ipfd_size)) in printdstlistnode()
32 printpoolfield(np, IPLT_DSTLIST, i); in printdstlistnode()
39 if (np->ipfd_dest.fd_name >= 0) in printdstlistnode()
40 PRINTF("%s:", np->ipfd_names); in printdstlistnode()
41 if (np->ipfd_dest.fd_addr.adf_family == AF_INET) { in printdstlistnode()
42 printip(AF_INET, (u_32_t *)&np->ipfd_dest.fd_ip); in printdstlistnode()
45 str = inet_ntop(AF_INET6, &np->ipfd_dest.fd_ip6, in printdstlistnode()
[all …]
/freebsd/sys/dev/sym/
H A Dsym_hipd.c324 #define sym_verbose (np->verbose)
749 #define _sym_calloc_dma(np, s, n) __sym_calloc_dma(np->bus_dmat, s, n) argument
750 #define _sym_mfree_dma(np, p, s, n) \ argument
751 __sym_mfree_dma(np->bus_dmat, _uvptv_(p), s, n)
752 #define sym_calloc_dma(s, n) _sym_calloc_dma(np, s, n)
753 #define sym_mfree_dma(p, s, n) _sym_mfree_dma(np, p, s, n)
754 #define _vtobus(np, p) __vtobus(np->bus_dmat, _uvptv_(p)) argument
755 #define vtobus(p) _vtobus(np, p)
847 #define INB_OFF(o) bus_read_1(np->io_res, (o))
848 #define INW_OFF(o) bus_read_2(np->io_res, (o))
[all …]
/freebsd/usr.bin/mail/
H A Dnames.c50 struct name *np; in nalloc() local
52 np = (struct name *)salloc(sizeof(*np)); in nalloc()
53 np->n_flink = NULL; in nalloc()
54 np->n_blink = NULL; in nalloc()
55 np->n_type = ntype; in nalloc()
56 np->n_name = savestr(str); in nalloc()
57 return (np); in nalloc()
66 struct name *np; in tailof() local
68 np = name; in tailof()
69 if (np == NULL) in tailof()
[all …]
/freebsd/sys/dev/nvmf/controller/
H A Dctl_frontend_nvmf.c71 struct nvmft_port *np = arg; in nvmft_online() local
73 sx_xlock(&np->lock); in nvmft_online()
74 np->online = true; in nvmft_online()
75 sx_xunlock(&np->lock); in nvmft_online()
81 struct nvmft_port *np = arg; in nvmft_offline() local
84 sx_xlock(&np->lock); in nvmft_offline()
85 np->online = false; in nvmft_offline()
87 TAILQ_FOREACH(ctrlr, &np->controllers, link) { in nvmft_offline()
93 while (!TAILQ_EMPTY(&np->controllers)) in nvmft_offline()
94 sx_sleep(np, &np->lock, 0, "nvmfoff", 0); in nvmft_offline()
[all …]
/freebsd/sys/fs/smbfs/
H A Dsmbfs_node.c89 struct smbnode *np; in smbfs_vnode_cmp() local
92 np = (struct smbnode *) vp->v_data; in smbfs_vnode_cmp()
94 if (np->n_parent != sc->n_parent || np->n_nmlen != sc->n_nmlen || in smbfs_vnode_cmp()
95 bcmp(sc->n_name, np->n_name, sc->n_nmlen) != 0) in smbfs_vnode_cmp()
108 struct smbnode *np, *dnp; in smbfs_node_alloc() local
143 np = VTOSMB(*vpp); in smbfs_node_alloc()
153 (np->n_dosattr & SMB_FA_DIR) == 0) || in smbfs_node_alloc()
155 (np->n_dosattr & SMB_FA_DIR) != 0)) { in smbfs_node_alloc()
175 np = malloc(sizeof *np, M_SMBNODE, M_WAITOK | M_ZERO); in smbfs_node_alloc()
195 vp->v_data = np; in smbfs_node_alloc()
[all …]
H A Dsmbfs_io.c81 struct smbnode *np = VTOSMB(vp); in smbfs_readvdir() local
85 np = VTOSMB(vp); in smbfs_readvdir()
86 SMBVDEBUG("dirname='%s'\n", np->n_name); in smbfs_readvdir()
99 de.d_fileno = (offset == 0) ? np->n_ino : in smbfs_readvdir()
100 (np->n_parent ? np->n_parentino : 2); in smbfs_readvdir()
119 if (offset != np->n_dirofs || np->n_dirseq == NULL) { in smbfs_readvdir()
120 SMBVDEBUG("Reopening search %ld:%ld\n", offset, np->n_dirofs); in smbfs_readvdir()
121 if (np->n_dirseq) { in smbfs_readvdir()
122 smbfs_findclose(np->n_dirseq, scred); in smbfs_readvdir()
123 np->n_dirseq = NULL; in smbfs_readvdir()
[all …]
/freebsd/sys/contrib/openzfs/lib/libuutil/
H A Duu_list.c133 uu_list_node_impl_t *np = (uu_list_node_impl_t *)np_arg; in uu_list_node_init() local
136 uintptr_t offset = (uintptr_t)np - (uintptr_t)base; in uu_list_node_init()
137 if (offset + sizeof (*np) > pp->ulp_objsize) { in uu_list_node_init()
140 base, (void *)np, (void *)pp, pp->ulp_name, in uu_list_node_init()
146 base, (void *)np, (void *)pp, pp->ulp_name, in uu_list_node_init()
150 np->uln_next = POOL_TO_MARKER(pp); in uu_list_node_init()
151 np->uln_prev = NULL; in uu_list_node_init()
157 uu_list_node_impl_t *np = (uu_list_node_impl_t *)np_arg; in uu_list_node_fini() local
160 if (np->uln_next == NULL && in uu_list_node_fini()
161 np in uu_list_node_fini()
261 list_insert(uu_list_t * lp,uu_list_node_impl_t * np,uu_list_node_impl_t * prev,uu_list_node_impl_t * next) list_insert() argument
292 uu_list_node_impl_t *np; uu_list_insert() local
317 uu_list_node_impl_t *np; uu_list_find() local
348 uu_list_node_impl_t *np = INDEX_TO_NODE(idx); uu_list_nearest_next() local
373 uu_list_node_impl_t *np = INDEX_TO_NODE(idx); uu_list_nearest_prev() local
427 uu_list_node_impl_t *np = wp->ulw_next_result; list_walk_advance() local
477 uu_list_node_impl_t *np = list_walk_advance(wp, lp); uu_list_walk_next() local
495 uu_list_node_impl_t *np; uu_list_walk() local
540 uu_list_node_impl_t *np = ELEM_TO_NODE(lp, elem); uu_list_remove() local
598 uu_list_node_impl_t *np = ELEM_TO_NODE(lp, target); uu_list_insert_before() local
624 uu_list_node_impl_t *np = ELEM_TO_NODE(lp, target); uu_list_insert_after() local
[all...]
/freebsd/sbin/restore/
H A Dsymtab.c93 addino(ino_t inum, struct entry *np) in addino() argument
100 np->e_ino = inum; in addino()
101 np->e_next = *epp; in addino()
102 *epp = np; in addino()
104 for (np = np->e_next; np != NULL; np = np->e_next) in addino()
105 if (np->e_ino == inum) in addino()
106 badentry(np, "duplicate inum"); in addino()
139 char *np, *cp; in lookupname() local
144 for (np = buf; *cp != '/' && *cp != '\0' && in lookupname()
145 np < &buf[sizeof(buf)]; ) in lookupname()
[all …]
/freebsd/sys/dev/nmdm/
H A Dnmdm.c105 struct nmdmpart *np; in nmdm_close() local
109 np = tty_softc(tp); in nmdm_close()
110 onp = np->np_other; in nmdm_close()
122 onp = np->np_other; in nmdm_close()
133 struct nmdmpart *np = (struct nmdmpart *)softc; in nmdm_free() local
134 struct nmdmsoftc *ns = np->np_pair; in nmdm_free()
136 callout_drain(&np->np_callout); in nmdm_free()
137 taskqueue_drain(taskqueue_swi, &np->np_task); in nmdm_free()
145 if (np->np_other != NULL) { in nmdm_free()
146 np->np_other->np_other = NULL; in nmdm_free()
[all …]
/freebsd/sys/fs/nfsclient/
H A Dnfs_clsubs.c120 ncl_dircookie_lock(struct nfsnode *np) in ncl_dircookie_lock() argument
122 NFSLOCKNODE(np); in ncl_dircookie_lock()
123 while (np->n_flag & NDIRCOOKIELK) in ncl_dircookie_lock()
124 (void) msleep(&np->n_flag, &np->n_mtx, PZERO, "nfsdirlk", 0); in ncl_dircookie_lock()
125 np->n_flag |= NDIRCOOKIELK; in ncl_dircookie_lock()
129 ncl_dircookie_unlock(struct nfsnode *np) in ncl_dircookie_unlock() argument
131 NFSLOCKNODE(np); in ncl_dircookie_unlock()
132 np->n_flag &= ~NDIRCOOKIELK; in ncl_dircookie_unlock()
133 wakeup(&np->n_flag); in ncl_dircookie_unlock()
134 NFSUNLOCKNODE(np); in ncl_dircookie_unlock()
[all …]
H A Dnfs_clnode.c99 struct nfsnode *np; in ncl_nget() local
125 np = uma_zalloc(newnfsnode_zone, M_WAITOK | M_ZERO); in ncl_nget()
129 uma_zfree(newnfsnode_zone, np); in ncl_nget()
134 vp->v_data = np; in ncl_nget()
135 np->n_vnode = vp; in ncl_nget()
142 mtx_init(&np->n_mtx, "NEWNFSnode lock", NULL, MTX_DEF | MTX_DUPOK); in ncl_nget()
143 lockinit(&np->n_excl, PVFS, "nfsupg", VLKTIMEOUT, LK_NOSHARE | in ncl_nget()
165 np->n_fhp = malloc(sizeof (struct nfsfh) + fhsize, in ncl_nget()
167 bcopy(fhp, np->n_fhp->nfh_fh, fhsize); in ncl_nget()
168 np->n_fhp->nfh_len = fhsize; in ncl_nget()
[all …]
H A Dnfs_clbio.c94 struct nfsnode *np; in ncl_gbp_getblksz() local
98 np = VTONFS(vp); in ncl_gbp_getblksz()
99 NFSLOCKNODE(np); in ncl_gbp_getblksz()
100 nsize = np->n_size; in ncl_gbp_getblksz()
101 NFSUNLOCKNODE(np); in ncl_gbp_getblksz()
127 struct nfsnode *np; in ncl_getpages() local
130 np = VTONFS(vp); in ncl_getpages()
143 NFSLOCKNODE(np); in ncl_getpages()
144 if ((np->n_flag & NNONCACHE) && (vp->v_type == VREG)) { in ncl_getpages()
145 NFSUNLOCKNODE(np); in ncl_getpages()
274 struct nfsnode *np; ncl_putpages() local
365 struct nfsnode *np = VTONFS(vp); nfs_bioread_check_cons() local
435 struct nfsnode *np = VTONFS(vp); ncl_bioread() local
805 struct nfsnode *np = VTONFS(vp); ncl_write() local
1297 struct nfsnode *np = VTONFS(vp); ncl_vinvalbuf() local
1525 struct nfsnode *np; ncl_doio() local
1776 struct nfsnode *np = VTONFS(vp); ncl_meta_setsize() local
[all...]
H A Dnfs_clvnops.c315 * np->n_mtx : Protects the fields in the nfsnode.
331 struct nfsnode *np; in nfs_lock() local
341 np = VTONFS(vp); in nfs_lock()
342 if (np == NULL) in nfs_lock()
344 NFSLOCKNODE(np); in nfs_lock()
345 if ((np->n_flag & NVNSETSZSKIP) == 0 || (lktype != LK_SHARED && in nfs_lock()
348 NFSUNLOCKNODE(np); in nfs_lock()
360 NFSUNLOCKNODE(np); in nfs_lock()
366 NFSUNLOCKNODE(np); in nfs_lock()
370 NFSUNLOCKNODE(np); in nfs_lock()
[all …]
/freebsd/lib/libc/nls/
H A Dmsgcat.c81 #define SAVEFAIL(n, l, e) { np = calloc(1, sizeof(struct catentry)); \
82 if (np != NULL) { \
83 np->name = strdup(n); \
84 np->catd = NLERR; \
85 np->lang = (l == NULL) ? NULL : \
87 np->caterrno = e; \
88 if (np->name == NULL || \
89 (l != NULL && np->lang == NULL)) { \
90 free(np->name); \
91 free(np->lang); \
[all …]
/freebsd/sys/fs/p9fs/
H A Dp9fs_subr.c135 struct p9fs_node *np, *pnp, *tmp; in p9fs_prepare_to_close() local
141 STAILQ_FOREACH_SAFE(np, &vses->virt_node_list, p9fs_node_next, tmp) { in p9fs_prepare_to_close()
142 if (np->parent && np->parent != np) { in p9fs_prepare_to_close()
143 pnp = np->parent; in p9fs_prepare_to_close()
144 np->parent = NULL; in p9fs_prepare_to_close()
190 p9fs_fid_remove_all(struct p9fs_node *np, int leave_ofids) in p9fs_fid_remove_all() argument
194 STAILQ_FOREACH_SAFE(fid, &np->vfid_list, fid_next, tfid) { in p9fs_fid_remove_all()
195 STAILQ_REMOVE(&np->vfid_list, fid, p9_fid, fid_next); in p9fs_fid_remove_all()
200 STAILQ_FOREACH_SAFE(fid, &np->vofid_list, fid_next, tfid) { in p9fs_fid_remove_all()
201 STAILQ_REMOVE(&np->vofid_list, fid, p9_fid, fid_next); in p9fs_fid_remove_all()
[all …]
H A Dp9fs_vfsops.c192 struct p9fs_node *np; in p9fs_node_cmp() local
195 np = vp->v_data; in p9fs_node_cmp()
198 if (np == NULL) in p9fs_node_cmp()
201 if (np->vqid.qid_path == qid->path) { in p9fs_node_cmp()
204 else if (np->vqid.qid_mode == qid->type && in p9fs_node_cmp()
205 np->vqid.qid_version == qid->version) in p9fs_node_cmp()
220 struct p9fs_node *np; in p9fs_destroy_node() local
222 np = *npp; in p9fs_destroy_node()
224 if (np == NULL) in p9fs_destroy_node()
228 P9FS_VFID_LOCK_DESTROY(np); in p9fs_destroy_node()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Deeprom.c18 struct device_node *np = dev->dev->of_node; in mt76_get_of_eeprom_data() local
22 data = of_get_property(np, "mediatek,eeprom-data", &size); in mt76_get_of_eeprom_data()
38 struct device_node *np = dev->dev->of_node; in mt76_get_of_epprom_from_mtd() local
47 list = of_get_property(np, "mediatek,mtd-eeprom", &size); in mt76_get_of_epprom_from_mtd()
55 np = of_find_node_by_phandle(phandle); in mt76_get_of_epprom_from_mtd()
56 if (!np) in mt76_get_of_epprom_from_mtd()
59 part = of_get_property(np, "label", NULL); in mt76_get_of_epprom_from_mtd()
61 part = np->name; in mt76_get_of_epprom_from_mtd()
106 of_node_put(np); in mt76_get_of_epprom_from_mtd()
114 struct device_node *np = dev->dev->of_node; in mt76_get_of_epprom_from_nvmem() local
[all …]
/freebsd/tools/regression/geom/ConfCmp/
H A DConfCmp.c80 struct node *np; in new_node() local
82 np = calloc(1, sizeof *np); in new_node()
83 np->cont = sbuf_new_auto(); in new_node()
84 sbuf_clear(np->cont); in new_node()
85 np->key = sbuf_new_auto(); in new_node()
86 sbuf_clear(np->key); in new_node()
87 LIST_INIT(&np->children); in new_node()
88 return (np); in new_node()
102 struct node *np; in StartElement() local
112 np = new_node(); in StartElement()
[all …]
/freebsd/sys/contrib/openzfs/cmd/zed/
H A Dzed_strings.c86 * Destroy the string node [np].
89 _zed_strings_node_destroy(zed_strings_node_t *np) in _zed_strings_node_destroy() argument
91 if (!np) in _zed_strings_node_destroy()
94 if (np->key) { in _zed_strings_node_destroy()
95 if (np->key != np->val) in _zed_strings_node_destroy()
96 free(np->key); in _zed_strings_node_destroy()
97 np->key = NULL; in _zed_strings_node_destroy()
99 if (np->val) { in _zed_strings_node_destroy()
100 free(np->val); in _zed_strings_node_destroy()
101 np->val = NULL; in _zed_strings_node_destroy()
[all …]
/freebsd/sys/dev/drm2/
H A Ddrm_gem_names.c42 struct drm_gem_name *np);
57 struct drm_gem_name *np; in drm_gem_names_fini() local
62 while ((np = LIST_FIRST(&names->names_hash[i])) != NULL) { in drm_gem_names_fini()
63 drm_gem_names_delete_name(names, np); in drm_gem_names_fini()
149 struct drm_gem_name *np; in drm_gem_name_create() local
155 np = malloc(sizeof(struct drm_gem_name), M_GEM_NAMES, M_WAITOK); in drm_gem_name_create()
157 np->name = alloc_unr(names->unr); in drm_gem_name_create()
158 if (np->name == -1) { in drm_gem_name_create()
160 free(np, M_GEM_NAMES); in drm_gem_name_create()
163 *name = np->name; in drm_gem_name_create()
[all …]
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_nat6.c208 ipnat_t **np; in ipf_nat6_addrdr() local
231 np = softn->ipf_nat_rdr_rules + hv; in ipf_nat6_addrdr()
232 while (*np != NULL) in ipf_nat6_addrdr()
233 np = &(*np)->in_rnext; in ipf_nat6_addrdr()
235 n->in_prnext = np; in ipf_nat6_addrdr()
238 *np = n; in ipf_nat6_addrdr()
255 ipnat_t **np; in ipf_nat6_addmap() local
272 np = softn->ipf_nat_map_rules + hv; in ipf_nat6_addmap()
273 while (*np != NULL) in ipf_nat6_addmap()
274 np = &(*np)->in_mnext; in ipf_nat6_addmap()
[all …]
/freebsd/lib/libc/tests/sys/
H A Dqueue_test.c46 } *n1, *n2, *n3, *np; in ATF_TC_BODY() local
57 SLIST_FOREACH(np, &head, entries) { in ATF_TC_BODY()
74 SLIST_FOREACH(np, &head, entries) { in ATF_TC_BODY()
75 ATF_REQUIRE_EQ_MSG(np->i, j, in ATF_TC_BODY()
76 "%d (entry counter) != %d (counter)", np->i, j); in ATF_TC_BODY()
97 SLIST_FOREACH(np, &head, entries) { in ATF_TC_BODY()
98 ATF_REQUIRE_EQ_MSG(np->i, j, in ATF_TC_BODY()
99 "%d (entry counter) != %d (counter)", np->i, j); in ATF_TC_BODY()
117 SLIST_FOREACH(np, &head, entries) { in ATF_TC_BODY()
118 ATF_REQUIRE_EQ_MSG(np->i, j, in ATF_TC_BODY()
[all …]
/freebsd/contrib/elftoolchain/libdwarf/
H A Dlibdwarf_nametbl.c36 Dwarf_NamePair np, tnp; in _dwarf_nametbl_cleanup() local
43 STAILQ_FOREACH_SAFE(np, &nt->nt_nplist, np_next, tnp) { in _dwarf_nametbl_cleanup()
44 STAILQ_REMOVE(&nt->nt_nplist, np, _Dwarf_NamePair, in _dwarf_nametbl_cleanup()
46 free(np); in _dwarf_nametbl_cleanup()
64 Dwarf_NamePair np; in _dwarf_nametbl_init() local
123 if ((np = malloc(sizeof(struct _Dwarf_NamePair))) == in _dwarf_nametbl_init()
129 np->np_nt = nt; in _dwarf_nametbl_init()
130 np->np_offset = cuoff; in _dwarf_nametbl_init()
132 np->np_name = &p[offset]; in _dwarf_nametbl_init()
135 STAILQ_INSERT_TAIL(&nt->nt_nplist, np, np_next); in _dwarf_nametbl_init()
[all …]

12345678910>>...22