Home
last modified time | relevance | path

Searched refs:this_ext (Results 1 – 5 of 5) sorted by relevance

/netbsd/src/sys/dev/dkwedge/
Ddkwedge_bsdlabel.c349 u_int ext_base, this_ext, next_ext; in scan_mbr() local
356 this_ext = 0; in scan_mbr()
358 a->error = dkwedge_read(a->pdk, a->vp, this_ext, a->bp->b_data, in scan_mbr()
362 "error = %d\n", a->pdk->dk_name, this_ext, in scan_mbr()
390 if (this_ext == 0) in scan_mbr()
395 rval = (*actn)(a, dp, i, this_ext); in scan_mbr()
406 if (next_ext <= this_ext) in scan_mbr()
408 this_ext = next_ext; in scan_mbr()
411 if (this_ext == 0 && dp_386bsd != -1) in scan_mbr()
/netbsd/src/sys/arch/landisk/stand/boot/
Dbiosdisk.c143 int ext_base, this_ext, next_ext; in read_label() local
160 this_ext = ext_base + next_ext; in read_label()
164 if (readsects(d->dev, this_ext, d->buf, 1)) { in read_label()
166 printf("error reading MBR sector %d\n", this_ext); in read_label()
176 sector = this_ext + mbr[i].mbrp_start; in read_label()
187 if (this_ext == 0 && typ == MBR_PTYPE_386BSD) in read_label()
190 if (this_ext != 0) { in read_label()
/netbsd/src/sys/kern/
Dsubr_disk_mbr.c142 uint ext_base, this_ext, next_ext; in scan_mbr() local
152 this_ext = 0; in scan_mbr()
154 if (read_sector(a, this_ext, 1)) { in scan_mbr()
191 this_ext = le32toh(a->lp->d_secpercyl / in scan_mbr()
223 if (this_ext == 0) { in scan_mbr()
230 rval = (*actn)(a, dp, j, this_ext); in scan_mbr()
242 if (next_ext <= this_ext) in scan_mbr()
244 this_ext = next_ext; in scan_mbr()
247 if (this_ext == 0 && dp_386bsd != -1) in scan_mbr()
/netbsd/src/sys/arch/i386/stand/lib/
Dbiosdisk.c584 int this_ext, daddr_t sector) in read_minix_subp() argument
605 sector = this_ext + mbr[i].mbrp_start; in read_minix_subp()
659 uint32_t ext_base, this_ext, next_ext; in read_label() local
681 this_ext = ext_base + next_ext; in read_label()
683 if (readsects(&d->ll, this_ext, 1, d->buf, 0)) { in read_label()
685 printf("error reading MBR sector %u\n", this_ext); in read_label()
695 sector = this_ext + mbr[i].mbrp_start; in read_label()
701 this_ext, sector)) { in read_label()
716 if (this_ext == offset && typ == MBR_PTYPE_386BSD) in read_label()
719 if (this_ext != offset) { in read_label()
/netbsd/src/sbin/disklabel/
Dmain.c930 u_int ext_base, next_ext, this_ext, start; local
935 this_ext = next_ext;
938 warnx("reading mbr sector %u", this_ext);
939 if (pread(f, &mbr, sizeof mbr, this_ext * (off_t)DEV_BSIZE)
943 this_ext);
951 this_ext);
968 res = action(f, this_ext + start);
992 if (next_ext <= this_ext) {
995 next_ext, this_ext);