Home | History | Annotate | Download | only in pci

Lines Matching defs:chp

327 pdc202xx_setup_channel(struct ata_channel *chp)
333 struct pciide_channel *cp = CHAN_TO_PCHAN(chp);
334 struct pciide_softc *sc = CHAN_TO_PCIIDE(chp);
335 int channel = chp->ch_channel;
353 (chp->ch_drive[0].drive_flags & ATA_DRIVE_UDMA &&
354 chp->ch_drive[0].UDMA_mode <= 2) ||
355 (chp->ch_drive[1].drive_flags & ATA_DRIVE_UDMA &&
356 chp->ch_drive[1].UDMA_mode <= 2)) {
357 if (chp->ch_drive[0].UDMA_mode > 2)
358 chp->ch_drive[0].UDMA_mode = 2;
359 if (chp->ch_drive[1].UDMA_mode > 2)
360 chp->ch_drive[1].UDMA_mode = 2;
363 if ((chp->ch_drive[0].drive_flags & ATA_DRIVE_UDMA &&
364 chp->ch_drive[0].UDMA_mode > 2) ||
365 (chp->ch_drive[1].drive_flags & ATA_DRIVE_UDMA &&
366 chp->ch_drive[1].UDMA_mode > 2))
376 if (chp->ch_drive[0].drive_type == ATA_DRIVET_ATAPI ||
377 chp->ch_drive[1].drive_type == ATA_DRIVET_ATAPI) {
378 if (((chp->ch_drive[0].drive_flags & ATA_DRIVE_UDMA) &&
379 !(chp->ch_drive[1].drive_flags & ATA_DRIVE_UDMA) &&
380 (chp->ch_drive[1].drive_flags & ATA_DRIVE_DMA)) ||
381 ((chp->ch_drive[1].drive_flags & ATA_DRIVE_UDMA) &&
382 !(chp->ch_drive[0].drive_flags & ATA_DRIVE_UDMA) &&
383 (chp->ch_drive[0].drive_flags & ATA_DRIVE_DMA)))
392 drvp = &chp->ch_drive[drive];
432 chp->ch_channel, drive, mode), DEBUG_PROBE);
434 PDC2xx_TIM(chp->ch_channel, drive), mode);
444 pdc20268_setup_channel(struct ata_channel *chp)
449 struct pciide_channel *cp = CHAN_TO_PCHAN(chp);
450 struct pciide_softc *sc = CHAN_TO_PCIIDE(chp);
460 IDEDMA_CMD + 0x1 + IDEDMA_SCH_OFFSET * chp->ch_channel, 0x0b);
466 IDEDMA_CMD + 0x3 + IDEDMA_SCH_OFFSET * chp->ch_channel) & 0x04) ?
470 drvp = &chp->ch_drive[drive];
590 struct ata_channel *chp;
596 chp = sc->wdc_chanarray[channel];
598 if (chp->ch_drive[0].drive_type == ATA_DRIVET_ATAPI ||
599 chp->ch_drive[1].drive_type == ATA_DRIVET_ATAPI) {
600 if ((!(chp->ch_drive[0].drive_flags & ATA_DRIVE_UDMA) ||
601 (chp->ch_drive[1].drive_flags & ATA_DRIVE_UDMA) ||
602 !(chp->ch_drive[1].drive_flags & ATA_DRIVE_DMA)) &&
603 (!(chp->ch_drive[1].drive_flags & ATA_DRIVE_UDMA) ||
604 (chp->ch_drive[0].drive_flags & ATA_DRIVE_UDMA) ||
605 !(chp->ch_drive[0].drive_flags & ATA_DRIVE_DMA)))