Searched refs:hwif (Results 1 - 25 of 77) sorted by relevance

1234

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/
H A Dide-dma.c205 ide_hwif_t *hwif = HWIF(drive); local
206 struct scatterlist *sg = hwif->sg_table;
213 hwif->sg_dma_direction = PCI_DMA_FROMDEVICE;
215 hwif->sg_dma_direction = PCI_DMA_TODEVICE;
217 return pci_map_sg(hwif->pci_dev, sg, hwif->sg_nents, hwif->sg_dma_direction);
238 ide_hwif_t *hwif = HWIF(drive); local
239 unsigned int *table = hwif->dmatable_cpu;
240 unsigned int is_trm290 = (hwif
394 ide_hwif_t *hwif = HWIF(drive); local
428 ide_hwif_t *hwif = HWIF(drive); local
483 ide_hwif_t *hwif = HWIF(drive); local
545 ide_hwif_t *hwif = drive->hwif; local
589 ide_hwif_t *hwif = HWIF(drive); local
608 ide_hwif_t *hwif = HWIF(drive); local
633 ide_hwif_t *hwif = HWIF(drive); local
678 ide_hwif_t *hwif = drive->hwif; local
721 ide_hwif_t *hwif = drive->hwif; local
772 ide_hwif_t *hwif = HWIF(drive); local
823 ide_hwif_t *hwif = drive->hwif; local
869 ide_release_dma_engine(ide_hwif_t *hwif) argument
881 ide_release_iomio_dma(ide_hwif_t *hwif) argument
892 ide_release_dma(ide_hwif_t *hwif) argument
902 ide_allocate_dma_engine(ide_hwif_t *hwif) argument
917 ide_mapped_mmio_dma(ide_hwif_t *hwif, unsigned long base, unsigned int ports) argument
930 ide_iomio_dma(ide_hwif_t *hwif, unsigned long base, unsigned int ports) argument
963 ide_dma_iobase(ide_hwif_t *hwif, unsigned long base, unsigned int ports) argument
974 ide_setup_dma(ide_hwif_t *hwif, unsigned long dma_base, unsigned int num_ports) argument
[all...]
H A Dide-probe.c20 * Version 1.03 fix for (hwif->chipset == ide_4drives)
23 * Version 1.05 fix for (hwif->chipset == ide_pdc4030)
135 ide_hwif_t *hwif = HWIF(drive); local
141 hwif->ata_input_data(drive, id, SECTOR_WORDS);
276 ide_hwif_t *hwif = HWIF(drive); local
286 a = hwif->INB(IDE_ALTSTATUS_REG);
287 s = hwif->INB(IDE_STATUS_REG);
305 hwif->OUTB(0, IDE_FEATURE_REG);
308 hwif->OUTB(cmd, IDE_COMMAND_REG);
319 } while ((hwif
354 ide_hwif_t *hwif = HWIF(drive); local
426 ide_hwif_t *hwif = HWIF(drive); local
507 ide_hwif_t *hwif = HWIF(drive); local
618 ide_hwif_t *hwif = container_of(dev, ide_hwif_t, gendev); local
623 hwif_register(ide_hwif_t *hwif) argument
644 wait_hwif_ready(ide_hwif_t *hwif) argument
689 ide_undecoded_slave(ide_hwif_t *hwif) argument
721 probe_hwif(ide_hwif_t *hwif, void (*fixup)(ide_hwif_t *hwif)) argument
874 probe_hwif_init_with_fixup(ide_hwif_t *hwif, void (*fixup)(ide_hwif_t *hwif)) argument
905 probe_hwif_init(ide_hwif_t *hwif) argument
924 save_match(ide_hwif_t *hwif, ide_hwif_t *new, ide_hwif_t **match) argument
945 ide_hwif_t *hwif = HWIF(drive); local
1004 init_irq(ide_hwif_t *hwif) argument
1178 ide_hwif_t *hwif = data; local
1232 ide_hwif_t *hwif = drive->hwif; local
1291 init_gendisk(ide_hwif_t *hwif) argument
1306 THIS_MODULE, ata_probe, ata_lock, hwif); local
1309 hwif_init(ide_hwif_t *hwif) argument
1399 ide_hwif_t *hwif = &ide_hwifs[index]; local
[all...]
H A Dide.c103 * Version 6.20 Added/Fixed Generic ATA-66 support and hwif detection.
199 static void init_hwif_data(ide_hwif_t *hwif, unsigned int index) argument
203 /* bulk initialize hwif & drive info with zeros */
204 memset(hwif, 0, sizeof(ide_hwif_t));
207 hwif->index = index;
208 hwif->major = ide_hwif_to_major[index];
210 hwif->name[0] = 'i';
211 hwif->name[1] = 'd';
212 hwif->name[2] = 'e';
213 hwif
245 init_hwif_default(ide_hwif_t *hwif, unsigned int index) argument
268 ide_hwif_t *hwif; local
333 hwif_request_region(ide_hwif_t *hwif, unsigned long addr, int num) argument
354 ide_hwif_request_regions(ide_hwif_t *hwif) argument
403 ide_hwif_release_regions(ide_hwif_t *hwif) argument
429 ide_hwif_restore(ide_hwif_t *hwif, ide_hwif_t *tmp_hwif) argument
549 ide_hwif_t *hwif, *g; local
738 ide_register_hw_with_fixup(hw_regs_t *hw, int initializing, ide_hwif_t **hwifp, void(*fixup)(ide_hwif_t *hwif)) argument
743 ide_hwif_t *hwif; local
872 ide_hwif_t *hwif = drive->hwif; local
969 ide_hwif_t *hwif = HWIF(drive); local
995 ide_hwif_t *hwif = HWIF(drive); local
1298 ide_hwif_t *hwif; local
[all...]
H A Dsetup-pci.c40 ide_hwif_t *hwif; local
43 * Look for a hwif with matching io_base specified using
47 hwif = &ide_hwifs[h];
48 if (hwif->io_ports[IDE_DATA_OFFSET] == io_base) {
49 if (hwif->chipset == ide_forced)
50 return hwif; /* a perfect match */
54 * Look for a hwif with matching io_base default value.
55 * If chipset is "ide_unknown", then claim that hwif slot.
59 hwif = &ide_hwifs[h];
60 if (hwif
152 ide_get_or_set_dma_base(ide_hwif_t *hwif) argument
380 ide_hwif_t *hwif; local
441 ide_hwif_setup_dma(struct pci_dev *dev, ide_pci_device_t *d, ide_hwif_t *hwif) argument
445 ide_hwif_setup_dma(struct pci_dev *dev, ide_pci_device_t *d, ide_hwif_t *hwif) argument
548 ide_hwif_t *hwif, *mate = NULL; local
676 ide_hwif_t *hwif = NULL, *mate = NULL; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/pci/
H A Dtrm290.c148 ide_hwif_t *hwif = HWIF(drive); local
157 if (reg != hwif->select_data) {
158 hwif->select_data = reg;
160 outb(0x51 | (hwif->channel << 3), hwif->config_data + 1);
161 outw(reg & 0xff, hwif->config_data);
166 reg = inw(hwif->config_data + 3);
168 reg &= ~(1 << hwif->channel);
169 outw(reg, hwif->config_data + 3);
190 ide_hwif_t *hwif local
224 ide_hwif_t *hwif = HWIF(drive); local
236 ide_hwif_t *hwif = HWIF(drive); local
246 init_hwif_trm290(ide_hwif_t *hwif) argument
[all...]
H A Dns87415.c72 static void __devinit superio_ide_init_iops (struct hwif_s *hwif) argument
76 struct pci_dev *pdev = hwif->pci_dev;
77 u8 port = hwif->channel;
90 hwif->INB = superio_ide_inb;
93 static void __devinit init_iops_ns87415(ide_hwif_t *hwif) argument
95 if (PCI_SLOT(hwif->pci_dev->devfn) == 0xE) {
97 superio_ide_init_iops(hwif);
111 ide_hwif_t *hwif = HWIF(drive); local
112 unsigned int bit, other, new, *old = (unsigned int *) hwif->select_data;
113 struct pci_dev *dev = hwif
160 ide_hwif_t *hwif = HWIF(drive); local
197 init_hwif_ns87415(ide_hwif_t *hwif) argument
[all...]
H A Dtc86c001.c18 ide_hwif_t *hwif = HWIF(drive); local
19 unsigned long scr_port = hwif->config_data + (drive->dn ? 0x02 : 0x00);
20 u16 mode, scr = hwif->INW(scr_port);
56 ide_hwif_t *hwif = HWIF(drive); local
57 ide_expiry_t *expiry = ide_get_hwifdata(hwif);
59 u8 dma_stat = hwif->INB(hwif->dma_status);
65 unsigned long sc_base = hwif->config_data;
67 u8 dma_cmd = hwif->INB(hwif
101 ide_hwif_t *hwif = HWIF(drive); local
124 ide_hwif_t *hwif = HWIF(drive); local
167 init_hwif_tc86c001(ide_hwif_t *hwif) argument
[all...]
H A Dsgiioc4.c119 sgiioc4_checkirq(ide_hwif_t * hwif) argument
122 hwif->io_ports[IDE_IRQ_OFFSET] + IOC4_INTR_REG * 4;
136 ide_hwif_t *hwif = HWIF(drive); local
138 hwif->io_ports[IDE_IRQ_OFFSET] + (IOC4_INTR_REG << 2);
164 readl((void __iomem *)hwif->io_ports[IDE_IRQ_OFFSET]);
166 readl((void __iomem *)(hwif->io_ports[IDE_IRQ_OFFSET] + 4));
167 pci_read_config_dword(hwif->pci_dev, PCI_COMMAND,
178 pci_write_config_dword(hwif->pci_dev, PCI_COMMAND,
193 ide_hwif_t *hwif = HWIF(drive); local
194 unsigned long ioc4_dma_addr = hwif
202 sgiioc4_ide_dma_stop(ide_hwif_t *hwif, u64 dma_base) argument
222 ide_hwif_t *hwif = HWIF(drive); local
356 ide_dma_sgiioc4(ide_hwif_t * hwif, unsigned long dma_base) argument
426 ide_hwif_t *hwif = HWIF(drive); local
486 ide_hwif_t *hwif = HWIF(drive); local
580 ide_init_sgiioc4(ide_hwif_t * hwif) argument
621 ide_hwif_t *hwif; local
[all...]
H A Dsiimage.c68 * is_sata - check if hwif is SATA
69 * @hwif: interface to check
74 static inline int is_sata(ide_hwif_t *hwif) argument
76 return pdev_is_sata(hwif->pci_dev);
81 * @hwif: interface
90 static unsigned long siimage_selreg(ide_hwif_t *hwif, int r) argument
92 unsigned long base = (unsigned long)hwif->hwif_data;
94 if(hwif->mmio)
95 base += (hwif->channel << 6);
97 base += (hwif
113 ide_hwif_t *hwif = HWIF(drive); local
136 ide_hwif_t *hwif = drive->hwif; local
170 siimage_taskfile_timing(ide_hwif_t *hwif) argument
203 ide_hwif_t *hwif = HWIF(drive); local
286 ide_hwif_t *hwif = HWIF(drive); local
385 ide_hwif_t *hwif = HWIF(drive); local
410 ide_hwif_t *hwif = HWIF(drive); local
458 ide_hwif_t *hwif = HWIF(drive); local
498 ide_hwif_t *hwif = HWIF(drive); local
543 ide_hwif_t *hwif = HWIF(drive); local
774 init_mmio_iops_siimage(ide_hwif_t *hwif) argument
876 siimage_fixup(ide_hwif_t *hwif) argument
893 init_iops_siimage(ide_hwif_t *hwif) argument
919 ata66_siimage(ide_hwif_t *hwif) argument
940 init_hwif_siimage(ide_hwif_t *hwif) argument
[all...]
H A Dscc_pata.c68 unsigned char hwif_id; /* for removing hwif from system */
165 ide_hwif_t *hwif = HWIF(drive); local
169 in_be32((void*)(hwif->dma_base + 0x01c));
203 ide_hwif_t *hwif = HWIF(drive); local
204 struct scc_ports *ports = ide_get_hwifdata(hwif);
258 ide_hwif_t *hwif = HWIF(drive); local
260 struct scc_ports *ports = ide_get_hwifdata(hwif);
269 int is_slave = (&hwif->drives[1] == drive);
359 ide_hwif_t *hwif = drive->hwif; local
401 ide_hwif_t *hwif = HWIF(drive); local
478 ide_hwif_t *hwif = HWIF(drive); local
621 init_mmio_iops_scc(ide_hwif_t *hwif) argument
663 init_iops_scc(ide_hwif_t *hwif) argument
681 init_hwif_scc(ide_hwif_t *hwif) argument
763 ide_hwif_t *hwif = &ide_hwifs[ports->hwif_id]; local
[all...]
H A Dsc1200.c100 ide_hwif_t *hwif = drive->hwif; local
101 struct pci_dev *pdev = hwif->pci_dev;
102 unsigned int basereg = hwif->channel ? 0x50 : 0x40, format = 0;
123 ide_hwif_t *hwif = drive->hwif; local
124 ide_drive_t *mate = &hwif->drives[(drive->dn & 1) ^ 1];
126 u8 mask = hwif->ultra_mask;
143 ide_hwif_t *hwif = HWIF(drive); local
147 unsigned int basereg = hwif
257 ide_hwif_t *hwif = HWIF(drive); local
285 ide_hwif_t *hwif = HWIF(drive); local
320 ide_hwif_t *hwif = &ide_hwifs[h]; local
339 ide_hwif_t *hwif = NULL; local
384 ide_hwif_t *hwif = NULL; local
449 init_hwif_sc1200(ide_hwif_t *hwif) argument
[all...]
H A Djmicron.c26 * @hwif: IDE port
31 static int __devinit ata66_jmicron(ide_hwif_t *hwif) argument
33 struct pci_dev *pdev = hwif->pci_dev;
38 int port = hwif->channel;
140 * init_hwif_jmicron - set up hwif structs
141 * @hwif: interface to set up
146 static void __devinit init_hwif_jmicron(ide_hwif_t *hwif) argument
148 hwif->speedproc = &jmicron_tune_chipset;
149 hwif->tuneproc = &jmicron_tuneproc;
151 hwif
[all...]
H A Dtriflex.c45 ide_hwif_t *hwif = HWIF(drive); local
46 struct pci_dev *dev = hwif->pci_dev;
47 u8 channel_offset = hwif->channel ? 0x74 : 0x70;
113 static void __devinit init_hwif_triflex(ide_hwif_t *hwif) argument
115 hwif->tuneproc = &triflex_tune_drive;
116 hwif->speedproc = &triflex_tune_chipset;
118 hwif->atapi_dma = 1;
119 hwif->mwdma_mask = 0x07;
120 hwif->swdma_mask = 0x07;
121 hwif
[all...]
H A Dsl82c105.c192 ide_hwif_t *hwif = HWIF(drive); local
193 struct pci_dev *dev = hwif->pci_dev;
194 u32 val, mask = hwif->channel ? CTRL_IDE_IRQB : CTRL_IDE_IRQA;
210 dma_cmd = inb(hwif->dma_command);
212 outb(dma_cmd & ~1, hwif->dma_command);
232 ide_hwif_t *hwif = HWIF(drive); local
233 struct pci_dev *dev = hwif->pci_dev;
241 ide_hwif_t *hwif = HWIF(drive); local
242 struct pci_dev *dev = hwif->pci_dev;
287 ide_hwif_t *hwif local
392 init_hwif_sl82c105(ide_hwif_t *hwif) argument
[all...]
H A Dcs5520.c71 ide_hwif_t *hwif = HWIF(drive); local
72 struct pci_dev *pdev = hwif->pci_dev;
113 reg = inb(hwif->dma_base + 0x02 + 8*controller);
115 outb(reg, hwif->dma_base + 0x02 + 8*controller);
120 error = hwif->ide_dma_on(drive);
144 static void __devinit cs5520_init_setup_dma(struct pci_dev *dev, ide_pci_device_t *d, ide_hwif_t *hwif) argument
147 if(hwif->mate && hwif->mate->dma_base) /* Second channel at primary + 8 */
149 ide_setup_dma(hwif, bmide, 8);
164 static void __devinit init_hwif_cs5520(ide_hwif_t *hwif) argument
214 ide_hwif_t *hwif = NULL, *mate = NULL; local
[all...]
H A Drz1000.c33 static void __devinit init_hwif_rz1000 (ide_hwif_t *hwif) argument
36 struct pci_dev *dev = hwif->pci_dev;
38 hwif->chipset = ide_rz1000;
42 "(buggy RZ1000/RZ1001)\n", hwif->name);
44 hwif->serialized = 1;
45 hwif->drives[0].no_unmask = 1;
46 hwif->drives[1].no_unmask = 1;
48 "(buggy RZ1000/RZ1001)\n", hwif->name);
H A Dslc90e66.c53 ide_hwif_t *hwif = HWIF(drive); local
54 struct pci_dev *dev = hwif->pci_dev;
56 int master_port = hwif->channel ? 0x42 : 0x40;
87 slave_data &= hwif->channel ? 0x0f : 0xf0;
89 (hwif->channel ? 4 : 0);
113 ide_hwif_t *hwif = HWIF(drive); local
114 struct pci_dev *dev = hwif->pci_dev;
115 u8 maslave = hwif->channel ? 0x42 : 0x40;
175 static void __devinit init_hwif_slc90e66 (ide_hwif_t *hwif) argument
178 u8 mask = hwif
[all...]
H A Dcs5530.c63 #define CS5530_BASEREG(hwif) (((hwif)->dma_base & ~0xf) + ((hwif)->channel ? 0x30 : 0x20))
67 unsigned long basereg = CS5530_BASEREG(drive->hwif);
112 ide_hwif_t *hwif = drive->hwif; local
113 ide_drive_t *mate = &hwif->drives[(drive->dn & 1) ^ 1];
115 u8 mask = hwif->ultra_mask;
180 basereg = CS5530_BASEREG(drive->hwif);
293 * @hwif
299 init_hwif_cs5530(ide_hwif_t *hwif) argument
[all...]
H A Dit821x.c116 ide_hwif_t *hwif = drive->hwif; local
117 struct it821x_dev *itdev = ide_get_hwifdata(hwif);
118 int channel = hwif->channel;
126 pci_write_config_byte(hwif->pci_dev, 0x54 + 4 * channel, conf);
140 ide_hwif_t *hwif = drive->hwif; local
141 struct it821x_dev *itdev = ide_get_hwifdata(hwif);
142 int channel = hwif->channel;
152 pci_write_config_byte(hwif
169 ide_hwif_t *hwif = drive->hwif; local
243 ide_hwif_t *hwif = drive->hwif; local
296 ide_hwif_t *hwif = drive->hwif; local
333 ide_hwif_t *hwif = drive->hwif; local
365 ide_hwif_t *hwif = drive->hwif; local
386 ide_hwif_t *hwif = drive->hwif; local
409 ide_hwif_t *hwif = drive->hwif; local
481 ata66_it821x(ide_hwif_t *hwif) argument
488 it821x_fixups(ide_hwif_t *hwif) argument
581 init_hwif_it821x(ide_hwif_t *hwif) argument
[all...]
H A Datiixp.c90 struct pci_dev *dev = drive->hwif->pci_dev;
110 struct pci_dev *dev = drive->hwif->pci_dev;
135 struct pci_dev *dev = drive->hwif->pci_dev;
169 struct pci_dev *dev = drive->hwif->pci_dev;
236 * init_hwif_atiixp - fill in the hwif for the ATIIXP
237 * @hwif: IDE interface
243 static void __devinit init_hwif_atiixp(ide_hwif_t *hwif) argument
246 u8 ch = hwif->channel;
247 struct pci_dev *pdev = hwif->pci_dev;
249 if (!hwif
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/arm/
H A Drapide.c23 ide_hwif_t *hwif; local
27 hwif = ide_hwifs + index;
28 if (hwif->io_ports[IDE_DATA_OFFSET] == port)
33 hwif = ide_hwifs + index;
34 if (hwif->io_ports[IDE_DATA_OFFSET] == 0)
42 hwif->hw.io_ports[i] = port;
43 hwif->io_ports[i] = port;
46 hwif->hw.io_ports[IDE_CONTROL_OFFSET] = (unsigned long)ctrl;
47 hwif->io_ports[IDE_CONTROL_OFFSET] = (unsigned long)ctrl;
48 hwif
58 ide_hwif_t *hwif; local
91 ide_hwif_t *hwif = ecard_get_drvdata(ec); local
[all...]
H A Dicside.c76 ide_hwif_t *hwif[2]; member in struct:icside_state
171 ide_hwif_t *hwif = HWIF(drive); local
172 struct icside_state *state = hwif->hwif_data;
177 state->channel = hwif->channel;
180 switch (hwif->channel) {
211 ide_hwif_t *hwif = drive->hwif; local
212 struct icside_state *state = hwif->hwif_data;
213 struct scatterlist *sg = hwif->sg_table;
218 hwif
328 ide_hwif_t *hwif = HWIF(drive); local
366 ide_hwif_t *hwif = HWIF(drive); local
382 ide_hwif_t *hwif = HWIF(drive); local
391 ide_hwif_t *hwif = HWIF(drive); local
442 ide_hwif_t *hwif = HWIF(drive); local
470 icside_dma_init(ide_hwif_t *hwif) argument
507 ide_hwif_t *hwif; local
531 ide_hwif_t *hwif; local
565 ide_hwif_t *hwif; local
600 ide_hwif_t *hwif, *mate; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/h8300/
H A Dide-h8300.c75 static inline void hwif_setup(ide_hwif_t *hwif) argument
77 default_hwif_iops(hwif);
79 hwif->mmio = 1;
80 hwif->OUTW = mm_outw;
81 hwif->OUTSW = mm_outsw;
82 hwif->INW = mm_inw;
83 hwif->INSW = mm_insw;
84 hwif->OUTSL = NULL;
85 hwif->INSL = NULL;
91 ide_hwif_t *hwif; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/mips/
H A Dau1xxx-ide.c245 ide_hwif_t *hwif = drive->hwif; local
246 _auide_hwif *ahwif = (_auide_hwif*)hwif->hwif_data;
247 struct scatterlist *sg = hwif->sg_table;
252 hwif->sg_dma_direction = DMA_FROM_DEVICE;
254 hwif->sg_dma_direction = DMA_TO_DEVICE;
256 return dma_map_sg(ahwif->dev, sg, hwif->sg_nents,
257 hwif->sg_dma_direction);
263 ide_hwif_t *hwif = HWIF(drive); local
267 _auide_hwif *ahwif = (_auide_hwif*)hwif
345 ide_hwif_t *hwif = HWIF(drive); local
509 ide_hwif_t *hwif = auide->hwif; local
639 ide_hwif_t *hwif; local
776 ide_hwif_t *hwif = dev_get_drvdata(dev); local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/legacy/
H A Ddtc2278.c98 ide_hwif_t *hwif, *mate; local
100 hwif = &ide_hwifs[0];
103 if (hwif->chipset != ide_unknown || mate->chipset != ide_unknown)
124 hwif->serialized = 1;
125 hwif->chipset = ide_dtc2278;
126 hwif->tuneproc = &tune_dtc2278;
127 hwif->drives[0].no_unmask = 1;
128 hwif->drives[1].no_unmask = 1;
129 hwif->mate = mate;
135 mate->mate = hwif;
[all...]

Completed in 113 milliseconds

1234