/drivers/ide/ |
H A D | dtc2278.c | 71 static void dtc2278_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument
|
H A D | ide-sysfs.c | 79 ide_hwif_t *hwif = dev_get_drvdata(portdev); local 84 ide_port_unregister_devices(hwif); 95 ide_hwif_t *hwif = dev_get_drvdata(portdev); local 100 ide_port_unregister_devices(hwif); 101 ide_port_scan(hwif); 114 int ide_sysfs_register_port(ide_hwif_t *hwif) argument 119 rc = device_create_file(hwif->portdev, ide_port_attrs[i]);
|
H A D | macide.c | 50 * Bit 5: IDE interrupt flag (any hwif) 51 * Bit 6: maybe IDE interrupt enable (any hwif) ?? 57 int macide_test_irq(ide_hwif_t *hwif) argument
|
H A D | triflex.c | 37 static void triflex_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 39 struct pci_dev *dev = to_pci_dev(hwif->dev); 42 u8 channel_offset = hwif->channel ? 0x74 : 0x70, unit = drive->dn & 1; 84 static void triflex_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 87 triflex_set_mode(hwif, drive);
|
H A D | cs5520.c | 60 static void cs5520_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 62 struct pci_dev *pdev = to_pci_dev(hwif->dev); 84 static void cs5520_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 89 cs5520_set_pio_mode(hwif, drive);
|
H A D | ide-devsets.c | 51 if (drive->hwif->dma_ops == NULL) 75 static int set_pio_mode_abuse(ide_hwif_t *hwif, u8 req_pio) argument 84 return (hwif->host_flags & IDE_HFLAG_ABUSE_DMA_MODES) ? 1 : 0; 87 return (hwif->host_flags & IDE_HFLAG_ABUSE_PREFETCH) ? 1 : 0; 90 return (hwif->host_flags & IDE_HFLAG_ABUSE_FAST_DEVSEL) ? 1 : 0; 98 ide_hwif_t *hwif = drive->hwif; local 99 const struct ide_port_ops *port_ops = hwif->port_ops; 105 (hwif->host_flags & IDE_HFLAG_NO_SET_MODE)) 108 if (set_pio_mode_abuse(drive->hwif, ar [all...] |
H A D | ide-park.c | 11 ide_hwif_t *hwif = drive->hwif; local 17 spin_lock_irq(&hwif->lock); 24 if (reset_timer && del_timer(&hwif->timer)) 26 spin_unlock_irq(&hwif->lock); 32 spin_unlock_irq(&hwif->lock); 92 ide_hwif_t *hwif = drive->hwif; local 99 spin_lock_irq(&hwif->lock); 106 spin_unlock_irq(&hwif [all...] |
H A D | ide-pm.c | 9 ide_hwif_t *hwif = drive->hwif; local 14 if (ide_port_acpi(hwif)) { 17 ide_acpi_get_timing(hwif); 32 if (ret == 0 && ide_port_acpi(hwif)) { 35 ide_acpi_set_state(hwif, 0); 45 ide_hwif_t *hwif = drive->hwif; local 50 if (ide_port_acpi(hwif)) { 53 ide_acpi_set_state(hwif, 227 ide_hwif_t *hwif = drive->hwif; local [all...] |
H A D | ide-xfer-mode.c | 70 if ((drive->hwif->host_flags & IDE_HFLAG_PIO_NO_BLACKLIST) == 0) 116 if (pio == 0 && (drive->hwif->port_flags & IDE_PFLAG_PROBING)) 124 ide_hwif_t *hwif = drive->hwif; local 125 const struct ide_port_ops *port_ops = hwif->port_ops; 127 if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE) 139 port_ops->set_pio_mode(hwif, drive); 143 if (hwif->host_flags & IDE_HFLAG_POST_SET_MODE) { 147 port_ops->set_pio_mode(hwif, drive); 151 port_ops->set_pio_mode(hwif, driv 158 ide_hwif_t *hwif = drive->hwif; local 184 ide_hwif_t *hwif = drive->hwif; local 224 ide_hwif_t *hwif = drive->hwif; local 251 ide_hwif_t *hwif = drive->hwif; local [all...] |
H A D | it8172.c | 40 static void it8172_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 42 struct pci_dev *dev = to_pci_dev(hwif->dev); 80 static void it8172_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 82 struct pci_dev *dev = to_pci_dev(hwif->dev); 108 it8172_set_pio_mode(hwif, drive);
|
H A D | jmicron.c | 24 * @hwif: IDE port 29 static u8 jmicron_cable_detect(ide_hwif_t *hwif) argument 31 struct pci_dev *pdev = to_pci_dev(hwif->dev); 36 int port = hwif->channel; 83 static void jmicron_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 89 * @hwif: port 95 static void jmicron_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument
|
H A D | umc8672.c | 107 static void umc_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 109 ide_hwif_t *mate = hwif->mate;
|
H A D | atiixp.c | 45 * @hwif: port 51 static void atiixp_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 53 struct pci_dev *dev = to_pci_dev(hwif->dev); 78 * @hwif: port 85 static void atiixp_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 87 struct pci_dev *dev = to_pci_dev(hwif->dev); 123 static u8 atiixp_cable_detect(ide_hwif_t *hwif) argument 125 struct pci_dev *pdev = to_pci_dev(hwif->dev); 126 u8 udma_mode = 0, ch = hwif->channel;
|
H A D | cs5530.c | 40 #define CS5530_BASEREG(hwif) (((hwif)->dma_base & ~0xf) + ((hwif)->channel ? 0x30 : 0x20)) 44 * @hwif: port 53 static void cs5530_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 55 unsigned long basereg = CS5530_BASEREG(hwif); 83 ide_hwif_t *hwif = drive->hwif; local 86 u8 mask = hwif->ultra_mask; 103 static void cs5530_set_dma_mode(ide_hwif_t *hwif, ide_drive_ argument 229 init_hwif_cs5530(ide_hwif_t *hwif) argument [all...] |
H A D | gayle.c | 61 static int gayle_test_irq(ide_hwif_t *hwif) argument 65 ch = z_readb(hwif->io_ports.irq_addr); 73 ide_hwif_t *hwif = drive->hwif; local 75 (void)z_readb(hwif->io_ports.status_addr); 76 z_writeb(0x7c, hwif->io_ports.irq_addr);
|
H A D | ht6560b.c | 116 ide_hwif_t *hwif = drive->hwif; local 146 outb(timing, hwif->io_ports.device_addr); 147 (void)inb(hwif->io_ports.status_addr); 155 outb(drive->select | ATA_DEVICE_OBS, hwif->io_ports.device_addr); 281 static void ht6560b_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 310 ide_hwif_t *hwif = drive->hwif; local 314 if (hwif->channel)
|
H A D | ide-cs.c | 119 ide_hwif_t *hwif; local 145 hwif = host->ports[0]; 147 if (hwif->present) 153 ide_port_scan(hwif); 154 if (hwif->present) 257 ide_hwif_t *hwif = host->ports[0]; local 260 data_addr = hwif->io_ports.data_addr; 261 ctl_addr = hwif->io_ports.ctl_addr;
|
H A D | ide-dma-sff.c | 22 ide_hwif_t *hwif = drive->hwif; local 26 if (hwif->host_flags & IDE_HFLAG_NO_ATAPI_DMA) 53 u8 ide_dma_sff_read_status(ide_hwif_t *hwif) argument 55 unsigned long addr = hwif->dma_base + ATA_DMA_STATUS; 57 if (hwif->host_flags & IDE_HFLAG_MMIO) 64 static void ide_dma_sff_write_status(ide_hwif_t *hwif, u8 val) argument 66 unsigned long addr = hwif->dma_base + ATA_DMA_STATUS; 68 if (hwif->host_flags & IDE_HFLAG_MMIO) 84 ide_hwif_t *hwif local 116 ide_hwif_t *hwif = drive->hwif; local 189 ide_hwif_t *hwif = drive->hwif; local 239 ide_hwif_t *hwif = drive->hwif; local 265 ide_hwif_t *hwif = drive->hwif; local 287 ide_hwif_t *hwif = drive->hwif; local 318 ide_hwif_t *hwif = drive->hwif; local [all...] |
H A D | ide-eh.c | 10 ide_hwif_t *hwif = drive->hwif; local 21 hwif->tp_ops->read_status(hwif) == ATA_CMD_INIT_DEV_PARAMS) 36 (hwif->host_flags & IDE_HFLAG_ERROR_STOPS_FIFO) == 0) { 47 if (hwif->tp_ops->read_status(hwif) & (ATA_BUSY | ATA_DRQ)) 66 ide_hwif_t *hwif = drive->hwif; local 76 if (hwif 169 ide_hwif_t *hwif = drive->hwif; local 198 ide_reset_report_error(ide_hwif_t *hwif, u8 err) argument 225 ide_hwif_t *hwif = drive->hwif; local 336 ide_hwif_t *hwif = drive->hwif; local [all...] |
H A D | ide-floppy_ioctl.c | 218 ide_hwif_t *hwif = drive->hwif; local 223 stat = hwif->tp_ops->read_status(hwif);
|
H A D | ide-io-std.c | 41 void ide_exec_command(ide_hwif_t *hwif, u8 cmd) argument 43 if (hwif->host_flags & IDE_HFLAG_MMIO) 44 writeb(cmd, (void __iomem *)hwif->io_ports.command_addr); 46 outb(cmd, hwif->io_ports.command_addr); 50 u8 ide_read_status(ide_hwif_t *hwif) argument 52 if (hwif->host_flags & IDE_HFLAG_MMIO) 53 return readb((void __iomem *)hwif->io_ports.status_addr); 55 return inb(hwif->io_ports.status_addr); 59 u8 ide_read_altstatus(ide_hwif_t *hwif) argument 61 if (hwif 68 ide_write_devctl(ide_hwif_t *hwif, u8 ctl) argument 79 ide_hwif_t *hwif = drive->hwif; local 91 ide_hwif_t *hwif = drive->hwif; local 118 ide_hwif_t *hwif = drive->hwif; local 167 ide_hwif_t *hwif = drive->hwif; local 211 ide_hwif_t *hwif = drive->hwif; local [all...] |
H A D | it8213.c | 20 * @hwif: port 26 static void it8213_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 28 struct pci_dev *dev = to_pci_dev(hwif->dev); 77 * @hwif: port 83 static void it8213_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 85 struct pci_dev *dev = to_pci_dev(hwif->dev); 139 it8213_set_pio_mode(hwif, drive); 143 static u8 it8213_cable_detect(ide_hwif_t *hwif) argument 145 struct pci_dev *dev = to_pci_dev(hwif->dev);
|
H A D | opti621.c | 65 static void opti621_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 93 reg_base = hwif->io_ports.data_addr; 107 printk(KERN_INFO "%s: CLK = %d MHz\n", hwif->name, clk ? 25 : 33);
|
H A D | slc90e66.c | 21 static void slc90e66_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 23 struct pci_dev *dev = to_pci_dev(hwif->dev); 25 int master_port = hwif->channel ? 0x42 : 0x40; 58 slave_data &= hwif->channel ? 0x0f : 0xf0; 60 (hwif->channel ? 4 : 0); 75 static void slc90e66_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 77 struct pci_dev *dev = to_pci_dev(hwif->dev); 78 u8 maslave = hwif->channel ? 0x42 : 0x40; 114 slc90e66_set_pio_mode(hwif, drive); 118 static u8 slc90e66_cable_detect(ide_hwif_t *hwif) argument [all...] |
H A D | tc86c001.c | 17 static void tc86c001_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 19 unsigned long scr_port = hwif->config_data + (drive->dn ? 0x02 : 0x00); 45 static void tc86c001_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 48 tc86c001_set_mode(hwif, drive); 67 ide_hwif_t *hwif = drive->hwif; local 68 ide_expiry_t *expiry = ide_get_hwifdata(hwif); 69 u8 dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); 72 hwif->expiry = expiry; 75 unsigned long sc_base = hwif 114 ide_hwif_t *hwif = drive->hwif; local 134 tc86c001_cable_detect(ide_hwif_t *hwif) argument 147 init_hwif_tc86c001(ide_hwif_t *hwif) argument [all...] |