Home | History | Annotate | Download | only in mscp

Lines Matching defs:rx

75  * RX MSCP floppy disk device driver
213 * Check if this disk is a floppy (RX) or cd (RRD)
533 CFATTACH_DECL_NEW(rx, sizeof(struct rx_softc),
590 * Check if this disk is a floppy (RX)
680 struct rx_softc *rx = device_private(self);
686 rx->ra_dev = self;
687 rx->ra_mediaid = mp->mscp_guse.guse_mediaid;
688 rx->ra_state = DK_CLOSED;
689 rx->ra_hwunit = mp->mscp_unit;
694 disk_init((struct disk *)&rx->ra_disk, device_xname(rx->ra_dev),
699 disk_init((struct disk *)&rx->ra_disk, device_xname(rx->ra_dev),
705 disk_init((struct disk *)&rx->ra_disk, device_xname(rx->ra_dev),
708 disk_attach(&rx->ra_disk);
711 dl = rx->ra_disk.dk_label;
761 rx_putonline(struct rx_softc *rx)
764 struct mscp_softc *mi = device_private(device_parent(rx->ra_dev));
766 rx->ra_state = DK_CLOSED;
769 mp->mscp_unit = rx->ra_hwunit;
775 if (tsleep(&rx->ra_state, PRIBIO, "rxonline", 100*100))
776 rx->ra_state = DK_CLOSED;
778 if (rx->ra_state == DK_CLOSED)
793 struct rx_softc *rx;
800 rx = device_lookup_private(&rx_cd, unit);
801 if (!rx)
808 if (rx->ra_state == DK_CLOSED)
809 if (rx_putonline(rx) == MSCP_FAILED)
826 struct rx_softc *rx;
833 if ((rx = device_lookup_private(&rx_cd, unit)) == NULL) {
839 if (rx->ra_state == DK_CLOSED)
840 if (rx_putonline(rx) == MSCP_FAILED) {
849 if (bp->b_blkno >= rx->ra_disk.dk_label->d_secperunit) {
856 disk_busy(&rx->ra_disk);
858 mscp_strategy(bp, device_parent(rx->ra_dev));
886 struct rx_softc *rx = device_lookup_private(&rx_cd, unit);
889 error = disk_ioctl(&rx->ra_disk, dev, cmd, data, flag, l);