Lines Matching defs:mlxd
563 dr->ms_disk = device_add_child(sc->mlx_dev, /*"mlxd"*/NULL, DEVICE_UNIT_ANY);
589 struct mlxd_softc *mlxd;
601 mlxd = device_get_softc(sc->mlx_sysdrive[i].ms_disk);
602 if (mlxd->mlxd_flags & MLXD_OPEN) { /* drive is mounted, abort detach */
789 struct mlxd_softc *mlxd;
834 ((mlxd = device_get_softc(dr->ms_disk)) == NULL)) {
841 if (mlxd->mlxd_flags & MLXD_OPEN) {
972 mlxd = devclass_get_softc(devclass_find("mlxd"), *arg);
974 if ((mlxd != NULL) && (mlxd->mlxd_drive >= sc->mlx_sysdrive) &&
975 (mlxd->mlxd_drive < (sc->mlx_sysdrive + MLX_MAXDRIVES))) {
977 *arg = mlxd->mlxd_drive - sc->mlx_sysdrive;
1838 struct mlxd_softc *mlxd;
1860 mlxd = bp->bio_disk->d_drv1;
1861 driveno = mlxd->mlxd_drive - sc->mlx_sysdrive;
1959 struct mlxd_softc *mlxd = bp->bio_disk->d_drv1;
1968 device_printf(mlxd->mlxd_dev, "drive offline\n");
1970 mlxd->mlxd_drive->ms_state = MLX_SYSD_OFFLINE;