Lines Matching defs:drive

108 static int			mlx_check(struct mlx_softc *sc, int drive);
541 device_printf(sc->mlx_dev, "error fetching drive status\n");
550 /* are we already attached to this drive? */
552 /* pick up drive information */
607 if (mlxd->mlxd_flags & MLXD_OPEN) { /* drive is mounted, abort detach */
805 * Enumerate connected system drives; returns the first system drive's
839 * Disconnect from the specified drive; it may be about to go
842 case MLX_DETACH_DRIVE: /* detach one drive */
866 /* nuke drive */
976 * Return the per-controller system drive number matching the
1002 mlx_submit_ioctl(struct mlx_softc *sc, struct mlx_sysdrive *drive, u_long cmd,
1010 * Return the current status of this drive.
1014 *arg = drive->ms_state;
1019 * Start a background consistency check on this drive.
1028 result = mlx_check(sc, drive - &sc->mlx_sysdrive[0]);
1118 * Check system drive status.
1121 * drive will detect it's offline, rebuilds etc. should detect the drive is back
1129 /* get drive rebuild/check status */
1188 me->me_drvsize[i] = 0; /* drive beyond supported range */
1235 device_printf(dr->ms_disk, "drive offline\n");
1238 device_printf(dr->ms_disk, "drive online\n");
1241 device_printf(dr->ms_disk, "drive critical\n");
1336 "because of bad tag returned from drive",
1340 "because of 'kill drive' command from system",
1366 /* Mylex vendor-specific message indicating a drive was killed? */
1374 device_printf(sc->mlx_dev, "physical drive %d:%d killed %s\n",
1377 /* SCSI drive was reset? */
1379 device_printf(sc->mlx_dev, "physical drive %d:%d reset\n",
1382 /* SCSI drive error? */
1388 device_printf(sc->mlx_dev, "physical drive %d:%d error log: sense = %d asc = %x asq = %x\n",
1441 device_printf(sc->mlx_dev, "consistency check completed\n"); /* XXX print drive? */
1444 device_printf(sc->mlx_dev, "drive rebuild completed\n"); /* XXX print channel/target? */
1690 * Start a background consistency check on (drive).
1696 mlx_check(struct mlx_softc *sc, int drive)
1713 mlx_make_type2(mc, MLX_CMD_CHECKASYNC, 0, 0, 0, 0, 0, drive | 0x80, 0, 0);
1723 device_printf(sc->mlx_sysdrive[drive].ms_disk, "consistency check started");
1734 * Start a background rebuild of the physical drive at (channel),(target).
1767 device_printf(sc->mlx_dev, "drive rebuild started for %d:%d\n", channel, target);
1890 driveno, /* target drive number */
1978 case MLX_STATUS_RDWROFFLINE: /* system drive has gone offline */
1979 device_printf(mlxd->mlxd_dev, "drive offline\n");
2832 "drive does not exist, or is offline", /* 02 */
2833 "attempt to write beyond end of drive", /* 03 */
2836 "attempt to rebuild online drive", /* 06 */
2841 "invalid or non-redundant drive", /* 11 */
3011 device_printf(sc->mlx_dev, "physical drive %d:%d not responding\n", param2, param1);
3030 device_printf(sc->mlx_dev, "physical drive %d:%d COD mismatch\n", param2, param1);
3033 device_printf(sc->mlx_dev, "logical drive installation aborted\n");
3036 device_printf(sc->mlx_dev, "mirror race on a critical system drive\n");