Lines Matching +full:drive +full:- +full:open +full:- +full:source

6  *	typical IDE controllers they do bus mastering with the drive in
10 * drive for the right PIO mode. We must also ignore all the blacklists
11 * and the drive bus mastering DMA information.
28 * is in an open non patent encumbered format. Where cryptographic key signing
31 * are deemed to be part of the source code.
41 #include <linux/dma-mapping.h>
60 static void cs5520_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cs5520_set_pio_mode() argument
62 struct pci_dev *pdev = to_pci_dev(hwif->dev); in cs5520_set_pio_mode()
63 int controller = drive->dn > 1 ? 1 : 0; in cs5520_set_pio_mode()
64 const u8 pio = drive->pio_mode - XFER_PIO_0; in cs5520_set_pio_mode()
66 /* 8bit CAT/CRT - 8bit command timing for channel */ in cs5520_set_pio_mode()
71 /* 0x64 - 16bit Primary, 0x68 - 16bit Secondary */ in cs5520_set_pio_mode()
75 pci_write_config_byte(pdev, 0x64 + 4*controller + (drive->dn&1), in cs5520_set_pio_mode()
79 pci_write_config_byte(pdev, 0x66 + 4*controller + (drive->dn&1), in cs5520_set_pio_mode()
84 static void cs5520_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cs5520_set_dma_mode() argument
88 drive->pio_mode = XFER_PIO_0 + 0; in cs5520_set_dma_mode()
89 cs5520_set_pio_mode(hwif, drive); in cs5520_set_dma_mode()
122 printk(KERN_WARNING "%s: Unable to enable 55x0.\n", d->name); in cs5520_init_one()
123 return -ENODEV; in cs5520_init_one()
126 if (dma_set_mask(&dev->dev, DMA_BIT_MASK(32))) { in cs5520_init_one()
128 d->name); in cs5520_init_one()
129 return -ENODEV; in cs5520_init_one()