/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/ide/ |
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 | cy82c693.c | 56 static void cy82c693_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 61 index = hwif->channel ? CY82_INDEX_CHANNEL1 : CY82_INDEX_CHANNEL0; 83 static void cy82c693_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 85 struct pci_dev *dev = to_pci_dev(hwif->dev); 93 if (hwif->index > 0) { /* drive is on the secondary channel */ 146 static void __devinit init_iops_cy82c693(ide_hwif_t *hwif) argument 149 struct pci_dev *dev = to_pci_dev(hwif->dev); 152 primary = hwif; 154 hwif->mate = primary; 155 hwif [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 | sc1200.c | 83 ide_hwif_t *hwif = drive->hwif; local 84 struct pci_dev *pdev = to_pci_dev(hwif->dev); 85 unsigned int basereg = hwif->channel ? 0x50 : 0x40, format = 0; 106 ide_hwif_t *hwif = drive->hwif; local 109 u8 mask = hwif->ultra_mask; 126 static void sc1200_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 128 struct pci_dev *dev = to_pci_dev(hwif->dev); 131 unsigned int basereg = hwif 173 ide_hwif_t *hwif = drive->hwif; local 197 sc1200_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument [all...] |
H A D | serverworks.c | 67 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); 109 static void svwks_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 114 struct pci_dev *dev = to_pci_dev(hwif->dev); 131 static void svwks_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 137 struct pci_dev *dev = to_pci_dev(hwif->dev); 143 pci_read_config_byte(dev, (0x56|hwif->channel), &ultra_timing); 157 pci_write_config_byte(dev, (0x56|hwif->channel), ultra_timing); 261 static u8 ata66_svwks_svwks(ide_hwif_t *hwif) argument 273 static u8 ata66_svwks_dell(ide_hwif_t *hwif) argument 275 struct pci_dev *dev = to_pci_dev(hwif 292 ata66_svwks_cobalt(ide_hwif_t *hwif) argument 304 svwks_cable_detect(ide_hwif_t *hwif) argument [all...] |
H A D | qd65xx.c | 101 outb(drive->select | ATA_DEVICE_OBS, drive->hwif->io_ports.device_addr); 112 static u8 qd6500_compute_timing (ide_hwif_t *hwif, int active_time, int recovery_time) argument 192 static void qd6500_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 207 qd_set_timing(drive, qd6500_compute_timing(drive->hwif, 211 static void qd6580_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 218 u8 base = (hwif->config_data & 0xff00) >> 8; 251 if (!hwif->channel && drive->media != ide_disk) { 255 drive->name, hwif->name); 291 ide_hwif_t *hwif = drive->hwif; local 300 ide_hwif_t *hwif = drive->hwif; local [all...] |
H A D | pdc202xx_new.c | 68 * @hwif: for the port address 71 static u8 get_indexed_reg(ide_hwif_t *hwif, u8 index) argument 75 outb(index, hwif->dma_base + 1); 76 value = inb(hwif->dma_base + 3); 84 * @hwif: for the port address 87 static void set_indexed_reg(ide_hwif_t *hwif, u8 index, u8 value) argument 89 outb(index, hwif->dma_base + 1); 90 outb(value, hwif->dma_base + 3); 132 static void pdcnew_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 134 struct pci_dev *dev = to_pci_dev(hwif 170 pdcnew_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 183 pdcnew_cable_detect(ide_hwif_t *hwif) argument [all...] |
H A D | piix.c | 68 static void piix_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 70 struct pci_dev *dev = to_pci_dev(hwif->dev); 72 int master_port = hwif->channel ? 0x42 : 0x40; 111 slave_data &= hwif->channel ? 0x0f : 0xf0; 113 (hwif->channel ? 4 : 0); 130 * @hwif: port 137 static void piix_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 139 struct pci_dev *dev = to_pci_dev(hwif->dev); 140 u8 maslave = hwif->channel ? 0x42 : 0x40; 195 piix_set_pio_mode(hwif, driv 227 ide_hwif_t *hwif = drive->hwif; local 271 piix_cable_detect(ide_hwif_t *hwif) argument 300 init_hwif_piix(ide_hwif_t *hwif) argument [all...] |
H A D | pmac.c | 66 ide_hwif_t *hwif; member in struct:pmac_ide_hwif 68 /* Those fields are duplicating what is in hwif. We currently 69 * can't use the hwif ones because of some assumptions that are 408 ((void __iomem *)((drive)->hwif->io_ports.data_addr + (x))) 417 ide_hwif_t *hwif = drive->hwif; local 419 (pmac_ide_hwif_t *)dev_get_drvdata(hwif->gendev.parent); 435 ide_hwif_t *hwif = drive->hwif; local 437 (pmac_ide_hwif_t *)dev_get_drvdata(hwif 455 ide_hwif_t *hwif = drive->hwif; local 483 pmac_exec_command(ide_hwif_t *hwif, u8 cmd) argument 490 pmac_write_devctl(ide_hwif_t *hwif, u8 ctl) argument 500 pmac_ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 781 pmac_ide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 919 pmac_ide_cable_detect(ide_hwif_t *hwif) argument 952 ide_hwif_t *hwif = drive->hwif; local 1033 ide_hwif_t *hwif; local 1465 ide_hwif_t *hwif = drive->hwif; local 1543 ide_hwif_t *hwif = drive->hwif; local 1569 ide_hwif_t *hwif = drive->hwif; local 1587 ide_hwif_t *hwif = drive->hwif; local 1612 ide_hwif_t *hwif = drive->hwif; local 1667 ide_hwif_t *hwif = drive->hwif; local 1689 pmac_ide_init_dma(ide_hwif_t *hwif, const struct ide_port_info *d) argument [all...] |
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 | 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 | ide-atapi.c | 234 drive->hwif->rq = NULL; 249 struct request *failed_rq = drive->hwif->rq; 267 drive->hwif->rq = NULL; 278 struct request *rq = drive->hwif->rq; 327 drive->hwif->tp_ops->tf_read(drive, &tf, IDE_VALID_NSECT | 346 ide_hwif_t *hwif = drive->hwif; local 364 (void)hwif->tp_ops->read_status(hwif); 392 ide_hwif_t *hwif local 585 ide_hwif_t *hwif = drive->hwif; local 672 ide_hwif_t *hwif = drive->hwif; local [all...] |
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 | 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 | icside.c | 169 ide_hwif_t *hwif = drive->hwif; local 170 struct expansion_card *ec = ECARD_DEV(hwif->dev); 176 state->channel = hwif->channel; 179 switch (hwif->channel) { 237 static void icside_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 290 ide_hwif_t *hwif = drive->hwif; local 291 struct expansion_card *ec = ECARD_DEV(hwif->dev); 300 ide_hwif_t *hwif local 310 ide_hwif_t *hwif = drive->hwif; local 352 ide_hwif_t *hwif = drive->hwif; local 362 icside_dma_init(ide_hwif_t *hwif, const struct ide_port_info *d) argument 382 icside_dma_off_init(ide_hwif_t *hwif, const struct ide_port_info *d) 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 | ide-proc.c | 36 ide_hwif_t *hwif = (ide_hwif_t *) m->private; local 39 switch (hwif->chipset) { 74 ide_hwif_t *hwif = (ide_hwif_t *) m->private; local 76 if (hwif && hwif->mate) 77 seq_printf(m, "%s\n", hwif->mate->name); 98 ide_hwif_t *hwif = (ide_hwif_t *) m->private; local 100 seq_printf(m, "%c\n", hwif->channel ? '1' : '0'); 665 void ide_proc_port_register_devices(ide_hwif_t *hwif) argument 668 struct proc_dir_entry *parent = hwif 703 ide_proc_register_port(ide_hwif_t *hwif) argument 715 ide_proc_unregister_port(ide_hwif_t *hwif) argument [all...] |
H A D | aec62xx.c | 84 static void aec6210_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 86 struct pci_dev *dev = to_pci_dev(hwif->dev); 112 static void aec6260_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 114 struct pci_dev *dev = to_pci_dev(hwif->dev); 129 pci_read_config_byte(dev, (0x44|hwif->channel), &ultra); 133 pci_write_config_byte(dev, (0x44|hwif->channel), tmp2); 137 static void aec_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 140 hwif->port_ops->set_dma_mode(hwif, drive); 163 static u8 atp86x_cable_detect(ide_hwif_t *hwif) argument [all...] |
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); 83 static void cs5520_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 88 cs5520_set_pio_mode(hwif, drive);
|
H A D | ht6560b.c | 117 ide_hwif_t *hwif = drive->hwif; local 147 outb(timing, hwif->io_ports.device_addr); 148 (void)inb(hwif->io_ports.status_addr); 156 outb(drive->select | ATA_DEVICE_OBS, hwif->io_ports.device_addr); 282 static void ht6560b_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 311 ide_hwif_t *hwif = drive->hwif; local 315 if (hwif->channel)
|
H A D | ide-taskfile.c | 28 ide_hwif_t *hwif = drive->hwif; local 29 const struct ide_tp_ops *tp_ops = hwif->tp_ops; 32 tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS); 37 tp_ops->write_devctl(hwif, ATA_HOB | ATA_DEVCTL_OBS); 79 ide_hwif_t *hwif = drive->hwif; local 80 struct ide_cmd *cmd = &hwif->cmd; 83 const struct ide_tp_ops *tp_ops = hwif->tp_ops; 84 const struct ide_dma_ops *dma_ops = hwif 149 ide_hwif_t *hwif = drive->hwif; local 199 ide_hwif_t *hwif = drive->hwif; local 225 ide_hwif_t *hwif = drive->hwif; local 346 ide_hwif_t *hwif = drive->hwif; local [all...] |
H A D | qd65xx.h | 32 #define QD_CONFIG(hwif) ((hwif)->config_data & 0x00ff)
|
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 | at91_ide.c | 146 ide_hwif_t *hwif = drive->hwif; local 147 struct ide_io_ports *io_ports = &hwif->io_ports; 148 u8 chipselect = hwif->select_data; 163 ide_hwif_t *hwif = drive->hwif; local 164 struct ide_io_ports *io_ports = &hwif->io_ports; 165 u8 chipselect = hwif->select_data; 175 static void at91_ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 178 u8 chipselect = hwif [all...] |
H A D | palm_bk3710.c | 191 static void palm_bk3710_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 194 void __iomem *base = (void *)hwif->dma_base; 207 static void palm_bk3710_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 212 void __iomem *base = (void *)hwif->dma_base; 280 static u8 palm_bk3710_cable_detect(ide_hwif_t *hwif) argument 285 static int __devinit palm_bk3710_init_dma(ide_hwif_t *hwif, argument 288 printk(KERN_INFO " %s: MMIO-DMA\n", hwif->name); 290 if (ide_allocate_dma_engine(hwif)) 293 hwif->dma_base = hwif [all...] |