Lines Matching defs:chp
365 cmd0643_9_setup_channel(struct ata_channel *chp)
371 struct pciide_channel *cp = CHAN_TO_PCHAN(chp);
372 struct pciide_softc *sc = CHAN_TO_PCIIDE(chp);
379 drvp = &chp->ch_drive[drive];
392 sc->sc_tag, CMD_UDMATIM(chp->ch_channel));
396 CMD_BICSR_80(chp->ch_channel)) == 0)
409 CMD_UDMATIM(chp->ch_channel), udma_reg);
420 CMD_UDMATIM(chp->ch_channel));
423 CMD_UDMATIM(chp->ch_channel),
435 CMD_DATA_TIM(chp->ch_channel, drive), tim);
445 cmd646_9_irqack(struct ata_channel *chp)
448 struct pciide_softc *sc = CHAN_TO_PCIIDE(chp);
450 if (chp->ch_channel == 0) {
457 pciide_irqack(chp);
548 cmd680_setup_channel(struct ata_channel *chp)
555 struct pciide_channel *cp = CHAN_TO_PCHAN(chp);
556 struct pciide_softc *sc = CHAN_TO_PCIIDE(chp);
570 mode = pciide_pci_read(pc, pa, 0x80 + chp->ch_channel * 4);
573 drvp = &chp->ch_drive[drive];
582 off = 0xa0 + chp->ch_channel * 16;
594 off = 0xac + chp->ch_channel * 16 + drive * 2;
604 off = 0xa8 + chp->ch_channel * 16 + drive * 2;
611 off = 0xa4 + chp->ch_channel * 16 + drive * 2;
618 pciide_pci_write(pc, pa, 0x80 + chp->ch_channel * 4, mode);