Lines Matching defs:dsk
120 struct dsk dsk;
235 if (gptread(&gdsk.dsk, dmadat->secbuf) == -1) {
239 if (gptfind(&freebsd_ufs_uuid, &gdsk.dsk, gdsk.dsk.part) == -1) {
244 gdsk.gdev = geli_taste(vdev_read, &gdsk.dsk,
246 "disk%up%u:", gdsk.dsk.unit, curent + 1);
285 gdsk.dsk.drive = *(uint8_t *)PTOV(ARGS);
286 gdsk.dsk.type = gdsk.dsk.drive & DRV_HARD ? TYPE_AD : TYPE_FD;
287 gdsk.dsk.unit = gdsk.dsk.drive & DRV_MASK;
288 gdsk.dsk.part = -1;
289 gdsk.dsk.start = 0;
295 bootinfo.bi_bios_dev = gdsk.dsk.drive;
341 gptbootfailed(&gdsk.dsk);
342 if (gptfind(&freebsd_ufs_uuid, &gdsk.dsk, -1) == -1)
354 gdsk.dsk.drive & DRV_MASK, dev_nm[gdsk.dsk.type],
355 gdsk.dsk.unit, gdsk.dsk.part, kname);
401 kname, gdsk.dsk.drive & DRV_MASK,
402 dev_nm[gdsk.dsk.type], gdsk.dsk.unit,
403 gdsk.dsk.part);
478 bootinfo.bi_bios_dev = gdsk.dsk.drive;
491 MAKEBOOTDEV(dev_maj[gdsk.dsk.type], gdsk.dsk.part + 1, gdsk.dsk.unit, 0xff),
571 gdsk.dsk.type = i;
573 gdsk.dsk.unit = *arg - '0';
574 if (arg[1] != 'p' || gdsk.dsk.unit > 9)
580 gdsk.dsk.part = j;
581 if (gdsk.dsk.part < 1 || gdsk.dsk.part > 128)
587 drv = gdsk.dsk.unit;
588 gdsk.dsk.drive = (gdsk.dsk.type <= TYPE_MAXHARD
608 err = drvread(&gdsk.dsk, buf, lba + gdsk.dsk.start, nblk);
642 lba += dskp->dsk.start;
648 if (drvread(&dskp->dsk, dmadat->blkbuf, lba, nb))