Lines Matching refs:mlxd_disk
241 sc->mlxd_disk = disk_alloc(); in mlxd_attach()
242 sc->mlxd_disk->d_open = mlxd_open; in mlxd_attach()
243 sc->mlxd_disk->d_close = mlxd_close; in mlxd_attach()
244 sc->mlxd_disk->d_ioctl = mlxd_ioctl; in mlxd_attach()
245 sc->mlxd_disk->d_strategy = mlxd_strategy; in mlxd_attach()
246 sc->mlxd_disk->d_name = "mlxd"; in mlxd_attach()
247 sc->mlxd_disk->d_unit = sc->mlxd_unit; in mlxd_attach()
248 sc->mlxd_disk->d_drv1 = sc; in mlxd_attach()
249 sc->mlxd_disk->d_sectorsize = MLX_BLKSIZE; in mlxd_attach()
250 sc->mlxd_disk->d_mediasize = MLX_BLKSIZE * (off_t)sc->mlxd_drive->ms_size; in mlxd_attach()
251 sc->mlxd_disk->d_fwsectors = sc->mlxd_drive->ms_sectors; in mlxd_attach()
252 sc->mlxd_disk->d_fwheads = sc->mlxd_drive->ms_heads; in mlxd_attach()
259 sc->mlxd_disk->d_maxsize = 8 * MLX_PAGE_SIZE; in mlxd_attach()
263 sc->mlxd_disk->d_maxsize = imin(s1, s2); in mlxd_attach()
266 disk_create(sc->mlxd_disk, DISK_VERSION); in mlxd_attach()
278 disk_destroy(sc->mlxd_disk); in mlxd_detach()