Lines Matching refs:ata_channel
59 static void ahci_probe_drive(struct ata_channel *);
60 static void ahci_setup_channel(struct ata_channel *);
63 static int ahci_do_reset_drive(struct ata_channel *, int, int, uint32_t *,
66 static void ahci_reset_channel(struct ata_channel *, int);
72 static int ahci_cmd_start(struct ata_channel *, struct ata_xfer *);
73 static int ahci_cmd_complete(struct ata_channel *, struct ata_xfer *, int);
74 static int ahci_cmd_poll(struct ata_channel *, struct ata_xfer *);
75 static void ahci_cmd_abort(struct ata_channel *, struct ata_xfer *);
76 static void ahci_cmd_done(struct ata_channel *, struct ata_xfer *);
77 static void ahci_cmd_done_end(struct ata_channel *, struct ata_xfer *);
78 static void ahci_cmd_kill_xfer(struct ata_channel *, struct ata_xfer *, int);
79 static int ahci_bio_start(struct ata_channel *, struct ata_xfer *);
80 static int ahci_bio_poll(struct ata_channel *, struct ata_xfer *);
81 static void ahci_bio_abort(struct ata_channel *, struct ata_xfer *);
82 static int ahci_bio_complete(struct ata_channel *, struct ata_xfer *, int);
83 static void ahci_bio_kill_xfer(struct ata_channel *, struct ata_xfer *, int) ;
84 static void ahci_channel_stop(struct ahci_softc *, struct ata_channel *, int);
85 static void ahci_channel_start(struct ahci_softc *, struct ata_channel *,
87 static void ahci_channel_recover(struct ata_channel *, int, uint32_t);
88 static int ahci_dma_setup(struct ata_channel *, int, void *, size_t, int);
89 static int ahci_intr_port_common(struct ata_channel *);
97 static int ahci_atapi_start(struct ata_channel *, struct ata_xfer *);
98 static int ahci_atapi_poll(struct ata_channel *, struct ata_xfer *);
99 static void ahci_atapi_abort(struct ata_channel *, struct ata_xfer *);
100 static int ahci_atapi_complete(struct ata_channel *, struct ata_xfer *, int);
101 static void ahci_atapi_kill_xfer(struct ata_channel *, struct ata_xfer *, int);
212 struct ata_channel *chp;
223 chp = &achp->ata_channel;
259 struct ata_channel *chp;
408 chp = &achp->ata_channel;
521 struct ata_channel *chp;
525 chp = &achp->ata_channel;
540 struct ata_channel *chp;
550 chp = &achp->ata_channel;
619 ahci_intr_port_common(&sc->sc_channels[bit].ata_channel);
632 struct ata_channel *chp = &achp->ata_channel;
645 ahci_intr_port_common(struct ata_channel *chp)
767 struct ata_channel *chp = drvp->chnl_softc;
792 ahci_exec_fis(struct ata_channel *chp, int timeout, int flags, int slot)
840 ahci_do_reset_drive(struct ata_channel *chp, int drive, int flags,
993 ahci_reset_channel(struct ata_channel *chp, int flags)
1051 ahci_probe_drive(struct ata_channel *chp)
1134 ahci_setup_channel(struct ata_channel *chp)
1150 struct ata_channel *chp = drvp->chnl_softc;
1170 ahci_cmd_start(struct ata_channel *chp, struct ata_xfer *xfer)
1228 ahci_cmd_poll(struct ata_channel *chp, struct ata_xfer *xfer)
1269 ahci_cmd_abort(struct ata_channel *chp, struct ata_xfer *xfer)
1275 ahci_cmd_kill_xfer(struct ata_channel *chp, struct ata_xfer *xfer, int reason)
1308 ahci_cmd_complete(struct ata_channel *chp, struct ata_xfer *xfer, int tfd)
1350 ahci_cmd_done(struct ata_channel *chp, struct ata_xfer *xfer)
1388 ahci_cmd_done_end(struct ata_channel *chp, struct ata_xfer *xfer)
1406 struct ata_channel *chp = drvp->chnl_softc;
1423 ahci_bio_start(struct ata_channel *chp, struct ata_xfer *xfer)
1478 ahci_bio_poll(struct ata_channel *chp, struct ata_xfer *xfer)
1511 ahci_bio_abort(struct ata_channel *chp, struct ata_xfer *xfer)
1517 ahci_bio_kill_xfer(struct ata_channel *chp, struct ata_xfer *xfer, int reason)
1553 ahci_bio_complete(struct ata_channel *chp, struct ata_xfer *xfer, int tfd)
1616 ahci_channel_stop(struct ahci_softc *sc, struct ata_channel *chp, int flags)
1640 ahci_channel_start(struct ahci_softc *sc, struct ata_channel *chp,
1683 ahci_channel_recover(struct ata_channel *chp, int flags, uint32_t tfd)
1756 ahci_dma_setup(struct ata_channel *chp, int slot, void *data,
1801 struct ata_channel *chp = ata_sc->sc_chan;
1848 struct ata_channel *chp =
1918 ahci_atapi_start(struct ata_channel *chp, struct ata_xfer *xfer)
1976 ahci_atapi_poll(struct ata_channel *chp, struct ata_xfer *xfer)
2009 ahci_atapi_abort(struct ata_channel *chp, struct ata_xfer *xfer)
2015 ahci_atapi_complete(struct ata_channel *chp, struct ata_xfer *xfer, int tfd)
2068 ahci_atapi_kill_xfer(struct ata_channel *chp, struct ata_xfer *xfer, int reason)
2109 struct ata_channel *chp = atac->atac_channels[chan->chan_channel];