Lines Matching defs:ct

4 __FBSDID("$FreeBSD: releng/10.3/sys/dev/ct/bshw_machdep.c 242871 2012-11-10 14:58:06Z nyan $");
60 #include <dev/ct/ctvar.h>
61 #include <dev/ct/ct_machdep.h>
62 #include <dev/ct/bshwvar.h>
81 bshw_synch_setup(struct ct_softc *ct, struct targ_info *ti)
83 struct ct_bus_access_handle *chp = &ct->sc_ch;
85 struct bshw_softc *bs = ct->ct_hw;
100 bshw_bus_reset(struct ct_softc *ct)
102 struct scsi_low_softc *slp = &ct->sc_sclow;
103 struct ct_bus_access_handle *chp = &ct->sc_ch;
104 struct bshw_softc *bs = ct->ct_hw;
111 if (hw->hw_dma_init != NULL && ((*hw->hw_dma_init)(ct)) != 0)
181 bshw_lc_smit_stop(struct ct_softc *ct)
183 struct ct_bus_access_handle *chp = &ct->sc_ch;
190 bshw_lc_smit_start(struct ct_softc *ct, int count, u_int direction)
192 struct ct_bus_access_handle *chp = &ct->sc_ch;
206 bshw_lc_smit_fstat(struct ct_softc *ct, int wc, int read)
208 struct ct_bus_access_handle *chp = &ct->sc_ch;
231 device_printf(ct->sc_sclow.sl_dev, "SMIT fifo status timeout\n");
236 bshw_smit_xfer_stop(struct ct_softc *ct)
238 struct scsi_low_softc *slp = &ct->sc_sclow;
239 struct bshw_softc *bs = ct->ct_hw;
244 bshw_lc_smit_stop(ct);
252 count = cthw_get_count(&ct->sc_ch);
283 bshw_smit_xfer_start(struct ct_softc *ct)
285 struct scsi_low_softc *slp = &ct->sc_sclow;
286 struct ct_bus_access_handle *chp = &ct->sc_ch;
287 struct bshw_softc *bs = ct->ct_hw;
320 ct_cr_write_1(chp, wd3s_ctrl, ct->sc_creg | CR_DMA);
321 bshw_lc_smit_start(ct, datalen, sp->scp_direction);
327 if (bshw_lc_smit_fstat(ct, wc, SCSI_LOW_READ))
344 if (bshw_lc_smit_fstat(ct, wc, SCSI_LOW_WRITE))
352 if (bshw_lc_smit_fstat(ct, wc, SCSI_LOW_WRITE))
362 if (bshw_lc_smit_fstat(ct, wc, SCSI_LOW_WRITE))
386 bshw_dma_xfer_start(struct ct_softc *ct)
388 struct scsi_low_softc *slp = &ct->sc_sclow;
390 struct ct_bus_access_handle *chp = &ct->sc_ch;
391 struct bshw_softc *bs = ct->ct_hw;
399 ct_cr_write_1(chp, wd3s_ctrl, ct->sc_creg | CR_DMA);
440 bshw_dmastart(ct);
447 bshw_dma_xfer_stop(struct ct_softc *ct)
449 struct scsi_low_softc *slp = &ct->sc_sclow;
451 struct bshw_softc *bs = ct->ct_hw;
455 bshw_dmadone(ct);
463 count = cthw_get_count(&ct->sc_ch);
520 bshw_dmastart(struct ct_softc *ct)
522 struct scsi_low_softc *slp = &ct->sc_sclow;
523 struct bshw_softc *bs = ct->ct_hw;
524 struct ct_bus_access_handle *chp = &ct->sc_ch;
531 (*bs->sc_dmasync_before) (ct);
559 (*bs->sc_hw->hw_dma_start)(ct);
566 bshw_dmadone(struct ct_softc *ct)
568 struct bshw_softc *bs = ct->ct_hw;
569 struct ct_bus_access_handle *chp = &ct->sc_ch;
576 (*bs->sc_hw->hw_dma_stop) (ct);
579 (*bs->sc_dmasync_after) (ct);
593 bshw_dma_init_texa(struct ct_softc *ct)
595 struct ct_bus_access_handle *chp = &ct->sc_ch;
608 bshw_dma_init_sc98(struct ct_softc *ct)
610 struct ct_bus_access_handle *chp = &ct->sc_ch;
634 bshw_dma_start_sc98(struct ct_softc *ct)
636 struct ct_bus_access_handle *chp = &ct->sc_ch;
643 bshw_dma_stop_sc98(struct ct_softc *ct)
645 struct ct_bus_access_handle *chp = &ct->sc_ch;
652 bshw_dma_start_elecom(struct ct_softc *ct)
654 struct ct_bus_access_handle *chp = &ct->sc_ch;
661 bshw_dma_stop_elecom(struct ct_softc *ct)
663 struct ct_bus_access_handle *chp = &ct->sc_ch;