Searched refs:nlp (Results 1 - 25 of 38) sorted by relevance

12

/netbsd-6-1-5-RELEASE/sbin/disklabel/
H A Dbswap.c73 static void bswaplabel(struct disklabel *nlp, struct disklabel *olp);
76 bswaplabel(struct disklabel *nlp, struct disklabel *olp) argument
80 nlp->d_magic = bswap32(olp->d_magic);
81 nlp->d_type = bswap16(olp->d_type);
82 nlp->d_subtype = bswap16(olp->d_subtype);
85 memcpy(nlp->d_typename, olp->d_typename, sizeof(nlp->d_typename));
88 memcpy(nlp->d_packname, olp->d_packname, sizeof(nlp->d_packname));
90 nlp
[all...]
/netbsd-6-1-5-RELEASE/include/
H A Dnlist.h54 # define N_NAME(nlp) ((nlp)->n_un.n_name)
57 # define N_NAME(nlp) ((nlp)->n_name)
/netbsd-6-1-5-RELEASE/tools/m68k-elf2aout/
H A Dnlist.h56 # define N_NAME(nlp) ((nlp)->n_un.n_name)
59 # define N_NAME(nlp) ((nlp)->n_name)
/netbsd-6-1-5-RELEASE/sys/arch/evbppc/evbppc/
H A Ddisksubr.c162 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, argument
169 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0 ||
170 (nlp->d_secsize % DEV_BSIZE) != 0)
174 if (nlp->d_magic == 0xffffffff) {
175 *olp = *nlp;
179 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
180 dkcksum(nlp) != 0)
186 if (nlp
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/hp700/hp700/
H A Ddisksubr.c276 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, argument
283 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0 ||
284 (nlp->d_secsize % DEV_BSIZE) != 0)
295 if (nlp->d_magic == 0xffffffff) {
296 *olp = *nlp;
300 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
301 dkcksum(nlp) != 0)
309 if (nlp
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/arm/arm/
H A Ddisksubr.c265 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, struct cpu_disklabel *osdep) argument
272 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0
273 || (nlp->d_secsize % DEV_BSIZE) != 0)
278 if (nlp->d_magic == 0xffffffff) {
279 *olp = *nlp;
283 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC
284 || dkcksum(nlp) != 0)
292 if (nlp
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/alpha/alpha/
H A Ddisksubr.c147 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, struct cpu_disklabel *clp) argument
153 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0 ||
154 (nlp->d_secsize % DEV_BSIZE) != 0)
160 if (nlp->d_magic == 0xffffffff) {
161 *olp = *nlp;
166 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
167 dkcksum(nlp) != 0)
173 if (nlp
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/evbmips/evbmips/
H A Ddisksubr.c152 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, argument
159 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0 ||
160 (nlp->d_secsize % DEV_BSIZE) != 0)
163 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
164 dkcksum(nlp) != 0)
170 if (nlp->d_npartitions <= i)
173 npp = &nlp->d_partitions[i];
187 nlp
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/sh3/sh3/
H A Ddisksubr.c69 swap_endian_disklabel(struct disklabel *nlp, struct disklabel *olp) argument
72 #define SW16(X) nlp->X = bswap16(olp->X)
73 #define SW32(X) nlp->X = bswap32(olp->X)
80 memcpy(nlp->d_typename, olp->d_typename, sizeof(nlp->d_typename));
83 memcpy(nlp->d_packname, olp->d_packname, sizeof(nlp->d_packname));
124 nlp->d_partitions[i].p_fstype = olp->d_partitions[i].p_fstype;
125 nlp->d_partitions[i].p_frag = olp->d_partitions[i].p_frag;
148 swap_mmeye_disklabel(struct disklabel *nlp, struc argument
536 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, struct cpu_disklabel *osdep) argument
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/sbmips/sbmips/
H A Ddisksubr.c268 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, struct cpu_disklabel *osdep) argument
274 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0
275 || (nlp->d_secsize % DEV_BSIZE) != 0)
279 if (nlp->d_magic == 0xffffffff) {
280 *olp = *nlp;
284 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
285 dkcksum(nlp) != 0)
293 if (nlp
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/cobalt/cobalt/
H A Ddisksubr.c265 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, argument
272 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0 ||
273 (nlp->d_secsize % DEV_BSIZE) != 0)
277 if (nlp->d_magic == 0xffffffff) {
278 *olp = *nlp;
282 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
283 dkcksum(nlp) != 0)
291 if (nlp
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/news68k/news68k/
H A Ddisksubr.c113 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, argument
119 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
120 dkcksum(nlp) != 0)
125 if (nlp->d_npartitions <= i)
128 npp = &nlp->d_partitions[i];
142 nlp->d_checksum = 0;
143 nlp->d_checksum = dkcksum(nlp);
144 *olp = *nlp;
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/newsmips/newsmips/
H A Ddisksubr.c113 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, argument
119 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
120 dkcksum(nlp) != 0)
125 if (nlp->d_npartitions <= i)
128 npp = &nlp->d_partitions[i];
142 nlp->d_checksum = 0;
143 nlp->d_checksum = dkcksum(nlp);
144 *olp = *nlp;
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/pmax/pmax/
H A Ddisksubr.c199 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, argument
205 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
206 dkcksum(nlp) != 0)
211 if (nlp->d_npartitions <= i)
214 npp = &nlp->d_partitions[i];
228 nlp->d_checksum = 0;
229 nlp->d_checksum = dkcksum(nlp);
230 *olp = *nlp;
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/hp300/hp300/
H A Ddisksubr.c114 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, argument
120 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
121 dkcksum(nlp) != 0)
126 if (nlp->d_npartitions <= i)
129 npp = &nlp->d_partitions[i];
143 nlp->d_checksum = 0;
144 nlp->d_checksum = dkcksum(nlp);
145 *olp = *nlp;
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/luna68k/luna68k/
H A Ddisksubr.c238 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, struct cpu_disklabel *clp) argument
244 if ((nlp->d_secpercyl == 0) || (nlp->d_secsize == 0) ||
245 (nlp->d_secsize % DEV_BSIZE) != 0)
249 if (nlp->d_magic == 0xffffffff) {
250 *olp = *nlp;
254 if (nlp->d_magic != DISKMAGIC ||
255 nlp->d_magic2 != DISKMAGIC ||
256 dkcksum(nlp) != 0)
262 if (nlp
[all...]
/netbsd-6-1-5-RELEASE/sys/dev/sun/
H A Ddisksubr.c171 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, struct cpu_disklabel *clp) argument
177 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0 ||
178 (nlp->d_secsize % DEV_BSIZE) != 0)
182 if (nlp->d_magic == 0xffffffff) {
183 *olp = *nlp;
187 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
188 dkcksum(nlp) != 0)
194 if (nlp
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/mvme68k/mvme68k/
H A Ddisksubr.c113 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, argument
121 printlp(nlp, "setdisklabel: new disklabel");
129 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0 ||
130 (nlp->d_secsize % DEV_BSIZE) != 0)
134 if (nlp->d_magic == 0xffffffff) {
135 *olp = *nlp;
139 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
140 dkcksum(nlp) !
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/x68k/x68k/
H A Ddisksubr.c257 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, argument
264 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0
265 /*|| (nlp->d_secsize % DEV_BSIZE) != 0*/)
269 if (nlp->d_magic == 0xffffffff) {
270 *olp = *nlp;
274 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
275 dkcksum(nlp) != 0)
279 parttbl_consistency_check(nlp, osde
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/mac68k/mac68k/
H A Ddisksubr.c465 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, argument
473 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0 ||
474 (nlp->d_secsize % DEV_BSIZE) != 0)
478 if (nlp->d_magic == 0xffffffff) {
479 *olp = *nlp;
483 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
484 dkcksum(nlp) != 0)
495 if (nlp
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/hpc/hpc/
H A Ddisksubr.c318 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, argument
325 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0
326 || (nlp->d_secsize % DEV_BSIZE) != 0)
330 if (nlp->d_magic == 0xffffffff) {
331 *olp = *nlp;
335 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
336 dkcksum(nlp) != 0)
344 if (nlp
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/arc/arc/
H A Ddisksubr.c363 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, argument
370 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0 ||
371 (nlp->d_secsize % DEV_BSIZE) != 0)
375 if (nlp->d_magic == 0xffffffff) {
376 *olp = *nlp;
380 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
381 dkcksum(nlp) != 0)
389 if (nlp
[all...]
/netbsd-6-1-5-RELEASE/dist/ipf/samples/
H A Dproxy.c134 do_nat_out(in, out, fd, nlp, extif)
136 natlookup_t *nlp;
164 usin.sin_addr = nlp->nl_realip;
165 usin.sin_port = nlp->nl_realport;
183 nat->nat_outip = nlp->nl_outip;
184 nat->nat_oip = nlp->nl_realip;
187 sum2 = LONG_SUM(ntohl(nat->nat_outip.s_addr)) + ntohs(nlp->nl_outport);
198 nat->nat_outport = nlp->nl_outport;
199 nat->nat_oport = nlp->nl_realport;
218 usin.sin_addr = nlp
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/vax/vax/
H A Ddisksubr.c206 setdisklabel(struct disklabel *olp, struct disklabel *nlp, argument
212 if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
213 dkcksum(nlp) != 0)
218 if (nlp->d_npartitions <= i)
221 npp = &nlp->d_partitions[i];
235 nlp->d_checksum = 0;
236 nlp->d_checksum = dkcksum(nlp);
237 *olp = *nlp;
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/atari/atari/
H A Ddisksubr.c141 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, argument
146 if (nlp->d_magic == 0xffffffff) {
147 *olp = *nlp;
152 if (nlp->d_secpercyl == 0 || nlp->d_npartitions > MAXPARTITIONS ||
153 nlp->d_secsize == 0 || (nlp->d_secsize % DEV_BSIZE) != 0 ||
154 nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
155 dkcksum(nlp) !
[all...]

Completed in 269 milliseconds

12