/src/sys/arch/landisk/stand/boot/ |
biosdisk.c | 143 int ext_base, this_ext, next_ext; local in function:read_label 160 this_ext = ext_base + next_ext; 164 if (readsects(d->dev, this_ext, d->buf, 1)) { 166 printf("error reading MBR sector %d\n", this_ext); 176 sector = this_ext + mbr[i].mbrp_start; 187 if (this_ext == 0 && typ == MBR_PTYPE_386BSD) 190 if (this_ext != 0) {
|
/src/sys/dev/dkwedge/ |
dkwedge_bsdlabel.c | 349 u_int ext_base, this_ext, next_ext; local in function:scan_mbr 356 this_ext = 0; 358 a->error = dkwedge_read(a->pdk, a->vp, this_ext, a->bp->b_data, 362 "error = %d\n", a->pdk->dk_name, this_ext, 390 if (this_ext == 0) 395 rval = (*actn)(a, dp, i, this_ext); 406 if (next_ext <= this_ext) 408 this_ext = next_ext; 411 if (this_ext == 0 && dp_386bsd != -1)
|
/src/sys/kern/ |
subr_disk_mbr.c | 142 uint ext_base, this_ext, next_ext; local in function:scan_mbr 152 this_ext = 0; 154 if (read_sector(a, this_ext, 1)) { 191 this_ext = le32toh(a->lp->d_secpercyl / 223 if (this_ext == 0) { 230 rval = (*actn)(a, dp, j, this_ext); 242 if (next_ext <= this_ext) 244 this_ext = next_ext; 247 if (this_ext == 0 && dp_386bsd != -1)
|
/src/sys/arch/i386/stand/lib/ |
biosdisk.c | 584 int this_ext, daddr_t sector) 605 sector = this_ext + mbr[i].mbrp_start; 659 uint32_t ext_base, this_ext, next_ext; local in function:read_label 681 this_ext = ext_base + next_ext; 683 if (readsects(&d->ll, this_ext, 1, d->buf, 0)) { 685 printf("error reading MBR sector %u\n", this_ext); 695 sector = this_ext + mbr[i].mbrp_start; 701 this_ext, sector)) { 716 if (this_ext == offset && typ == MBR_PTYPE_386BSD) 719 if (this_ext != offset) [all...] |
/src/sbin/disklabel/ |
main.c | 930 u_int ext_base, next_ext, this_ext, start; local in function:process_mbr 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);
|