Lines Matching refs:dsk
94 static struct dsk {
102 } dsk;
211 dsk.drive = *(uint8_t *)PTOV(ARGS);
212 dsk.type = dsk.drive & DRV_HARD ? TYPE_AD : TYPE_FD;
213 dsk.unit = dsk.drive & DRV_MASK;
214 dsk.slice = *(uint8_t *)PTOV(ARGS + 1) + 1;
258 dsk.drive & DRV_MASK, dev_nm[dsk.type], dsk.unit,
259 'a' + dsk.part, kname);
351 bootinfo.bi_bios_dev = dsk.drive;
353 MAKEBOOTDEV(dev_maj[dsk.type], dsk.slice, dsk.unit, dsk.part),
431 dsk.type = i;
433 dsk.unit = *arg - '0';
434 if (arg[1] != ',' || dsk.unit > 9)
437 dsk.slice = WHOLE_DISK_SLICE;
439 dsk.slice = *arg - '0' + 1;
440 if (dsk.slice > NDOSPART + 1)
446 dsk.part = *arg - 'a';
447 if (dsk.part > 7)
451 drv = dsk.unit;
452 dsk.drive = (dsk.type <= TYPE_MAXHARD
481 dsk.start = 0;
485 sl = dsk.slice;
492 dsk.slice == COMPATIBILITY_SLICE)
495 if (dsk.slice == WHOLE_DISK_SLICE)
496 dsk.slice = sl;
505 dsk.start = dp->dp_start;
507 if (drvread(sec, dsk.start + LABELSECTOR, 1))
511 if (dsk.part != RAW_PART) {
516 if (!dsk.init) {
518 dsk.type = TYPE_DA;
519 dsk.init++;
521 if (dsk.part >= d->d_npartitions ||
522 !d->d_partitions[dsk.part].p_size) {
526 dsk.start += d->d_partitions[dsk.part].p_offset;
527 dsk.start -= d->d_partitions[RAW_PART].p_offset;
530 return (drvread(buf, dsk.start + lba, nblk));
598 v86.edx = nblk << 8 | dsk.drive;