Lines Matching defs:mlxd
558 dr->ms_disk = device_add_child(sc->mlx_dev, /*"mlxd"*/NULL, -1);
585 struct mlxd_softc *mlxd;
597 mlxd = device_get_softc(sc->mlx_sysdrive[i].ms_disk);
598 if (mlxd->mlxd_flags & MLXD_OPEN) { /* drive is mounted, abort detach */
791 struct mlxd_softc *mlxd;
836 ((mlxd = device_get_softc(dr->ms_disk)) == NULL)) {
843 if (mlxd->mlxd_flags & MLXD_OPEN) {
974 mlxd = (struct mlxd_softc *)devclass_get_softc(mlxd_devclass, *arg);
976 if ((mlxd != NULL) && (mlxd->mlxd_drive >= sc->mlx_sysdrive) &&
977 (mlxd->mlxd_drive < (sc->mlx_sysdrive + MLX_MAXDRIVES))) {
979 *arg = mlxd->mlxd_drive - sc->mlx_sysdrive;
1840 struct mlxd_softc *mlxd;
1862 mlxd = bp->bio_disk->d_drv1;
1863 driveno = mlxd->mlxd_drive - sc->mlx_sysdrive;
1961 struct mlxd_softc *mlxd = bp->bio_disk->d_drv1;
1970 device_printf(mlxd->mlxd_dev, "drive offline\n");
1972 mlxd->mlxd_drive->ms_state = MLX_SYSD_OFFLINE;