Home | History | Annotate | Download | only in pci

Lines Matching refs:ch_drive

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];
470 drvp = &chp->ch_drive[drive];
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)))