Searched refs:hwif (Results 26 - 50 of 82) sorted by relevance

1234

/drivers/ide/
H A Dide-sysfs.c96 ide_hwif_t *hwif = dev_get_drvdata(portdev); local
101 ide_port_unregister_devices(hwif);
112 ide_hwif_t *hwif = dev_get_drvdata(portdev); local
117 ide_port_unregister_devices(hwif);
118 ide_port_scan(hwif);
131 int ide_sysfs_register_port(ide_hwif_t *hwif) argument
136 rc = device_create_file(hwif->portdev, ide_port_attrs[i]);
H A Dide-park.c11 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 Dsc1200.c83 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 Dserverworks.c67 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 Dcy82c693.c56 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);
148 static void init_iops_cy82c693(ide_hwif_t *hwif) argument
151 struct pci_dev *dev = to_pci_dev(hwif->dev);
154 primary = hwif;
156 hwif->mate = primary;
157 hwif->channel = 1;
H A Dqd65xx.c100 outb(drive->select | ATA_DEVICE_OBS, drive->hwif->io_ports.device_addr);
111 static u8 qd6500_compute_timing (ide_hwif_t *hwif, int active_time, int recovery_time) argument
191 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 Dpdc202xx_new.c68 * @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 Dpiix.c68 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 Dpmac.c67 ide_hwif_t *hwif; member in struct:pmac_ide_hwif
69 /* Those fields are duplicating what is in hwif. We currently
70 * can't use the hwif ones because of some assumptions that are
409 ((void __iomem *)((drive)->hwif->io_ports.data_addr + (x)))
418 ide_hwif_t *hwif = drive->hwif; local
419 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent);
435 ide_hwif_t *hwif = drive->hwif; local
436 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif
454 ide_hwif_t *hwif = drive->hwif; local
481 pmac_exec_command(ide_hwif_t *hwif, u8 cmd) argument
488 pmac_write_devctl(ide_hwif_t *hwif, u8 ctl) argument
498 pmac_ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument
778 pmac_ide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument
915 pmac_ide_cable_detect(ide_hwif_t *hwif) argument
947 ide_hwif_t *hwif = drive->hwif; local
1026 ide_hwif_t *hwif; local
1459 ide_hwif_t *hwif = drive->hwif; local
1536 ide_hwif_t *hwif = drive->hwif; local
1561 ide_hwif_t *hwif = drive->hwif; local
1578 ide_hwif_t *hwif = drive->hwif; local
1602 ide_hwif_t *hwif = drive->hwif; local
1656 ide_hwif_t *hwif = drive->hwif; local
1677 pmac_ide_init_dma(ide_hwif_t *hwif, const struct ide_port_info *d) argument
[all...]
H A Dcs5530.c40 #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 Dslc90e66.c21 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 Dide-atapi.c235 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 Djmicron.c24 * @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 Dtriflex.c37 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 Dicside.c169 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
380 icside_dma_off_init(ide_hwif_t *hwif, const struct ide_port_info *d) argument
[all...]
H A Dgayle.c61 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 Dide-proc.c36 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');
683 void ide_proc_port_register_devices(ide_hwif_t *hwif) argument
686 struct proc_dir_entry *parent = hwif
721 ide_proc_register_port(ide_hwif_t *hwif) argument
733 ide_proc_unregister_port(ide_hwif_t *hwif) argument
[all...]
H A Daec62xx.c84 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 Dcs5520.c60 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 Dht6560b.c116 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 Dide-taskfile.c29 ide_hwif_t *hwif = drive->hwif; local
30 const struct ide_tp_ops *tp_ops = hwif->tp_ops;
33 tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS);
38 tp_ops->write_devctl(hwif, ATA_HOB | ATA_DEVCTL_OBS);
80 ide_hwif_t *hwif = drive->hwif; local
81 struct ide_cmd *cmd = &hwif->cmd;
84 const struct ide_tp_ops *tp_ops = hwif->tp_ops;
85 const struct ide_dma_ops *dma_ops = hwif
150 ide_hwif_t *hwif = drive->hwif; local
200 ide_hwif_t *hwif = drive->hwif; local
226 ide_hwif_t *hwif = drive->hwif; local
346 ide_hwif_t *hwif = drive->hwif; local
[all...]
H A Dqd65xx.h32 #define QD_CONFIG(hwif) ((hwif)->config_data & 0x00ff)
H A Dit8172.c40 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 Dpalm_bk3710.c191 static void palm_bk3710_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument
194 void __iomem *base = (void __iomem *)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 __iomem *)hwif->dma_base;
280 static u8 palm_bk3710_cable_detect(ide_hwif_t *hwif) argument
285 static int palm_bk3710_init_dma(ide_hwif_t *hwif, const struct ide_port_info *d) argument
287 printk(KERN_INFO " %s: MMIO-DMA\n", hwif->name);
289 if (ide_allocate_dma_engine(hwif))
292 hwif->dma_base = hwif
[all...]
H A Datiixp.c45 * @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;

Completed in 265 milliseconds

1234