• Home
  • Raw
  • Download

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()
115 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
121 while ((stat = tp_ops->read_status(hwif)) & ATA_BUSY) { in __ide_wait_stat()
128 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
148 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
230 ide_hwif_t *hwif = drive->hwif; in eighty_ninty_three() local
234 if (hwif->cbl == ATA_CBL_SATA || hwif->cbl == ATA_CBL_PATA40_SHORT) in eighty_ninty_three()
244 if (hwif->cbl != ATA_CBL_PATA80 && !ivb) in eighty_ninty_three()
264 if (hwif->cbl == ATA_CBL_PATA80) in eighty_ninty_three()
279 hwif->cbl == ATA_CBL_PATA80 ? "drive" : "host"); in eighty_ninty_three()
344 ide_hwif_t *hwif = drive->hwif; in ide_config_drive_speed() local
345 const struct ide_tp_ops *tp_ops = hwif->tp_ops; in ide_config_drive_speed()
352 if (hwif->dma_ops) /* check if host supports DMA */ in ide_config_drive_speed()
353 hwif->dma_ops->dma_host_set(drive, 0); in ide_config_drive_speed()
371 tp_ops->write_devctl(hwif, ATA_NIEN | ATA_DEVCTL_OBS); in ide_config_drive_speed()
379 tp_ops->exec_command(hwif, ATA_CMD_SET_FEATURES); in ide_config_drive_speed()
382 tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS); in ide_config_drive_speed()
407 hwif->dma_ops->dma_host_set(drive, 1); in ide_config_drive_speed()
408 else if (hwif->dma_ops) /* check if host supports DMA */ in ide_config_drive_speed()
447 ide_hwif_t *hwif = drive->hwif; in __ide_set_handler() local
449 BUG_ON(hwif->handler); in __ide_set_handler()
450 hwif->handler = handler; in __ide_set_handler()
451 hwif->timer.expires = jiffies + timeout; in __ide_set_handler()
452 hwif->req_gen_timer = hwif->req_gen; in __ide_set_handler()
453 add_timer(&hwif->timer); in __ide_set_handler()
459 ide_hwif_t *hwif = drive->hwif; in ide_set_handler() local
462 spin_lock_irqsave(&hwif->lock, flags); in ide_set_handler()
464 spin_unlock_irqrestore(&hwif->lock, flags); in ide_set_handler()
484 ide_hwif_t *hwif = drive->hwif; in ide_execute_command() local
487 spin_lock_irqsave(&hwif->lock, flags); in ide_execute_command()
492 hwif->tp_ops->exec_command(hwif, cmd->tf.command); in ide_execute_command()
500 spin_unlock_irqrestore(&hwif->lock, flags); in ide_execute_command()
507 int ide_wait_not_busy(ide_hwif_t *hwif, unsigned long timeout) in ide_wait_not_busy() argument
517 stat = hwif->tp_ops->read_status(hwif); in ide_wait_not_busy()