Home
last modified time | relevance | path

Searched refs:npp (Results 1 – 25 of 29) sorted by relevance

12

/netbsd-src/sys/dev/sun/
H A Ddisksubr.c243 struct partition *npp; in disklabel_sun_to_bsd() local
288 npp = &lp->d_partitions[i]; in disklabel_sun_to_bsd()
290 if (npp->p_fstype == FS_ISO9660 in disklabel_sun_to_bsd()
291 && spp->sdkp_cyloffset * secpercyl == npp->p_offset*secpblck in disklabel_sun_to_bsd()
292 && spp->sdkp_nsectors <= npp->p_size*secpblck in disklabel_sun_to_bsd()
293 && npp->p_size > 0 && spp->sdkp_nsectors > 0) { in disklabel_sun_to_bsd()
301 npp->p_offset *= secpblck; in disklabel_sun_to_bsd()
302 npp->p_size = spp->sdkp_nsectors; in disklabel_sun_to_bsd()
303 npp->p_cdsession *= secpblck; in disklabel_sun_to_bsd()
306 npp->p_offset = spp->sdkp_cyloffset * secpercyl; in disklabel_sun_to_bsd()
[all …]
/netbsd-src/lib/libc/rpc/
H A Dgetnetpath.c100 char *npp; /* NETPATH env variable */ in setnetpath() local
115 if ((npp = getenv(NETPATH)) == NULL) in setnetpath()
121 if ((np_sessionp->netpath = malloc(strlen(npp)+1)) == NULL) { in setnetpath()
125 (void) strcpy(np_sessionp->netpath, npp); in setnetpath()
156 char *npp; /* holds current NETPATH */ in getnetpath() local
179 while ((npp = np_sessionp->netpath) != NULL && strlen(npp) != 0) { in getnetpath()
180 np_sessionp->netpath = _get_next_token(npp, ':'); in getnetpath()
184 if ((ncp = getnetconfigent(npp)) != NULL) { in getnetpath()
246 char *npp, /* string */ in _get_next_token() argument
254 _DIAGASSERT(npp != NULL); in _get_next_token()
[all …]
/netbsd-src/sys/dev/pci/
H A Dif_ne_pci.c140 const struct ne_pci_product *npp; in ne_pci_lookup() local
142 for (npp = ne_pci_products; npp->npp_name != NULL; npp++) { in ne_pci_lookup()
143 if (PCI_VENDOR(pa->pa_id) == npp->npp_vendor && in ne_pci_lookup()
144 PCI_PRODUCT(pa->pa_id) == npp->npp_product) in ne_pci_lookup()
145 return (npp); in ne_pci_lookup()
180 const struct ne_pci_product *npp; in ne_pci_attach() local
185 npp = ne_pci_lookup(pa); in ne_pci_attach()
186 if (npp == NULL) { in ne_pci_attach()
193 printf(": %s Ethernet\n", npp->npp_name); in ne_pci_attach()
223 dsc->sc_mediachange = npp->npp_mediachange; in ne_pci_attach()
[all …]
/netbsd-src/sys/arch/luna68k/luna68k/
H A Ddisksubr.c305 struct partition *npp; in disklabel_om_to_bsd() local
353 npp = &lp->d_partitions[i]; in disklabel_om_to_bsd()
354 npp->p_offset = spp->sdkp_cyloffset * secpercyl; in disklabel_om_to_bsd()
355 npp->p_size = spp->sdkp_nsectors; in disklabel_om_to_bsd()
356 if (npp->p_size == 0) in disklabel_om_to_bsd()
357 npp->p_fstype = FS_UNUSED; in disklabel_om_to_bsd()
360 npp->p_fstype = sun_fstypes[i]; in disklabel_om_to_bsd()
369 if (npp->p_fstype == FS_BSDFFS) { in disklabel_om_to_bsd()
370 npp->p_fsize = 1024; in disklabel_om_to_bsd()
371 npp->p_frag = 8; in disklabel_om_to_bsd()
[all …]
/netbsd-src/sys/kern/
H A Dsubr_disklabel.c58 struct partition *opp, *npp; in setdisklabel() local
91 npp = &nlp->d_partitions[i]; in setdisklabel()
96 if (npp->p_fstype == FS_UNUSED && opp->p_fstype != FS_UNUSED) { in setdisklabel()
97 *npp = *opp; in setdisklabel()
100 if (npp->p_offset != opp->p_offset || npp->p_size < opp->p_size) in setdisklabel()
/netbsd-src/sys/arch/sun68k/stand/libsa/
H A Dxxboot.c66 char **npp; in xxboot_main() local
120 for (npp = kernelnames; *npp; npp++) { in xxboot_main()
121 file = *npp; in xxboot_main()
/netbsd-src/sys/arch/sparc/stand/ofwboot/
H A Dofdev.c254 struct partition *npp; in disklabel_sun_to_bsd() local
296 npp = &lp->d_partitions[i]; in disklabel_sun_to_bsd()
297 npp->p_offset = spp->sdkp_cyloffset * secpercyl; in disklabel_sun_to_bsd()
298 npp->p_size = spp->sdkp_nsectors; in disklabel_sun_to_bsd()
299 DPRINTF(("partition %d start %x size %x\n", i, (int)npp->p_offset, (int)npp->p_size)); in disklabel_sun_to_bsd()
300 if (npp->p_size == 0) { in disklabel_sun_to_bsd()
301 npp->p_fstype = FS_UNUSED; in disklabel_sun_to_bsd()
303 npp->p_fstype = sun_fstypes[i]; in disklabel_sun_to_bsd()
304 if (npp->p_fstype == FS_BSDFFS) { in disklabel_sun_to_bsd()
309 npp->p_fsize = 1024; in disklabel_sun_to_bsd()
[all …]
/netbsd-src/games/hunt/huntd/
H A Danswer.c227 PLAYER *npp; in stmonitor() local
237 for (npp = Player; npp < End_player; npp++) { in stmonitor()
238 cgoto(npp, line, STAT_NAME_COL); in stmonitor()
239 outstr(npp, Buf, STAT_NAME_LEN); in stmonitor()
241 for (npp = Monitor; npp < End_monitor; npp++) { in stmonitor()
242 cgoto(npp, line, STAT_NAME_COL); in stmonitor()
243 outstr(npp, Buf, STAT_NAME_LEN); in stmonitor()
H A Ddraw.c386 PLAYER *npp; in player_sym() local
388 npp = play_at(y, x); in player_sym()
389 if (npp->p_ident->i_team == ' ') in player_sym()
393 return npp->p_ident->i_team; in player_sym()
395 if (pp->p_ident->i_team != npp->p_ident->i_team) in player_sym()
/netbsd-src/external/bsd/libbind/dist/irs/
H A Dgethostent.c800 char **cpp, **npp; in copyandmerge() local
848 npp = he->h_addr_list; in copyandmerge()
852 *npp = memget((af == AF_INET) ? INADDRSZ : IN6ADDRSZ); in copyandmerge()
853 if (*npp == NULL) in copyandmerge()
857 memcpy(*npp, in6addr_mapped, in copyandmerge()
859 memcpy(*npp + sizeof in6addr_mapped, *cpp, in copyandmerge()
862 memcpy(*npp, *cpp, in copyandmerge()
866 npp++; in copyandmerge()
873 *npp = memget((af == AF_INET) ? INADDRSZ : IN6ADDRSZ); in copyandmerge()
874 if (*npp == NULL) in copyandmerge()
[all …]
/netbsd-src/sys/fs/nfs/client/
H A Dnfs_clnode.c97 ncl_nget(struct mount *mntp, u_int8_t *fhp, int fhsize, struct nfsnode **npp, in ncl_nget() argument
110 *npp = NULL; in ncl_nget()
124 *npp = VTONFS(nvp); in ncl_nget()
169 *npp = NULL; in ncl_nget()
180 *npp = VTONFS(nvp); in ncl_nget()
184 *npp = np; in ncl_nget()
H A Dnfs_clport.c132 struct componentname *cnp, struct thread *td, struct nfsnode **npp, in nfscl_nget() argument
144 *npp = NULL; in nfscl_nget()
216 *npp = np; in nfscl_nget()
279 *npp = NULL; in nfscl_nget()
292 *npp = VTONFS(nvp); in nfscl_nget()
296 *npp = np; in nfscl_nget()
314 struct thread *td, struct nfsnode **npp) in nfscl_ngetreopen() argument
321 *npp = NULL; in nfscl_ngetreopen()
364 *npp = VTONFS(nvp); in nfscl_ngetreopen()
H A Dnfs_clvnops.c2452 struct thread *td, struct nfsnode **npp) in nfs_lookitup() argument
2466 if (npp && !error) { in nfs_lookitup()
2467 if (*npp != NULL) { in nfs_lookitup()
2468 np = *npp; in nfs_lookitup()
2523 if (!attrflag && *npp == NULL) { in nfs_lookitup()
2534 if (npp && *npp == NULL) { in nfs_lookitup()
2543 *npp = np; in nfs_lookitup()
/netbsd-src/usr.bin/config/
H A Dmain.c1333 do_option(struct hashtab *ht, struct nvlist **npp, struct nvlist ***next, in do_option() argument
1352 if (undo_option(ht, npp, next, name, type, 0)) in do_option()
1375 undo_option(struct hashtab *ht, struct nvlist **npp, in undo_option() argument
1388 if (npp == NULL) { in undo_option()
1393 for ( ; *npp != NULL; npp = &(*npp)->nv_next) { in undo_option()
1394 if ((*npp)->nv_name != name) in undo_option()
1396 if (next != NULL && *next == &(*npp)->nv_next) in undo_option()
1397 *next = npp; in undo_option()
[all...]
/netbsd-src/crypto/dist/ipsec-tools/src/racoon/
H A Disakmp_cfg.c146 char *npp; local
265 npp = (char *)ph;
266 ph = (struct isakmp_gen *)(npp + ntohs(ph->len));
323 char *npp; local
437 npp = (char *)attr;
438 attr = (struct isakmp_data *)(npp + sizeof(*attr) + alen);
495 char *npp; local
610 npp = (char *)attr;
611 attr = (struct isakmp_data *)(npp + sizeof(*attr) + alen);
664 char *npp; local
[all …]
/netbsd-src/sys/nfs/
H A Dnfs_node.c160 nfs_nget1(struct mount *mntp, nfsfh_t *fhp, int fhsize, struct nfsnode **npp, in nfs_nget1() argument
174 *npp = VTONFS(vp); in nfs_nget1()
H A Dnfs_var.h90 #define nfs_nget(mp, fhp, fhsize, npp) \
91 nfs_nget1((mp), (fhp), (fhsize), (npp), 0)
87 nfs_nget(mp,fhp,fhsize,npp) global() argument
H A Dnfs_vnops.c2896 …ruct vnode *dvp, const char *name, int len, kauth_cred_t cred, struct lwp *l, struct nfsnode **npp) in nfs_lookitup() argument
2918 if (npp && !error) { in nfs_lookitup()
2920 if (*npp) { in nfs_lookitup()
2921 np = *npp; in nfs_lookitup()
2961 if (!attrflag && *npp == NULL) { in nfs_lookitup()
2971 if (npp && *npp == NULL) { in nfs_lookitup()
2976 *npp = np; in nfs_lookitup()
/netbsd-src/external/cddl/osnet/dist/lib/libdtrace/common/
H A Ddt_proc.c775 dt_proc_notify_t *npr, **npp; local
852 npp = &dph->dph_notify;
854 while ((npr = *npp) != NULL) {
856 *npp = npr->dprn_next;
859 npp = &npr->dprn_next;
/netbsd-src/external/bsd/nvi/dist/ex/
H A Dex_cscope.c214 char *npp; in cscope_add() local
261 } else if ((npp = strrchr(np, '/')) != NULL) { in cscope_add()
262 *npp = '\0'; in cscope_add()
263 dbname = npp + 1; in cscope_add()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dtree-switch-conversion.c2006 case_tree_node **npp; in balance_case_nodes() local
2025 npp = head; in balance_case_nodes()
2026 left = *npp; in balance_case_nodes()
2035 prob -= (*npp)->m_c->m_prob; in balance_case_nodes()
2037 || ! (*npp)->m_right) in balance_case_nodes()
2039 npp = &(*npp)->m_right; in balance_case_nodes()
2042 np = *npp; in balance_case_nodes()
2043 *npp = 0; in balance_case_nodes()
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dtree-switch-conversion.cc2043 case_tree_node **npp; in balance_case_nodes() local
2062 npp = head; in balance_case_nodes()
2063 left = *npp; in balance_case_nodes()
2072 prob -= (*npp)->m_c->m_prob; in balance_case_nodes()
2074 || ! (*npp)->m_right) in balance_case_nodes()
2076 npp = &(*npp)->m_right; in balance_case_nodes()
2079 np = *npp; in balance_case_nodes()
2080 *npp = 0; in balance_case_nodes()
/netbsd-src/sys/arch/sun2/sun2/
H A Dpmap.c1032 int npp, nvp, sz; in pv_init() local
1045 npp = ALIGN(physmem); in pv_init()
1046 sz += (npp * sizeof(*pv_flags_tbl)); in pv_init()
1047 sz += (npp * sizeof(*pv_head_tbl)); in pv_init()
1065 p += (npp * sizeof(*pv_flags_tbl)); in pv_init()
1067 p += (npp * sizeof(*pv_head_tbl)); in pv_init()
/netbsd-src/sys/arch/sun3/sun3/
H A Dpmap.c1041 int npp, nvp, sz; in pv_init() local
1054 npp = ALIGN(physmem); in pv_init()
1055 sz += (npp * sizeof(*pv_flags_tbl)); in pv_init()
1056 sz += (npp * sizeof(*pv_head_tbl)); in pv_init()
1074 p += (npp * sizeof(*pv_flags_tbl)); in pv_init()
1076 p += (npp * sizeof(*pv_head_tbl)); in pv_init()
/netbsd-src/sys/external/bsd/ipf/netinet/
H A Dip_nat.c8073 ipnat_t **newtab, *np, ***old, **npp; in ipf_nat_rehash_rules() local
8122 for (npp = newtab + hv; *npp != NULL; ) in ipf_nat_rehash_rules()
8123 npp = &(*npp)->in_rnext; in ipf_nat_rehash_rules()
8124 np->in_prnext = npp; in ipf_nat_rehash_rules()
8125 *npp = np; in ipf_nat_rehash_rules()
8130 for (npp = newtab + hv; *npp != NULL; ) in ipf_nat_rehash_rules()
8131 npp in ipf_nat_rehash_rules()
[all...]

12