Home | History | Annotate | Download | only in ata

Lines Matching defs:chp

71 	struct ata_channel *chp = drvp->chnl_softc;
72 struct ata_xfer *xfer = &chp->recovery_xfer;
73 struct atac_softc *atac = chp->ch_atac;
85 tb = chp->recovery_blk;
86 memset(tb, 0, sizeof(chp->recovery_blk));
104 xfer->c_ata_c.bcount = sizeof(chp->recovery_blk);
107 ata_wait_cmd(chp, xfer);
115 for (int i = 0; i < sizeof(chp->recovery_blk); i++)
160 ata_recovery_resume(struct ata_channel *chp, int drive, int tfd, int flags)
166 const uint8_t ch_openings = ata_queue_openings(chp);
168 ata_channel_lock_owned(chp);
170 ata_queue_hold(chp);
173 callout_stop(&chp->c_timo_callout);
175 KASSERT(drive < chp->ch_ndrives);
176 drvp = &chp->ch_drive[drive];
179 ata_channel_unlock(chp);
187 ata_channel_lock(chp);
188 ata_queue_unhold(chp);
189 ata_channel_unlock(chp);
194 if ((ata_queue_active(chp) & (1U << eslot)) != 0) {
195 xfer = ata_queue_hwslot_to_xfer(chp, eslot);
197 xfer->ops->c_intr(chp, xfer, ATACH_ERR_ST(err, st));
207 if ((ata_queue_active(chp) & (1U << slot)) != 0) {
208 xfer = ata_queue_hwslot_to_xfer(chp, slot);
209 xfer->ops->c_intr(chp, xfer, tfd);
220 ata_channel_lock(chp);
221 ata_thread_run(chp, ATACH_TH_RESET, ATACH_NODRIVE, flags);
222 ata_channel_unlock(chp);
237 if ((ata_queue_active(chp) & (1U << slot)) == 0)
240 xfer = ata_queue_hwslot_to_xfer(chp, slot);
244 xfer->ops->c_kill_xfer(chp, xfer,
250 ata_channel_lock(chp);