/linux-4.4.14/drivers/ide/ |
D | ide-probe.c | 193 ide_hwif_t *hwif = drive->hwif; in do_identify() local 201 hwif->tp_ops->input_data(drive, NULL, id, SECTOR_SIZE); in do_identify() 252 ide_hwif_t *hwif = drive->hwif; in ide_dev_read_id() local 253 struct ide_io_ports *io_ports = &hwif->io_ports; in ide_dev_read_id() 254 const struct ide_tp_ops *tp_ops = hwif->tp_ops; in ide_dev_read_id() 264 tp_ops->write_devctl(hwif, ATA_NIEN | ATA_DEVCTL_OBS); in ide_dev_read_id() 273 (hwif->host_flags & IDE_HFLAG_BROKEN_ALTSTATUS) == 0) { in ide_dev_read_id() 274 a = tp_ops->read_altstatus(hwif); in ide_dev_read_id() 275 s = tp_ops->read_status(hwif); in ide_dev_read_id() 298 tp_ops->exec_command(hwif, cmd); in ide_dev_read_id() [all …]
|
D | ide-dma-sff.c | 22 ide_hwif_t *hwif = drive->hwif; in config_drive_for_dma() local 26 if (hwif->host_flags & IDE_HFLAG_NO_ATAPI_DMA) in config_drive_for_dma() 53 u8 ide_dma_sff_read_status(ide_hwif_t *hwif) in ide_dma_sff_read_status() argument 55 unsigned long addr = hwif->dma_base + ATA_DMA_STATUS; in ide_dma_sff_read_status() 57 if (hwif->host_flags & IDE_HFLAG_MMIO) in ide_dma_sff_read_status() 64 static void ide_dma_sff_write_status(ide_hwif_t *hwif, u8 val) in ide_dma_sff_write_status() argument 66 unsigned long addr = hwif->dma_base + ATA_DMA_STATUS; in ide_dma_sff_write_status() 68 if (hwif->host_flags & IDE_HFLAG_MMIO) in ide_dma_sff_write_status() 84 ide_hwif_t *hwif = drive->hwif; in ide_dma_host_set() local 86 u8 dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); in ide_dma_host_set() [all …]
|
D | ide-io.c | 76 const struct ide_tp_ops *tp_ops = drive->hwif->tp_ops; in ide_complete_cmd() 117 ide_hwif_t *hwif = drive->hwif; in ide_complete_rq() local 118 struct request *rq = hwif->rq; in ide_complete_rq() 130 hwif->rq = NULL; in ide_complete_rq() 225 ide_hwif_t *hwif = drive->hwif; in ide_map_sg() local 226 struct scatterlist *sg = hwif->sg_table; in ide_map_sg() 314 drive->hwif->name, (unsigned long) rq); in start_request() 326 drive->hwif->tp_ops->dev_select(drive); in start_request() 395 static inline int ide_lock_port(ide_hwif_t *hwif) in ide_lock_port() argument 397 if (hwif->busy) in ide_lock_port() [all …]
|
D | trm290.c | 147 ide_hwif_t *hwif = drive->hwif; in trm290_prepare_drive() local 156 if (reg != hwif->select_data) { in trm290_prepare_drive() 157 hwif->select_data = reg; in trm290_prepare_drive() 159 outb(0x51 | (hwif->channel << 3), hwif->config_data + 1); in trm290_prepare_drive() 160 outw(reg & 0xff, hwif->config_data); in trm290_prepare_drive() 165 reg = inw(hwif->config_data + 3); in trm290_prepare_drive() 167 reg &= ~(1 << hwif->channel); in trm290_prepare_drive() 168 outw(reg, hwif->config_data + 3); in trm290_prepare_drive() 178 outb(drive->select | ATA_DEVICE_OBS, drive->hwif->io_ports.device_addr); in trm290_dev_select() 194 ide_hwif_t *hwif = drive->hwif; in trm290_dma_setup() local [all …]
|
D | ide-dma.c | 93 ide_hwif_t *hwif = drive->hwif; in ide_dma_intr() local 94 struct ide_cmd *cmd = &hwif->cmd; in ide_dma_intr() 98 dma_stat = hwif->dma_ops->dma_end(drive); in ide_dma_intr() 100 stat = hwif->tp_ops->read_status(hwif); in ide_dma_intr() 135 ide_hwif_t *hwif = drive->hwif; in ide_dma_map_sg() local 136 struct scatterlist *sg = hwif->sg_table; in ide_dma_map_sg() 144 i = dma_map_sg(hwif->dev, sg, cmd->sg_nents, cmd->sg_dma_direction); in ide_dma_map_sg() 166 ide_hwif_t *hwif = drive->hwif; in ide_dma_unmap_sg() local 168 dma_unmap_sg(hwif->dev, hwif->sg_table, cmd->orig_sg_nents, in ide_dma_unmap_sg() 185 drive->hwif->dma_ops->dma_host_set(drive, 0); in ide_dma_off_quietly() [all …]
|
D | ide-eh.c | 10 ide_hwif_t *hwif = drive->hwif; in ide_ata_error() local 21 hwif->tp_ops->read_status(hwif) == ATA_CMD_INIT_DEV_PARAMS) in ide_ata_error() 36 (hwif->host_flags & IDE_HFLAG_ERROR_STOPS_FIFO) == 0) { in ide_ata_error() 47 if (hwif->tp_ops->read_status(hwif) & (ATA_BUSY | ATA_DRQ)) in ide_ata_error() 66 ide_hwif_t *hwif = drive->hwif; in ide_atapi_error() local 76 if (hwif->tp_ops->read_status(hwif) & (ATA_BUSY | ATA_DRQ)) in ide_atapi_error() 78 hwif->tp_ops->exec_command(hwif, ATA_CMD_IDLEIMMEDIATE); in ide_atapi_error() 121 rq = drive->hwif->rq; in ide_error() 148 struct request *rq = drive->hwif->rq; in ide_complete_drive_reset() 169 ide_hwif_t *hwif = drive->hwif; in atapi_reset_pollfunc() local [all …]
|
D | ns87415.c | 54 static u8 superio_read_status(ide_hwif_t *hwif) in superio_read_status() argument 56 return superio_ide_inb(hwif->io_ports.status_addr); in superio_read_status() 59 static u8 superio_dma_sff_read_status(ide_hwif_t *hwif) in superio_dma_sff_read_status() argument 61 return superio_ide_inb(hwif->dma_base + ATA_DMA_STATUS); in superio_dma_sff_read_status() 67 struct ide_io_ports *io_ports = &drive->hwif->io_ports; in superio_tf_read() 99 static void superio_init_iops(struct hwif_s *hwif) in superio_init_iops() argument 101 struct pci_dev *pdev = to_pci_dev(hwif->dev); in superio_init_iops() 103 u8 port = hwif->channel, tmp; in superio_init_iops() 124 ide_hwif_t *hwif = drive->hwif; in ns87415_prepare_drive() local 125 struct pci_dev *dev = to_pci_dev(hwif->dev); in ns87415_prepare_drive() [all …]
|
D | ide-iops.c | 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() [all …]
|
D | ide-io-std.c | 41 void ide_exec_command(ide_hwif_t *hwif, u8 cmd) in ide_exec_command() argument 43 if (hwif->host_flags & IDE_HFLAG_MMIO) in ide_exec_command() 44 writeb(cmd, (void __iomem *)hwif->io_ports.command_addr); in ide_exec_command() 46 outb(cmd, hwif->io_ports.command_addr); in ide_exec_command() 50 u8 ide_read_status(ide_hwif_t *hwif) in ide_read_status() argument 52 if (hwif->host_flags & IDE_HFLAG_MMIO) in ide_read_status() 53 return readb((void __iomem *)hwif->io_ports.status_addr); in ide_read_status() 55 return inb(hwif->io_ports.status_addr); in ide_read_status() 59 u8 ide_read_altstatus(ide_hwif_t *hwif) in ide_read_altstatus() argument 61 if (hwif->host_flags & IDE_HFLAG_MMIO) in ide_read_altstatus() [all …]
|
D | ide-xfer-mode.c | 70 if ((drive->hwif->host_flags & IDE_HFLAG_PIO_NO_BLACKLIST) == 0) in ide_get_best_pio_mode() 116 if (pio == 0 && (drive->hwif->port_flags & IDE_PFLAG_PROBING)) in ide_pio_need_iordy() 124 ide_hwif_t *hwif = drive->hwif; in ide_set_pio_mode() local 125 const struct ide_port_ops *port_ops = hwif->port_ops; in ide_set_pio_mode() 127 if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE) in ide_set_pio_mode() 139 port_ops->set_pio_mode(hwif, drive); in ide_set_pio_mode() 143 if (hwif->host_flags & IDE_HFLAG_POST_SET_MODE) { in ide_set_pio_mode() 147 port_ops->set_pio_mode(hwif, drive); in ide_set_pio_mode() 151 port_ops->set_pio_mode(hwif, drive); in ide_set_pio_mode() 158 ide_hwif_t *hwif = drive->hwif; in ide_set_dma_mode() local [all …]
|
D | tc86c001.c | 17 static void tc86c001_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tc86c001_set_mode() argument 19 unsigned long scr_port = hwif->config_data + (drive->dn ? 0x02 : 0x00); in tc86c001_set_mode() 45 static void tc86c001_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tc86c001_set_pio_mode() argument 48 tc86c001_set_mode(hwif, drive); in tc86c001_set_pio_mode() 67 ide_hwif_t *hwif = drive->hwif; in tc86c001_timer_expiry() local 68 ide_expiry_t *expiry = ide_get_hwifdata(hwif); in tc86c001_timer_expiry() 69 u8 dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); in tc86c001_timer_expiry() 72 hwif->expiry = expiry; in tc86c001_timer_expiry() 75 unsigned long sc_base = hwif->config_data; in tc86c001_timer_expiry() 77 u8 dma_cmd = inb(hwif->dma_base + ATA_DMA_CMD); in tc86c001_timer_expiry() [all …]
|
D | siimage.c | 76 static inline int is_sata(ide_hwif_t *hwif) in is_sata() argument 78 return pdev_is_sata(to_pci_dev(hwif->dev)); in is_sata() 92 static unsigned long siimage_selreg(ide_hwif_t *hwif, int r) in siimage_selreg() argument 94 unsigned long base = (unsigned long)hwif->hwif_data; in siimage_selreg() 97 if (hwif->host_flags & IDE_HFLAG_MMIO) in siimage_selreg() 98 base += hwif->channel << 6; in siimage_selreg() 100 base += hwif->channel << 4; in siimage_selreg() 116 ide_hwif_t *hwif = drive->hwif; in siimage_seldev() local 117 unsigned long base = (unsigned long)hwif->hwif_data; in siimage_seldev() 121 if (hwif->host_flags & IDE_HFLAG_MMIO) in siimage_seldev() [all …]
|
D | sgiioc4.c | 108 static int sgiioc4_checkirq(ide_hwif_t *hwif) in sgiioc4_checkirq() argument 110 unsigned long intr_addr = hwif->io_ports.irq_addr + IOC4_INTR_REG * 4; in sgiioc4_checkirq() 123 ide_hwif_t *hwif = drive->hwif; in sgiioc4_clearirq() local 124 struct ide_io_ports *io_ports = &hwif->io_ports; in sgiioc4_clearirq() 137 u8 stat = sgiioc4_read_status(hwif); in sgiioc4_clearirq() 140 stat = sgiioc4_read_status(hwif); in sgiioc4_clearirq() 143 stat = sgiioc4_read_status(hwif); in sgiioc4_clearirq() 147 struct pci_dev *dev = to_pci_dev(hwif->dev); in sgiioc4_clearirq() 179 ide_hwif_t *hwif = drive->hwif; in sgiioc4_dma_start() local 180 unsigned long ioc4_dma_addr = hwif->dma_base + IOC4_DMA_CTRL * 4; in sgiioc4_dma_start() [all …]
|
D | ide-acpi.c | 38 ide_hwif_t *hwif; member 95 bool ide_port_acpi(ide_hwif_t *hwif) in ide_port_acpi() argument 97 return ide_noacpi == 0 && hwif->acpidata; in ide_port_acpi() 179 static acpi_handle ide_acpi_hwif_get_handle(ide_hwif_t *hwif) in ide_acpi_hwif_get_handle() argument 181 struct device *dev = hwif->gendev.parent; in ide_acpi_hwif_get_handle() 187 DEBPRINT("ENTER: device %s\n", hwif->name); in ide_acpi_hwif_get_handle() 190 DEBPRINT("no PCI device for %s\n", hwif->name); in ide_acpi_hwif_get_handle() 203 chan_handle = acpi_get_child(dev_handle, hwif->channel); in ide_acpi_hwif_get_handle() 205 hwif->channel, chan_handle); in ide_acpi_hwif_get_handle() 396 void ide_acpi_get_timing(ide_hwif_t *hwif) in ide_acpi_get_timing() argument [all …]
|
D | it821x.c | 114 ide_hwif_t *hwif = drive->hwif; in it821x_program() local 115 struct pci_dev *dev = to_pci_dev(hwif->dev); in it821x_program() 116 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_program() 117 int channel = hwif->channel; in it821x_program() 140 ide_hwif_t *hwif = drive->hwif; in it821x_program_udma() local 141 struct pci_dev *dev = to_pci_dev(hwif->dev); in it821x_program_udma() 142 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_program_udma() 143 int channel = hwif->channel; in it821x_program_udma() 170 ide_hwif_t *hwif = drive->hwif; in it821x_clock_strategy() local 171 struct pci_dev *dev = to_pci_dev(hwif->dev); in it821x_clock_strategy() [all …]
|
D | tx4939ide.c | 105 #define TX4939IDE_BASE(hwif) ((void __iomem *)(hwif)->extra_base) argument 107 static void tx4939ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tx4939ide_set_pio_mode() argument 124 hwif->select_data = (hwif->select_data & ~mask) | val; in tx4939ide_set_pio_mode() 128 static void tx4939ide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tx4939ide_set_dma_mode() argument 145 hwif->select_data = (hwif->select_data & ~mask) | val; in tx4939ide_set_dma_mode() 149 static u16 tx4939ide_check_error_ints(ide_hwif_t *hwif) in tx4939ide_check_error_ints() argument 151 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_check_error_ints() 167 hwif->name, ctl, in tx4939ide_check_error_ints() 176 ide_hwif_t *hwif; in tx4939ide_clear_irq() local 186 hwif = drive->hwif; in tx4939ide_clear_irq() [all …]
|
D | cmd64x.c | 56 ide_hwif_t *hwif = drive->hwif; in cmd64x_program_timings() local 57 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); in cmd64x_program_timings() 97 if (hwif->channel) { in cmd64x_program_timings() 121 if (hwif->channel) in cmd64x_program_timings() 133 static void cmd64x_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cmd64x_set_pio_mode() argument 147 static void cmd64x_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cmd64x_set_dma_mode() argument 149 struct pci_dev *dev = to_pci_dev(hwif->dev); in cmd64x_set_dma_mode() 151 u8 regU = 0, pciU = hwif->channel ? UDIDETCR1 : UDIDETCR0; in cmd64x_set_dma_mode() 188 ide_hwif_t *hwif = drive->hwif; in cmd648_clear_irq() local 189 struct pci_dev *dev = to_pci_dev(hwif->dev); in cmd648_clear_irq() [all …]
|
D | pdc202xx_old.c | 24 static void pdc202xx_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in pdc202xx_set_mode() argument 26 struct pci_dev *dev = to_pci_dev(hwif->dev); in pdc202xx_set_mode() 79 static void pdc202xx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in pdc202xx_set_pio_mode() argument 82 pdc202xx_set_mode(hwif, drive); in pdc202xx_set_pio_mode() 85 static int pdc202xx_test_irq(ide_hwif_t *hwif) in pdc202xx_test_irq() argument 87 struct pci_dev *dev = to_pci_dev(hwif->dev); in pdc202xx_test_irq() 91 if (hwif->channel) { in pdc202xx_test_irq() 106 static u8 pdc2026x_cable_detect(ide_hwif_t *hwif) in pdc2026x_cable_detect() argument 108 struct pci_dev *dev = to_pci_dev(hwif->dev); in pdc2026x_cable_detect() 109 u16 CIS, mask = hwif->channel ? (1 << 11) : (1 << 10); in pdc2026x_cable_detect() [all …]
|
D | hpt366.c | 559 ide_hwif_t *hwif = drive->hwif; in hpt3xx_udma_filter() local 560 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_udma_filter() 561 u8 mask = hwif->ultra_mask; in hpt3xx_udma_filter() 598 ide_hwif_t *hwif = drive->hwif; in hpt3xx_mdma_filter() local 599 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_mdma_filter() 631 static void hpt3xx_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in hpt3xx_set_mode() argument 633 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt3xx_set_mode() 634 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_set_mode() 655 static void hpt3xx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in hpt3xx_set_pio_mode() argument 658 hpt3xx_set_mode(hwif, drive); in hpt3xx_set_pio_mode() [all …]
|
D | alim15x3.c | 51 static void ali_fifo_control(ide_hwif_t *hwif, ide_drive_t *drive, int on) in ali_fifo_control() argument 53 struct pci_dev *pdev = to_pci_dev(hwif->dev); in ali_fifo_control() 54 int pio_fifo = 0x54 + hwif->channel; in ali_fifo_control() 64 static void ali_program_timings(ide_hwif_t *hwif, ide_drive_t *drive, in ali_program_timings() argument 67 struct pci_dev *dev = to_pci_dev(hwif->dev); in ali_program_timings() 68 int port = hwif->channel ? 0x5c : 0x58; in ali_program_timings() 69 int udmat = 0x56 + hwif->channel; in ali_program_timings() 102 static void ali_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in ali_set_pio_mode() argument 126 ali_fifo_control(hwif, drive, (drive->media == ide_disk) ? 0x05 : 0x00); in ali_set_pio_mode() 128 ali_program_timings(hwif, drive, &t, 0); in ali_set_pio_mode() [all …]
|
D | ide-devsets.c | 51 if (drive->hwif->dma_ops == NULL) in set_using_dma() 75 static int set_pio_mode_abuse(ide_hwif_t *hwif, u8 req_pio) in set_pio_mode_abuse() argument 84 return (hwif->host_flags & IDE_HFLAG_ABUSE_DMA_MODES) ? 1 : 0; in set_pio_mode_abuse() 87 return (hwif->host_flags & IDE_HFLAG_ABUSE_PREFETCH) ? 1 : 0; in set_pio_mode_abuse() 90 return (hwif->host_flags & IDE_HFLAG_ABUSE_FAST_DEVSEL) ? 1 : 0; in set_pio_mode_abuse() 98 ide_hwif_t *hwif = drive->hwif; in set_pio_mode() local 99 const struct ide_port_ops *port_ops = hwif->port_ops; in set_pio_mode() 105 (hwif->host_flags & IDE_HFLAG_NO_SET_MODE)) in set_pio_mode() 108 if (set_pio_mode_abuse(drive->hwif, arg)) { in set_pio_mode() 115 spin_lock_irqsave(&hwif->lock, flags); in set_pio_mode() [all …]
|
D | piix.c | 68 static void piix_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in piix_set_pio_mode() argument 70 struct pci_dev *dev = to_pci_dev(hwif->dev); in piix_set_pio_mode() 72 int master_port = hwif->channel ? 0x42 : 0x40; in piix_set_pio_mode() 111 slave_data &= hwif->channel ? 0x0f : 0xf0; in piix_set_pio_mode() 113 (hwif->channel ? 4 : 0); in piix_set_pio_mode() 137 static void piix_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in piix_set_dma_mode() argument 139 struct pci_dev *dev = to_pci_dev(hwif->dev); in piix_set_dma_mode() 140 u8 maslave = hwif->channel ? 0x42 : 0x40; in piix_set_dma_mode() 195 piix_set_pio_mode(hwif, drive); in piix_set_dma_mode() 227 ide_hwif_t *hwif = drive->hwif; in ich_clear_irq() local [all …]
|
D | ide-pm.c | 9 ide_hwif_t *hwif = drive->hwif; in generic_ide_suspend() local 14 if (ide_port_acpi(hwif)) { in generic_ide_suspend() 17 ide_acpi_get_timing(hwif); in generic_ide_suspend() 32 if (ret == 0 && ide_port_acpi(hwif)) { in generic_ide_suspend() 35 ide_acpi_set_state(hwif, 0); in generic_ide_suspend() 75 ide_hwif_t *hwif = drive->hwif; in generic_ide_resume() local 80 if (ide_port_acpi(hwif)) { in generic_ide_resume() 83 ide_acpi_set_state(hwif, 1); in generic_ide_resume() 84 ide_acpi_push_timing(hwif); in generic_ide_resume() 183 if (drive->hwif->dma_ops == NULL) in ide_start_power_step() [all …]
|
D | sl82c105.c | 66 static void sl82c105_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in sl82c105_set_pio_mode() argument 68 struct pci_dev *dev = to_pci_dev(hwif->dev); in sl82c105_set_pio_mode() 95 static void sl82c105_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in sl82c105_set_dma_mode() argument 113 static int sl82c105_test_irq(ide_hwif_t *hwif) in sl82c105_test_irq() argument 115 struct pci_dev *dev = to_pci_dev(hwif->dev); in sl82c105_test_irq() 116 u32 val, mask = hwif->channel ? CTRL_IDE_IRQB : CTRL_IDE_IRQA; in sl82c105_test_irq() 149 ide_hwif_t *hwif = drive->hwif; in sl82c105_dma_lost_irq() local 150 struct pci_dev *dev = to_pci_dev(hwif->dev); in sl82c105_dma_lost_irq() 151 u32 val, mask = hwif->channel ? CTRL_IDE_IRQB : CTRL_IDE_IRQA; in sl82c105_dma_lost_irq() 168 dma_cmd = inb(hwif->dma_base + ATA_DMA_CMD); in sl82c105_dma_lost_irq() [all …]
|
D | setup-pci.c | 80 unsigned long ide_pci_dma_base(ide_hwif_t *hwif, const struct ide_port_info *d) in ide_pci_dma_base() argument 82 struct pci_dev *dev = to_pci_dev(hwif->dev); in ide_pci_dma_base() 85 if (hwif->host_flags & IDE_HFLAG_MMIO) in ide_pci_dma_base() 86 return hwif->dma_base; in ide_pci_dma_base() 88 if (hwif->mate && hwif->mate->dma_base) { in ide_pci_dma_base() 89 dma_base = hwif->mate->dma_base - (hwif->channel ? 0 : 8); in ide_pci_dma_base() 102 if (hwif->channel) in ide_pci_dma_base() 109 int ide_pci_check_simplex(ide_hwif_t *hwif, const struct ide_port_info *d) in ide_pci_check_simplex() argument 111 struct pci_dev *dev = to_pci_dev(hwif->dev); in ide_pci_check_simplex() 118 if (ide_pci_clear_simplex(hwif->dma_base, d->name)) in ide_pci_check_simplex() [all …]
|
D | pmac.c | 67 ide_hwif_t *hwif; member 409 ((void __iomem *)((drive)->hwif->io_ports.data_addr + (x))) 418 ide_hwif_t *hwif = drive->hwif; in pmac_ide_apply_timings() local 419 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_apply_timings() 435 ide_hwif_t *hwif = drive->hwif; in pmac_ide_kauai_apply_timings() local 436 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_kauai_apply_timings() 454 ide_hwif_t *hwif = drive->hwif; in pmac_ide_do_update_timings() local 455 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_do_update_timings() 470 (void __iomem *)drive->hwif->io_ports.device_addr); in pmac_dev_select() 478 (void __iomem *)drive->hwif->io_ports.device_addr); in pmac_kauai_dev_select() [all …]
|
D | pdc202xx_new.c | 72 static u8 get_indexed_reg(ide_hwif_t *hwif, u8 index) in get_indexed_reg() argument 76 outb(index, hwif->dma_base + 1); in get_indexed_reg() 77 value = inb(hwif->dma_base + 3); in get_indexed_reg() 88 static void set_indexed_reg(ide_hwif_t *hwif, u8 index, u8 value) in set_indexed_reg() argument 90 outb(index, hwif->dma_base + 1); in set_indexed_reg() 91 outb(value, hwif->dma_base + 3); in set_indexed_reg() 133 static void pdcnew_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in pdcnew_set_dma_mode() argument 135 struct pci_dev *dev = to_pci_dev(hwif->dev); in pdcnew_set_dma_mode() 151 set_indexed_reg(hwif, 0x10 + adj, in pdcnew_set_dma_mode() 153 set_indexed_reg(hwif, 0x11 + adj, in pdcnew_set_dma_mode() [all …]
|
D | sc1200.c | 83 ide_hwif_t *hwif = drive->hwif; in sc1200_tunepio() local 84 struct pci_dev *pdev = to_pci_dev(hwif->dev); in sc1200_tunepio() 85 unsigned int basereg = hwif->channel ? 0x50 : 0x40, format = 0; in sc1200_tunepio() 106 ide_hwif_t *hwif = drive->hwif; in sc1200_udma_filter() local 109 u8 mask = hwif->ultra_mask; in sc1200_udma_filter() 126 static void sc1200_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in sc1200_set_dma_mode() argument 128 struct pci_dev *dev = to_pci_dev(hwif->dev); in sc1200_set_dma_mode() 131 unsigned int basereg = hwif->channel ? 0x50 : 0x40; in sc1200_set_dma_mode() 173 ide_hwif_t *hwif = drive->hwif; in sc1200_dma_end() local 174 unsigned long dma_base = hwif->dma_base; in sc1200_dma_end() [all …]
|
D | cs5530.c | 40 #define CS5530_BASEREG(hwif) (((hwif)->dma_base & ~0xf) + ((hwif)->channel ? 0x30 : 0x20)) argument 53 static void cs5530_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cs5530_set_pio_mode() argument 55 unsigned long basereg = CS5530_BASEREG(hwif); in cs5530_set_pio_mode() 83 ide_hwif_t *hwif = drive->hwif; in cs5530_udma_filter() local 86 u8 mask = hwif->ultra_mask; in cs5530_udma_filter() 103 static void cs5530_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cs5530_set_dma_mode() argument 116 basereg = CS5530_BASEREG(hwif); in cs5530_set_dma_mode() 229 static void init_hwif_cs5530 (ide_hwif_t *hwif) in init_hwif_cs5530() argument 234 basereg = CS5530_BASEREG(hwif); in init_hwif_cs5530()
|
D | serverworks.c | 67 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); in svwks_udma_filter() 109 static void svwks_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in svwks_set_pio_mode() argument 114 struct pci_dev *dev = to_pci_dev(hwif->dev); in svwks_set_pio_mode() 131 static void svwks_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in svwks_set_dma_mode() argument 137 struct pci_dev *dev = to_pci_dev(hwif->dev); in svwks_set_dma_mode() 143 pci_read_config_byte(dev, (0x56|hwif->channel), &ultra_timing); in svwks_set_dma_mode() 157 pci_write_config_byte(dev, (0x56|hwif->channel), ultra_timing); in svwks_set_dma_mode() 261 static u8 ata66_svwks_svwks(ide_hwif_t *hwif) in ata66_svwks_svwks() argument 273 static u8 ata66_svwks_dell(ide_hwif_t *hwif) in ata66_svwks_dell() argument 275 struct pci_dev *dev = to_pci_dev(hwif->dev); in ata66_svwks_dell() [all …]
|
D | qd65xx.c | 100 outb(drive->select | ATA_DEVICE_OBS, drive->hwif->io_ports.device_addr); in qd65xx_dev_select() 111 static u8 qd6500_compute_timing (ide_hwif_t *hwif, int active_time, int recovery_time) in qd6500_compute_timing() argument 191 static void qd6500_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in qd6500_set_pio_mode() argument 207 qd_set_timing(drive, qd6500_compute_timing(drive->hwif, in qd6500_set_pio_mode() 211 static void qd6580_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in qd6580_set_pio_mode() argument 218 u8 base = (hwif->config_data & 0xff00) >> 8; in qd6580_set_pio_mode() 251 if (!hwif->channel && drive->media != ide_disk) { in qd6580_set_pio_mode() 255 drive->name, hwif->name); in qd6580_set_pio_mode() 291 ide_hwif_t *hwif = drive->hwif; in qd6500_init_dev() local 292 u8 base = (hwif->config_data & 0xff00) >> 8; in qd6500_init_dev() [all …]
|
D | slc90e66.c | 21 static void slc90e66_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in slc90e66_set_pio_mode() argument 23 struct pci_dev *dev = to_pci_dev(hwif->dev); in slc90e66_set_pio_mode() 25 int master_port = hwif->channel ? 0x42 : 0x40; in slc90e66_set_pio_mode() 58 slave_data &= hwif->channel ? 0x0f : 0xf0; in slc90e66_set_pio_mode() 60 (hwif->channel ? 4 : 0); in slc90e66_set_pio_mode() 75 static void slc90e66_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in slc90e66_set_dma_mode() argument 77 struct pci_dev *dev = to_pci_dev(hwif->dev); in slc90e66_set_dma_mode() 78 u8 maslave = hwif->channel ? 0x42 : 0x40; in slc90e66_set_dma_mode() 114 slc90e66_set_pio_mode(hwif, drive); in slc90e66_set_dma_mode() 118 static u8 slc90e66_cable_detect(ide_hwif_t *hwif) in slc90e66_cable_detect() argument [all …]
|
D | ide-taskfile.c | 29 ide_hwif_t *hwif = drive->hwif; in ide_tf_readback() local 30 const struct ide_tp_ops *tp_ops = hwif->tp_ops; in ide_tf_readback() 33 tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS); in ide_tf_readback() 38 tp_ops->write_devctl(hwif, ATA_HOB | ATA_DEVCTL_OBS); in ide_tf_readback() 80 ide_hwif_t *hwif = drive->hwif; in do_rw_taskfile() local 81 struct ide_cmd *cmd = &hwif->cmd; in do_rw_taskfile() 84 const struct ide_tp_ops *tp_ops = hwif->tp_ops; in do_rw_taskfile() 85 const struct ide_dma_ops *dma_ops = hwif->dma_ops; in do_rw_taskfile() 101 tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS); in do_rw_taskfile() 125 tp_ops->exec_command(hwif, tf->command); in do_rw_taskfile() [all …]
|
D | icside.c | 169 ide_hwif_t *hwif = drive->hwif; in icside_maskproc() local 170 struct expansion_card *ec = ECARD_DEV(hwif->dev); in icside_maskproc() 176 state->channel = hwif->channel; in icside_maskproc() 179 switch (hwif->channel) { in icside_maskproc() 237 static void icside_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in icside_set_dma_mode() argument 290 ide_hwif_t *hwif = drive->hwif; in icside_dma_end() local 291 struct expansion_card *ec = ECARD_DEV(hwif->dev); in icside_dma_end() 300 ide_hwif_t *hwif = drive->hwif; in icside_dma_start() local 301 struct expansion_card *ec = ECARD_DEV(hwif->dev); in icside_dma_start() 310 ide_hwif_t *hwif = drive->hwif; in icside_dma_setup() local [all …]
|
D | ide-park.c | 11 ide_hwif_t *hwif = drive->hwif; in issue_park_cmd() local 17 spin_lock_irq(&hwif->lock); in issue_park_cmd() 24 if (reset_timer && del_timer(&hwif->timer)) in issue_park_cmd() 26 spin_unlock_irq(&hwif->lock); in issue_park_cmd() 32 spin_unlock_irq(&hwif->lock); in issue_park_cmd() 92 ide_hwif_t *hwif = drive->hwif; in ide_park_show() local 99 spin_lock_irq(&hwif->lock); in ide_park_show() 106 spin_unlock_irq(&hwif->lock); in ide_park_show()
|
D | ide-atapi.c | 235 drive->hwif->rq = NULL; in ide_queue_sense_rq() 249 struct request *failed_rq = drive->hwif->rq; in ide_retry_pc() 267 drive->hwif->rq = NULL; in ide_retry_pc() 278 struct request *rq = drive->hwif->rq; in ide_cd_expiry() 327 drive->hwif->tp_ops->tf_read(drive, &tf, IDE_VALID_NSECT | in ide_read_bcount_and_ireason() 346 ide_hwif_t *hwif = drive->hwif; in ide_check_ireason() local 364 (void)hwif->tp_ops->read_status(hwif); in ide_check_ireason() 392 ide_hwif_t *hwif = drive->hwif; in ide_pc_intr() local 393 struct ide_cmd *cmd = &hwif->cmd; in ide_pc_intr() 394 struct request *rq = hwif->rq; in ide_pc_intr() [all …]
|
D | cy82c693.c | 56 static void cy82c693_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cy82c693_set_dma_mode() argument 61 index = hwif->channel ? CY82_INDEX_CHANNEL1 : CY82_INDEX_CHANNEL0; in cy82c693_set_dma_mode() 83 static void cy82c693_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cy82c693_set_pio_mode() argument 85 struct pci_dev *dev = to_pci_dev(hwif->dev); in cy82c693_set_pio_mode() 148 static void init_iops_cy82c693(ide_hwif_t *hwif) in init_iops_cy82c693() argument 151 struct pci_dev *dev = to_pci_dev(hwif->dev); in init_iops_cy82c693() 154 primary = hwif; in init_iops_cy82c693() 156 hwif->mate = primary; in init_iops_cy82c693() 157 hwif->channel = 1; in init_iops_cy82c693()
|
D | aec62xx.c | 84 static void aec6210_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in aec6210_set_mode() argument 86 struct pci_dev *dev = to_pci_dev(hwif->dev); in aec6210_set_mode() 112 static void aec6260_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in aec6260_set_mode() argument 114 struct pci_dev *dev = to_pci_dev(hwif->dev); in aec6260_set_mode() 129 pci_read_config_byte(dev, (0x44|hwif->channel), &ultra); in aec6260_set_mode() 133 pci_write_config_byte(dev, (0x44|hwif->channel), tmp2); in aec6260_set_mode() 137 static void aec_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in aec_set_pio_mode() argument 140 hwif->port_ops->set_dma_mode(hwif, drive); in aec_set_pio_mode() 163 static u8 atp86x_cable_detect(ide_hwif_t *hwif) in atp86x_cable_detect() argument 165 struct pci_dev *dev = to_pci_dev(hwif->dev); in atp86x_cable_detect() [all …]
|
D | ide-proc.c | 36 ide_hwif_t *hwif = (ide_hwif_t *) m->private; in ide_imodel_proc_show() local 39 switch (hwif->chipset) { in ide_imodel_proc_show() 74 ide_hwif_t *hwif = (ide_hwif_t *) m->private; in ide_mate_proc_show() local 76 if (hwif && hwif->mate) in ide_mate_proc_show() 77 seq_printf(m, "%s\n", hwif->mate->name); in ide_mate_proc_show() 98 ide_hwif_t *hwif = (ide_hwif_t *) m->private; in ide_channel_proc_show() local 100 seq_printf(m, "%c\n", hwif->channel ? '1' : '0'); in ide_channel_proc_show() 683 void ide_proc_port_register_devices(ide_hwif_t *hwif) in ide_proc_port_register_devices() argument 686 struct proc_dir_entry *parent = hwif->proc; in ide_proc_port_register_devices() 691 ide_port_for_each_dev(i, drive, hwif) { in ide_proc_port_register_devices() [all …]
|
D | ide-sysfs.c | 96 ide_hwif_t *hwif = dev_get_drvdata(portdev); in store_delete_devices() local 101 ide_port_unregister_devices(hwif); in store_delete_devices() 112 ide_hwif_t *hwif = dev_get_drvdata(portdev); in store_scan() local 117 ide_port_unregister_devices(hwif); in store_scan() 118 ide_port_scan(hwif); in store_scan() 131 int ide_sysfs_register_port(ide_hwif_t *hwif) in ide_sysfs_register_port() argument 136 rc = device_create_file(hwif->portdev, ide_port_attrs[i]); in ide_sysfs_register_port()
|
D | ht6560b.c | 116 ide_hwif_t *hwif = drive->hwif; in ht6560b_dev_select() local 146 outb(timing, hwif->io_ports.device_addr); in ht6560b_dev_select() 147 (void)inb(hwif->io_ports.status_addr); in ht6560b_dev_select() 155 outb(drive->select | ATA_DEVICE_OBS, hwif->io_ports.device_addr); in ht6560b_dev_select() 281 static void ht6560b_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in ht6560b_set_pio_mode() argument 310 ide_hwif_t *hwif = drive->hwif; in ht6560b_init_dev() local 314 if (hwif->channel) in ht6560b_init_dev()
|
D | sis5513.c | 189 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); in sis_ata133_get_base() 199 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); in sis_ata16_program_timings() 222 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); in sis_ata100_program_timings() 245 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); in sis_ata133_program_timings() 277 ide_hwif_t *hwif = drive->hwif; in config_drive_art_rwp() local 278 struct pci_dev *dev = to_pci_dev(hwif->dev); in config_drive_art_rwp() 293 static void sis_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in sis_set_pio_mode() argument 301 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); in sis_ata133_program_udma_timings() 320 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); in sis_ata33_program_udma_timings() 343 static void sis_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in sis_set_dma_mode() argument [all …]
|
D | triflex.c | 37 static void triflex_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in triflex_set_mode() argument 39 struct pci_dev *dev = to_pci_dev(hwif->dev); in triflex_set_mode() 42 u8 channel_offset = hwif->channel ? 0x74 : 0x70, unit = drive->dn & 1; in triflex_set_mode() 84 static void triflex_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in triflex_set_pio_mode() argument 87 triflex_set_mode(hwif, drive); in triflex_set_pio_mode()
|
D | atiixp.c | 51 static void atiixp_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in atiixp_set_pio_mode() argument 53 struct pci_dev *dev = to_pci_dev(hwif->dev); in atiixp_set_pio_mode() 85 static void atiixp_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in atiixp_set_dma_mode() argument 87 struct pci_dev *dev = to_pci_dev(hwif->dev); in atiixp_set_dma_mode() 123 static u8 atiixp_cable_detect(ide_hwif_t *hwif) in atiixp_cable_detect() argument 125 struct pci_dev *pdev = to_pci_dev(hwif->dev); in atiixp_cable_detect() 126 u8 udma_mode = 0, ch = hwif->channel; in atiixp_cable_detect()
|
D | jmicron.c | 29 static u8 jmicron_cable_detect(ide_hwif_t *hwif) in jmicron_cable_detect() argument 31 struct pci_dev *pdev = to_pci_dev(hwif->dev); in jmicron_cable_detect() 36 int port = hwif->channel; in jmicron_cable_detect() 83 static void jmicron_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in jmicron_set_pio_mode() argument 95 static void jmicron_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in jmicron_set_dma_mode() argument
|
D | gayle.c | 61 static int gayle_test_irq(ide_hwif_t *hwif) in gayle_test_irq() argument 65 ch = z_readb(hwif->io_ports.irq_addr); in gayle_test_irq() 73 ide_hwif_t *hwif = drive->hwif; in gayle_a1200_clear_irq() local 75 (void)z_readb(hwif->io_ports.status_addr); in gayle_a1200_clear_irq() 76 z_writeb(0x7c, hwif->io_ports.irq_addr); in gayle_a1200_clear_irq()
|
D | it8213.c | 26 static void it8213_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in it8213_set_pio_mode() argument 28 struct pci_dev *dev = to_pci_dev(hwif->dev); in it8213_set_pio_mode() 83 static void it8213_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in it8213_set_dma_mode() argument 85 struct pci_dev *dev = to_pci_dev(hwif->dev); in it8213_set_dma_mode() 139 it8213_set_pio_mode(hwif, drive); in it8213_set_dma_mode() 143 static u8 it8213_cable_detect(ide_hwif_t *hwif) in it8213_cable_detect() argument 145 struct pci_dev *dev = to_pci_dev(hwif->dev); in it8213_cable_detect()
|
D | palm_bk3710.c | 191 static void palm_bk3710_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in palm_bk3710_set_dma_mode() argument 194 void __iomem *base = (void __iomem *)hwif->dma_base; in palm_bk3710_set_dma_mode() 207 static void palm_bk3710_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in palm_bk3710_set_pio_mode() argument 212 void __iomem *base = (void __iomem *)hwif->dma_base; in palm_bk3710_set_pio_mode() 280 static u8 palm_bk3710_cable_detect(ide_hwif_t *hwif) in palm_bk3710_cable_detect() argument 285 static int palm_bk3710_init_dma(ide_hwif_t *hwif, const struct ide_port_info *d) in palm_bk3710_init_dma() argument 287 printk(KERN_INFO " %s: MMIO-DMA\n", hwif->name); in palm_bk3710_init_dma() 289 if (ide_allocate_dma_engine(hwif)) in palm_bk3710_init_dma() 292 hwif->dma_base = hwif->io_ports.data_addr - IDE_PALM_ATA_PRI_REG_OFFSET; in palm_bk3710_init_dma()
|
D | it8172.c | 40 static void it8172_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in it8172_set_pio_mode() argument 42 struct pci_dev *dev = to_pci_dev(hwif->dev); in it8172_set_pio_mode() 80 static void it8172_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in it8172_set_dma_mode() argument 82 struct pci_dev *dev = to_pci_dev(hwif->dev); in it8172_set_dma_mode() 108 it8172_set_pio_mode(hwif, drive); in it8172_set_dma_mode()
|
D | via82cxxx.c | 125 static void via_set_speed(ide_hwif_t *hwif, u8 dn, struct ide_timing *timing) in via_set_speed() argument 127 struct pci_dev *dev = to_pci_dev(hwif->dev); in via_set_speed() 179 static void via_set_drive(ide_hwif_t *hwif, ide_drive_t *drive) in via_set_drive() argument 182 struct pci_dev *dev = to_pci_dev(hwif->dev); in via_set_drive() 206 via_set_speed(hwif, drive->dn, &t); in via_set_drive() 217 static void via_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in via_set_pio_mode() argument 220 via_set_drive(hwif, drive); in via_set_pio_mode() 382 static u8 via82cxxx_cable_detect(ide_hwif_t *hwif) in via82cxxx_cable_detect() argument 384 struct pci_dev *pdev = to_pci_dev(hwif->dev); in via82cxxx_cable_detect() 391 if ((vdev->via_config->flags & VIA_SATA_PATA) && hwif->channel == 0) in via82cxxx_cable_detect() [all …]
|
D | ide-cs.c | 119 ide_hwif_t *hwif; in idecs_register() local 145 hwif = host->ports[0]; in idecs_register() 147 if (hwif->present) in idecs_register() 153 ide_port_scan(hwif); in idecs_register() 154 if (hwif->present) in idecs_register() 258 ide_hwif_t *hwif = host->ports[0]; in ide_release() local 261 data_addr = hwif->io_ports.data_addr; in ide_release() 262 ctl_addr = hwif->io_ports.ctl_addr; in ide_release()
|
D | cs5536.c | 94 struct pci_dev *pdev = to_pci_dev(drive->hwif->dev); in cs5536_program_dtc() 113 static u8 cs5536_cable_detect(ide_hwif_t *hwif) in cs5536_cable_detect() argument 115 struct pci_dev *pdev = to_pci_dev(hwif->dev); in cs5536_cable_detect() 132 static void cs5536_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cs5536_set_pio_mode() argument 146 struct pci_dev *pdev = to_pci_dev(hwif->dev); in cs5536_set_pio_mode() 180 static void cs5536_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cs5536_set_dma_mode() argument 190 struct pci_dev *pdev = to_pci_dev(hwif->dev); in cs5536_set_dma_mode()
|
D | au1xxx-ide.c | 96 auide_insw(drive->hwif->io_ports.data_addr, buf, (len + 1) / 2); in au1xxx_input_data() 102 auide_outsw(drive->hwif->io_ports.data_addr, buf, (len + 1) / 2); in au1xxx_output_data() 106 static void au1xxx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in au1xxx_set_pio_mode() argument 167 static void auide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in auide_set_dma_mode() argument 217 ide_hwif_t *hwif = drive->hwif; in auide_build_dmatable() local 227 sg = hwif->sg_table; in auide_build_dmatable() 346 static int auide_ddma_init(ide_hwif_t *hwif, const struct ide_port_info *d) in auide_ddma_init() argument 352 dev_id = hwif->ddma_id; in auide_ddma_init() 395 (void)ide_allocate_dma_engine(hwif); in auide_ddma_init() 403 static int auide_ddma_init(ide_hwif_t *hwif, const struct ide_port_info *d) in auide_ddma_init() argument [all …]
|
D | cs5520.c | 60 static void cs5520_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cs5520_set_pio_mode() argument 62 struct pci_dev *pdev = to_pci_dev(hwif->dev); in cs5520_set_pio_mode() 84 static void cs5520_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cs5520_set_dma_mode() argument 89 cs5520_set_pio_mode(hwif, drive); in cs5520_set_dma_mode()
|
D | ide.c | 79 host_dev = drive->hwif->host->dev[0]; in ide_device_get() 101 struct device *host_dev = drive->hwif->host->dev[0]; in ide_device_put() 282 int i = drive->hwif->index * MAX_DRIVES + unit; in ide_dev_apply_params() 354 void ide_port_apply_params(ide_hwif_t *hwif) in ide_port_apply_params() argument 359 if (ide_ignore_cable & (1 << hwif->index)) { in ide_port_apply_params() 361 hwif->name); in ide_port_apply_params() 362 hwif->cbl = ATA_CBL_PATA40_SHORT; in ide_port_apply_params() 365 ide_port_for_each_dev(i, drive, hwif) in ide_port_apply_params()
|
D | amd74xx.c | 82 static void amd_set_drive(ide_hwif_t *hwif, ide_drive_t *drive) in amd_set_drive() argument 84 struct pci_dev *dev = to_pci_dev(hwif->dev); in amd_set_drive() 88 u8 udma_mask = hwif->ultra_mask; in amd_set_drive() 111 static void amd_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in amd_set_pio_mode() argument 114 amd_set_drive(hwif, drive); in amd_set_pio_mode() 180 static u8 amd_cable_detect(ide_hwif_t *hwif) in amd_cable_detect() argument 182 if ((amd_80w >> hwif->channel) & 1) in amd_cable_detect()
|
D | ide-disk.c | 84 ide_hwif_t *hwif = drive->hwif; in __ide_do_rw_disk() local 92 if ((hwif->host_flags & IDE_HFLAG_NO_LBA48_DMA) && lba48 && dma) { in __ide_do_rw_disk() 184 ide_hwif_t *hwif = drive->hwif; in ide_do_rw_disk() local 195 if (hwif->rw_disk) in ide_do_rw_disk() 196 hwif->rw_disk(drive, rq); in ide_do_rw_disk() 396 if ((drive->hwif->host_flags & IDE_HFLAG_NO_LBA48_DMA) && in ide_disk_get_capacity() 625 if (arg && ((drive->hwif->host_flags & IDE_HFLAG_NO_LBA48) || in set_addressing() 656 ide_hwif_t *hwif = drive->hwif; in ide_disk_setup() local 679 if (max_s > hwif->rqsize) in ide_disk_setup() 680 max_s = hwif->rqsize; in ide_disk_setup()
|
D | cs5535.c | 138 static void cs5535_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cs5535_set_dma_mode() argument 151 static void cs5535_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cs5535_set_pio_mode() argument 156 static u8 cs5535_cable_detect(ide_hwif_t *hwif) in cs5535_cable_detect() argument 158 struct pci_dev *dev = to_pci_dev(hwif->dev); in cs5535_cable_detect()
|
D | opti621.c | 65 static void opti621_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in opti621_set_pio_mode() argument 93 reg_base = hwif->io_ports.data_addr; in opti621_set_pio_mode() 107 printk(KERN_INFO "%s: CLK = %d MHz\n", hwif->name, clk ? 25 : 33); in opti621_set_pio_mode()
|
D | qd65xx.h | 32 #define QD_CONFIG(hwif) ((hwif)->config_data & 0x00ff) argument
|
D | tx4938ide.c | 59 static void tx4938ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tx4938ide_set_pio_mode() argument 61 struct tx4938ide_platform_info *pdata = dev_get_platdata(hwif->dev); in tx4938ide_set_pio_mode() 77 unsigned long port = drive->hwif->io_ports.data_addr; in tx4938ide_input_data_swap() 89 unsigned long port = drive->hwif->io_ports.data_addr; in tx4938ide_output_data_swap()
|
D | ide-floppy_ioctl.c | 218 ide_hwif_t *hwif = drive->hwif; in ide_floppy_get_format_progress() local 223 stat = hwif->tp_ops->read_status(hwif); in ide_floppy_get_format_progress()
|
D | buddha.c | 103 static int buddha_test_irq(ide_hwif_t *hwif) in buddha_test_irq() argument 107 ch = z_readb(hwif->io_ports.irq_addr); in buddha_test_irq() 118 z_writeb(0, drive->hwif->io_ports.irq_addr); in xsurf_clear_irq()
|
D | ide-lib.c | 25 struct device *dev = drive->hwif->dev; in ide_toggle_bounce() 94 struct request *rq = drive->hwif->rq; in ide_dump_ata_error() 167 drive->name, drive->hwif->cmd.tf.command); in ide_dump_status()
|
D | umc8672.c | 107 static void umc_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in umc_set_pio_mode() argument 109 ide_hwif_t *mate = hwif->mate; in umc_set_pio_mode()
|
D | falconide.c | 69 unsigned long data_addr = drive->hwif->io_ports.data_addr; in falconide_input_data() 82 unsigned long data_addr = drive->hwif->io_ports.data_addr; in falconide_output_data()
|
D | cmd640.c | 576 static void cmd640_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cmd640_set_pio_mode() argument 612 unsigned int i = drive->hwif->channel * 2 + (drive->dn & 1); in cmd640_init_dev() 635 static int cmd640_test_irq(ide_hwif_t *hwif) in cmd640_test_irq() argument 637 int irq_reg = hwif->channel ? ARTTIM23 : CFR; in cmd640_test_irq() 638 u8 irq_mask = hwif->channel ? ARTTIM23_IDE23INTR : in cmd640_test_irq()
|
D | q40ide.c | 76 unsigned long data_addr = drive->hwif->io_ports.data_addr; in q40ide_input_data() 89 unsigned long data_addr = drive->hwif->io_ports.data_addr; in q40ide_output_data()
|
D | ide-cd.c | 276 ide_hwif_t *hwif = drive->hwif; in cdrom_decode_status() local 277 struct request *rq = hwif->rq; in cdrom_decode_status() 401 hwif->rq = NULL; in cdrom_decode_status() 523 ide_hwif_t *hwif = drive->hwif; in cdrom_newpc_intr() local 524 struct ide_cmd *cmd = &hwif->cmd; in cdrom_newpc_intr() 525 struct request *rq = hwif->rq; in cdrom_newpc_intr() 541 dma_error = hwif->dma_ops->dma_end(drive); in cdrom_newpc_intr() 551 stat = hwif->tp_ops->read_status(hwif); in cdrom_newpc_intr() 661 hwif->expiry = expiry; in cdrom_newpc_intr() 669 hwif->rq = NULL; in cdrom_newpc_intr()
|
D | ali14xx.c | 112 static void ali14xx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in ali14xx_set_pio_mode() argument 135 driveNum = (drive->hwif->index << 1) + (drive->dn & 1); in ali14xx_set_pio_mode()
|
D | ide-tape.c | 272 struct request *rq = drive->hwif->rq; in idetape_analyze_error() 330 struct request *rq = drive->hwif->rq; in ide_tape_callback() 383 drive->hwif->rq->cmd[0], tape->dsc_poll_freq); in ide_tape_stall_queue() 444 struct request *rq = drive->hwif->rq; in ide_tape_issue_pc() 517 ide_hwif_t *hwif = drive->hwif; in idetape_media_access_finished() local 522 stat = hwif->tp_ops->read_status(hwif); in idetape_media_access_finished() 569 ide_hwif_t *hwif = drive->hwif; in idetape_do_request() local 592 stat = hwif->tp_ops->read_status(hwif); in idetape_do_request() 1756 if (drive->hwif->host_flags & IDE_HFLAG_NO_DSC) { in idetape_setup()
|
D | ide-4drives.c | 16 if (drive->hwif->channel) in ide_4drives_init_dev()
|
D | dtc2278.c | 71 static void dtc2278_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in dtc2278_set_pio_mode() argument
|
D | macide.c | 57 int macide_test_irq(ide_hwif_t *hwif) in macide_test_irq() argument
|
D | ide-gd.c | 387 g = alloc_disk_node(IDE_DISK_MINORS, hwif_to_node(drive->hwif));
|
D | ide-floppy.c | 136 unsigned int done = blk_rq_bytes(drive->hwif->rq); in ide_floppy_issue_pc()
|
/linux-4.4.14/include/linux/ |
D | ide.h | 508 struct hwif_s *hwif; /* actually (ide_hwif_t *) */ member 950 static inline void ide_proc_register_port(ide_hwif_t *hwif) { ; } in ide_proc_register_port() argument 951 static inline void ide_proc_port_register_devices(ide_hwif_t *hwif) { ; } in ide_proc_port_register_devices() argument 953 static inline void ide_proc_unregister_port(ide_hwif_t *hwif) { ; } in ide_proc_unregister_port() argument 1174 extern int ide_wait_not_busy(ide_hwif_t *hwif, unsigned long timeout); 1209 static inline int ide_hwif_setup_dma(ide_hwif_t *hwif, in ide_hwif_setup_dma() argument 1422 static inline void ide_release_dma_engine(ide_hwif_t *hwif) { ; } in ide_release_dma_engine() argument 1431 bool ide_port_acpi(ide_hwif_t *hwif); 1433 extern void ide_acpi_get_timing(ide_hwif_t *hwif); 1434 extern void ide_acpi_push_timing(ide_hwif_t *hwif); [all …]
|
/linux-4.4.14/drivers/scsi/bfa/ |
D | bfa.h | 252 struct bfa_hwif_s hwif; member 273 ((__bfa)->iocfc.hwif.hw_msix_init(__bfa, __nvecs)) 275 ((__bfa)->iocfc.hwif.hw_msix_ctrl_install(__bfa)) 277 ((__bfa)->iocfc.hwif.hw_msix_queue_install(__bfa)) 279 ((__bfa)->iocfc.hwif.hw_msix_uninstall(__bfa)) 281 ((__bfa)->iocfc.hwif.hw_rspq_ack(__bfa, __queue, __ci)) 283 if ((__bfa)->iocfc.hwif.hw_reqq_ack) \ 284 (__bfa)->iocfc.hwif.hw_reqq_ack(__bfa, __queue); \ 287 if ((__bfa)->iocfc.hwif.hw_isr_mode_set) \ 288 (__bfa)->iocfc.hwif.hw_isr_mode_set(__bfa, __msix); \ [all …]
|
D | bfa_core.c | 890 bfa_isr_reqq(bfa, vec - bfa->iocfc.hwif.cpe_vec_q0); in bfa_msix_reqq() 906 bfa_isr_rspq(bfa, vec - bfa->iocfc.hwif.rme_vec_q0); in bfa_msix_rspq() 1053 iocfc->hwif.hw_reginit = bfa_hwct_reginit; in bfa_iocfc_init_mem() 1054 iocfc->hwif.hw_reqq_ack = bfa_hwct_reqq_ack; in bfa_iocfc_init_mem() 1055 iocfc->hwif.hw_rspq_ack = bfa_hwct_rspq_ack; in bfa_iocfc_init_mem() 1056 iocfc->hwif.hw_msix_init = bfa_hwct_msix_init; in bfa_iocfc_init_mem() 1057 iocfc->hwif.hw_msix_ctrl_install = bfa_hwct_msix_ctrl_install; in bfa_iocfc_init_mem() 1058 iocfc->hwif.hw_msix_queue_install = bfa_hwct_msix_queue_install; in bfa_iocfc_init_mem() 1059 iocfc->hwif.hw_msix_uninstall = bfa_hwct_msix_uninstall; in bfa_iocfc_init_mem() 1060 iocfc->hwif.hw_isr_mode_set = bfa_hwct_isr_mode_set; in bfa_iocfc_init_mem() [all …]
|
D | bfa_hw_cb.c | 178 bfa->iocfc.hwif.hw_reqq_ack = bfa_hwcb_reqq_ack_msix; in bfa_hwcb_isr_mode_set() 179 bfa->iocfc.hwif.hw_rspq_ack = bfa_hwcb_rspq_ack_msix; in bfa_hwcb_isr_mode_set() 181 bfa->iocfc.hwif.hw_reqq_ack = NULL; in bfa_hwcb_isr_mode_set() 182 bfa->iocfc.hwif.hw_rspq_ack = bfa_hwcb_rspq_ack; in bfa_hwcb_isr_mode_set()
|
D | bfa_ioc_ct.c | 510 bfa_ioc_set_ctx_hwif(struct bfa_ioc_s *ioc, struct bfa_ioc_hwif_s *hwif) in bfa_ioc_set_ctx_hwif() argument 512 hwif->ioc_firmware_lock = bfa_ioc_ct_firmware_lock; in bfa_ioc_set_ctx_hwif() 513 hwif->ioc_firmware_unlock = bfa_ioc_ct_firmware_unlock; in bfa_ioc_set_ctx_hwif() 514 hwif->ioc_notify_fail = bfa_ioc_ct_notify_fail; in bfa_ioc_set_ctx_hwif() 515 hwif->ioc_ownership_reset = bfa_ioc_ct_ownership_reset; in bfa_ioc_set_ctx_hwif() 516 hwif->ioc_sync_start = bfa_ioc_ct_sync_start; in bfa_ioc_set_ctx_hwif() 517 hwif->ioc_sync_join = bfa_ioc_ct_sync_join; in bfa_ioc_set_ctx_hwif() 518 hwif->ioc_sync_leave = bfa_ioc_ct_sync_leave; in bfa_ioc_set_ctx_hwif() 519 hwif->ioc_sync_ack = bfa_ioc_ct_sync_ack; in bfa_ioc_set_ctx_hwif() 520 hwif->ioc_sync_complete = bfa_ioc_ct_sync_complete; in bfa_ioc_set_ctx_hwif() [all …]
|
/linux-4.4.14/arch/mips/include/asm/mach-au1x00/ |
D | au1xxx_ide.h | 53 ide_hwif_t *hwif; member
|
/linux-4.4.14/drivers/net/wan/ |
D | farsync.c | 431 int hwif; /* Line hardware (lineInterface copy) */ member 1117 if (signals & (((port->hwif == X21) || (port->hwif == X21D)) in fst_intr_ctlchg() 1875 port->hwif = V35; in fst_set_iface() 1880 port->hwif = V24; in fst_set_iface() 1885 port->hwif = X21; in fst_set_iface() 1890 port->hwif = X21D; in fst_set_iface() 1895 port->hwif = T1; in fst_set_iface() 1900 port->hwif = E1; in fst_set_iface() 1937 switch (port->hwif) { in fst_get_iface() 2158 if (signals & (((port->hwif == X21) || (port->hwif == X21D)) in fst_openport()
|
/linux-4.4.14/Documentation/ioctl/ |
D | hdio.txt | 32 HDIO_GET_BUSSTATE get the bus state of the hwif 54 HDIO_SET_BUSSTATE set the bus state of the hwif 451 HDIO_GET_BUSSTATE get the bus state of the hwif 470 HDIO_SET_BUSSTATE set the bus state of the hwif
|