Lines Matching defs:device

143 int nv_available	= 0; /* presence of nv-ram support in device */
305 * Close the broken device and clear the open flag on
306 * it. We have to check that the device is open,
914 * Setup un_orig_dev from device id info if the device
1040 * int removing - a flag to imply removing device name from
1279 * for the entire raid device. It is called from
1282 * On error the entire device is marked as in error by
1283 * placing the erroring device in error and all other
2066 * Open by device id
2067 * If this device is hotspared
2281 #define RIO_ALT 0x02000 /* do write to alternate device */
2333 /* check if the hotspared device will be used */
3572 blkno = pb->b_lblkno; /* block number on device */
3699 /* Big device */
3708 * Create minor device node for snarfed entry.
3800 mr_column_t *device;
3803 device = &un->un_column[i];
3804 if (device->un_devflags & MD_RAID_DEV_ISOPEN) {
3805 ASSERT((device->un_dev != (md_dev64_t)0) &&
3806 (device->un_dev != NODEV64));
3807 if ((device->un_devstate & RCS_OKAY) && init_pw)
3808 (void) init_pw_area(un, device->un_dev,
3809 device->un_pwstart, i);
3810 md_layered_close(device->un_dev, md_cflags);
3811 device->un_devflags &= ~MD_RAID_DEV_ISOPEN;
3818 * DESCRIPTION: Open all the components (columns) of the device unit.
3830 mr_column_t *device;
3841 device = &un->un_column[i];
3848 if (device->un_devflags & MD_RAID_DEV_ISOPEN)
3851 tmpdev = device->un_dev;
3853 * Open by device id
3856 device->un_hs_key : device->un_orig_key;
3862 device->un_dev = tmpdev;
3866 device->un_dev = tmpdev;
3867 device->un_devflags |= MD_RAID_DEV_ISOPEN;
3870 /* if open errors and errored devices are 1 then device can run */
3875 md_devname(MD_UN2SET(un), device->un_orig_dev, NULL, 0));
3886 device = &un->un_column[i];
3887 if (device->un_devflags & MD_RAID_DEV_ISOPEN) {
3888 if (device->un_devstate & RCS_LAST_ERRED) {
3929 * PARAMETERS: minor_t mnum - minor number of the RAID device
4034 * PARAMETERS: minor_t - minor number of the RAID device
4094 mr_column_t *device;
4097 device = &un->un_column[i];
4099 if (device->un_devflags & MD_RAID_DEV_PROBEOPEN) {
4100 md_layered_close(device->un_dev,
4102 device->un_devflags &= ~MD_RAID_DEV_PROBEOPEN;
4119 mr_column_t *device;
4128 * of an error when the raid device was open at some
4140 device = &un->un_column[i];
4146 tmpdev = device->un_dev;
4152 * Open by device id
4155 device->un_hs_key : device->un_orig_key);
4158 device->un_dev = tmpdev;
4162 device->un_dev = tmpdev;
4164 device->un_devflags |= MD_RAID_DEV_PROBEOPEN;
4170 * If open errors and exactly one device has failed we can run.
4171 * If more then one device fails we have to figure out when to set
4178 * mimics the open symantics. ie. Only the first failed device
4183 * failed device LAST_ERRED is set.
4190 md_devname(MD_UN2SET(un), device->un_orig_dev, NULL, 0));
4200 device = &un->un_column[i];
4201 if (device->un_devflags & MD_RAID_DEV_PROBEOPEN) {
4202 if (device->un_devstate & RCS_LAST_ERRED) {
4231 device = &un->un_column[i];
4240 if (!(device->un_devflags & MD_RAID_DEV_PROBEOPEN)) {
4300 * Small device
4309 mr_column32_od_t *device;
4311 device = &un32->un_column[i];
4313 (setno), device->un_orig_key))
4316 if (device->un_hs_id != 0)
4317 device->un_hs_id =
4318 MAKERECID(setno, device->un_hs_id);
4330 mr_column_t *device;
4332 device = &un64->un_column[i];
4334 (setno), device->un_orig_key))
4337 if (device->un_hs_id != 0)
4338 device->un_hs_id =
4339 MAKERECID(setno, device->un_hs_id);