Lines Matching defs:chp
110 struct ata_channel *chp = &sc->sc_channel;
170 if (pci_intr_establish(pa->pa_pc, ih, IPL_BIO, wdcintr, chp) == NULL) {
181 sc->sc_chanptr = chp;
192 chp->ch_channel = 0;
193 chp->ch_atac = &sc->sc_wdcdev.sc_atac;
194 chp->ch_queue = &sc->sc_queue;
195 chp->ch_ndrive = 2;
196 wdc_init_shadow_regs(chp);
198 wdcattach(chp);
202 kauai_set_modes(struct ata_channel *chp)
204 struct kauai_softc *sc = (void *)chp->ch_atac;
205 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp);
206 struct ata_drive_datas *drvp0 = &chp->ch_drive[0];
207 struct ata_drive_datas *drvp1 = &chp->ch_drive[1];
217 drvp = &chp->ch_drive[drive];
258 struct ata_channel *chp = &sc->sc_channel;
259 struct ata_drive_datas *drvp = &chp->ch_drive[drive];
286 struct ata_channel *chp = &sc->sc_channel;
287 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp);