Lines Matching refs:hwif
32 const struct ide_port_ops *port_ops = drive->hwif->port_ops; in SELECT_MASK()
42 drive->hwif->tp_ops->tf_read(drive, &tf, IDE_VALID_ERROR); in ide_read_error()
108 ide_hwif_t *hwif = drive->hwif; in __ide_wait_stat() local
109 const struct ide_tp_ops *tp_ops = hwif->tp_ops; in __ide_wait_stat()
116 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
124 while ((stat = tp_ops->read_status(hwif)) & ATA_BUSY) { in __ide_wait_stat()
131 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
153 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
235 ide_hwif_t *hwif = drive->hwif; in eighty_ninty_three() local
239 if (hwif->cbl == ATA_CBL_SATA || hwif->cbl == ATA_CBL_PATA40_SHORT) in eighty_ninty_three()
249 if (hwif->cbl != ATA_CBL_PATA80 && !ivb) in eighty_ninty_three()
269 if (hwif->cbl == ATA_CBL_PATA80) in eighty_ninty_three()
284 hwif->cbl == ATA_CBL_PATA80 ? "drive" : "host"); in eighty_ninty_three()
349 ide_hwif_t *hwif = drive->hwif; in ide_config_drive_speed() local
350 const struct ide_tp_ops *tp_ops = hwif->tp_ops; in ide_config_drive_speed()
357 if (hwif->dma_ops) /* check if host supports DMA */ in ide_config_drive_speed()
358 hwif->dma_ops->dma_host_set(drive, 0); in ide_config_drive_speed()
376 tp_ops->write_devctl(hwif, ATA_NIEN | ATA_DEVCTL_OBS); in ide_config_drive_speed()
384 tp_ops->exec_command(hwif, ATA_CMD_SET_FEATURES); in ide_config_drive_speed()
387 tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS); in ide_config_drive_speed()
412 hwif->dma_ops->dma_host_set(drive, 1); in ide_config_drive_speed()
413 else if (hwif->dma_ops) /* check if host supports DMA */ in ide_config_drive_speed()
452 ide_hwif_t *hwif = drive->hwif; in __ide_set_handler() local
454 BUG_ON(hwif->handler); in __ide_set_handler()
455 hwif->handler = handler; in __ide_set_handler()
456 hwif->timer.expires = jiffies + timeout; in __ide_set_handler()
457 hwif->req_gen_timer = hwif->req_gen; in __ide_set_handler()
458 add_timer(&hwif->timer); in __ide_set_handler()
464 ide_hwif_t *hwif = drive->hwif; in ide_set_handler() local
467 spin_lock_irqsave(&hwif->lock, flags); in ide_set_handler()
469 spin_unlock_irqrestore(&hwif->lock, flags); in ide_set_handler()
489 ide_hwif_t *hwif = drive->hwif; in ide_execute_command() local
492 spin_lock_irqsave(&hwif->lock, flags); in ide_execute_command()
497 hwif->tp_ops->exec_command(hwif, cmd->tf.command); in ide_execute_command()
505 spin_unlock_irqrestore(&hwif->lock, flags); in ide_execute_command()
512 int ide_wait_not_busy(ide_hwif_t *hwif, unsigned long timeout) in ide_wait_not_busy() argument
522 stat = hwif->tp_ops->read_status(hwif); in ide_wait_not_busy()