Home
last modified time | relevance | path

Searched refs:p_offset (Results 1 – 25 of 260) sorted by relevance

1234567891011

/netbsd-src/sbin/mbrlabel/
H A Dmbrlabel.c165 npe.p_offset = getlong(&parts[i].mbrp_start) + off; in getparts()
174 npe.p_size, npe.p_size / 2048, npe.p_offset); in getparts()
184 lpe->p_offset == npe.p_offset) { in getparts()
206 if ((npe.p_offset >= lpe->p_offset && in getparts()
207 npe.p_offset < lpe->p_offset + lpe->p_size) || in getparts()
208 (npe.p_offset + npe.p_size - 1 >= lpe->p_offset && in getparts()
209 npe.p_offset + npe.p_size - 1 < lpe->p_offset + lpe->p_size)) { in getparts()
/netbsd-src/sbin/disklabel/
H A Dprintlabel.c125 pp->p_offset/lp->d_secpercyl, in showpartition()
126 (pp->p_offset%lp->d_secpercyl) / lp->d_nsectors, in showpartition()
127 pp->p_offset%lp->d_nsectors); in showpartition()
133 'a' + i, pp->p_size, pp->p_offset); in showpartition()
175 pp->p_offset / lp->d_secpercyl); in showpartition()
177 if (pp->p_offset > lp->d_secperunit) in showpartition()
179 else if (pp->p_offset % lp->d_secpercyl) in showpartition()
185 (pp->p_offset + in showpartition()
189 if ((pp->p_offset + pp->p_size) > lp->d_secperunit) in showpartition()
191 else if ((pp->p_offset + pp->p_size) % lp->d_secpercyl) in showpartition()
H A Dinteract.c512 defnum(lp, def, p->p_offset); in cmd_part()
523 if ((cp[line[0] - 'a'].p_offset + in cmd_part()
528 p->p_offset = cp[line[0] - 'a'].p_offset + in cmd_part()
540 p->p_offset = (uint32_t)im; in cmd_part()
552 if ((im = getnum(lp, line, lp->d_secperunit - p->p_offset)) in cmd_part()
557 (im + p->p_offset) > lp->d_secperunit) { in cmd_part()
572 if (offs != -1 && cp[i].p_offset != (uint32_t)offs) { in cmd_part()
573 cp[i].p_offset = offs; in cmd_part()
576 offs = cp[i].p_offset + cp[i].p_size; in cmd_part()
/netbsd-src/sys/arch/x68k/x68k/
H A Ddisksubr.c84 lp->d_partitions[i].p_offset = 0; in readdisklabel()
88 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel()
178 lp->d_partitions[part].p_offset = start; in readdisklabel()
347 start = lp->d_partitions[part].p_offset >> 1; in writedisklabel()
405 if (lp->d_partitions[0].p_offset != 0 in writedisklabel()
406 && lp->d_partitions[0].p_offset != dospartoff) { in writedisklabel()
453 if ((bp[i].p_offset * f < (dp[j].dp_start + dp[j].dp_size) * g) && in parttbl_consistency_check()
454 ((bp[i].p_offset + bp[i].p_size) * f >= (dp[j].dp_start + dp[j].dp_size) * g)) in parttbl_consistency_check()
456 if ((bp[i].p_offset * f > dp[j].dp_start * g) && in parttbl_consistency_check()
457 ((bp[i].p_offset + bp[i].p_size) * f < (dp[j].dp_start + dp[j].dp_size) * g)) in parttbl_consistency_check()
[all …]
/netbsd-src/sys/kern/
H A Dsubr_disk.c133 sn += lp->d_partitions[part].p_offset; in diskerr()
355 uint64_t p_size, p_offset, labelsector; in bounds_check_with_label() local
371 p_offset = (uint64_t)p->p_offset << dk->dk_blkshift; in bounds_check_with_label()
373 labelsector = lp->d_partitions[2].p_offset; in bounds_check_with_label()
375 labelsector = lp->d_partitions[RAW_PART].p_offset; in bounds_check_with_label()
403 if (bp->b_blkno + p_offset <= labelsector && in bounds_check_with_label()
404 bp->b_blkno + p_offset + sz > labelsector && in bounds_check_with_label()
411 bp->b_cylinder = (bp->b_blkno + p->p_offset) / in bounds_check_with_label()
463 if (lp->d_npartitions > RAW_PART && p->p_offset == 0 && p->p_size != 0) in convertdisklabel()
466 altp->p_offset == 0 && altp->p_size != 0) { in convertdisklabel()
[all …]
/netbsd-src/sys/arch/arc/stand/boot/
H A Ddisk.c76 offset += pp->p_offset; in diskstrategy()
151 lp->d_partitions[part].p_offset = 0; in diskopen()
175 mbrp_off = lp->d_partitions[2].p_offset; in diskopen()
178 lp->d_partitions[i].p_offset >= mbrp_off) in diskopen()
179 lp->d_partitions[i].p_offset -= mbrp_off; in diskopen()
/netbsd-src/sys/arch/sgimips/stand/common/
H A Ddisk.c76 offset += pp->p_offset; in diskstrategy()
151 lp->d_partitions[part].p_offset = 0; in diskopen()
175 mbrp_off = lp->d_partitions[2].p_offset; in diskopen()
178 lp->d_partitions[i].p_offset >= mbrp_off) in diskopen()
179 lp->d_partitions[i].p_offset -= mbrp_off; in diskopen()
/netbsd-src/sys/arch/next68k/next68k/
H A Ddisksubr.c122 lp->d_partitions[nbp].p_offset = in parse_nextstep_label()
218 if (nbp != RAW_PART && lp->d_partitions[nbp].p_offset > 0 && in build_nextstep_label()
219 lp->d_partitions[nbp].p_offset < front_porch) in build_nextstep_label()
220 front_porch = lp->d_partitions[nbp].p_offset; in build_nextstep_label()
226 (lp->d_partitions[nbp].p_offset == in build_nextstep_label()
258 p->cp_offset = (lp->d_partitions[nbp].p_offset / in build_nextstep_label()
329 lp->d_partitions[i].p_offset = 0; in readdisklabel()
333 lp->d_partitions[i].p_offset = 0; in readdisklabel()
415 if (lp->d_partitions[labelpart].p_offset != 0) { in writedisklabel()
416 if (lp->d_partitions[0].p_offset != 0) in writedisklabel()
/netbsd-src/external/gpl3/binutils.old/dist/include/elf/
H A Dinternal.h89 bfd_vma p_offset; /* Segment file offset in octets. */ member
347 || ((bfd_vma) (sec_hdr)->sh_offset >= (segment)->p_offset \
349 || ((sec_hdr)->sh_offset - (segment)->p_offset \
351 && (((sec_hdr)->sh_offset - (segment)->p_offset \
371 || ((bfd_vma) (sec_hdr)->sh_offset > (segment)->p_offset \
372 && ((sec_hdr)->sh_offset - (segment)->p_offset \
/netbsd-src/external/gpl3/binutils/dist/include/elf/
H A Dinternal.h89 bfd_vma p_offset; /* Segment file offset in octets. */ member
348 || ((bfd_vma) (sec_hdr)->sh_offset >= (segment)->p_offset \
350 || ((sec_hdr)->sh_offset - (segment)->p_offset \
352 && (((sec_hdr)->sh_offset - (segment)->p_offset \
372 || ((bfd_vma) (sec_hdr)->sh_offset > (segment)->p_offset \
373 && ((sec_hdr)->sh_offset - (segment)->p_offset \
/netbsd-src/sys/arch/pmax/pmax/
H A Ddisksubr.c73 lp->d_partitions[0].p_offset = 0; in readdisklabel()
174 lp->d_partitions[part].p_offset = in compat_label()
184 lp->d_partitions[part].p_offset, in compat_label()
209 if (lp->d_partitions[labelpart].p_offset != 0) { in writedisklabel()
210 if (lp->d_partitions[0].p_offset != 0) in writedisklabel()
/netbsd-src/sys/arch/newsmips/newsmips/
H A Ddisksubr.c71 lp->d_partitions[i].p_offset = 0; in readdisklabel()
75 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel()
122 if (lp->d_partitions[labelpart].p_offset != 0) { in writedisklabel()
123 if (lp->d_partitions[0].p_offset != 0) in writedisklabel()
/netbsd-src/sys/arch/virt68k/virt68k/
H A Ddisksubr.c72 lp->d_partitions[i].p_offset = 0; in readdisklabel()
76 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel()
123 if (lp->d_partitions[labelpart].p_offset != 0) { in writedisklabel()
124 if (lp->d_partitions[0].p_offset != 0) in writedisklabel()
/netbsd-src/sys/arch/hp300/hp300/
H A Ddisksubr.c72 lp->d_partitions[i].p_offset = 0; in readdisklabel()
76 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel()
123 if (lp->d_partitions[labelpart].p_offset != 0) { in writedisklabel()
124 if (lp->d_partitions[0].p_offset != 0) in writedisklabel()
/netbsd-src/sys/arch/news68k/news68k/
H A Ddisksubr.c71 lp->d_partitions[i].p_offset = 0; in readdisklabel()
75 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel()
122 if (lp->d_partitions[labelpart].p_offset != 0) { in writedisklabel()
123 if (lp->d_partitions[0].p_offset != 0) in writedisklabel()
/netbsd-src/sys/arch/luna68k/stand/boot/
H A Ddisklabel.c223 bp->d_partitions[i].p_offset = in disklabel()
275 bp->d_partitions[i].p_offset = j; in disklabel()
377 pp->p_size, pp->p_offset); in display()
400 pp->p_offset / lp->d_secpercyl); in display()
401 if (pp->p_offset % lp->d_secpercyl) in display()
406 (pp->p_offset + in display()
/netbsd-src/sys/dev/sun/
H A Ddisksubr.c105 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel()
291 && spp->sdkp_cyloffset * secpercyl == npp->p_offset*secpblck in disklabel_sun_to_bsd()
301 npp->p_offset *= secpblck; in disklabel_sun_to_bsd()
306 npp->p_offset = spp->sdkp_cyloffset * secpercyl; in disklabel_sun_to_bsd()
373 if (npp->p_offset % secpercyl) in disklabel_bsd_to_sun()
375 spp->sdkp_cyloffset = npp->p_offset / secpercyl; in disklabel_bsd_to_sun()
/netbsd-src/usr.sbin/sysinst/
H A Ddisklabel.c179 parts->l.d_partitions[RAW_PART-1].p_offset = start; in disklabel_parts_new()
185 parts->l.d_partitions[RAW_PART].p_offset = 0; in disklabel_parts_new()
229 daddr_t dlstart = parts->l.d_partitions[RAW_PART-1].p_offset; in disklabel_parts_read()
272 parts->l.d_partitions[part].p_offset; in disklabel_parts_read()
277 parts->l.d_partitions[part].p_offset, in disklabel_parts_read()
337 parts->l.d_partitions[part].p_offset == in disklabel_parts_read()
338 parts->l.d_partitions[RAW_PART].p_offset && in disklabel_parts_read()
431 parts->l.d_secpercyl, lp[RAW_PART].p_offset+lp[RAW_PART].p_size); in disklabel_write_to_disk()
437 'a'+i, (uint32_t)lp[i].p_offset, 'a'+i, in disklabel_write_to_disk()
491 parts->l.d_partitions[RAW_PART-1].p_offset in disklabel_delete_all()
[all...]
/netbsd-src/sys/arch/luna68k/luna68k/
H A Ddisksubr.c192 lp->d_partitions[i].p_offset = 0; in readdisklabel()
196 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel()
354 npp->p_offset = spp->sdkp_cyloffset * secpercyl; in disklabel_om_to_bsd()
382 if (sl->sl_rpm == 0 && lp->d_partitions[2].p_offset != 0) { in disklabel_om_to_bsd()
429 spp->sdkp_cyloffset = npp->p_offset; /* UniOS */ in disklabel_bsd_to_om()
/netbsd-src/sys/arch/hpc/hpc/
H A Ddisksubr.c153 lp->d_partitions[i].p_offset = 0; in readdisklabel()
157 lp->d_partitions[i].p_offset = 0; in readdisklabel()
191 pp->p_offset = dp->mbrp_start; in readdisklabel()
213 lp->d_partitions[2].p_offset = in readdisklabel()
361 if (lp->d_partitions[2].p_offset != 0 in writedisklabel()
362 && lp->d_partitions[2].p_offset != dospartoff) { in writedisklabel()
/netbsd-src/sys/arch/atari/atari/
H A Ddisksubr.c264 if ((p->p_offset >= cdl->cd_bslst && in ck_label()
265 p->p_offset <= cdl->cd_bslend) || in ck_label()
266 (cdl->cd_bslst >= p->p_offset && in ck_label()
267 cdl->cd_bslst < p->p_offset + p->p_size)) { in ck_label()
272 if (*rp >= p->p_offset && in ck_label()
273 *rp < p->p_offset + p->p_size) { in ck_label()
465 dl->d_partitions[pno].p_offset = pd->ap_st; in ahdi_to_bsd()
/netbsd-src/sys/arch/sgimips/sgimips/
H A Ddisksubr.c142 if (lp->d_partitions[labelpart].p_offset != 0) { in writedisklabel()
143 if (lp->d_partitions[0].p_offset != 0) in writedisklabel()
252 lpp->p_offset = vh->partitions[mp].first; in disklabel_sgimips_to_bsd()
255 lpp->p_offset /= lp->d_secsize / DEV_BSIZE; in disklabel_sgimips_to_bsd()
307 vh->partitions[mp].first = lpp->p_offset; in disklabel_bsd_to_sgimips()
/netbsd-src/sys/arch/mipsco/mipsco/
H A Ddisksubr.c81 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel()
156 if (lp->d_partitions[labelpart].p_offset != 0) { in writedisklabel()
157 if (lp->d_partitions[0].p_offset != 0) in writedisklabel()
265 lpp->p_offset = vh->vh_part[mp].pt_offset; in disklabel_mips_to_bsd()
317 vh->vh_part[mp].pt_offset = lpp->p_offset; in disklabel_bsd_to_mips()
/netbsd-src/sys/arch/sh3/sh3/
H A Ddisksubr.c121 SW32(d_partitions[i].p_offset); in swap_endian_disklabel()
211 SW32(d_partitions[i].p_offset); in swap_mmeye_disklabel()
333 lp->d_partitions[i].p_offset = 0; in readdisklabel()
337 lp->d_partitions[i].p_offset = 0; in readdisklabel()
371 pp->p_offset = le32toh(dp->mbrp_start); in readdisklabel()
393 lp->d_partitions[2].p_offset = in readdisklabel()
579 if (lp->d_partitions[2].p_offset != 0 in writedisklabel()
580 && lp->d_partitions[2].p_offset != dospartoff) { in writedisklabel()
/netbsd-src/sbin/apmlabel/
H A Dapmlabel.c178 npe.p_offset = temp / label.d_secsize; in getparts()
186 npe.p_size, npe.p_size / 2048, npe.p_offset); in getparts()
194 lpe->p_offset == npe.p_offset in getparts()

1234567891011