• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/ide/

Lines Matching refs:hwif

9 	ide_hwif_t *hwif = drive->hwif;
20 hwif->tp_ops->read_status(hwif) == ATA_CMD_INIT_DEV_PARAMS)
35 (hwif->host_flags & IDE_HFLAG_ERROR_STOPS_FIFO) == 0) {
46 if (hwif->tp_ops->read_status(hwif) & (ATA_BUSY | ATA_DRQ))
65 ide_hwif_t *hwif = drive->hwif;
75 if (hwif->tp_ops->read_status(hwif) & (ATA_BUSY | ATA_DRQ))
77 hwif->tp_ops->exec_command(hwif, ATA_CMD_IDLEIMMEDIATE);
120 rq = drive->hwif->rq;
147 struct request *rq = drive->hwif->rq;
168 ide_hwif_t *hwif = drive->hwif;
169 const struct ide_tp_ops *tp_ops = hwif->tp_ops;
174 stat = tp_ops->read_status(hwif);
179 if (time_before(jiffies, hwif->poll_timeout)) {
185 hwif->polling = 0;
192 hwif->polling = 0;
197 static void ide_reset_report_error(ide_hwif_t *hwif, u8 err)
206 printk(KERN_ERR "%s: reset: master: ", hwif->name);
224 ide_hwif_t *hwif = drive->hwif;
225 const struct ide_port_ops *port_ops = hwif->port_ops;
233 hwif->name, drive->name);
238 tmp = hwif->tp_ops->read_status(hwif);
241 if (time_before(jiffies, hwif->poll_timeout)) {
247 hwif->name, tmp);
254 printk(KERN_INFO "%s: reset: success\n", hwif->name);
257 ide_reset_report_error(hwif, tmp);
263 hwif->polling = 0; /* done polling */
288 const struct ide_port_ops *port_ops = drive->hwif->port_ops;
335 ide_hwif_t *hwif = drive->hwif;
336 struct ide_io_ports *io_ports = &hwif->io_ports;
337 const struct ide_tp_ops *tp_ops = hwif->tp_ops;
344 spin_lock_irqsave(&hwif->lock, flags);
347 BUG_ON(hwif->handler != NULL);
354 tp_ops->exec_command(hwif, ATA_CMD_DEV_RESET);
356 hwif->poll_timeout = jiffies + WAIT_WORSTCASE;
357 hwif->polling = 1;
359 spin_unlock_irqrestore(&hwif->lock, flags);
369 ide_port_for_each_present_dev(i, tdrive, hwif) {
379 spin_unlock_irqrestore(&hwif->lock, flags);
381 spin_lock_irqsave(&hwif->lock, flags);
389 ide_port_for_each_dev(i, tdrive, hwif)
393 spin_unlock_irqrestore(&hwif->lock, flags);
407 tp_ops->write_devctl(hwif, ATA_SRST | ATA_NIEN | ATA_DEVCTL_OBS);
411 tp_ops->write_devctl(hwif,
416 hwif->poll_timeout = jiffies + WAIT_WORSTCASE;
417 hwif->polling = 1;
425 port_ops = hwif->port_ops;
429 spin_unlock_irqrestore(&hwif->lock, flags);