Lines Matching defs:drive

104 static int			mlx_check(struct mlx_softc *sc, int drive);
537 device_printf(sc->mlx_dev, "error fetching drive status\n");
546 /* are we already attached to this drive? */
548 /* pick up drive information */
603 if (mlxd->mlxd_flags & MLXD_OPEN) { /* drive is mounted, abort detach */
801 * Enumerate connected system drives; returns the first system drive's
835 * Disconnect from the specified drive; it may be about to go
838 case MLX_DETACH_DRIVE: /* detach one drive */
862 /* nuke drive */
972 * Return the per-controller system drive number matching the
998 mlx_submit_ioctl(struct mlx_softc *sc, struct mlx_sysdrive *drive, u_long cmd,
1006 * Return the current status of this drive.
1010 *arg = drive->ms_state;
1015 * Start a background consistency check on this drive.
1024 result = mlx_check(sc, drive - &sc->mlx_sysdrive[0]);
1114 * Check system drive status.
1117 * drive will detect it's offline, rebuilds etc. should detect the drive is back
1125 /* get drive rebuild/check status */
1184 me->me_drvsize[i] = 0; /* drive beyond supported range */
1231 device_printf(dr->ms_disk, "drive offline\n");
1234 device_printf(dr->ms_disk, "drive online\n");
1237 device_printf(dr->ms_disk, "drive critical\n");
1332 "because of bad tag returned from drive",
1336 "because of 'kill drive' command from system",
1362 /* Mylex vendor-specific message indicating a drive was killed? */
1370 device_printf(sc->mlx_dev, "physical drive %d:%d killed %s\n",
1373 /* SCSI drive was reset? */
1375 device_printf(sc->mlx_dev, "physical drive %d:%d reset\n",
1378 /* SCSI drive error? */
1384 device_printf(sc->mlx_dev, "physical drive %d:%d error log: sense = %d asc = %x asq = %x\n",
1437 device_printf(sc->mlx_dev, "consistency check completed\n"); /* XXX print drive? */
1440 device_printf(sc->mlx_dev, "drive rebuild completed\n"); /* XXX print channel/target? */
1686 * Start a background consistency check on (drive).
1692 mlx_check(struct mlx_softc *sc, int drive)
1709 mlx_make_type2(mc, MLX_CMD_CHECKASYNC, 0, 0, 0, 0, 0, drive | 0x80, 0, 0);
1719 device_printf(sc->mlx_sysdrive[drive].ms_disk, "consistency check started");
1730 * Start a background rebuild of the physical drive at (channel),(target).
1763 device_printf(sc->mlx_dev, "drive rebuild started for %d:%d\n", channel, target);
1886 driveno, /* target drive number */
1974 case MLX_STATUS_RDWROFFLINE: /* system drive has gone offline */
1975 device_printf(mlxd->mlxd_dev, "drive offline\n");
2828 "drive does not exist, or is offline", /* 02 */
2829 "attempt to write beyond end of drive", /* 03 */
2832 "attempt to rebuild online drive", /* 06 */
2837 "invalid or non-redundant drive", /* 11 */
3007 device_printf(sc->mlx_dev, "physical drive %d:%d not responding\n", param2, param1);
3026 device_printf(sc->mlx_dev, "physical drive %d:%d COD mismatch\n", param2, param1);
3029 device_printf(sc->mlx_dev, "logical drive installation aborted\n");
3032 device_printf(sc->mlx_dev, "mirror race on a critical system drive\n");