Lines Matching refs:device
39 * MD_IOCGETDEVS - get the device the soft partition is built on.
232 md_dev64_t device;
284 * underlying device is a mirror.
290 device = un->un_dev;
291 if ((md_getmajor(device) != md_major) &&
293 device = md_resolve_bydevid(mnum, device, un->un_key);
297 * underlying device so that it can take appropriate action if needed.
301 if (md_layered_open(mnum, &device, MD_OFLG_FROMIOCTL)) {
303 mnum, device);
321 bp->b_edev = md_dev64_to_dev(device);
350 md_layered_close(device, MD_OFLG_NULL);
374 md_dev64_t device;
382 device = mrp->rdev;
386 * the underlying device can take any necessary extra steps to handle
389 if (md_layered_open((minor_t)-1, &device, MD_OFLG_FROMIOCTL)) {
391 (minor_t)NODEV, device));
402 bp->b_edev = md_dev64_to_dev(device);
413 getminor(device));
419 md_layered_close(device, MD_OFLG_NULL);
476 /* check if there is already a device with this minor number */
847 * If the device was previously smaller than a terabyte,
906 * PURPOSE: Get the device on which the soft partition is built.
942 /* only ever 1 device for a soft partition */
944 /* do miniroot->target device translation */
1118 /* get underlying device */
1225 * INPUT: dev - device we are operating on.
1474 * underlying device.
1505 * Do not pass the request down as we're the top-level device
1572 * the offsets to pick up the correct lower-level device
1591 * Underlying device supports directed mirror read, so update