Lines Matching refs:drive
51 static void atiixp_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in atiixp_set_pio_mode() argument
55 int timing_shift = (drive->dn ^ 1) * 8; in atiixp_set_pio_mode()
58 const u8 pio = drive->pio_mode - XFER_PIO_0; in atiixp_set_pio_mode()
63 pio_mode_data &= ~(0x07 << (drive->dn * 4)); in atiixp_set_pio_mode()
64 pio_mode_data |= (pio << (drive->dn * 4)); in atiixp_set_pio_mode()
85 static void atiixp_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in atiixp_set_dma_mode() argument
89 int timing_shift = (drive->dn ^ 1) * 8; in atiixp_set_dma_mode()
93 const u8 speed = drive->dma_mode; in atiixp_set_dma_mode()
101 tmp16 &= ~(0x07 << (drive->dn * 4)); in atiixp_set_dma_mode()
102 tmp16 |= ((speed & 0x07) << (drive->dn * 4)); in atiixp_set_dma_mode()
105 udma_ctl |= (1 << drive->dn); in atiixp_set_dma_mode()
115 udma_ctl &= ~(1 << drive->dn); in atiixp_set_dma_mode()