Lines Matching refs:hwif

10 	ide_hwif_t *hwif = drive->hwif;
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;
76 if (hwif->tp_ops->read_status(hwif) & (ATA_BUSY | ATA_DRQ))
78 hwif->tp_ops->exec_command(hwif, ATA_CMD_IDLEIMMEDIATE);
121 rq = drive->hwif->rq;
148 struct request *rq = drive->hwif->rq;
169 ide_hwif_t *hwif = drive->hwif;
170 const struct ide_tp_ops *tp_ops = hwif->tp_ops;
175 stat = tp_ops->read_status(hwif);
180 if (time_before(jiffies, hwif->poll_timeout)) {
186 hwif->polling = 0;
193 hwif->polling = 0;
198 static void ide_reset_report_error(ide_hwif_t *hwif, u8 err)
207 printk(KERN_ERR "%s: reset: master: ", hwif->name);
225 ide_hwif_t *hwif = drive->hwif;
226 const struct ide_port_ops *port_ops = hwif->port_ops;
234 hwif->name, drive->name);
239 tmp = hwif->tp_ops->read_status(hwif);
242 if (time_before(jiffies, hwif->poll_timeout)) {
248 hwif->name, tmp);
255 printk(KERN_INFO "%s: reset: success\n", hwif->name);
258 ide_reset_report_error(hwif, tmp);
264 hwif->polling = 0; /* done polling */
289 const struct ide_port_ops *port_ops = drive->hwif->port_ops;
336 ide_hwif_t *hwif = drive->hwif;
337 struct ide_io_ports *io_ports = &hwif->io_ports;
338 const struct ide_tp_ops *tp_ops = hwif->tp_ops;
345 spin_lock_irqsave(&hwif->lock, flags);
348 BUG_ON(hwif->handler != NULL);
355 tp_ops->exec_command(hwif, ATA_CMD_DEV_RESET);
357 hwif->poll_timeout = jiffies + WAIT_WORSTCASE;
358 hwif->polling = 1;
360 spin_unlock_irqrestore(&hwif->lock, flags);
370 ide_port_for_each_present_dev(i, tdrive, hwif) {
380 spin_unlock_irqrestore(&hwif->lock, flags);
382 spin_lock_irqsave(&hwif->lock, flags);
390 ide_port_for_each_dev(i, tdrive, hwif)
394 spin_unlock_irqrestore(&hwif->lock, flags);
408 tp_ops->write_devctl(hwif, ATA_SRST | ATA_NIEN | ATA_DEVCTL_OBS);
412 tp_ops->write_devctl(hwif,
417 hwif->poll_timeout = jiffies + WAIT_WORSTCASE;
418 hwif->polling = 1;
426 port_ops = hwif->port_ops;
430 spin_unlock_irqrestore(&hwif->lock, flags);