• Home
  • Raw
  • Download

Lines Matching +full:drive +full:- +full:mode

1 // SPDX-License-Identifier: GPL-2.0-only
45 * atiixp_set_pio_mode - set host controller for PIO mode
47 * @drive: drive
49 * Set the interface PIO mode.
52 static void atiixp_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in atiixp_set_pio_mode() argument
54 struct pci_dev *dev = to_pci_dev(hwif->dev); in atiixp_set_pio_mode()
56 int timing_shift = (drive->dn ^ 1) * 8; in atiixp_set_pio_mode()
59 const u8 pio = drive->pio_mode - XFER_PIO_0; in atiixp_set_pio_mode()
64 pio_mode_data &= ~(0x07 << (drive->dn * 4)); in atiixp_set_pio_mode()
65 pio_mode_data |= (pio << (drive->dn * 4)); in atiixp_set_pio_mode()
78 * atiixp_set_dma_mode - set host controller for DMA mode
80 * @drive: drive
82 * Set a ATIIXP host controller to the desired DMA mode. This involves
86 static void atiixp_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in atiixp_set_dma_mode() argument
88 struct pci_dev *dev = to_pci_dev(hwif->dev); in atiixp_set_dma_mode()
90 int timing_shift = (drive->dn ^ 1) * 8; in atiixp_set_dma_mode()
94 const u8 speed = drive->dma_mode; in atiixp_set_dma_mode()
102 tmp16 &= ~(0x07 << (drive->dn * 4)); in atiixp_set_dma_mode()
103 tmp16 |= ((speed & 0x07) << (drive->dn * 4)); in atiixp_set_dma_mode()
106 udma_ctl |= (1 << drive->dn); in atiixp_set_dma_mode()
116 udma_ctl &= ~(1 << drive->dn); in atiixp_set_dma_mode()
126 struct pci_dev *pdev = to_pci_dev(hwif->dev); in atiixp_cable_detect()
127 u8 udma_mode = 0, ch = hwif->channel; in atiixp_cable_detect()
164 * atiixp_init_one - called when a ATIIXP is found
174 return ide_pci_init_one(dev, &atiixp_pci_info[id->driver_data], NULL); in atiixp_init_one()