Lines Matching refs:hwif

33 	const struct ide_port_ops *port_ops = drive->hwif->port_ops;  in SELECT_MASK()
43 drive->hwif->tp_ops->tf_read(drive, &tf, IDE_VALID_ERROR); in ide_read_error()
109 ide_hwif_t *hwif = drive->hwif; in __ide_wait_stat() local
110 const struct ide_tp_ops *tp_ops = hwif->tp_ops; in __ide_wait_stat()
117 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
125 while ((stat = tp_ops->read_status(hwif)) & ATA_BUSY) { in __ide_wait_stat()
132 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
154 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
236 ide_hwif_t *hwif = drive->hwif; in eighty_ninty_three() local
240 if (hwif->cbl == ATA_CBL_SATA || hwif->cbl == ATA_CBL_PATA40_SHORT) in eighty_ninty_three()
250 if (hwif->cbl != ATA_CBL_PATA80 && !ivb) in eighty_ninty_three()
270 if (hwif->cbl == ATA_CBL_PATA80) in eighty_ninty_three()
285 hwif->cbl == ATA_CBL_PATA80 ? "drive" : "host"); in eighty_ninty_three()
350 ide_hwif_t *hwif = drive->hwif; in ide_config_drive_speed() local
351 const struct ide_tp_ops *tp_ops = hwif->tp_ops; in ide_config_drive_speed()
358 if (hwif->dma_ops) /* check if host supports DMA */ in ide_config_drive_speed()
359 hwif->dma_ops->dma_host_set(drive, 0); in ide_config_drive_speed()
377 tp_ops->write_devctl(hwif, ATA_NIEN | ATA_DEVCTL_OBS); in ide_config_drive_speed()
385 tp_ops->exec_command(hwif, ATA_CMD_SET_FEATURES); in ide_config_drive_speed()
388 tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS); in ide_config_drive_speed()
413 hwif->dma_ops->dma_host_set(drive, 1); in ide_config_drive_speed()
414 else if (hwif->dma_ops) /* check if host supports DMA */ in ide_config_drive_speed()
453 ide_hwif_t *hwif = drive->hwif; in __ide_set_handler() local
455 BUG_ON(hwif->handler); in __ide_set_handler()
456 hwif->handler = handler; in __ide_set_handler()
457 hwif->timer.expires = jiffies + timeout; in __ide_set_handler()
458 hwif->req_gen_timer = hwif->req_gen; in __ide_set_handler()
459 add_timer(&hwif->timer); in __ide_set_handler()
465 ide_hwif_t *hwif = drive->hwif; in ide_set_handler() local
468 spin_lock_irqsave(&hwif->lock, flags); in ide_set_handler()
470 spin_unlock_irqrestore(&hwif->lock, flags); in ide_set_handler()
490 ide_hwif_t *hwif = drive->hwif; in ide_execute_command() local
493 spin_lock_irqsave(&hwif->lock, flags); in ide_execute_command()
498 hwif->tp_ops->exec_command(hwif, cmd->tf.command); in ide_execute_command()
506 spin_unlock_irqrestore(&hwif->lock, flags); in ide_execute_command()
513 int ide_wait_not_busy(ide_hwif_t *hwif, unsigned long timeout) in ide_wait_not_busy() argument
523 stat = hwif->tp_ops->read_status(hwif); in ide_wait_not_busy()