Lines Matching defs:chp
181 acard_setup_channel(struct ata_channel *chp)
184 struct atac_softc *atac = chp->ch_atac;
185 struct pciide_channel *cp = CHAN_TO_PCHAN(chp);
186 struct pciide_softc *sc = CHAN_TO_PCIIDE(chp);
187 int channel = chp->ch_channel;
206 if ((chp->ch_drive[0].drive_flags & ATA_DRIVE_UDMA) ||
207 (chp->ch_drive[1].drive_flags & ATA_DRIVE_UDMA)) {
209 & ATP860_CTRL_80P(chp->ch_channel)) {
210 if (chp->ch_drive[0].UDMA_mode > 2)
211 chp->ch_drive[0].UDMA_mode = 2;
212 if (chp->ch_drive[1].UDMA_mode > 2)
213 chp->ch_drive[1].UDMA_mode = 2;
222 drvp = &chp->ch_drive[drive];