Searched refs:d_unit (Results 1 - 25 of 28) sorted by relevance

12

/illumos-gate/usr/src/boot/sys/boot/userboot/userboot/
H A Duserboot_disk.c124 dev.d_unit = i;
149 if (dev->d_unit < 0 || dev->d_unit >= userdisk_maxunit)
152 return (disk_open(dev, ud_info[dev->d_unit].mediasize,
153 ud_info[dev->d_unit].sectorsize, 0));
180 off = (dblk + dev->d_offset) * ud_info[dev->d_unit].sectorsize;
181 rc = CALLBACK(diskread, dev->d_unit, off, buf, size, &resid);
195 return (CALLBACK(diskioctl, dev->d_unit, cmd, data));
H A Ddevicename.c142 idev->d_unit = unit;
188 sprintf(buf, "%s%d:", dev->d_dev->dv_name, dev->d_unit);
195 sprintf(buf, "%s%d:", dev->d_dev->dv_name, dev->d_unit);
202 sprintf(buf, "%s%d:", dev->d_dev->dv_name, dev->d_unit);
H A Dmain.c178 dev.d_unit = 0;
192 dev.d_unit = 0;
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dmd.c93 if (dev->d_unit != 0)
131 if (dev->d_unit != 0)
143 return ((dev->d_unit != 0) ? ENXIO : 0);
H A Ddisk.c62 int d_unit; member in struct:dentry
86 entry->d_unit != dev->d_unit)
115 entry->d_unit = dev->d_unit;
140 dev.d_unit = entry->d_unit;
306 disk_fmtdev(dev), dev->d_unit, dev->d_slice,
322 disk_fmtdev(dev), dev->d_unit, dev->d_slice, dev->d_partition, od);
444 dev.d_unit
[all...]
H A Ddisk.h90 int d_unit; member in struct:disk_devdesc
/illumos-gate/usr/src/boot/sys/boot/efi/loader/
H A Ddevicename.c134 idev->d_unit = -1;
136 idev->d_unit = strtol(np, &cp, 0);
138 idev->d_unit = -1;
175 sprintf(buf, "%s%d:", dev->d_dev->dv_name, dev->d_unit);
/illumos-gate/usr/src/boot/sys/boot/zfs/
H A Dlibzfs.h44 int d_unit; member in struct:zfs_devdesc
/illumos-gate/usr/src/boot/sys/boot/ofw/libofw/
H A Dlibofw.h34 int d_unit; member in struct:ofw_devdesc
/illumos-gate/usr/src/boot/sys/boot/uboot/lib/
H A Dlibuboot.h34 int d_unit; member in struct:uboot_devdesc
H A Ddisk.c49 printf("%s%d: ", dev->d_dev->dv_name, dev->d_unit); \
68 #define SI(dev) (stor_info[(dev)->d_unit])
193 if (dev->d_unit < 0 || dev->d_unit >= stor_info_no)
249 dev.d_unit = i;
H A Ddevicename.c139 idev->d_unit = unit;
181 sprintf(buf, "%s%d:", dev->d_dev->dv_name, dev->d_unit);
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Ddevicename.c138 idev->d_unit = unit;
179 sprintf(buf, "%s%d:", dev->d_dev->dv_name, dev->d_unit);
H A Dbioscd.c93 #define BC(dev) (bcinfo[(dev)->d_unit])
208 if (dev->d_unit >= nbcinfo) {
268 unit = dev->d_unit;
426 unit = dev->d_unit;
H A Dbiosdisk.c94 #define BD(dev) (bdinfo[(dev)->d_unit])
302 dev.d_unit = i;
340 if (dev->d_unit < 0 || dev->d_unit >= nbdinfo)
699 biosdev = bd_unit2bios(dev->d_unit);
700 DEBUG("unit %d BIOS device %d", dev->d_unit, biosdev);
712 if (bdinfo[dev->d_unit].bd_type == DT_ATAPI) {
H A Dlibi386.h39 int d_unit; member in struct:i386_devdesc
H A Dbootinfo32.c175 bi.bi_bios_dev = bc_unit2bios(rootdev->d_unit);
181 bi.bi_bios_dev = bd_unit2bios(rootdev->d_unit);
/illumos-gate/usr/src/boot/sys/boot/uboot/common/
H A Dmain.c324 currdev.d_unit, slice, partition);
344 for (currdev.d_unit = 0; currdev.d_unit < UB_MAX_DEV;
345 currdev.d_unit++) {
361 currdev.d_unit = uboot_diskgetunit(load_type, unit);
362 if (currdev.d_unit == -1)
375 if ((currdev.d_unit = uboot_diskgetunit(load_type, load_unit)) != -1) {
464 currdev.d_unit = 0;
/illumos-gate/usr/src/boot/sys/boot/usb/storage/
H A Dumass_loader.c134 if (dev->d_unit != 0)
181 dev.d_unit = 0;
/illumos-gate/usr/src/boot/sys/boot/i386/loader/
H A Dchain.c104 relocator_edx = bd_unit2bios(rootdev->d_unit);
H A Dmain.c235 new_currdev.d_unit = bc_bios2unit(initial_bootdev);
239 new_currdev.d_unit = 0;
299 ((new_currdev.d_unit = bd_bios2unit(biosdev)) == -1)) {
302 new_currdev.d_unit = 0;
/illumos-gate/usr/src/boot/sys/boot/efi/libefi/
H A Defipart.c77 #define PD(dev) (pdinfo[(dev)->d_unit])
218 h = efi_find_handle(&efipart_dev, dev->d_unit);
H A Definet.c104 if (dev->d_unit - 1 == nif->nif_unit)
/illumos-gate/usr/src/boot/sys/boot/i386/gptzfsboot/
H A Dzfsboot.c296 devdesc.d_unit, devdesc.d_partition >= 0? devdesc.d_partition:0xff);
543 bdev->d_unit, part);
544 bootinfo.bi_bios_dev = bd_unit2bios(bdev->d_unit);
/illumos-gate/usr/src/boot/lib/libstand/
H A Ddosfs.c177 fat.unit = dd->d_unit;
211 if (fat.buf == NULL || fat.unit != dd->d_unit)
776 if (fat.unit != dd->d_unit) {

Completed in 91 milliseconds

12