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 */
602 if (mlxd->mlxd_flags & MLXD_OPEN) { /* drive is mounted, abort detach */
794 * Enumerate connected system drives; returns the first system drive's
828 * Disconnect from the specified drive; it may be about to go
831 case MLX_DETACH_DRIVE: /* detach one drive */
855 /* nuke drive */
965 * Return the per-controller system drive number matching the
991 mlx_submit_ioctl(struct mlx_softc *sc, struct mlx_sysdrive *drive, u_long cmd,
999 * Return the current status of this drive.
1003 *arg = drive->ms_state;
1008 * Start a background consistency check on this drive.
1017 result = mlx_check(sc, drive - &sc->mlx_sysdrive[0]);
1107 * Check system drive status.
1110 * drive will detect it's offline, rebuilds etc. should detect the drive is back
1118 /* get drive rebuild/check status */
1177 me->me_drvsize[i] = 0; /* drive beyond supported range */
1224 device_printf(dr->ms_disk, "drive offline\n");
1227 device_printf(dr->ms_disk, "drive online\n");
1230 device_printf(dr->ms_disk, "drive critical\n");
1325 "because of bad tag returned from drive",
1329 "because of 'kill drive' command from system",
1355 /* Mylex vendor-specific message indicating a drive was killed? */
1363 device_printf(sc->mlx_dev, "physical drive %d:%d killed %s\n",
1366 /* SCSI drive was reset? */
1368 device_printf(sc->mlx_dev, "physical drive %d:%d reset\n",
1371 /* SCSI drive error? */
1377 device_printf(sc->mlx_dev, "physical drive %d:%d error log: sense = %d asc = %x asq = %x\n",
1430 device_printf(sc->mlx_dev, "consistency check completed\n"); /* XXX print drive? */
1433 device_printf(sc->mlx_dev, "drive rebuild completed\n"); /* XXX print channel/target? */
1679 * Start a background consistency check on (drive).
1685 mlx_check(struct mlx_softc *sc, int drive)
1702 mlx_make_type2(mc, MLX_CMD_CHECKASYNC, 0, 0, 0, 0, 0, drive | 0x80, 0, 0);
1712 device_printf(sc->mlx_sysdrive[drive].ms_disk, "consistency check started");
1723 * Start a background rebuild of the physical drive at (channel),(target).
1756 device_printf(sc->mlx_dev, "drive rebuild started for %d:%d\n", channel, target);
1879 driveno, /* target drive number */
1967 case MLX_STATUS_RDWROFFLINE: /* system drive has gone offline */
1968 device_printf(mlxd->mlxd_dev, "drive offline\n");
2821 "drive does not exist, or is offline", /* 02 */
2822 "attempt to write beyond end of drive", /* 03 */
2825 "attempt to rebuild online drive", /* 06 */
2830 "invalid or non-redundant drive", /* 11 */
3000 device_printf(sc->mlx_dev, "physical drive %d:%d not responding\n", param2, param1);
3019 device_printf(sc->mlx_dev, "physical drive %d:%d COD mismatch\n", param2, param1);
3022 device_printf(sc->mlx_dev, "logical drive installation aborted\n");
3025 device_printf(sc->mlx_dev, "mirror race on a critical system drive\n");