hwif 53 arch/mips/include/asm/mach-au1x00/au1xxx_ide.h ide_hwif_t *hwif; hwif 85 drivers/ide/aec62xx.c static void aec6210_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 87 drivers/ide/aec62xx.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 113 drivers/ide/aec62xx.c static void aec6260_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 115 drivers/ide/aec62xx.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 130 drivers/ide/aec62xx.c pci_read_config_byte(dev, (0x44|hwif->channel), &ultra); hwif 134 drivers/ide/aec62xx.c pci_write_config_byte(dev, (0x44|hwif->channel), tmp2); hwif 138 drivers/ide/aec62xx.c static void aec_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 141 drivers/ide/aec62xx.c hwif->port_ops->set_dma_mode(hwif, drive); hwif 164 drivers/ide/aec62xx.c static u8 atp86x_cable_detect(ide_hwif_t *hwif) hwif 166 drivers/ide/aec62xx.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 167 drivers/ide/aec62xx.c u8 ata66 = 0, mask = hwif->channel ? 0x02 : 0x01; hwif 113 drivers/ide/ali14xx.c static void ali14xx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 136 drivers/ide/ali14xx.c driveNum = (drive->hwif->index << 1) + (drive->dn & 1); hwif 51 drivers/ide/alim15x3.c static void ali_fifo_control(ide_hwif_t *hwif, ide_drive_t *drive, int on) hwif 53 drivers/ide/alim15x3.c struct pci_dev *pdev = to_pci_dev(hwif->dev); hwif 54 drivers/ide/alim15x3.c int pio_fifo = 0x54 + hwif->channel; hwif 64 drivers/ide/alim15x3.c static void ali_program_timings(ide_hwif_t *hwif, ide_drive_t *drive, hwif 67 drivers/ide/alim15x3.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 68 drivers/ide/alim15x3.c int port = hwif->channel ? 0x5c : 0x58; hwif 69 drivers/ide/alim15x3.c int udmat = 0x56 + hwif->channel; hwif 102 drivers/ide/alim15x3.c static void ali_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 126 drivers/ide/alim15x3.c ali_fifo_control(hwif, drive, (drive->media == ide_disk) ? 0x05 : 0x00); hwif 128 drivers/ide/alim15x3.c ali_program_timings(hwif, drive, &t, 0); hwif 153 drivers/ide/alim15x3.c return drive->hwif->ultra_mask; hwif 164 drivers/ide/alim15x3.c static void ali_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 167 drivers/ide/alim15x3.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 190 drivers/ide/alim15x3.c ali_program_timings(hwif, drive, &t, 0); hwif 192 drivers/ide/alim15x3.c ali_program_timings(hwif, drive, NULL, hwif 381 drivers/ide/alim15x3.c static u8 ali_cable_detect(ide_hwif_t *hwif) hwif 383 drivers/ide/alim15x3.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 400 drivers/ide/alim15x3.c if ((tmpbyte & (1 << hwif->channel)) == 0) hwif 418 drivers/ide/alim15x3.c static void init_hwif_ali15x3(ide_hwif_t *hwif) hwif 435 drivers/ide/alim15x3.c if ((hwif->channel && ideic == 0x03) || hwif 436 drivers/ide/alim15x3.c (!hwif->channel && !ideic)) { hwif 443 drivers/ide/alim15x3.c } else if (hwif->channel && !(ideic & 0x01)) { hwif 452 drivers/ide/alim15x3.c hwif->irq = irq; hwif 467 drivers/ide/alim15x3.c static int init_dma_ali15x3(ide_hwif_t *hwif, const struct ide_port_info *d) hwif 469 drivers/ide/alim15x3.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 470 drivers/ide/alim15x3.c unsigned long base = ide_pci_dma_base(hwif, d); hwif 475 drivers/ide/alim15x3.c hwif->dma_base = base; hwif 477 drivers/ide/alim15x3.c if (ide_pci_check_simplex(hwif, d) < 0) hwif 483 drivers/ide/alim15x3.c if (!hwif->channel) hwif 487 drivers/ide/alim15x3.c hwif->name, base, base + 7); hwif 489 drivers/ide/alim15x3.c if (ide_allocate_dma_engine(hwif)) hwif 78 drivers/ide/amd74xx.c static void amd_set_drive(ide_hwif_t *hwif, ide_drive_t *drive) hwif 80 drivers/ide/amd74xx.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 84 drivers/ide/amd74xx.c u8 udma_mask = hwif->ultra_mask; hwif 107 drivers/ide/amd74xx.c static void amd_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 110 drivers/ide/amd74xx.c amd_set_drive(hwif, drive); hwif 176 drivers/ide/amd74xx.c static u8 amd_cable_detect(ide_hwif_t *hwif) hwif 178 drivers/ide/amd74xx.c if ((amd_80w >> hwif->channel) & 1) hwif 52 drivers/ide/atiixp.c static void atiixp_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 54 drivers/ide/atiixp.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 86 drivers/ide/atiixp.c static void atiixp_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 88 drivers/ide/atiixp.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 124 drivers/ide/atiixp.c static u8 atiixp_cable_detect(ide_hwif_t *hwif) hwif 126 drivers/ide/atiixp.c struct pci_dev *pdev = to_pci_dev(hwif->dev); hwif 127 drivers/ide/atiixp.c u8 udma_mode = 0, ch = hwif->channel; hwif 96 drivers/ide/au1xxx-ide.c auide_insw(drive->hwif->io_ports.data_addr, buf, (len + 1) / 2); hwif 102 drivers/ide/au1xxx-ide.c auide_outsw(drive->hwif->io_ports.data_addr, buf, (len + 1) / 2); hwif 106 drivers/ide/au1xxx-ide.c static void au1xxx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 167 drivers/ide/au1xxx-ide.c static void auide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 217 drivers/ide/au1xxx-ide.c ide_hwif_t *hwif = drive->hwif; hwif 227 drivers/ide/au1xxx-ide.c sg = hwif->sg_table; hwif 346 drivers/ide/au1xxx-ide.c static int auide_ddma_init(ide_hwif_t *hwif, const struct ide_port_info *d) hwif 352 drivers/ide/au1xxx-ide.c dev_id = hwif->ddma_id; hwif 395 drivers/ide/au1xxx-ide.c (void)ide_allocate_dma_engine(hwif); hwif 403 drivers/ide/au1xxx-ide.c static int auide_ddma_init(ide_hwif_t *hwif, const struct ide_port_info *d) hwif 560 drivers/ide/au1xxx-ide.c auide_hwif.hwif = host->ports[0]; hwif 103 drivers/ide/buddha.c static int buddha_test_irq(ide_hwif_t *hwif) hwif 107 drivers/ide/buddha.c ch = z_readb(hwif->io_ports.irq_addr); hwif 118 drivers/ide/buddha.c z_writeb(0, drive->hwif->io_ports.irq_addr); hwif 577 drivers/ide/cmd640.c static void cmd640_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 613 drivers/ide/cmd640.c unsigned int i = drive->hwif->channel * 2 + (drive->dn & 1); hwif 636 drivers/ide/cmd640.c static int cmd640_test_irq(ide_hwif_t *hwif) hwif 638 drivers/ide/cmd640.c int irq_reg = hwif->channel ? ARTTIM23 : CFR; hwif 639 drivers/ide/cmd640.c u8 irq_mask = hwif->channel ? ARTTIM23_IDE23INTR : hwif 57 drivers/ide/cmd64x.c ide_hwif_t *hwif = drive->hwif; hwif 58 drivers/ide/cmd64x.c struct pci_dev *dev = to_pci_dev(drive->hwif->dev); hwif 101 drivers/ide/cmd64x.c if (hwif->channel) { hwif 125 drivers/ide/cmd64x.c if (hwif->channel) hwif 137 drivers/ide/cmd64x.c static void cmd64x_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 151 drivers/ide/cmd64x.c static void cmd64x_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 153 drivers/ide/cmd64x.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 155 drivers/ide/cmd64x.c u8 regU = 0, pciU = hwif->channel ? UDIDETCR1 : UDIDETCR0; hwif 192 drivers/ide/cmd64x.c ide_hwif_t *hwif = drive->hwif; hwif 193 drivers/ide/cmd64x.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 195 drivers/ide/cmd64x.c u8 irq_mask = hwif->channel ? MRDMODE_INTR_CH1 : hwif 206 drivers/ide/cmd64x.c ide_hwif_t *hwif = drive->hwif; hwif 207 drivers/ide/cmd64x.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 208 drivers/ide/cmd64x.c int irq_reg = hwif->channel ? ARTTIM23 : CFR; hwif 209 drivers/ide/cmd64x.c u8 irq_mask = hwif->channel ? ARTTIM23_INTR_CH1 : hwif 218 drivers/ide/cmd64x.c static int cmd648_test_irq(ide_hwif_t *hwif) hwif 220 drivers/ide/cmd64x.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 222 drivers/ide/cmd64x.c u8 irq_mask = hwif->channel ? MRDMODE_INTR_CH1 : hwif 227 drivers/ide/cmd64x.c hwif->name, mrdmode, irq_mask); hwif 232 drivers/ide/cmd64x.c static int cmd64x_test_irq(ide_hwif_t *hwif) hwif 234 drivers/ide/cmd64x.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 235 drivers/ide/cmd64x.c int irq_reg = hwif->channel ? ARTTIM23 : CFR; hwif 236 drivers/ide/cmd64x.c u8 irq_mask = hwif->channel ? ARTTIM23_INTR_CH1 : hwif 243 drivers/ide/cmd64x.c hwif->name, irq_stat, irq_mask); hwif 255 drivers/ide/cmd64x.c ide_hwif_t *hwif = drive->hwif; hwif 259 drivers/ide/cmd64x.c dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); hwif 261 drivers/ide/cmd64x.c dma_cmd = inb(hwif->dma_base + ATA_DMA_CMD); hwif 263 drivers/ide/cmd64x.c outb(dma_cmd & ~1, hwif->dma_base + ATA_DMA_CMD); hwif 265 drivers/ide/cmd64x.c outb(dma_stat | 6, hwif->dma_base + ATA_DMA_STATUS); hwif 292 drivers/ide/cmd64x.c static u8 cmd64x_cable_detect(ide_hwif_t *hwif) hwif 294 drivers/ide/cmd64x.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 295 drivers/ide/cmd64x.c u8 bmidecsr = 0, mask = hwif->channel ? 0x02 : 0x01; hwif 60 drivers/ide/cs5520.c static void cs5520_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 62 drivers/ide/cs5520.c struct pci_dev *pdev = to_pci_dev(hwif->dev); hwif 84 drivers/ide/cs5520.c static void cs5520_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 89 drivers/ide/cs5520.c cs5520_set_pio_mode(hwif, drive); hwif 40 drivers/ide/cs5530.c #define CS5530_BASEREG(hwif) (((hwif)->dma_base & ~0xf) + ((hwif)->channel ? 0x30 : 0x20)) hwif 53 drivers/ide/cs5530.c static void cs5530_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 55 drivers/ide/cs5530.c unsigned long basereg = CS5530_BASEREG(hwif); hwif 83 drivers/ide/cs5530.c ide_hwif_t *hwif = drive->hwif; hwif 86 drivers/ide/cs5530.c u8 mask = hwif->ultra_mask; hwif 103 drivers/ide/cs5530.c static void cs5530_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 116 drivers/ide/cs5530.c basereg = CS5530_BASEREG(hwif); hwif 229 drivers/ide/cs5530.c static void init_hwif_cs5530 (ide_hwif_t *hwif) hwif 234 drivers/ide/cs5530.c basereg = CS5530_BASEREG(hwif); hwif 135 drivers/ide/cs5535.c static void cs5535_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 148 drivers/ide/cs5535.c static void cs5535_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 153 drivers/ide/cs5535.c static u8 cs5535_cable_detect(ide_hwif_t *hwif) hwif 155 drivers/ide/cs5535.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 82 drivers/ide/cs5536.c struct pci_dev *pdev = to_pci_dev(drive->hwif->dev); hwif 101 drivers/ide/cs5536.c static u8 cs5536_cable_detect(ide_hwif_t *hwif) hwif 103 drivers/ide/cs5536.c struct pci_dev *pdev = to_pci_dev(hwif->dev); hwif 120 drivers/ide/cs5536.c static void cs5536_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 134 drivers/ide/cs5536.c struct pci_dev *pdev = to_pci_dev(hwif->dev); hwif 168 drivers/ide/cs5536.c static void cs5536_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 178 drivers/ide/cs5536.c struct pci_dev *pdev = to_pci_dev(hwif->dev); hwif 57 drivers/ide/cy82c693.c static void cy82c693_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 62 drivers/ide/cy82c693.c index = hwif->channel ? CY82_INDEX_CHANNEL1 : CY82_INDEX_CHANNEL0; hwif 84 drivers/ide/cy82c693.c static void cy82c693_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 86 drivers/ide/cy82c693.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 149 drivers/ide/cy82c693.c static void init_iops_cy82c693(ide_hwif_t *hwif) hwif 152 drivers/ide/cy82c693.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 155 drivers/ide/cy82c693.c primary = hwif; hwif 157 drivers/ide/cy82c693.c hwif->mate = primary; hwif 158 drivers/ide/cy82c693.c hwif->channel = 1; hwif 72 drivers/ide/dtc2278.c static void dtc2278_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 69 drivers/ide/falconide.c unsigned long data_addr = drive->hwif->io_ports.data_addr; hwif 82 drivers/ide/falconide.c unsigned long data_addr = drive->hwif->io_ports.data_addr; hwif 61 drivers/ide/gayle.c static int gayle_test_irq(ide_hwif_t *hwif) hwif 65 drivers/ide/gayle.c ch = z_readb(hwif->io_ports.irq_addr); hwif 73 drivers/ide/gayle.c ide_hwif_t *hwif = drive->hwif; hwif 75 drivers/ide/gayle.c (void)z_readb(hwif->io_ports.status_addr); hwif 76 drivers/ide/gayle.c z_writeb(0x7c, hwif->io_ports.irq_addr); hwif 555 drivers/ide/hpt366.c ide_hwif_t *hwif = drive->hwif; hwif 556 drivers/ide/hpt366.c struct hpt_info *info = hpt3xx_get_info(hwif->dev); hwif 557 drivers/ide/hpt366.c u8 mask = hwif->ultra_mask; hwif 595 drivers/ide/hpt366.c ide_hwif_t *hwif = drive->hwif; hwif 596 drivers/ide/hpt366.c struct hpt_info *info = hpt3xx_get_info(hwif->dev); hwif 628 drivers/ide/hpt366.c static void hpt3xx_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 630 drivers/ide/hpt366.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 631 drivers/ide/hpt366.c struct hpt_info *info = hpt3xx_get_info(hwif->dev); hwif 652 drivers/ide/hpt366.c static void hpt3xx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 655 drivers/ide/hpt366.c hpt3xx_set_mode(hwif, drive); hwif 660 drivers/ide/hpt366.c ide_hwif_t *hwif = drive->hwif; hwif 661 drivers/ide/hpt366.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 662 drivers/ide/hpt366.c struct hpt_info *info = hpt3xx_get_info(hwif->dev); hwif 679 drivers/ide/hpt366.c disable_irq(hwif->irq); hwif 681 drivers/ide/hpt366.c enable_irq(hwif->irq); hwif 690 drivers/ide/hpt366.c struct pci_dev *dev = to_pci_dev(drive->hwif->dev); hwif 705 drivers/ide/hpt366.c ide_hwif_t *hwif = drive->hwif; hwif 706 drivers/ide/hpt366.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 708 drivers/ide/hpt366.c pci_write_config_byte(dev, hwif->select_data, 0x37); hwif 714 drivers/ide/hpt366.c ide_hwif_t *hwif = drive->hwif; hwif 715 drivers/ide/hpt366.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 719 drivers/ide/hpt366.c pci_read_config_word(dev, hwif->select_data + 2, &bfifo); hwif 723 drivers/ide/hpt366.c dma_cmd = inb(hwif->dma_base + ATA_DMA_CMD); hwif 725 drivers/ide/hpt366.c outb(dma_cmd & ~ATA_DMA_START, hwif->dma_base + ATA_DMA_CMD); hwif 739 drivers/ide/hpt366.c ide_hwif_t *hwif = drive->hwif; hwif 740 drivers/ide/hpt366.c u8 dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); hwif 745 drivers/ide/hpt366.c dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); hwif 755 drivers/ide/hpt366.c ide_hwif_t *hwif = drive->hwif; hwif 756 drivers/ide/hpt366.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 760 drivers/ide/hpt366.c pci_read_config_word(dev, hwif->select_data + 2, &bfifo); hwif 766 drivers/ide/hpt366.c dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); hwif 776 drivers/ide/hpt366.c ide_hwif_t *hwif = drive->hwif; hwif 777 drivers/ide/hpt366.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 778 drivers/ide/hpt366.c u8 mcr = 0, mcr_addr = hwif->select_data; hwif 779 drivers/ide/hpt366.c u8 bwsr = 0, mask = hwif->channel ? 0x02 : 0x01; hwif 796 drivers/ide/hpt366.c static void hpt3xxn_set_clock(ide_hwif_t *hwif, u8 mode) hwif 798 drivers/ide/hpt366.c unsigned long base = hwif->extra_base; hwif 838 drivers/ide/hpt366.c hpt3xxn_set_clock(drive->hwif, rq_data_dir(rq) ? 0x21 : 0x23); hwif 1151 drivers/ide/hpt366.c static u8 hpt3xx_cable_detect(ide_hwif_t *hwif) hwif 1153 drivers/ide/hpt366.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 1154 drivers/ide/hpt366.c struct hpt_info *info = hpt3xx_get_info(hwif->dev); hwif 1156 drivers/ide/hpt366.c u8 scr1 = 0, ata66 = hwif->channel ? 0x01 : 0x02; hwif 1169 drivers/ide/hpt366.c u8 mcr_addr = hwif->select_data + 2; hwif 1197 drivers/ide/hpt366.c static void init_hwif_hpt366(ide_hwif_t *hwif) hwif 1199 drivers/ide/hpt366.c struct hpt_info *info = hpt3xx_get_info(hwif->dev); hwif 1203 drivers/ide/hpt366.c hwif->select_data = hwif->channel ? 0x54 : 0x50; hwif 1216 drivers/ide/hpt366.c hwif->host->host_flags |= IDE_HFLAG_SERIALIZE; hwif 1217 drivers/ide/hpt366.c hwif->rw_disk = &hpt3xxn_rw_disk; hwif 1221 drivers/ide/hpt366.c static int init_dma_hpt366(ide_hwif_t *hwif, hwif 1224 drivers/ide/hpt366.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 1225 drivers/ide/hpt366.c unsigned long flags, base = ide_pci_dma_base(hwif, d); hwif 1231 drivers/ide/hpt366.c hwif->dma_base = base; hwif 1233 drivers/ide/hpt366.c if (ide_pci_check_simplex(hwif, d) < 0) hwif 1244 drivers/ide/hpt366.c pci_read_config_byte(dev, hwif->channel ? 0x4b : 0x43, &masterdma); hwif 1245 drivers/ide/hpt366.c pci_read_config_byte(dev, hwif->channel ? 0x4f : 0x47, &slavedma); hwif 1255 drivers/ide/hpt366.c hwif->name, base, base + 7); hwif 1257 drivers/ide/hpt366.c hwif->extra_base = base + (hwif->channel ? 8 : 16); hwif 1259 drivers/ide/hpt366.c if (ide_allocate_dma_engine(hwif)) hwif 117 drivers/ide/ht6560b.c ide_hwif_t *hwif = drive->hwif; hwif 147 drivers/ide/ht6560b.c outb(timing, hwif->io_ports.device_addr); hwif 148 drivers/ide/ht6560b.c (void)inb(hwif->io_ports.status_addr); hwif 156 drivers/ide/ht6560b.c outb(drive->select | ATA_DEVICE_OBS, hwif->io_ports.device_addr); hwif 282 drivers/ide/ht6560b.c static void ht6560b_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 311 drivers/ide/ht6560b.c ide_hwif_t *hwif = drive->hwif; hwif 315 drivers/ide/ht6560b.c if (hwif->channel) hwif 170 drivers/ide/icside.c ide_hwif_t *hwif = drive->hwif; hwif 171 drivers/ide/icside.c struct expansion_card *ec = ECARD_DEV(hwif->dev); hwif 177 drivers/ide/icside.c state->channel = hwif->channel; hwif 180 drivers/ide/icside.c switch (hwif->channel) { hwif 238 drivers/ide/icside.c static void icside_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 291 drivers/ide/icside.c ide_hwif_t *hwif = drive->hwif; hwif 292 drivers/ide/icside.c struct expansion_card *ec = ECARD_DEV(hwif->dev); hwif 301 drivers/ide/icside.c ide_hwif_t *hwif = drive->hwif; hwif 302 drivers/ide/icside.c struct expansion_card *ec = ECARD_DEV(hwif->dev); hwif 311 drivers/ide/icside.c ide_hwif_t *hwif = drive->hwif; hwif 312 drivers/ide/icside.c struct expansion_card *ec = ECARD_DEV(hwif->dev); hwif 334 drivers/ide/icside.c writeb(state->sel | hwif->channel, state->ioc_base); hwif 345 drivers/ide/icside.c set_dma_sg(ec->dma, hwif->sg_table, cmd->sg_nents); hwif 353 drivers/ide/icside.c ide_hwif_t *hwif = drive->hwif; hwif 354 drivers/ide/icside.c struct expansion_card *ec = ECARD_DEV(hwif->dev); hwif 358 drivers/ide/icside.c (hwif->channel ? hwif 363 drivers/ide/icside.c static int icside_dma_init(ide_hwif_t *hwif, const struct ide_port_info *d) hwif 365 drivers/ide/icside.c hwif->dmatable_cpu = NULL; hwif 366 drivers/ide/icside.c hwif->dmatable_dma = 0; hwif 381 drivers/ide/icside.c static int icside_dma_off_init(ide_hwif_t *hwif, const struct ide_port_info *d) hwif 17 drivers/ide/ide-4drives.c if (drive->hwif->channel) hwif 39 drivers/ide/ide-acpi.c ide_hwif_t *hwif; hwif 96 drivers/ide/ide-acpi.c bool ide_port_acpi(ide_hwif_t *hwif) hwif 98 drivers/ide/ide-acpi.c return ide_noacpi == 0 && hwif->acpidata; hwif 180 drivers/ide/ide-acpi.c static acpi_handle ide_acpi_hwif_get_handle(ide_hwif_t *hwif) hwif 182 drivers/ide/ide-acpi.c struct device *dev = hwif->gendev.parent; hwif 188 drivers/ide/ide-acpi.c DEBPRINT("ENTER: device %s\n", hwif->name); hwif 191 drivers/ide/ide-acpi.c DEBPRINT("no PCI device for %s\n", hwif->name); hwif 204 drivers/ide/ide-acpi.c chan_handle = acpi_get_child(dev_handle, hwif->channel); hwif 206 drivers/ide/ide-acpi.c hwif->channel, chan_handle); hwif 397 drivers/ide/ide-acpi.c void ide_acpi_get_timing(ide_hwif_t *hwif) hwif 408 drivers/ide/ide-acpi.c status = acpi_evaluate_object(hwif->acpidata->obj_handle, "_GTM", hwif 448 drivers/ide/ide-acpi.c memcpy(&hwif->acpidata->gtm, out_obj->buffer.pointer, hwif 456 drivers/ide/ide-acpi.c hwif->acpidata->gtm.PIO_speed0, hwif 457 drivers/ide/ide-acpi.c hwif->acpidata->gtm.DMA_speed0, hwif 458 drivers/ide/ide-acpi.c hwif->acpidata->gtm.PIO_speed1, hwif 459 drivers/ide/ide-acpi.c hwif->acpidata->gtm.DMA_speed1, hwif 460 drivers/ide/ide-acpi.c hwif->acpidata->gtm.GTM_flags); hwif 475 drivers/ide/ide-acpi.c void ide_acpi_push_timing(ide_hwif_t *hwif) hwif 480 drivers/ide/ide-acpi.c struct ide_acpi_drive_link *master = &hwif->acpidata->master; hwif 481 drivers/ide/ide-acpi.c struct ide_acpi_drive_link *slave = &hwif->acpidata->slave; hwif 490 drivers/ide/ide-acpi.c in_params[0].buffer.pointer = (u8 *)&hwif->acpidata->gtm; hwif 499 drivers/ide/ide-acpi.c status = acpi_evaluate_object(hwif->acpidata->obj_handle, "_STM", hwif 516 drivers/ide/ide-acpi.c void ide_acpi_set_state(ide_hwif_t *hwif, int on) hwif 528 drivers/ide/ide-acpi.c acpi_bus_set_power(hwif->acpidata->obj_handle, ACPI_STATE_D0); hwif 530 drivers/ide/ide-acpi.c ide_port_for_each_present_dev(i, drive, hwif) { hwif 537 drivers/ide/ide-acpi.c acpi_bus_set_power(hwif->acpidata->obj_handle, hwif 552 drivers/ide/ide-acpi.c void ide_acpi_init_port(ide_hwif_t *hwif) hwif 554 drivers/ide/ide-acpi.c hwif->acpidata = kzalloc(sizeof(struct ide_acpi_hwif_link), GFP_KERNEL); hwif 555 drivers/ide/ide-acpi.c if (!hwif->acpidata) hwif 558 drivers/ide/ide-acpi.c hwif->acpidata->obj_handle = ide_acpi_hwif_get_handle(hwif); hwif 559 drivers/ide/ide-acpi.c if (!hwif->acpidata->obj_handle) { hwif 560 drivers/ide/ide-acpi.c DEBPRINT("no ACPI object for %s found\n", hwif->name); hwif 561 drivers/ide/ide-acpi.c kfree(hwif->acpidata); hwif 562 drivers/ide/ide-acpi.c hwif->acpidata = NULL; hwif 566 drivers/ide/ide-acpi.c void ide_acpi_port_init_devices(ide_hwif_t *hwif) hwif 571 drivers/ide/ide-acpi.c if (hwif->acpidata == NULL) hwif 579 drivers/ide/ide-acpi.c hwif->devices[0]->acpidata = &hwif->acpidata->master; hwif 580 drivers/ide/ide-acpi.c hwif->devices[1]->acpidata = &hwif->acpidata->slave; hwif 583 drivers/ide/ide-acpi.c ide_port_for_each_present_dev(i, drive, hwif) { hwif 587 drivers/ide/ide-acpi.c drive->name, hwif->channel, drive->dn & 1); hwif 590 drivers/ide/ide-acpi.c dev_handle = acpi_get_child(hwif->acpidata->obj_handle, hwif 599 drivers/ide/ide-acpi.c ide_port_for_each_present_dev(i, drive, hwif) { hwif 612 drivers/ide/ide-acpi.c ide_acpi_set_state(hwif, 1); hwif 616 drivers/ide/ide-acpi.c ide_acpi_get_timing(hwif); hwif 617 drivers/ide/ide-acpi.c ide_acpi_push_timing(hwif); hwif 619 drivers/ide/ide-acpi.c ide_port_for_each_present_dev(i, drive, hwif) { hwif 239 drivers/ide/ide-atapi.c ide_hwif_t *hwif = drive->hwif; hwif 243 drivers/ide/ide-atapi.c spin_lock_irqsave(&hwif->lock, flags); hwif 249 drivers/ide/ide-atapi.c spin_unlock_irqrestore(&hwif->lock, flags); hwif 257 drivers/ide/ide-atapi.c drive->hwif->rq = NULL; hwif 260 drivers/ide/ide-atapi.c spin_unlock_irqrestore(&hwif->lock, flags); hwif 272 drivers/ide/ide-atapi.c struct request *failed_rq = drive->hwif->rq; hwif 290 drivers/ide/ide-atapi.c drive->hwif->rq = NULL; hwif 299 drivers/ide/ide-atapi.c struct request *rq = drive->hwif->rq; hwif 354 drivers/ide/ide-atapi.c drive->hwif->tp_ops->tf_read(drive, &tf, IDE_VALID_NSECT | hwif 373 drivers/ide/ide-atapi.c ide_hwif_t *hwif = drive->hwif; hwif 391 drivers/ide/ide-atapi.c (void)hwif->tp_ops->read_status(hwif); hwif 419 drivers/ide/ide-atapi.c ide_hwif_t *hwif = drive->hwif; hwif 420 drivers/ide/ide-atapi.c struct ide_cmd *cmd = &hwif->cmd; hwif 421 drivers/ide/ide-atapi.c struct request *rq = hwif->rq; hwif 422 drivers/ide/ide-atapi.c const struct ide_tp_ops *tp_ops = hwif->tp_ops; hwif 434 drivers/ide/ide-atapi.c stat = tp_ops->read_status(hwif); hwif 440 drivers/ide/ide-atapi.c rc = hwif->dma_ops->dma_end(drive); hwif 574 drivers/ide/ide-atapi.c drive->hwif->tp_ops->tf_read(drive, &tf, IDE_VALID_NSECT); hwif 604 drivers/ide/ide-atapi.c drive->hwif->tp_ops->output_data(drive, NULL, drive->pc->c, 12); hwif 613 drivers/ide/ide-atapi.c ide_hwif_t *hwif = drive->hwif; hwif 614 drivers/ide/ide-atapi.c struct request *rq = hwif->rq; hwif 671 drivers/ide/ide-atapi.c hwif->expiry = expiry; hwif 681 drivers/ide/ide-atapi.c hwif->tp_ops->output_data(drive, NULL, scsi_req(rq)->cmd, cmd_len); hwif 686 drivers/ide/ide-atapi.c hwif->dma_ops->dma_start(drive); hwif 690 drivers/ide/ide-atapi.c hwif->dma_ops->dma_start(drive); hwif 700 drivers/ide/ide-atapi.c ide_hwif_t *hwif = drive->hwif; hwif 702 drivers/ide/ide-atapi.c struct request *rq = hwif->rq; hwif 750 drivers/ide/ide-atapi.c hwif->expiry = expiry; hwif 285 drivers/ide/ide-cd.c ide_hwif_t *hwif = drive->hwif; hwif 286 drivers/ide/ide-cd.c struct request *rq = hwif->rq; hwif 410 drivers/ide/ide-cd.c hwif->rq = NULL; hwif 608 drivers/ide/ide-cd.c ide_hwif_t *hwif = drive->hwif; hwif 609 drivers/ide/ide-cd.c struct ide_cmd *cmd = &hwif->cmd; hwif 610 drivers/ide/ide-cd.c struct request *rq = hwif->rq; hwif 626 drivers/ide/ide-cd.c dma_error = hwif->dma_ops->dma_end(drive); hwif 636 drivers/ide/ide-cd.c stat = hwif->tp_ops->read_status(hwif); hwif 758 drivers/ide/ide-cd.c hwif->expiry = expiry; hwif 766 drivers/ide/ide-cd.c hwif->rq = NULL; hwif 119 drivers/ide/ide-cs.c ide_hwif_t *hwif; hwif 145 drivers/ide/ide-cs.c hwif = host->ports[0]; hwif 147 drivers/ide/ide-cs.c if (hwif->present) hwif 153 drivers/ide/ide-cs.c ide_port_scan(hwif); hwif 154 drivers/ide/ide-cs.c if (hwif->present) hwif 258 drivers/ide/ide-cs.c ide_hwif_t *hwif = host->ports[0]; hwif 261 drivers/ide/ide-cs.c data_addr = hwif->io_ports.data_addr; hwif 262 drivers/ide/ide-cs.c ctl_addr = hwif->io_ports.ctl_addr; hwif 52 drivers/ide/ide-devsets.c if (drive->hwif->dma_ops == NULL) hwif 76 drivers/ide/ide-devsets.c static int set_pio_mode_abuse(ide_hwif_t *hwif, u8 req_pio) hwif 85 drivers/ide/ide-devsets.c return (hwif->host_flags & IDE_HFLAG_ABUSE_DMA_MODES) ? 1 : 0; hwif 88 drivers/ide/ide-devsets.c return (hwif->host_flags & IDE_HFLAG_ABUSE_PREFETCH) ? 1 : 0; hwif 91 drivers/ide/ide-devsets.c return (hwif->host_flags & IDE_HFLAG_ABUSE_FAST_DEVSEL) ? 1 : 0; hwif 99 drivers/ide/ide-devsets.c ide_hwif_t *hwif = drive->hwif; hwif 100 drivers/ide/ide-devsets.c const struct ide_port_ops *port_ops = hwif->port_ops; hwif 106 drivers/ide/ide-devsets.c (hwif->host_flags & IDE_HFLAG_NO_SET_MODE)) hwif 109 drivers/ide/ide-devsets.c if (set_pio_mode_abuse(drive->hwif, arg)) { hwif 116 drivers/ide/ide-devsets.c spin_lock_irqsave(&hwif->lock, flags); hwif 117 drivers/ide/ide-devsets.c port_ops->set_pio_mode(hwif, drive); hwif 118 drivers/ide/ide-devsets.c spin_unlock_irqrestore(&hwif->lock, flags); hwif 120 drivers/ide/ide-devsets.c port_ops->set_pio_mode(hwif, drive); hwif 126 drivers/ide/ide-devsets.c if (hwif->host_flags & IDE_HFLAG_SET_PIO_MODE_KEEP_DMA) { hwif 85 drivers/ide/ide-disk.c ide_hwif_t *hwif = drive->hwif; hwif 93 drivers/ide/ide-disk.c if ((hwif->host_flags & IDE_HFLAG_NO_LBA48_DMA) && lba48 && dma) { hwif 185 drivers/ide/ide-disk.c ide_hwif_t *hwif = drive->hwif; hwif 196 drivers/ide/ide-disk.c if (hwif->rw_disk) hwif 197 drivers/ide/ide-disk.c hwif->rw_disk(drive, rq); hwif 397 drivers/ide/ide-disk.c if ((drive->hwif->host_flags & IDE_HFLAG_NO_LBA48_DMA) && hwif 625 drivers/ide/ide-disk.c if (arg && ((drive->hwif->host_flags & IDE_HFLAG_NO_LBA48) || hwif 656 drivers/ide/ide-disk.c ide_hwif_t *hwif = drive->hwif; hwif 679 drivers/ide/ide-disk.c if (max_s > hwif->rqsize) hwif 680 drivers/ide/ide-disk.c max_s = hwif->rqsize; hwif 23 drivers/ide/ide-dma-sff.c ide_hwif_t *hwif = drive->hwif; hwif 27 drivers/ide/ide-dma-sff.c if (hwif->host_flags & IDE_HFLAG_NO_ATAPI_DMA) hwif 54 drivers/ide/ide-dma-sff.c u8 ide_dma_sff_read_status(ide_hwif_t *hwif) hwif 56 drivers/ide/ide-dma-sff.c unsigned long addr = hwif->dma_base + ATA_DMA_STATUS; hwif 58 drivers/ide/ide-dma-sff.c if (hwif->host_flags & IDE_HFLAG_MMIO) hwif 65 drivers/ide/ide-dma-sff.c static void ide_dma_sff_write_status(ide_hwif_t *hwif, u8 val) hwif 67 drivers/ide/ide-dma-sff.c unsigned long addr = hwif->dma_base + ATA_DMA_STATUS; hwif 69 drivers/ide/ide-dma-sff.c if (hwif->host_flags & IDE_HFLAG_MMIO) hwif 85 drivers/ide/ide-dma-sff.c ide_hwif_t *hwif = drive->hwif; hwif 87 drivers/ide/ide-dma-sff.c u8 dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); hwif 94 drivers/ide/ide-dma-sff.c ide_dma_sff_write_status(hwif, dma_stat); hwif 117 drivers/ide/ide-dma-sff.c ide_hwif_t *hwif = drive->hwif; hwif 118 drivers/ide/ide-dma-sff.c __le32 *table = (__le32 *)hwif->dmatable_cpu; hwif 122 drivers/ide/ide-dma-sff.c u8 is_trm290 = !!(hwif->host_flags & IDE_HFLAG_TRM290); hwif 124 drivers/ide/ide-dma-sff.c for_each_sg(hwif->sg_table, sg, cmd->sg_nents, i) { hwif 190 drivers/ide/ide-dma-sff.c ide_hwif_t *hwif = drive->hwif; hwif 191 drivers/ide/ide-dma-sff.c u8 mmio = (hwif->host_flags & IDE_HFLAG_MMIO) ? 1 : 0; hwif 203 drivers/ide/ide-dma-sff.c writel(hwif->dmatable_dma, hwif 204 drivers/ide/ide-dma-sff.c (void __iomem *)(hwif->dma_base + ATA_DMA_TABLE_OFS)); hwif 206 drivers/ide/ide-dma-sff.c outl(hwif->dmatable_dma, hwif->dma_base + ATA_DMA_TABLE_OFS); hwif 210 drivers/ide/ide-dma-sff.c writeb(rw, (void __iomem *)(hwif->dma_base + ATA_DMA_CMD)); hwif 212 drivers/ide/ide-dma-sff.c outb(rw, hwif->dma_base + ATA_DMA_CMD); hwif 215 drivers/ide/ide-dma-sff.c dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); hwif 218 drivers/ide/ide-dma-sff.c ide_dma_sff_write_status(hwif, dma_stat | ATA_DMA_ERR | ATA_DMA_INTR); hwif 240 drivers/ide/ide-dma-sff.c ide_hwif_t *hwif = drive->hwif; hwif 241 drivers/ide/ide-dma-sff.c u8 dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); hwif 249 drivers/ide/ide-dma-sff.c hwif->expiry = NULL; /* one free ride for now */ hwif 266 drivers/ide/ide-dma-sff.c ide_hwif_t *hwif = drive->hwif; hwif 274 drivers/ide/ide-dma-sff.c if (hwif->host_flags & IDE_HFLAG_MMIO) { hwif 275 drivers/ide/ide-dma-sff.c dma_cmd = readb((void __iomem *)(hwif->dma_base + ATA_DMA_CMD)); hwif 277 drivers/ide/ide-dma-sff.c (void __iomem *)(hwif->dma_base + ATA_DMA_CMD)); hwif 279 drivers/ide/ide-dma-sff.c dma_cmd = inb(hwif->dma_base + ATA_DMA_CMD); hwif 280 drivers/ide/ide-dma-sff.c outb(dma_cmd | ATA_DMA_START, hwif->dma_base + ATA_DMA_CMD); hwif 288 drivers/ide/ide-dma-sff.c ide_hwif_t *hwif = drive->hwif; hwif 292 drivers/ide/ide-dma-sff.c if (hwif->host_flags & IDE_HFLAG_MMIO) { hwif 293 drivers/ide/ide-dma-sff.c dma_cmd = readb((void __iomem *)(hwif->dma_base + ATA_DMA_CMD)); hwif 295 drivers/ide/ide-dma-sff.c (void __iomem *)(hwif->dma_base + ATA_DMA_CMD)); hwif 297 drivers/ide/ide-dma-sff.c dma_cmd = inb(hwif->dma_base + ATA_DMA_CMD); hwif 298 drivers/ide/ide-dma-sff.c outb(dma_cmd & ~ATA_DMA_START, hwif->dma_base + ATA_DMA_CMD); hwif 302 drivers/ide/ide-dma-sff.c dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); hwif 305 drivers/ide/ide-dma-sff.c ide_dma_sff_write_status(hwif, dma_stat | ATA_DMA_ERR | ATA_DMA_INTR); hwif 319 drivers/ide/ide-dma-sff.c ide_hwif_t *hwif = drive->hwif; hwif 320 drivers/ide/ide-dma-sff.c u8 dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); hwif 93 drivers/ide/ide-dma.c ide_hwif_t *hwif = drive->hwif; hwif 94 drivers/ide/ide-dma.c struct ide_cmd *cmd = &hwif->cmd; hwif 98 drivers/ide/ide-dma.c dma_stat = hwif->dma_ops->dma_end(drive); hwif 100 drivers/ide/ide-dma.c stat = hwif->tp_ops->read_status(hwif); hwif 135 drivers/ide/ide-dma.c ide_hwif_t *hwif = drive->hwif; hwif 136 drivers/ide/ide-dma.c struct scatterlist *sg = hwif->sg_table; hwif 144 drivers/ide/ide-dma.c i = dma_map_sg(hwif->dev, sg, cmd->sg_nents, cmd->sg_dma_direction); hwif 166 drivers/ide/ide-dma.c ide_hwif_t *hwif = drive->hwif; hwif 168 drivers/ide/ide-dma.c dma_unmap_sg(hwif->dev, hwif->sg_table, cmd->orig_sg_nents, hwif 184 drivers/ide/ide-dma.c drive->hwif->dma_ops->dma_host_set(drive, 0); hwif 214 drivers/ide/ide-dma.c drive->hwif->dma_ops->dma_host_set(drive, 1); hwif 240 drivers/ide/ide-dma.c ide_hwif_t *hwif = drive->hwif; hwif 241 drivers/ide/ide-dma.c const struct ide_port_ops *port_ops = hwif->port_ops; hwif 252 drivers/ide/ide-dma.c mask &= hwif->ultra_mask; hwif 275 drivers/ide/ide-dma.c mask &= hwif->mwdma_mask; hwif 289 drivers/ide/ide-dma.c mask &= hwif->swdma_mask; hwif 313 drivers/ide/ide-dma.c ide_hwif_t *hwif = drive->hwif; hwif 319 drivers/ide/ide-dma.c if (hwif->host_flags & IDE_HFLAG_NO_ATAPI_DMA) hwif 334 drivers/ide/ide-dma.c if (hwif->chipset == ide_acorn && mode == 0) { hwif 353 drivers/ide/ide-dma.c ide_hwif_t *hwif = drive->hwif; hwif 364 drivers/ide/ide-dma.c if (hwif->host_flags & IDE_HFLAG_TRUST_BIOS_FOR_DMA) hwif 380 drivers/ide/ide-dma.c ide_hwif_t *hwif = drive->hwif; hwif 386 drivers/ide/ide-dma.c if (hwif->host_flags & IDE_HFLAG_TRUST_BIOS_FOR_DMA) hwif 448 drivers/ide/ide-dma.c ide_hwif_t *hwif = drive->hwif; hwif 449 drivers/ide/ide-dma.c const struct ide_dma_ops *dma_ops = hwif->dma_ops; hwif 450 drivers/ide/ide-dma.c struct ide_cmd *cmd = &hwif->cmd; hwif 463 drivers/ide/ide-dma.c hwif->tp_ops->read_status(hwif)); hwif 471 drivers/ide/ide-dma.c hwif->tp_ops->read_status(hwif)); hwif 490 drivers/ide/ide-dma.c if (hwif->rq) hwif 491 drivers/ide/ide-dma.c scsi_req(hwif->rq)->result = 0; hwif 495 drivers/ide/ide-dma.c void ide_release_dma_engine(ide_hwif_t *hwif) hwif 497 drivers/ide/ide-dma.c if (hwif->dmatable_cpu) { hwif 498 drivers/ide/ide-dma.c int prd_size = hwif->prd_max_nents * hwif->prd_ent_size; hwif 500 drivers/ide/ide-dma.c dma_free_coherent(hwif->dev, prd_size, hwif 501 drivers/ide/ide-dma.c hwif->dmatable_cpu, hwif->dmatable_dma); hwif 502 drivers/ide/ide-dma.c hwif->dmatable_cpu = NULL; hwif 507 drivers/ide/ide-dma.c int ide_allocate_dma_engine(ide_hwif_t *hwif) hwif 511 drivers/ide/ide-dma.c if (hwif->prd_max_nents == 0) hwif 512 drivers/ide/ide-dma.c hwif->prd_max_nents = PRD_ENTRIES; hwif 513 drivers/ide/ide-dma.c if (hwif->prd_ent_size == 0) hwif 514 drivers/ide/ide-dma.c hwif->prd_ent_size = PRD_BYTES; hwif 516 drivers/ide/ide-dma.c prd_size = hwif->prd_max_nents * hwif->prd_ent_size; hwif 518 drivers/ide/ide-dma.c hwif->dmatable_cpu = dma_alloc_coherent(hwif->dev, prd_size, hwif 519 drivers/ide/ide-dma.c &hwif->dmatable_dma, hwif 521 drivers/ide/ide-dma.c if (hwif->dmatable_cpu == NULL) { hwif 523 drivers/ide/ide-dma.c hwif->name); hwif 533 drivers/ide/ide-dma.c const struct ide_dma_ops *dma_ops = drive->hwif->dma_ops; hwif 11 drivers/ide/ide-eh.c ide_hwif_t *hwif = drive->hwif; hwif 22 drivers/ide/ide-eh.c hwif->tp_ops->read_status(hwif) == ATA_CMD_INIT_DEV_PARAMS) hwif 37 drivers/ide/ide-eh.c (hwif->host_flags & IDE_HFLAG_ERROR_STOPS_FIFO) == 0) { hwif 48 drivers/ide/ide-eh.c if (hwif->tp_ops->read_status(hwif) & (ATA_BUSY | ATA_DRQ)) hwif 67 drivers/ide/ide-eh.c ide_hwif_t *hwif = drive->hwif; hwif 77 drivers/ide/ide-eh.c if (hwif->tp_ops->read_status(hwif) & (ATA_BUSY | ATA_DRQ)) hwif 79 drivers/ide/ide-eh.c hwif->tp_ops->exec_command(hwif, ATA_CMD_IDLEIMMEDIATE); hwif 122 drivers/ide/ide-eh.c rq = drive->hwif->rq; hwif 149 drivers/ide/ide-eh.c struct request *rq = drive->hwif->rq; hwif 170 drivers/ide/ide-eh.c ide_hwif_t *hwif = drive->hwif; hwif 171 drivers/ide/ide-eh.c const struct ide_tp_ops *tp_ops = hwif->tp_ops; hwif 176 drivers/ide/ide-eh.c stat = tp_ops->read_status(hwif); hwif 181 drivers/ide/ide-eh.c if (time_before(jiffies, hwif->poll_timeout)) { hwif 187 drivers/ide/ide-eh.c hwif->polling = 0; hwif 194 drivers/ide/ide-eh.c hwif->polling = 0; hwif 199 drivers/ide/ide-eh.c static void ide_reset_report_error(ide_hwif_t *hwif, u8 err) hwif 208 drivers/ide/ide-eh.c printk(KERN_ERR "%s: reset: master: ", hwif->name); hwif 226 drivers/ide/ide-eh.c ide_hwif_t *hwif = drive->hwif; hwif 227 drivers/ide/ide-eh.c const struct ide_port_ops *port_ops = hwif->port_ops; hwif 235 drivers/ide/ide-eh.c hwif->name, drive->name); hwif 240 drivers/ide/ide-eh.c tmp = hwif->tp_ops->read_status(hwif); hwif 243 drivers/ide/ide-eh.c if (time_before(jiffies, hwif->poll_timeout)) { hwif 249 drivers/ide/ide-eh.c hwif->name, tmp); hwif 256 drivers/ide/ide-eh.c printk(KERN_INFO "%s: reset: success\n", hwif->name); hwif 259 drivers/ide/ide-eh.c ide_reset_report_error(hwif, tmp); hwif 265 drivers/ide/ide-eh.c hwif->polling = 0; /* done polling */ hwif 290 drivers/ide/ide-eh.c const struct ide_port_ops *port_ops = drive->hwif->port_ops; hwif 337 drivers/ide/ide-eh.c ide_hwif_t *hwif = drive->hwif; hwif 338 drivers/ide/ide-eh.c struct ide_io_ports *io_ports = &hwif->io_ports; hwif 339 drivers/ide/ide-eh.c const struct ide_tp_ops *tp_ops = hwif->tp_ops; hwif 346 drivers/ide/ide-eh.c spin_lock_irqsave(&hwif->lock, flags); hwif 349 drivers/ide/ide-eh.c BUG_ON(hwif->handler != NULL); hwif 356 drivers/ide/ide-eh.c tp_ops->exec_command(hwif, ATA_CMD_DEV_RESET); hwif 358 drivers/ide/ide-eh.c hwif->poll_timeout = jiffies + WAIT_WORSTCASE; hwif 359 drivers/ide/ide-eh.c hwif->polling = 1; hwif 361 drivers/ide/ide-eh.c spin_unlock_irqrestore(&hwif->lock, flags); hwif 371 drivers/ide/ide-eh.c ide_port_for_each_present_dev(i, tdrive, hwif) { hwif 381 drivers/ide/ide-eh.c spin_unlock_irqrestore(&hwif->lock, flags); hwif 383 drivers/ide/ide-eh.c spin_lock_irqsave(&hwif->lock, flags); hwif 391 drivers/ide/ide-eh.c ide_port_for_each_dev(i, tdrive, hwif) hwif 395 drivers/ide/ide-eh.c spin_unlock_irqrestore(&hwif->lock, flags); hwif 409 drivers/ide/ide-eh.c tp_ops->write_devctl(hwif, ATA_SRST | ATA_NIEN | ATA_DEVCTL_OBS); hwif 413 drivers/ide/ide-eh.c tp_ops->write_devctl(hwif, hwif 418 drivers/ide/ide-eh.c hwif->poll_timeout = jiffies + WAIT_WORSTCASE; hwif 419 drivers/ide/ide-eh.c hwif->polling = 1; hwif 427 drivers/ide/ide-eh.c port_ops = hwif->port_ops; hwif 431 drivers/ide/ide-eh.c spin_unlock_irqrestore(&hwif->lock, flags); hwif 137 drivers/ide/ide-floppy.c unsigned int done = blk_rq_bytes(drive->hwif->rq); hwif 219 drivers/ide/ide-floppy_ioctl.c ide_hwif_t *hwif = drive->hwif; hwif 224 drivers/ide/ide-floppy_ioctl.c stat = hwif->tp_ops->read_status(hwif); hwif 389 drivers/ide/ide-gd.c g = alloc_disk_node(IDE_DISK_MINORS, hwif_to_node(drive->hwif)); hwif 42 drivers/ide/ide-io-std.c void ide_exec_command(ide_hwif_t *hwif, u8 cmd) hwif 44 drivers/ide/ide-io-std.c if (hwif->host_flags & IDE_HFLAG_MMIO) hwif 45 drivers/ide/ide-io-std.c writeb(cmd, (void __iomem *)hwif->io_ports.command_addr); hwif 47 drivers/ide/ide-io-std.c outb(cmd, hwif->io_ports.command_addr); hwif 51 drivers/ide/ide-io-std.c u8 ide_read_status(ide_hwif_t *hwif) hwif 53 drivers/ide/ide-io-std.c if (hwif->host_flags & IDE_HFLAG_MMIO) hwif 54 drivers/ide/ide-io-std.c return readb((void __iomem *)hwif->io_ports.status_addr); hwif 56 drivers/ide/ide-io-std.c return inb(hwif->io_ports.status_addr); hwif 60 drivers/ide/ide-io-std.c u8 ide_read_altstatus(ide_hwif_t *hwif) hwif 62 drivers/ide/ide-io-std.c if (hwif->host_flags & IDE_HFLAG_MMIO) hwif 63 drivers/ide/ide-io-std.c return readb((void __iomem *)hwif->io_ports.ctl_addr); hwif 65 drivers/ide/ide-io-std.c return inb(hwif->io_ports.ctl_addr); hwif 69 drivers/ide/ide-io-std.c void ide_write_devctl(ide_hwif_t *hwif, u8 ctl) hwif 71 drivers/ide/ide-io-std.c if (hwif->host_flags & IDE_HFLAG_MMIO) hwif 72 drivers/ide/ide-io-std.c writeb(ctl, (void __iomem *)hwif->io_ports.ctl_addr); hwif 74 drivers/ide/ide-io-std.c outb(ctl, hwif->io_ports.ctl_addr); hwif 80 drivers/ide/ide-io-std.c ide_hwif_t *hwif = drive->hwif; hwif 83 drivers/ide/ide-io-std.c if (hwif->host_flags & IDE_HFLAG_MMIO) hwif 84 drivers/ide/ide-io-std.c writeb(select, (void __iomem *)hwif->io_ports.device_addr); hwif 86 drivers/ide/ide-io-std.c outb(select, hwif->io_ports.device_addr); hwif 92 drivers/ide/ide-io-std.c ide_hwif_t *hwif = drive->hwif; hwif 93 drivers/ide/ide-io-std.c struct ide_io_ports *io_ports = &hwif->io_ports; hwif 95 drivers/ide/ide-io-std.c u8 mmio = (hwif->host_flags & IDE_HFLAG_MMIO) ? 1 : 0; hwif 119 drivers/ide/ide-io-std.c ide_hwif_t *hwif = drive->hwif; hwif 120 drivers/ide/ide-io-std.c struct ide_io_ports *io_ports = &hwif->io_ports; hwif 122 drivers/ide/ide-io-std.c u8 mmio = (hwif->host_flags & IDE_HFLAG_MMIO) ? 1 : 0; hwif 168 drivers/ide/ide-io-std.c ide_hwif_t *hwif = drive->hwif; hwif 169 drivers/ide/ide-io-std.c struct ide_io_ports *io_ports = &hwif->io_ports; hwif 173 drivers/ide/ide-io-std.c u8 mmio = (hwif->host_flags & IDE_HFLAG_MMIO) ? 1 : 0; hwif 212 drivers/ide/ide-io-std.c ide_hwif_t *hwif = drive->hwif; hwif 213 drivers/ide/ide-io-std.c struct ide_io_ports *io_ports = &hwif->io_ports; hwif 217 drivers/ide/ide-io-std.c u8 mmio = (hwif->host_flags & IDE_HFLAG_MMIO) ? 1 : 0; hwif 86 drivers/ide/ide-io.c const struct ide_tp_ops *tp_ops = drive->hwif->tp_ops; hwif 127 drivers/ide/ide-io.c ide_hwif_t *hwif = drive->hwif; hwif 128 drivers/ide/ide-io.c struct request *rq = hwif->rq; hwif 140 drivers/ide/ide-io.c hwif->rq = NULL; hwif 235 drivers/ide/ide-io.c ide_hwif_t *hwif = drive->hwif; hwif 236 drivers/ide/ide-io.c struct scatterlist *sg = hwif->sg_table; hwif 322 drivers/ide/ide-io.c drive->hwif->name, (unsigned long) rq); hwif 337 drivers/ide/ide-io.c drive->hwif->tp_ops->dev_select(drive); hwif 406 drivers/ide/ide-io.c static inline int ide_lock_port(ide_hwif_t *hwif) hwif 408 drivers/ide/ide-io.c if (hwif->busy) hwif 411 drivers/ide/ide-io.c hwif->busy = 1; hwif 416 drivers/ide/ide-io.c static inline void ide_unlock_port(ide_hwif_t *hwif) hwif 418 drivers/ide/ide-io.c hwif->busy = 0; hwif 421 drivers/ide/ide-io.c static inline int ide_lock_host(struct ide_host *host, ide_hwif_t *hwif) hwif 429 drivers/ide/ide-io.c host->get_lock(ide_intr, hwif); hwif 459 drivers/ide/ide-io.c ide_hwif_t *hwif = drive->hwif; hwif 460 drivers/ide/ide-io.c struct ide_host *host = hwif->host; hwif 471 drivers/ide/ide-io.c if (ide_lock_host(host, hwif)) hwif 474 drivers/ide/ide-io.c spin_lock_irq(&hwif->lock); hwif 476 drivers/ide/ide-io.c if (!ide_lock_port(hwif)) { hwif 479 drivers/ide/ide-io.c WARN_ON_ONCE(hwif->rq); hwif 481 drivers/ide/ide-io.c prev_port = hwif->host->cur_port; hwif 484 drivers/ide/ide-io.c ide_unlock_port(hwif); hwif 488 drivers/ide/ide-io.c if ((hwif->host->host_flags & IDE_HFLAG_SERIALIZE) && hwif 489 drivers/ide/ide-io.c hwif != prev_port) { hwif 503 drivers/ide/ide-io.c hwif->host->cur_port = hwif; hwif 505 drivers/ide/ide-io.c hwif->cur_dev = drive; hwif 525 drivers/ide/ide-io.c ide_unlock_port(hwif); hwif 530 drivers/ide/ide-io.c hwif->rq = rq; hwif 532 drivers/ide/ide-io.c spin_unlock_irq(&hwif->lock); hwif 534 drivers/ide/ide-io.c spin_lock_irq(&hwif->lock); hwif 537 drivers/ide/ide-io.c rq = hwif->rq; hwif 538 drivers/ide/ide-io.c hwif->rq = NULL; hwif 541 drivers/ide/ide-io.c ide_unlock_port(hwif); hwif 548 drivers/ide/ide-io.c spin_unlock_irq(&hwif->lock); hwif 556 drivers/ide/ide-io.c spin_unlock_irq(&hwif->lock); hwif 569 drivers/ide/ide-io.c ide_hwif_t *hwif = drive->hwif; hwif 571 drivers/ide/ide-io.c spin_lock_irq(&hwif->lock); hwif 573 drivers/ide/ide-io.c spin_unlock_irq(&hwif->lock); hwif 576 drivers/ide/ide-io.c spin_unlock_irq(&hwif->lock); hwif 584 drivers/ide/ide-io.c ide_hwif_t *hwif = drive->hwif; hwif 588 drivers/ide/ide-io.c return hwif->dma_ops->dma_test_irq(drive); hwif 590 drivers/ide/ide-io.c if (hwif->io_ports.ctl_addr && hwif 591 drivers/ide/ide-io.c (hwif->host_flags & IDE_HFLAG_BROKEN_ALTSTATUS) == 0) hwif 592 drivers/ide/ide-io.c stat = hwif->tp_ops->read_altstatus(hwif); hwif 595 drivers/ide/ide-io.c stat = hwif->tp_ops->read_status(hwif); hwif 621 drivers/ide/ide-io.c ide_hwif_t *hwif = from_timer(hwif, t, timer); hwif 629 drivers/ide/ide-io.c spin_lock_irqsave(&hwif->lock, flags); hwif 631 drivers/ide/ide-io.c handler = hwif->handler; hwif 633 drivers/ide/ide-io.c if (handler == NULL || hwif->req_gen != hwif->req_gen_timer) { hwif 641 drivers/ide/ide-io.c ide_expiry_t *expiry = hwif->expiry; hwif 644 drivers/ide/ide-io.c drive = hwif->cur_dev; hwif 650 drivers/ide/ide-io.c hwif->timer.expires = jiffies + wait; hwif 651 drivers/ide/ide-io.c hwif->req_gen_timer = hwif->req_gen; hwif 652 drivers/ide/ide-io.c add_timer(&hwif->timer); hwif 653 drivers/ide/ide-io.c spin_unlock_irqrestore(&hwif->lock, flags); hwif 657 drivers/ide/ide-io.c hwif->handler = NULL; hwif 658 drivers/ide/ide-io.c hwif->expiry = NULL; hwif 664 drivers/ide/ide-io.c spin_unlock(&hwif->lock); hwif 666 drivers/ide/ide-io.c disable_irq(hwif->irq); hwif 668 drivers/ide/ide-io.c if (hwif->polling) { hwif 672 drivers/ide/ide-io.c hwif->dma_ops->dma_lost_irq(drive); hwif 673 drivers/ide/ide-io.c if (hwif->port_ops && hwif->port_ops->clear_irq) hwif 674 drivers/ide/ide-io.c hwif->port_ops->clear_irq(drive); hwif 684 drivers/ide/ide-io.c hwif->tp_ops->read_status(hwif)); hwif 687 drivers/ide/ide-io.c spin_lock_irq(&hwif->lock); hwif 688 drivers/ide/ide-io.c enable_irq(hwif->irq); hwif 689 drivers/ide/ide-io.c if (startstop == ide_stopped && hwif->polling == 0) { hwif 690 drivers/ide/ide-io.c rq_in_flight = hwif->rq; hwif 691 drivers/ide/ide-io.c hwif->rq = NULL; hwif 692 drivers/ide/ide-io.c ide_unlock_port(hwif); hwif 696 drivers/ide/ide-io.c spin_unlock_irqrestore(&hwif->lock, flags); hwif 699 drivers/ide/ide-io.c ide_unlock_host(hwif->host); hwif 733 drivers/ide/ide-io.c static void unexpected_intr(int irq, ide_hwif_t *hwif) hwif 735 drivers/ide/ide-io.c u8 stat = hwif->tp_ops->read_status(hwif); hwif 746 drivers/ide/ide-io.c hwif->name, stat, count); hwif 778 drivers/ide/ide-io.c ide_hwif_t *hwif = (ide_hwif_t *)dev_id; hwif 779 drivers/ide/ide-io.c struct ide_host *host = hwif->host; hwif 789 drivers/ide/ide-io.c if (hwif != host->cur_port) hwif 793 drivers/ide/ide-io.c spin_lock_irqsave(&hwif->lock, flags); hwif 795 drivers/ide/ide-io.c if (hwif->port_ops && hwif->port_ops->test_irq && hwif 796 drivers/ide/ide-io.c hwif->port_ops->test_irq(hwif) == 0) hwif 799 drivers/ide/ide-io.c handler = hwif->handler; hwif 801 drivers/ide/ide-io.c if (handler == NULL || hwif->polling) { hwif 819 drivers/ide/ide-io.c unexpected_intr(irq, hwif); hwif 825 drivers/ide/ide-io.c (void)hwif->tp_ops->read_status(hwif); hwif 830 drivers/ide/ide-io.c drive = hwif->cur_dev; hwif 842 drivers/ide/ide-io.c hwif->handler = NULL; hwif 843 drivers/ide/ide-io.c hwif->expiry = NULL; hwif 844 drivers/ide/ide-io.c hwif->req_gen++; hwif 845 drivers/ide/ide-io.c del_timer(&hwif->timer); hwif 846 drivers/ide/ide-io.c spin_unlock(&hwif->lock); hwif 848 drivers/ide/ide-io.c if (hwif->port_ops && hwif->port_ops->clear_irq) hwif 849 drivers/ide/ide-io.c hwif->port_ops->clear_irq(drive); hwif 857 drivers/ide/ide-io.c spin_lock_irq(&hwif->lock); hwif 865 drivers/ide/ide-io.c if (startstop == ide_stopped && hwif->polling == 0) { hwif 866 drivers/ide/ide-io.c BUG_ON(hwif->handler); hwif 867 drivers/ide/ide-io.c rq_in_flight = hwif->rq; hwif 868 drivers/ide/ide-io.c hwif->rq = NULL; hwif 869 drivers/ide/ide-io.c ide_unlock_port(hwif); hwif 874 drivers/ide/ide-io.c spin_unlock_irqrestore(&hwif->lock, flags); hwif 877 drivers/ide/ide-io.c ide_unlock_host(hwif->host); hwif 887 drivers/ide/ide-io.c ide_hwif_t *hwif = drive->hwif; hwif 892 drivers/ide/ide-io.c hwif->tp_ops->output_data(drive, NULL, buf, min(4, len)); hwif 894 drivers/ide/ide-io.c hwif->tp_ops->input_data(drive, NULL, buf, min(4, len)); hwif 33 drivers/ide/ide-iops.c const struct ide_port_ops *port_ops = drive->hwif->port_ops; hwif 43 drivers/ide/ide-iops.c drive->hwif->tp_ops->tf_read(drive, &tf, IDE_VALID_ERROR); hwif 109 drivers/ide/ide-iops.c ide_hwif_t *hwif = drive->hwif; hwif 110 drivers/ide/ide-iops.c const struct ide_tp_ops *tp_ops = hwif->tp_ops; hwif 117 drivers/ide/ide-iops.c stat = tp_ops->read_status(hwif); hwif 125 drivers/ide/ide-iops.c while ((stat = tp_ops->read_status(hwif)) & ATA_BUSY) { hwif 132 drivers/ide/ide-iops.c stat = tp_ops->read_status(hwif); hwif 154 drivers/ide/ide-iops.c stat = tp_ops->read_status(hwif); hwif 236 drivers/ide/ide-iops.c ide_hwif_t *hwif = drive->hwif; hwif 240 drivers/ide/ide-iops.c if (hwif->cbl == ATA_CBL_SATA || hwif->cbl == ATA_CBL_PATA40_SHORT) hwif 250 drivers/ide/ide-iops.c if (hwif->cbl != ATA_CBL_PATA80 && !ivb) hwif 270 drivers/ide/ide-iops.c if (hwif->cbl == ATA_CBL_PATA80) hwif 285 drivers/ide/ide-iops.c hwif->cbl == ATA_CBL_PATA80 ? "drive" : "host"); hwif 350 drivers/ide/ide-iops.c ide_hwif_t *hwif = drive->hwif; hwif 351 drivers/ide/ide-iops.c const struct ide_tp_ops *tp_ops = hwif->tp_ops; hwif 358 drivers/ide/ide-iops.c if (hwif->dma_ops) /* check if host supports DMA */ hwif 359 drivers/ide/ide-iops.c hwif->dma_ops->dma_host_set(drive, 0); hwif 377 drivers/ide/ide-iops.c tp_ops->write_devctl(hwif, ATA_NIEN | ATA_DEVCTL_OBS); hwif 385 drivers/ide/ide-iops.c tp_ops->exec_command(hwif, ATA_CMD_SET_FEATURES); hwif 388 drivers/ide/ide-iops.c tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS); hwif 413 drivers/ide/ide-iops.c hwif->dma_ops->dma_host_set(drive, 1); hwif 414 drivers/ide/ide-iops.c else if (hwif->dma_ops) /* check if host supports DMA */ hwif 453 drivers/ide/ide-iops.c ide_hwif_t *hwif = drive->hwif; hwif 455 drivers/ide/ide-iops.c BUG_ON(hwif->handler); hwif 456 drivers/ide/ide-iops.c hwif->handler = handler; hwif 457 drivers/ide/ide-iops.c hwif->timer.expires = jiffies + timeout; hwif 458 drivers/ide/ide-iops.c hwif->req_gen_timer = hwif->req_gen; hwif 459 drivers/ide/ide-iops.c add_timer(&hwif->timer); hwif 465 drivers/ide/ide-iops.c ide_hwif_t *hwif = drive->hwif; hwif 468 drivers/ide/ide-iops.c spin_lock_irqsave(&hwif->lock, flags); hwif 470 drivers/ide/ide-iops.c spin_unlock_irqrestore(&hwif->lock, flags); hwif 490 drivers/ide/ide-iops.c ide_hwif_t *hwif = drive->hwif; hwif 493 drivers/ide/ide-iops.c spin_lock_irqsave(&hwif->lock, flags); hwif 498 drivers/ide/ide-iops.c hwif->tp_ops->exec_command(hwif, cmd->tf.command); hwif 506 drivers/ide/ide-iops.c spin_unlock_irqrestore(&hwif->lock, flags); hwif 513 drivers/ide/ide-iops.c int ide_wait_not_busy(ide_hwif_t *hwif, unsigned long timeout) hwif 523 drivers/ide/ide-iops.c stat = hwif->tp_ops->read_status(hwif); hwif 69 drivers/ide/ide-lib.c struct request *rq = drive->hwif->rq; hwif 142 drivers/ide/ide-lib.c drive->name, drive->hwif->cmd.tf.command); hwif 12 drivers/ide/ide-park.c ide_hwif_t *hwif = drive->hwif; hwif 18 drivers/ide/ide-park.c spin_lock_irq(&hwif->lock); hwif 25 drivers/ide/ide-park.c if (reset_timer && del_timer(&hwif->timer)) hwif 27 drivers/ide/ide-park.c spin_unlock_irq(&hwif->lock); hwif 33 drivers/ide/ide-park.c spin_unlock_irq(&hwif->lock); hwif 57 drivers/ide/ide-park.c spin_lock_irq(&hwif->lock); hwif 59 drivers/ide/ide-park.c spin_unlock_irq(&hwif->lock); hwif 96 drivers/ide/ide-park.c ide_hwif_t *hwif = drive->hwif; hwif 103 drivers/ide/ide-park.c spin_lock_irq(&hwif->lock); hwif 110 drivers/ide/ide-park.c spin_unlock_irq(&hwif->lock); hwif 10 drivers/ide/ide-pm.c ide_hwif_t *hwif = drive->hwif; hwif 15 drivers/ide/ide-pm.c if (ide_port_acpi(hwif)) { hwif 18 drivers/ide/ide-pm.c ide_acpi_get_timing(hwif); hwif 34 drivers/ide/ide-pm.c if (ret == 0 && ide_port_acpi(hwif)) { hwif 37 drivers/ide/ide-pm.c ide_acpi_set_state(hwif, 0); hwif 62 drivers/ide/ide-pm.c ide_hwif_t *hwif = drive->hwif; hwif 69 drivers/ide/ide-pm.c if (ide_port_acpi(hwif)) { hwif 72 drivers/ide/ide-pm.c ide_acpi_set_state(hwif, 1); hwif 73 drivers/ide/ide-pm.c ide_acpi_push_timing(hwif); hwif 171 drivers/ide/ide-pm.c if (drive->hwif->dma_ops == NULL) hwif 218 drivers/ide/ide-pm.c drive->hwif->rq = NULL; hwif 243 drivers/ide/ide-pm.c ide_hwif_t *hwif = drive->hwif; hwif 244 drivers/ide/ide-pm.c const struct ide_tp_ops *tp_ops = hwif->tp_ops; hwif 250 drivers/ide/ide-pm.c rc = ide_wait_not_busy(hwif, 35000); hwif 254 drivers/ide/ide-pm.c tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS); hwif 255 drivers/ide/ide-pm.c rc = ide_wait_not_busy(hwif, 100000); hwif 195 drivers/ide/ide-probe.c ide_hwif_t *hwif = drive->hwif; hwif 203 drivers/ide/ide-probe.c hwif->tp_ops->input_data(drive, NULL, id, SECTOR_SIZE); hwif 254 drivers/ide/ide-probe.c ide_hwif_t *hwif = drive->hwif; hwif 255 drivers/ide/ide-probe.c struct ide_io_ports *io_ports = &hwif->io_ports; hwif 256 drivers/ide/ide-probe.c const struct ide_tp_ops *tp_ops = hwif->tp_ops; hwif 266 drivers/ide/ide-probe.c tp_ops->write_devctl(hwif, ATA_NIEN | ATA_DEVCTL_OBS); hwif 275 drivers/ide/ide-probe.c (hwif->host_flags & IDE_HFLAG_BROKEN_ALTSTATUS) == 0) { hwif 276 drivers/ide/ide-probe.c a = tp_ops->read_altstatus(hwif); hwif 277 drivers/ide/ide-probe.c s = tp_ops->read_status(hwif); hwif 300 drivers/ide/ide-probe.c tp_ops->exec_command(hwif, cmd); hwif 315 drivers/ide/ide-probe.c s = tp_ops->read_status(hwif); hwif 324 drivers/ide/ide-probe.c (void)tp_ops->read_status(hwif); hwif 334 drivers/ide/ide-probe.c ide_hwif_t *hwif = drive->hwif; hwif 341 drivers/ide/ide-probe.c stat = altstatus ? hwif->tp_ops->read_altstatus(hwif) hwif 342 drivers/ide/ide-probe.c : hwif->tp_ops->read_status(hwif); hwif 356 drivers/ide/ide-probe.c drive->hwif->tp_ops->tf_read(drive, &tf, IDE_VALID_DEVICE); hwif 384 drivers/ide/ide-probe.c ide_hwif_t *hwif = drive->hwif; hwif 385 drivers/ide/ide-probe.c const struct ide_tp_ops *tp_ops = hwif->tp_ops; hwif 410 drivers/ide/ide-probe.c tp_ops->dev_select(hwif->devices[0]); hwif 418 drivers/ide/ide-probe.c stat = tp_ops->read_status(hwif); hwif 427 drivers/ide/ide-probe.c stat = tp_ops->read_status(hwif); hwif 438 drivers/ide/ide-probe.c tp_ops->exec_command(hwif, ATA_CMD_DEV_RESET); hwif 444 drivers/ide/ide-probe.c stat = tp_ops->read_status(hwif); hwif 455 drivers/ide/ide-probe.c tp_ops->dev_select(hwif->devices[0]); hwif 458 drivers/ide/ide-probe.c (void)tp_ops->read_status(hwif); hwif 540 drivers/ide/ide-probe.c ide_hwif_t *hwif = container_of(dev, ide_hwif_t, gendev); hwif 542 drivers/ide/ide-probe.c complete(&hwif->gendev_rel_comp); hwif 545 drivers/ide/ide-probe.c static int ide_register_port(ide_hwif_t *hwif) hwif 550 drivers/ide/ide-probe.c dev_set_name(&hwif->gendev, "%s", hwif->name); hwif 551 drivers/ide/ide-probe.c dev_set_drvdata(&hwif->gendev, hwif); hwif 552 drivers/ide/ide-probe.c if (hwif->gendev.parent == NULL) hwif 553 drivers/ide/ide-probe.c hwif->gendev.parent = hwif->dev; hwif 554 drivers/ide/ide-probe.c hwif->gendev.release = hwif_release_dev; hwif 556 drivers/ide/ide-probe.c ret = device_register(&hwif->gendev); hwif 563 drivers/ide/ide-probe.c hwif->portdev = device_create(ide_port_class, &hwif->gendev, hwif 564 drivers/ide/ide-probe.c MKDEV(0, 0), hwif, "%s", hwif->name); hwif 565 drivers/ide/ide-probe.c if (IS_ERR(hwif->portdev)) { hwif 566 drivers/ide/ide-probe.c ret = PTR_ERR(hwif->portdev); hwif 567 drivers/ide/ide-probe.c device_unregister(&hwif->gendev); hwif 599 drivers/ide/ide-probe.c static int ide_port_wait_ready(ide_hwif_t *hwif) hwif 601 drivers/ide/ide-probe.c const struct ide_tp_ops *tp_ops = hwif->tp_ops; hwif 605 drivers/ide/ide-probe.c printk(KERN_DEBUG "Probing IDE interface %s...\n", hwif->name); hwif 615 drivers/ide/ide-probe.c rc = ide_wait_not_busy(hwif, 35000); hwif 620 drivers/ide/ide-probe.c ide_port_for_each_dev(i, drive, hwif) { hwif 625 drivers/ide/ide-probe.c tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS); hwif 627 drivers/ide/ide-probe.c rc = ide_wait_not_busy(hwif, 35000); hwif 637 drivers/ide/ide-probe.c tp_ops->dev_select(hwif->devices[0]); hwif 653 drivers/ide/ide-probe.c ide_drive_t *dev0 = dev1->hwif->devices[0]; hwif 680 drivers/ide/ide-probe.c static int ide_probe_port(ide_hwif_t *hwif) hwif 686 drivers/ide/ide-probe.c BUG_ON(hwif->present); hwif 688 drivers/ide/ide-probe.c if ((hwif->devices[0]->dev_flags & IDE_DFLAG_NOPROBE) && hwif 689 drivers/ide/ide-probe.c (hwif->devices[1]->dev_flags & IDE_DFLAG_NOPROBE)) hwif 696 drivers/ide/ide-probe.c irqd = hwif->irq; hwif 698 drivers/ide/ide-probe.c disable_irq(hwif->irq); hwif 700 drivers/ide/ide-probe.c if (ide_port_wait_ready(hwif) == -EBUSY) hwif 701 drivers/ide/ide-probe.c printk(KERN_DEBUG "%s: Wait for ready failed before probe !\n", hwif->name); hwif 707 drivers/ide/ide-probe.c ide_port_for_each_dev(i, drive, hwif) { hwif 723 drivers/ide/ide-probe.c static void ide_port_tune_devices(ide_hwif_t *hwif) hwif 725 drivers/ide/ide-probe.c const struct ide_port_ops *port_ops = hwif->port_ops; hwif 729 drivers/ide/ide-probe.c ide_port_for_each_present_dev(i, drive, hwif) { hwif 736 drivers/ide/ide-probe.c ide_port_for_each_present_dev(i, drive, hwif) { hwif 741 drivers/ide/ide-probe.c if (hwif->dma_ops) hwif 766 drivers/ide/ide-probe.c ide_hwif_t *hwif = drive->hwif; hwif 785 drivers/ide/ide-probe.c set->numa_node = hwif_to_node(hwif); hwif 801 drivers/ide/ide-probe.c if (hwif->rqsize < max_sectors) hwif 802 drivers/ide/ide-probe.c max_sectors = hwif->rqsize; hwif 832 drivers/ide/ide-probe.c static int ide_port_setup_devices(ide_hwif_t *hwif) hwif 838 drivers/ide/ide-probe.c ide_port_for_each_present_dev(i, drive, hwif) { hwif 855 drivers/ide/ide-probe.c ide_hwif_t *hwif; hwif 858 drivers/ide/ide-probe.c ide_host_for_each_port(i, hwif, host) { hwif 859 drivers/ide/ide-probe.c if (hwif == NULL) hwif 863 drivers/ide/ide-probe.c hwif->tp_ops->read_status(hwif); hwif 866 drivers/ide/ide-probe.c if (hwif->io_ports.ctl_addr) hwif 867 drivers/ide/ide-probe.c hwif->tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS); hwif 874 drivers/ide/ide-probe.c static int init_irq (ide_hwif_t *hwif) hwif 876 drivers/ide/ide-probe.c struct ide_io_ports *io_ports = &hwif->io_ports; hwif 877 drivers/ide/ide-probe.c struct ide_host *host = hwif->host; hwif 885 drivers/ide/ide-probe.c if (request_irq(hwif->irq, irq_handler, sa, hwif->name, hwif)) hwif 889 drivers/ide/ide-probe.c printk(KERN_INFO "%s at 0x%03lx-0x%03lx,0x%03lx on irq %d", hwif->name, hwif 891 drivers/ide/ide-probe.c io_ports->ctl_addr, hwif->irq); hwif 893 drivers/ide/ide-probe.c printk(KERN_INFO "%s at 0x%08lx on irq %d", hwif->name, hwif 894 drivers/ide/ide-probe.c io_ports->data_addr, hwif->irq); hwif 896 drivers/ide/ide-probe.c if (hwif->host->host_flags & IDE_HFLAG_SERIALIZE) hwif 913 drivers/ide/ide-probe.c ide_hwif_t *hwif = data; hwif 915 drivers/ide/ide-probe.c ide_drive_t *drive = hwif->devices[unit]; hwif 966 drivers/ide/ide-probe.c ide_hwif_t *hwif = drive->hwif; hwif 969 drivers/ide/ide-probe.c disk->major = hwif->major; hwif 971 drivers/ide/ide-probe.c sprintf(disk->disk_name, "hd%c", 'a' + hwif->index * MAX_DRIVES + unit); hwif 995 drivers/ide/ide-probe.c static int hwif_init(ide_hwif_t *hwif) hwif 997 drivers/ide/ide-probe.c if (!hwif->irq) { hwif 998 drivers/ide/ide-probe.c printk(KERN_ERR "%s: disabled, no IRQ\n", hwif->name); hwif 1002 drivers/ide/ide-probe.c if (register_blkdev(hwif->major, hwif->name)) hwif 1005 drivers/ide/ide-probe.c if (!hwif->sg_max_nents) hwif 1006 drivers/ide/ide-probe.c hwif->sg_max_nents = PRD_ENTRIES; hwif 1008 drivers/ide/ide-probe.c hwif->sg_table = kmalloc_array(hwif->sg_max_nents, hwif 1011 drivers/ide/ide-probe.c if (!hwif->sg_table) { hwif 1012 drivers/ide/ide-probe.c printk(KERN_ERR "%s: unable to allocate SG table.\n", hwif->name); hwif 1016 drivers/ide/ide-probe.c sg_init_table(hwif->sg_table, hwif->sg_max_nents); hwif 1018 drivers/ide/ide-probe.c if (init_irq(hwif)) { hwif 1020 drivers/ide/ide-probe.c hwif->name, hwif->irq); hwif 1024 drivers/ide/ide-probe.c blk_register_region(MKDEV(hwif->major, 0), MAX_DRIVES << PARTN_BITS, hwif 1025 drivers/ide/ide-probe.c THIS_MODULE, ata_probe, ata_lock, hwif); hwif 1029 drivers/ide/ide-probe.c unregister_blkdev(hwif->major, hwif->name); hwif 1033 drivers/ide/ide-probe.c static void hwif_register_devices(ide_hwif_t *hwif) hwif 1038 drivers/ide/ide-probe.c ide_port_for_each_present_dev(i, drive, hwif) { hwif 1042 drivers/ide/ide-probe.c dev_set_name(dev, "%u.%u", hwif->index, i); hwif 1044 drivers/ide/ide-probe.c dev->parent = &hwif->gendev; hwif 1055 drivers/ide/ide-probe.c static void ide_port_init_devices(ide_hwif_t *hwif) hwif 1057 drivers/ide/ide-probe.c const struct ide_port_ops *port_ops = hwif->port_ops; hwif 1061 drivers/ide/ide-probe.c ide_port_for_each_dev(i, drive, hwif) { hwif 1062 drivers/ide/ide-probe.c drive->dn = i + hwif->channel * 2; hwif 1064 drivers/ide/ide-probe.c if (hwif->host_flags & IDE_HFLAG_IO_32BIT) hwif 1066 drivers/ide/ide-probe.c if (hwif->host_flags & IDE_HFLAG_NO_IO_32BIT) hwif 1068 drivers/ide/ide-probe.c if (hwif->host_flags & IDE_HFLAG_UNMASK_IRQS) hwif 1070 drivers/ide/ide-probe.c if (hwif->host_flags & IDE_HFLAG_NO_UNMASK_IRQS) hwif 1080 drivers/ide/ide-probe.c static void ide_init_port(ide_hwif_t *hwif, unsigned int port, hwif 1083 drivers/ide/ide-probe.c hwif->channel = port; hwif 1085 drivers/ide/ide-probe.c hwif->chipset = d->chipset ? d->chipset : ide_pci; hwif 1088 drivers/ide/ide-probe.c d->init_iops(hwif); hwif 1091 drivers/ide/ide-probe.c hwif->host_flags |= d->host_flags; hwif 1092 drivers/ide/ide-probe.c hwif->pio_mask = d->pio_mask; hwif 1095 drivers/ide/ide-probe.c hwif->tp_ops = d->tp_ops; hwif 1098 drivers/ide/ide-probe.c if ((hwif->host_flags & IDE_HFLAG_DTC2278) == 0 || hwif->channel == 0) hwif 1099 drivers/ide/ide-probe.c hwif->port_ops = d->port_ops; hwif 1101 drivers/ide/ide-probe.c hwif->swdma_mask = d->swdma_mask; hwif 1102 drivers/ide/ide-probe.c hwif->mwdma_mask = d->mwdma_mask; hwif 1103 drivers/ide/ide-probe.c hwif->ultra_mask = d->udma_mask; hwif 1108 drivers/ide/ide-probe.c hwif->dma_ops = d->dma_ops; hwif 1111 drivers/ide/ide-probe.c rc = d->init_dma(hwif, d); hwif 1113 drivers/ide/ide-probe.c rc = ide_hwif_setup_dma(hwif, d); hwif 1116 drivers/ide/ide-probe.c printk(KERN_INFO "%s: DMA disabled\n", hwif->name); hwif 1118 drivers/ide/ide-probe.c hwif->dma_ops = NULL; hwif 1119 drivers/ide/ide-probe.c hwif->dma_base = 0; hwif 1120 drivers/ide/ide-probe.c hwif->swdma_mask = 0; hwif 1121 drivers/ide/ide-probe.c hwif->mwdma_mask = 0; hwif 1122 drivers/ide/ide-probe.c hwif->ultra_mask = 0; hwif 1127 drivers/ide/ide-probe.c ((d->host_flags & IDE_HFLAG_SERIALIZE_DMA) && hwif->dma_base)) hwif 1128 drivers/ide/ide-probe.c hwif->host->host_flags |= IDE_HFLAG_SERIALIZE; hwif 1131 drivers/ide/ide-probe.c hwif->rqsize = d->max_sectors; hwif 1133 drivers/ide/ide-probe.c if ((hwif->host_flags & IDE_HFLAG_NO_LBA48) || hwif 1134 drivers/ide/ide-probe.c (hwif->host_flags & IDE_HFLAG_NO_LBA48_DMA)) hwif 1135 drivers/ide/ide-probe.c hwif->rqsize = 256; hwif 1137 drivers/ide/ide-probe.c hwif->rqsize = 65536; hwif 1142 drivers/ide/ide-probe.c d->init_hwif(hwif); hwif 1145 drivers/ide/ide-probe.c static void ide_port_cable_detect(ide_hwif_t *hwif) hwif 1147 drivers/ide/ide-probe.c const struct ide_port_ops *port_ops = hwif->port_ops; hwif 1149 drivers/ide/ide-probe.c if (port_ops && port_ops->cable_detect && (hwif->ultra_mask & 0x78)) { hwif 1150 drivers/ide/ide-probe.c if (hwif->cbl != ATA_CBL_PATA40_SHORT) hwif 1151 drivers/ide/ide-probe.c hwif->cbl = port_ops->cable_detect(hwif); hwif 1161 drivers/ide/ide-probe.c ide_hwif_t *hwif = drive->hwif; hwif 1169 drivers/ide/ide-probe.c spin_lock_irq(&hwif->lock); hwif 1174 drivers/ide/ide-probe.c spin_unlock_irq(&hwif->lock); hwif 1176 drivers/ide/ide-probe.c spin_lock_irq(&hwif->lock); hwif 1178 drivers/ide/ide-probe.c spin_unlock_irq(&hwif->lock); hwif 1190 drivers/ide/ide-probe.c static void ide_port_init_devices_data(ide_hwif_t *hwif) hwif 1195 drivers/ide/ide-probe.c ide_port_for_each_dev(i, drive, hwif) { hwif 1196 drivers/ide/ide-probe.c u8 j = (hwif->index * MAX_DRIVES) + i; hwif 1205 drivers/ide/ide-probe.c drive->hwif = hwif; hwif 1223 drivers/ide/ide-probe.c static void ide_init_port_data(ide_hwif_t *hwif, unsigned int index) hwif 1226 drivers/ide/ide-probe.c hwif->index = index; hwif 1227 drivers/ide/ide-probe.c hwif->major = ide_hwif_to_major[index]; hwif 1229 drivers/ide/ide-probe.c hwif->name[0] = 'i'; hwif 1230 drivers/ide/ide-probe.c hwif->name[1] = 'd'; hwif 1231 drivers/ide/ide-probe.c hwif->name[2] = 'e'; hwif 1232 drivers/ide/ide-probe.c hwif->name[3] = '0' + index; hwif 1234 drivers/ide/ide-probe.c spin_lock_init(&hwif->lock); hwif 1236 drivers/ide/ide-probe.c timer_setup(&hwif->timer, ide_timer_expiry, 0); hwif 1238 drivers/ide/ide-probe.c init_completion(&hwif->gendev_rel_comp); hwif 1240 drivers/ide/ide-probe.c hwif->tp_ops = &default_tp_ops; hwif 1242 drivers/ide/ide-probe.c ide_port_init_devices_data(hwif); hwif 1245 drivers/ide/ide-probe.c static void ide_init_port_hw(ide_hwif_t *hwif, struct ide_hw *hw) hwif 1247 drivers/ide/ide-probe.c memcpy(&hwif->io_ports, &hw->io_ports, sizeof(hwif->io_ports)); hwif 1248 drivers/ide/ide-probe.c hwif->irq = hw->irq; hwif 1249 drivers/ide/ide-probe.c hwif->dev = hw->dev; hwif 1250 drivers/ide/ide-probe.c hwif->gendev.parent = hw->parent ? hw->parent : hw->dev; hwif 1251 drivers/ide/ide-probe.c hwif->config_data = hw->config; hwif 1303 drivers/ide/ide-probe.c static void ide_port_free_devices(ide_hwif_t *hwif) hwif 1308 drivers/ide/ide-probe.c ide_port_for_each_dev(i, drive, hwif) { hwif 1314 drivers/ide/ide-probe.c static int ide_port_alloc_devices(ide_hwif_t *hwif, int node) hwif 1336 drivers/ide/ide-probe.c hwif->devices[i] = drive; hwif 1343 drivers/ide/ide-probe.c ide_port_free_devices(hwif); hwif 1360 drivers/ide/ide-probe.c ide_hwif_t *hwif; hwif 1366 drivers/ide/ide-probe.c hwif = kzalloc_node(sizeof(*hwif), GFP_KERNEL, node); hwif 1367 drivers/ide/ide-probe.c if (hwif == NULL) hwif 1370 drivers/ide/ide-probe.c if (ide_port_alloc_devices(hwif, node) < 0) { hwif 1371 drivers/ide/ide-probe.c kfree(hwif); hwif 1379 drivers/ide/ide-probe.c ide_port_free_devices(hwif); hwif 1380 drivers/ide/ide-probe.c kfree(hwif); hwif 1384 drivers/ide/ide-probe.c ide_init_port_data(hwif, idx); hwif 1386 drivers/ide/ide-probe.c hwif->host = host; hwif 1388 drivers/ide/ide-probe.c host->ports[i] = hwif; hwif 1411 drivers/ide/ide-probe.c static void ide_port_free(ide_hwif_t *hwif) hwif 1413 drivers/ide/ide-probe.c ide_port_free_devices(hwif); hwif 1414 drivers/ide/ide-probe.c ide_free_port_slot(hwif->index); hwif 1415 drivers/ide/ide-probe.c kfree(hwif); hwif 1418 drivers/ide/ide-probe.c static void ide_disable_port(ide_hwif_t *hwif) hwif 1420 drivers/ide/ide-probe.c struct ide_host *host = hwif->host; hwif 1423 drivers/ide/ide-probe.c printk(KERN_INFO "%s: disabling port\n", hwif->name); hwif 1426 drivers/ide/ide-probe.c if (host->ports[i] == hwif) { hwif 1432 drivers/ide/ide-probe.c ide_port_free(hwif); hwif 1438 drivers/ide/ide-probe.c ide_hwif_t *hwif, *mate = NULL; hwif 1444 drivers/ide/ide-probe.c ide_host_for_each_port(i, hwif, host) { hwif 1445 drivers/ide/ide-probe.c if (hwif == NULL) { hwif 1450 drivers/ide/ide-probe.c ide_init_port_hw(hwif, hws[i]); hwif 1451 drivers/ide/ide-probe.c ide_port_apply_params(hwif); hwif 1454 drivers/ide/ide-probe.c hwif->mate = mate; hwif 1455 drivers/ide/ide-probe.c mate->mate = hwif; hwif 1458 drivers/ide/ide-probe.c mate = (i & 1) ? NULL : hwif; hwif 1460 drivers/ide/ide-probe.c ide_init_port(hwif, i & 1, d); hwif 1461 drivers/ide/ide-probe.c ide_port_cable_detect(hwif); hwif 1463 drivers/ide/ide-probe.c hwif->port_flags |= IDE_PFLAG_PROBING; hwif 1465 drivers/ide/ide-probe.c ide_port_init_devices(hwif); hwif 1468 drivers/ide/ide-probe.c ide_host_for_each_port(i, hwif, host) { hwif 1469 drivers/ide/ide-probe.c if (hwif == NULL) hwif 1472 drivers/ide/ide-probe.c if (ide_probe_port(hwif) == 0) hwif 1473 drivers/ide/ide-probe.c hwif->present = 1; hwif 1475 drivers/ide/ide-probe.c hwif->port_flags &= ~IDE_PFLAG_PROBING; hwif 1477 drivers/ide/ide-probe.c if ((hwif->host_flags & IDE_HFLAG_4DRIVES) == 0 || hwif 1478 drivers/ide/ide-probe.c hwif->mate == NULL || hwif->mate->present == 0) { hwif 1479 drivers/ide/ide-probe.c if (ide_register_port(hwif)) { hwif 1480 drivers/ide/ide-probe.c ide_disable_port(hwif); hwif 1485 drivers/ide/ide-probe.c if (hwif->present) hwif 1486 drivers/ide/ide-probe.c ide_port_tune_devices(hwif); hwif 1491 drivers/ide/ide-probe.c ide_host_for_each_port(i, hwif, host) { hwif 1492 drivers/ide/ide-probe.c if (hwif == NULL) hwif 1495 drivers/ide/ide-probe.c if (hwif_init(hwif) == 0) { hwif 1497 drivers/ide/ide-probe.c "interface\n", hwif->name); hwif 1498 drivers/ide/ide-probe.c device_unregister(hwif->portdev); hwif 1499 drivers/ide/ide-probe.c device_unregister(&hwif->gendev); hwif 1500 drivers/ide/ide-probe.c ide_disable_port(hwif); hwif 1504 drivers/ide/ide-probe.c if (hwif->present) hwif 1505 drivers/ide/ide-probe.c if (ide_port_setup_devices(hwif) == 0) { hwif 1506 drivers/ide/ide-probe.c hwif->present = 0; hwif 1512 drivers/ide/ide-probe.c ide_acpi_init_port(hwif); hwif 1514 drivers/ide/ide-probe.c if (hwif->present) hwif 1515 drivers/ide/ide-probe.c ide_acpi_port_init_devices(hwif); hwif 1518 drivers/ide/ide-probe.c ide_host_for_each_port(i, hwif, host) { hwif 1519 drivers/ide/ide-probe.c if (hwif == NULL) hwif 1522 drivers/ide/ide-probe.c ide_sysfs_register_port(hwif); hwif 1523 drivers/ide/ide-probe.c ide_proc_register_port(hwif); hwif 1525 drivers/ide/ide-probe.c if (hwif->present) { hwif 1526 drivers/ide/ide-probe.c ide_proc_port_register_devices(hwif); hwif 1527 drivers/ide/ide-probe.c hwif_register_devices(hwif); hwif 1558 drivers/ide/ide-probe.c static void __ide_port_unregister_devices(ide_hwif_t *hwif) hwif 1563 drivers/ide/ide-probe.c ide_port_for_each_present_dev(i, drive, hwif) { hwif 1569 drivers/ide/ide-probe.c void ide_port_unregister_devices(ide_hwif_t *hwif) hwif 1572 drivers/ide/ide-probe.c __ide_port_unregister_devices(hwif); hwif 1573 drivers/ide/ide-probe.c hwif->present = 0; hwif 1574 drivers/ide/ide-probe.c ide_port_init_devices_data(hwif); hwif 1593 drivers/ide/ide-probe.c static void ide_unregister(ide_hwif_t *hwif) hwif 1600 drivers/ide/ide-probe.c if (hwif->present) { hwif 1601 drivers/ide/ide-probe.c __ide_port_unregister_devices(hwif); hwif 1602 drivers/ide/ide-probe.c hwif->present = 0; hwif 1605 drivers/ide/ide-probe.c ide_proc_unregister_port(hwif); hwif 1607 drivers/ide/ide-probe.c if (!hwif->host->get_lock) hwif 1608 drivers/ide/ide-probe.c free_irq(hwif->irq, hwif); hwif 1610 drivers/ide/ide-probe.c device_unregister(hwif->portdev); hwif 1611 drivers/ide/ide-probe.c device_unregister(&hwif->gendev); hwif 1612 drivers/ide/ide-probe.c wait_for_completion(&hwif->gendev_rel_comp); hwif 1617 drivers/ide/ide-probe.c blk_unregister_region(MKDEV(hwif->major, 0), MAX_DRIVES<<PARTN_BITS); hwif 1618 drivers/ide/ide-probe.c kfree(hwif->sg_table); hwif 1619 drivers/ide/ide-probe.c unregister_blkdev(hwif->major, hwif->name); hwif 1621 drivers/ide/ide-probe.c ide_release_dma_engine(hwif); hwif 1628 drivers/ide/ide-probe.c ide_hwif_t *hwif; hwif 1631 drivers/ide/ide-probe.c ide_host_for_each_port(i, hwif, host) { hwif 1632 drivers/ide/ide-probe.c if (hwif) hwif 1633 drivers/ide/ide-probe.c ide_port_free(hwif); hwif 1642 drivers/ide/ide-probe.c ide_hwif_t *hwif; hwif 1645 drivers/ide/ide-probe.c ide_host_for_each_port(i, hwif, host) { hwif 1646 drivers/ide/ide-probe.c if (hwif) hwif 1647 drivers/ide/ide-probe.c ide_unregister(hwif); hwif 1654 drivers/ide/ide-probe.c void ide_port_scan(ide_hwif_t *hwif) hwif 1658 drivers/ide/ide-probe.c ide_port_apply_params(hwif); hwif 1659 drivers/ide/ide-probe.c ide_port_cable_detect(hwif); hwif 1661 drivers/ide/ide-probe.c hwif->port_flags |= IDE_PFLAG_PROBING; hwif 1663 drivers/ide/ide-probe.c ide_port_init_devices(hwif); hwif 1665 drivers/ide/ide-probe.c rc = ide_probe_port(hwif); hwif 1667 drivers/ide/ide-probe.c hwif->port_flags &= ~IDE_PFLAG_PROBING; hwif 1672 drivers/ide/ide-probe.c hwif->present = 1; hwif 1674 drivers/ide/ide-probe.c ide_port_tune_devices(hwif); hwif 1675 drivers/ide/ide-probe.c ide_port_setup_devices(hwif); hwif 1676 drivers/ide/ide-probe.c ide_acpi_port_init_devices(hwif); hwif 1677 drivers/ide/ide-probe.c hwif_register_devices(hwif); hwif 1678 drivers/ide/ide-probe.c ide_proc_port_register_devices(hwif); hwif 37 drivers/ide/ide-proc.c ide_hwif_t *hwif = (ide_hwif_t *) m->private; hwif 40 drivers/ide/ide-proc.c switch (hwif->chipset) { hwif 62 drivers/ide/ide-proc.c ide_hwif_t *hwif = (ide_hwif_t *) m->private; hwif 64 drivers/ide/ide-proc.c if (hwif && hwif->mate) hwif 65 drivers/ide/ide-proc.c seq_printf(m, "%s\n", hwif->mate->name); hwif 73 drivers/ide/ide-proc.c ide_hwif_t *hwif = (ide_hwif_t *) m->private; hwif 75 drivers/ide/ide-proc.c seq_printf(m, "%c\n", hwif->channel ? '1' : '0'); hwif 533 drivers/ide/ide-proc.c void ide_proc_port_register_devices(ide_hwif_t *hwif) hwif 536 drivers/ide/ide-proc.c struct proc_dir_entry *parent = hwif->proc; hwif 541 drivers/ide/ide-proc.c ide_port_for_each_dev(i, drive, hwif) { hwif 564 drivers/ide/ide-proc.c remove_proc_entry(drive->name, drive->hwif->proc); hwif 576 drivers/ide/ide-proc.c void ide_proc_register_port(ide_hwif_t *hwif) hwif 578 drivers/ide/ide-proc.c if (!hwif->proc) { hwif 579 drivers/ide/ide-proc.c hwif->proc = proc_mkdir(hwif->name, proc_ide_root); hwif 581 drivers/ide/ide-proc.c if (!hwif->proc) hwif 584 drivers/ide/ide-proc.c ide_add_proc_entries(hwif->proc, hwif_entries, hwif); hwif 588 drivers/ide/ide-proc.c void ide_proc_unregister_port(ide_hwif_t *hwif) hwif 590 drivers/ide/ide-proc.c if (hwif->proc) { hwif 591 drivers/ide/ide-proc.c ide_remove_proc_entries(hwif->proc, hwif_entries); hwif 592 drivers/ide/ide-proc.c remove_proc_entry(hwif->name, proc_ide_root); hwif 593 drivers/ide/ide-proc.c hwif->proc = NULL; hwif 97 drivers/ide/ide-sysfs.c ide_hwif_t *hwif = dev_get_drvdata(portdev); hwif 102 drivers/ide/ide-sysfs.c ide_port_unregister_devices(hwif); hwif 113 drivers/ide/ide-sysfs.c ide_hwif_t *hwif = dev_get_drvdata(portdev); hwif 118 drivers/ide/ide-sysfs.c ide_port_unregister_devices(hwif); hwif 119 drivers/ide/ide-sysfs.c ide_port_scan(hwif); hwif 132 drivers/ide/ide-sysfs.c int ide_sysfs_register_port(ide_hwif_t *hwif) hwif 137 drivers/ide/ide-sysfs.c rc = device_create_file(hwif->portdev, ide_port_attrs[i]); hwif 272 drivers/ide/ide-tape.c struct request *rq = drive->hwif->rq; hwif 330 drivers/ide/ide-tape.c struct request *rq = drive->hwif->rq; hwif 383 drivers/ide/ide-tape.c drive->hwif->rq->cmd[0], tape->dsc_poll_freq); hwif 444 drivers/ide/ide-tape.c struct request *rq = drive->hwif->rq; hwif 517 drivers/ide/ide-tape.c ide_hwif_t *hwif = drive->hwif; hwif 522 drivers/ide/ide-tape.c stat = hwif->tp_ops->read_status(hwif); hwif 569 drivers/ide/ide-tape.c ide_hwif_t *hwif = drive->hwif; hwif 594 drivers/ide/ide-tape.c stat = hwif->tp_ops->read_status(hwif); hwif 1757 drivers/ide/ide-tape.c if (drive->hwif->host_flags & IDE_HFLAG_NO_DSC) { hwif 31 drivers/ide/ide-taskfile.c ide_hwif_t *hwif = drive->hwif; hwif 32 drivers/ide/ide-taskfile.c const struct ide_tp_ops *tp_ops = hwif->tp_ops; hwif 35 drivers/ide/ide-taskfile.c tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS); hwif 40 drivers/ide/ide-taskfile.c tp_ops->write_devctl(hwif, ATA_HOB | ATA_DEVCTL_OBS); hwif 82 drivers/ide/ide-taskfile.c ide_hwif_t *hwif = drive->hwif; hwif 83 drivers/ide/ide-taskfile.c struct ide_cmd *cmd = &hwif->cmd; hwif 86 drivers/ide/ide-taskfile.c const struct ide_tp_ops *tp_ops = hwif->tp_ops; hwif 87 drivers/ide/ide-taskfile.c const struct ide_dma_ops *dma_ops = hwif->dma_ops; hwif 103 drivers/ide/ide-taskfile.c tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS); hwif 127 drivers/ide/ide-taskfile.c tp_ops->exec_command(hwif, tf->command); hwif 141 drivers/ide/ide-taskfile.c hwif->expiry = dma_ops->dma_timer_expiry; hwif 153 drivers/ide/ide-taskfile.c ide_hwif_t *hwif = drive->hwif; hwif 154 drivers/ide/ide-taskfile.c struct ide_cmd *cmd = &hwif->cmd; hwif 163 drivers/ide/ide-taskfile.c stat = hwif->tp_ops->read_status(hwif); hwif 190 drivers/ide/ide-taskfile.c struct request *rq = hwif->rq; hwif 203 drivers/ide/ide-taskfile.c ide_hwif_t *hwif = drive->hwif; hwif 212 drivers/ide/ide-taskfile.c stat = hwif->tp_ops->read_status(hwif); hwif 229 drivers/ide/ide-taskfile.c ide_hwif_t *hwif = drive->hwif; hwif 230 drivers/ide/ide-taskfile.c struct scatterlist *sg = hwif->sg_table; hwif 264 drivers/ide/ide-taskfile.c hwif->tp_ops->output_data(drive, cmd, buf, nr_bytes); hwif 266 drivers/ide/ide-taskfile.c hwif->tp_ops->input_data(drive, cmd, buf, nr_bytes); hwif 320 drivers/ide/ide-taskfile.c struct request *rq = drive->hwif->rq; hwif 340 drivers/ide/ide-taskfile.c ide_hwif_t *hwif = drive->hwif; hwif 341 drivers/ide/ide-taskfile.c struct ide_cmd *cmd = &drive->hwif->cmd; hwif 342 drivers/ide/ide-taskfile.c u8 stat = hwif->tp_ops->read_status(hwif); hwif 71 drivers/ide/ide-xfer-mode.c if ((drive->hwif->host_flags & IDE_HFLAG_PIO_NO_BLACKLIST) == 0) hwif 117 drivers/ide/ide-xfer-mode.c if (pio == 0 && (drive->hwif->port_flags & IDE_PFLAG_PROBING)) hwif 125 drivers/ide/ide-xfer-mode.c ide_hwif_t *hwif = drive->hwif; hwif 126 drivers/ide/ide-xfer-mode.c const struct ide_port_ops *port_ops = hwif->port_ops; hwif 128 drivers/ide/ide-xfer-mode.c if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE) hwif 140 drivers/ide/ide-xfer-mode.c port_ops->set_pio_mode(hwif, drive); hwif 144 drivers/ide/ide-xfer-mode.c if (hwif->host_flags & IDE_HFLAG_POST_SET_MODE) { hwif 148 drivers/ide/ide-xfer-mode.c port_ops->set_pio_mode(hwif, drive); hwif 152 drivers/ide/ide-xfer-mode.c port_ops->set_pio_mode(hwif, drive); hwif 159 drivers/ide/ide-xfer-mode.c ide_hwif_t *hwif = drive->hwif; hwif 160 drivers/ide/ide-xfer-mode.c const struct ide_port_ops *port_ops = hwif->port_ops; hwif 162 drivers/ide/ide-xfer-mode.c if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE) hwif 168 drivers/ide/ide-xfer-mode.c if (hwif->host_flags & IDE_HFLAG_POST_SET_MODE) { hwif 172 drivers/ide/ide-xfer-mode.c port_ops->set_dma_mode(hwif, drive); hwif 176 drivers/ide/ide-xfer-mode.c port_ops->set_dma_mode(hwif, drive); hwif 185 drivers/ide/ide-xfer-mode.c ide_hwif_t *hwif = drive->hwif; hwif 186 drivers/ide/ide-xfer-mode.c const struct ide_port_ops *port_ops = hwif->port_ops; hwif 190 drivers/ide/ide-xfer-mode.c (hwif->host_flags & IDE_HFLAG_NO_SET_MODE)) hwif 193 drivers/ide/ide-xfer-mode.c BUG_ON(hwif->pio_mask == 0x00); hwif 195 drivers/ide/ide-xfer-mode.c host_pio = fls(hwif->pio_mask) - 1; hwif 225 drivers/ide/ide-xfer-mode.c ide_hwif_t *hwif = drive->hwif; hwif 229 drivers/ide/ide-xfer-mode.c if (hwif->pio_mask) hwif 230 drivers/ide/ide-xfer-mode.c mode = fls(hwif->pio_mask) - 1 + XFER_PIO_0; hwif 252 drivers/ide/ide-xfer-mode.c ide_hwif_t *hwif = drive->hwif; hwif 253 drivers/ide/ide-xfer-mode.c const struct ide_port_ops *port_ops = hwif->port_ops; hwif 256 drivers/ide/ide-xfer-mode.c (hwif->host_flags & IDE_HFLAG_NO_SET_MODE)) hwif 80 drivers/ide/ide.c host_dev = drive->hwif->host->dev[0]; hwif 102 drivers/ide/ide.c struct device *host_dev = drive->hwif->host->dev[0]; hwif 283 drivers/ide/ide.c int i = drive->hwif->index * MAX_DRIVES + unit; hwif 355 drivers/ide/ide.c void ide_port_apply_params(ide_hwif_t *hwif) hwif 360 drivers/ide/ide.c if (ide_ignore_cable & (1 << hwif->index)) { hwif 362 drivers/ide/ide.c hwif->name); hwif 363 drivers/ide/ide.c hwif->cbl = ATA_CBL_PATA40_SHORT; hwif 366 drivers/ide/ide.c ide_port_for_each_dev(i, drive, hwif) hwif 40 drivers/ide/it8172.c static void it8172_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 42 drivers/ide/it8172.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 80 drivers/ide/it8172.c static void it8172_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 82 drivers/ide/it8172.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 108 drivers/ide/it8172.c it8172_set_pio_mode(hwif, drive); hwif 27 drivers/ide/it8213.c static void it8213_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 29 drivers/ide/it8213.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 84 drivers/ide/it8213.c static void it8213_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 86 drivers/ide/it8213.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 140 drivers/ide/it8213.c it8213_set_pio_mode(hwif, drive); hwif 144 drivers/ide/it8213.c static u8 it8213_cable_detect(ide_hwif_t *hwif) hwif 146 drivers/ide/it8213.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 114 drivers/ide/it821x.c ide_hwif_t *hwif = drive->hwif; hwif 115 drivers/ide/it821x.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 116 drivers/ide/it821x.c struct it821x_dev *itdev = ide_get_hwifdata(hwif); hwif 117 drivers/ide/it821x.c int channel = hwif->channel; hwif 140 drivers/ide/it821x.c ide_hwif_t *hwif = drive->hwif; hwif 141 drivers/ide/it821x.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 142 drivers/ide/it821x.c struct it821x_dev *itdev = ide_get_hwifdata(hwif); hwif 143 drivers/ide/it821x.c int channel = hwif->channel; hwif 170 drivers/ide/it821x.c ide_hwif_t *hwif = drive->hwif; hwif 171 drivers/ide/it821x.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 172 drivers/ide/it821x.c struct it821x_dev *itdev = ide_get_hwifdata(hwif); hwif 208 drivers/ide/it821x.c v &= ~(1 << (1 + hwif->channel)); hwif 209 drivers/ide/it821x.c v |= sel << (1 + hwif->channel); hwif 239 drivers/ide/it821x.c static void it821x_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 241 drivers/ide/it821x.c struct it821x_dev *itdev = ide_get_hwifdata(hwif); hwif 283 drivers/ide/it821x.c ide_hwif_t *hwif = drive->hwif; hwif 284 drivers/ide/it821x.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 285 drivers/ide/it821x.c struct it821x_dev *itdev = (void *)ide_get_hwifdata(hwif); hwif 286 drivers/ide/it821x.c u8 unit = drive->dn & 1, channel = hwif->channel, conf; hwif 320 drivers/ide/it821x.c ide_hwif_t *hwif = drive->hwif; hwif 321 drivers/ide/it821x.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 322 drivers/ide/it821x.c struct it821x_dev *itdev = ide_get_hwifdata(hwif); hwif 323 drivers/ide/it821x.c u8 unit = drive->dn & 1, channel = hwif->channel, conf; hwif 363 drivers/ide/it821x.c ide_hwif_t *hwif = drive->hwif; hwif 364 drivers/ide/it821x.c struct it821x_dev *itdev = ide_get_hwifdata(hwif); hwif 385 drivers/ide/it821x.c ide_hwif_t *hwif = drive->hwif; hwif 386 drivers/ide/it821x.c struct it821x_dev *itdev = ide_get_hwifdata(hwif); hwif 403 drivers/ide/it821x.c static void it821x_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 427 drivers/ide/it821x.c static u8 it821x_cable_detect(ide_hwif_t *hwif) hwif 444 drivers/ide/it821x.c struct it821x_dev *itdev = ide_get_hwifdata(drive->hwif); hwif 531 drivers/ide/it821x.c static void init_hwif_it821x(ide_hwif_t *hwif) hwif 533 drivers/ide/it821x.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 536 drivers/ide/it821x.c struct it821x_dev *idev = itdevs + hwif->channel; hwif 539 drivers/ide/it821x.c ide_set_hwifdata(hwif, idev); hwif 544 drivers/ide/it821x.c hwif->host_flags |= IDE_HFLAG_NO_ATAPI_DMA; hwif 547 drivers/ide/it821x.c hwif->rqsize = 256; hwif 551 drivers/ide/it821x.c if (conf & (1 << (1 + hwif->channel))) hwif 566 drivers/ide/it821x.c hwif->host_flags |= IDE_HFLAG_NO_ATAPI_DMA; hwif 574 drivers/ide/it821x.c hwif->dma_ops = &it821x_pass_through_dma_ops; hwif 576 drivers/ide/it821x.c hwif->host_flags |= IDE_HFLAG_NO_SET_MODE; hwif 578 drivers/ide/it821x.c if (hwif->dma_base == 0) hwif 581 drivers/ide/it821x.c hwif->ultra_mask = ATA_UDMA6; hwif 582 drivers/ide/it821x.c hwif->mwdma_mask = ATA_MWDMA2; hwif 587 drivers/ide/it821x.c hwif->ultra_mask = 0; hwif 29 drivers/ide/jmicron.c static u8 jmicron_cable_detect(ide_hwif_t *hwif) hwif 31 drivers/ide/jmicron.c struct pci_dev *pdev = to_pci_dev(hwif->dev); hwif 36 drivers/ide/jmicron.c int port = hwif->channel; hwif 83 drivers/ide/jmicron.c static void jmicron_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 95 drivers/ide/jmicron.c static void jmicron_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 57 drivers/ide/macide.c int macide_test_irq(ide_hwif_t *hwif) hwif 55 drivers/ide/ns87415.c static u8 superio_read_status(ide_hwif_t *hwif) hwif 57 drivers/ide/ns87415.c return superio_ide_inb(hwif->io_ports.status_addr); hwif 60 drivers/ide/ns87415.c static u8 superio_dma_sff_read_status(ide_hwif_t *hwif) hwif 62 drivers/ide/ns87415.c return superio_ide_inb(hwif->dma_base + ATA_DMA_STATUS); hwif 68 drivers/ide/ns87415.c struct ide_io_ports *io_ports = &drive->hwif->io_ports; hwif 100 drivers/ide/ns87415.c static void superio_init_iops(struct hwif_s *hwif) hwif 102 drivers/ide/ns87415.c struct pci_dev *pdev = to_pci_dev(hwif->dev); hwif 104 drivers/ide/ns87415.c u8 port = hwif->channel, tmp; hwif 125 drivers/ide/ns87415.c ide_hwif_t *hwif = drive->hwif; hwif 126 drivers/ide/ns87415.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 127 drivers/ide/ns87415.c unsigned int bit, other, new, *old = (unsigned int *) hwif->select_data; hwif 134 drivers/ide/ns87415.c bit = 1 << (8 + hwif->channel); hwif 142 drivers/ide/ns87415.c bit = 1 << (20 + (drive->dn & 1) + (hwif->channel << 1)); hwif 143 drivers/ide/ns87415.c other = 1 << (20 + (1 - (drive->dn & 1)) + (hwif->channel << 1)); hwif 176 drivers/ide/ns87415.c outb(drive->select | ATA_DEVICE_OBS, drive->hwif->io_ports.device_addr); hwif 187 drivers/ide/ns87415.c ide_hwif_t *hwif = drive->hwif; hwif 190 drivers/ide/ns87415.c dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); hwif 192 drivers/ide/ns87415.c dma_cmd = inb(hwif->dma_base + ATA_DMA_CMD); hwif 194 drivers/ide/ns87415.c outb(dma_cmd & ~1, hwif->dma_base + ATA_DMA_CMD); hwif 196 drivers/ide/ns87415.c dma_cmd = inb(hwif->dma_base + ATA_DMA_CMD); hwif 197 drivers/ide/ns87415.c outb(dma_cmd | 6, hwif->dma_base + ATA_DMA_CMD); hwif 205 drivers/ide/ns87415.c static void init_hwif_ns87415 (ide_hwif_t *hwif) hwif 207 drivers/ide/ns87415.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 225 drivers/ide/ns87415.c using_inta = progif & (1 << (hwif->channel << 1)); hwif 227 drivers/ide/ns87415.c using_inta = ctrl & (1 << (4 + hwif->channel)); hwif 228 drivers/ide/ns87415.c if (hwif->mate) { hwif 229 drivers/ide/ns87415.c hwif->select_data = hwif->mate->select_data; hwif 231 drivers/ide/ns87415.c hwif->select_data = (unsigned long) hwif 236 drivers/ide/ns87415.c *((unsigned int *)hwif->select_data) = ctrl; hwif 251 drivers/ide/ns87415.c outb(12, hwif->io_ports.ctl_addr); hwif 253 drivers/ide/ns87415.c outb(8, hwif->io_ports.ctl_addr); hwif 256 drivers/ide/ns87415.c stat = hwif->tp_ops->read_status(hwif); hwif 264 drivers/ide/ns87415.c hwif->irq = pci_get_legacy_ide_irq(dev, hwif->channel); hwif 266 drivers/ide/ns87415.c if (!hwif->dma_base) hwif 269 drivers/ide/ns87415.c outb(0x60, hwif->dma_base + ATA_DMA_STATUS); hwif 66 drivers/ide/opti621.c static void opti621_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 94 drivers/ide/opti621.c reg_base = hwif->io_ports.data_addr; hwif 108 drivers/ide/opti621.c printk(KERN_INFO "%s: CLK = %d MHz\n", hwif->name, clk ? 25 : 33); hwif 178 drivers/ide/palm_bk3710.c static void palm_bk3710_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 181 drivers/ide/palm_bk3710.c void __iomem *base = (void __iomem *)hwif->dma_base; hwif 194 drivers/ide/palm_bk3710.c static void palm_bk3710_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 199 drivers/ide/palm_bk3710.c void __iomem *base = (void __iomem *)hwif->dma_base; hwif 267 drivers/ide/palm_bk3710.c static u8 palm_bk3710_cable_detect(ide_hwif_t *hwif) hwif 272 drivers/ide/palm_bk3710.c static int palm_bk3710_init_dma(ide_hwif_t *hwif, const struct ide_port_info *d) hwif 274 drivers/ide/palm_bk3710.c printk(KERN_INFO " %s: MMIO-DMA\n", hwif->name); hwif 276 drivers/ide/palm_bk3710.c if (ide_allocate_dma_engine(hwif)) hwif 279 drivers/ide/palm_bk3710.c hwif->dma_base = hwif->io_ports.data_addr - IDE_PALM_ATA_PRI_REG_OFFSET; hwif 67 drivers/ide/pdc202xx_new.c static u8 get_indexed_reg(ide_hwif_t *hwif, u8 index) hwif 71 drivers/ide/pdc202xx_new.c outb(index, hwif->dma_base + 1); hwif 72 drivers/ide/pdc202xx_new.c value = inb(hwif->dma_base + 3); hwif 83 drivers/ide/pdc202xx_new.c static void set_indexed_reg(ide_hwif_t *hwif, u8 index, u8 value) hwif 85 drivers/ide/pdc202xx_new.c outb(index, hwif->dma_base + 1); hwif 86 drivers/ide/pdc202xx_new.c outb(value, hwif->dma_base + 3); hwif 128 drivers/ide/pdc202xx_new.c static void pdcnew_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 130 drivers/ide/pdc202xx_new.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 146 drivers/ide/pdc202xx_new.c set_indexed_reg(hwif, 0x10 + adj, hwif 148 drivers/ide/pdc202xx_new.c set_indexed_reg(hwif, 0x11 + adj, hwif 150 drivers/ide/pdc202xx_new.c set_indexed_reg(hwif, 0x12 + adj, hwif 153 drivers/ide/pdc202xx_new.c set_indexed_reg(hwif, 0x0e + adj, hwif 155 drivers/ide/pdc202xx_new.c set_indexed_reg(hwif, 0x0f + adj, hwif 160 drivers/ide/pdc202xx_new.c u8 tmp = get_indexed_reg(hwif, 0x10 + adj); hwif 162 drivers/ide/pdc202xx_new.c set_indexed_reg(hwif, 0x10 + adj, tmp & 0x7f); hwif 166 drivers/ide/pdc202xx_new.c static void pdcnew_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 168 drivers/ide/pdc202xx_new.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 173 drivers/ide/pdc202xx_new.c set_indexed_reg(hwif, 0x0c + adj, pio_timings[pio].reg0c); hwif 174 drivers/ide/pdc202xx_new.c set_indexed_reg(hwif, 0x0d + adj, pio_timings[pio].reg0d); hwif 175 drivers/ide/pdc202xx_new.c set_indexed_reg(hwif, 0x13 + adj, pio_timings[pio].reg13); hwif 179 drivers/ide/pdc202xx_new.c static u8 pdcnew_cable_detect(ide_hwif_t *hwif) hwif 181 drivers/ide/pdc202xx_new.c if (get_indexed_reg(hwif, 0x0b) & 0x04) hwif 193 drivers/ide/pdc202xx_new.c drive->hwif->channel ? "Secondary" : "Primary"); hwif 25 drivers/ide/pdc202xx_old.c static void pdc202xx_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 27 drivers/ide/pdc202xx_old.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 80 drivers/ide/pdc202xx_old.c static void pdc202xx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 83 drivers/ide/pdc202xx_old.c pdc202xx_set_mode(hwif, drive); hwif 86 drivers/ide/pdc202xx_old.c static int pdc202xx_test_irq(ide_hwif_t *hwif) hwif 88 drivers/ide/pdc202xx_old.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 92 drivers/ide/pdc202xx_old.c if (hwif->channel) { hwif 107 drivers/ide/pdc202xx_old.c static u8 pdc2026x_cable_detect(ide_hwif_t *hwif) hwif 109 drivers/ide/pdc202xx_old.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 110 drivers/ide/pdc202xx_old.c u16 CIS, mask = hwif->channel ? (1 << 11) : (1 << 10); hwif 126 drivers/ide/pdc202xx_old.c static void pdc_old_enable_66MHz_clock(ide_hwif_t *hwif) hwif 128 drivers/ide/pdc202xx_old.c unsigned long clock_reg = hwif->extra_base + 0x01; hwif 131 drivers/ide/pdc202xx_old.c outb(clock | (hwif->channel ? 0x08 : 0x02), clock_reg); hwif 134 drivers/ide/pdc202xx_old.c static void pdc_old_disable_66MHz_clock(ide_hwif_t *hwif) hwif 136 drivers/ide/pdc202xx_old.c unsigned long clock_reg = hwif->extra_base + 0x01; hwif 139 drivers/ide/pdc202xx_old.c outb(clock & ~(hwif->channel ? 0x08 : 0x02), clock_reg); hwif 142 drivers/ide/pdc202xx_old.c static void pdc2026x_init_hwif(ide_hwif_t *hwif) hwif 144 drivers/ide/pdc202xx_old.c pdc_old_disable_66MHz_clock(hwif); hwif 150 drivers/ide/pdc202xx_old.c pdc_old_enable_66MHz_clock(drive->hwif); hwif 152 drivers/ide/pdc202xx_old.c ide_hwif_t *hwif = drive->hwif; hwif 153 drivers/ide/pdc202xx_old.c struct request *rq = hwif->rq; hwif 154 drivers/ide/pdc202xx_old.c unsigned long high_16 = hwif->extra_base - 16; hwif 155 drivers/ide/pdc202xx_old.c unsigned long atapi_reg = high_16 + (hwif->channel ? 0x24 : 0x20); hwif 159 drivers/ide/pdc202xx_old.c outb(clock | (hwif->channel ? 0x08 : 0x02), high_16 + 0x11); hwif 172 drivers/ide/pdc202xx_old.c ide_hwif_t *hwif = drive->hwif; hwif 173 drivers/ide/pdc202xx_old.c unsigned long high_16 = hwif->extra_base - 16; hwif 174 drivers/ide/pdc202xx_old.c unsigned long atapi_reg = high_16 + (hwif->channel ? 0x24 : 0x20); hwif 179 drivers/ide/pdc202xx_old.c outb(clock & ~(hwif->channel ? 0x08:0x02), high_16 + 0x11); hwif 182 drivers/ide/pdc202xx_old.c pdc_old_disable_66MHz_clock(drive->hwif); hwif 68 drivers/ide/piix.c static void piix_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 70 drivers/ide/piix.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 72 drivers/ide/piix.c int master_port = hwif->channel ? 0x42 : 0x40; hwif 111 drivers/ide/piix.c slave_data &= hwif->channel ? 0x0f : 0xf0; hwif 113 drivers/ide/piix.c (hwif->channel ? 4 : 0); hwif 137 drivers/ide/piix.c static void piix_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 139 drivers/ide/piix.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 140 drivers/ide/piix.c u8 maslave = hwif->channel ? 0x42 : 0x40; hwif 195 drivers/ide/piix.c piix_set_pio_mode(hwif, drive); hwif 227 drivers/ide/piix.c ide_hwif_t *hwif = drive->hwif; hwif 235 drivers/ide/piix.c if (drive->waiting_for_dma || hwif->dma_base == 0) hwif 239 drivers/ide/piix.c dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); hwif 241 drivers/ide/piix.c outb(dma_stat, hwif->dma_base + ATA_DMA_STATUS); hwif 271 drivers/ide/piix.c static u8 piix_cable_detect(ide_hwif_t *hwif) hwif 273 drivers/ide/piix.c struct pci_dev *pdev = to_pci_dev(hwif->dev); hwif 275 drivers/ide/piix.c u8 reg54h = 0, mask = hwif->channel ? 0xc0 : 0x30; hwif 300 drivers/ide/piix.c static void init_hwif_piix(ide_hwif_t *hwif) hwif 302 drivers/ide/piix.c if (!hwif->dma_base) hwif 306 drivers/ide/piix.c hwif->ultra_mask = hwif->mwdma_mask = hwif->swdma_mask = 0; hwif 61 drivers/ide/pmac.c ide_hwif_t *hwif; hwif 403 drivers/ide/pmac.c ((void __iomem *)((drive)->hwif->io_ports.data_addr + (x))) hwif 412 drivers/ide/pmac.c ide_hwif_t *hwif = drive->hwif; hwif 413 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); hwif 429 drivers/ide/pmac.c ide_hwif_t *hwif = drive->hwif; hwif 430 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); hwif 448 drivers/ide/pmac.c ide_hwif_t *hwif = drive->hwif; hwif 449 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); hwif 464 drivers/ide/pmac.c (void __iomem *)drive->hwif->io_ports.device_addr); hwif 472 drivers/ide/pmac.c (void __iomem *)drive->hwif->io_ports.device_addr); hwif 475 drivers/ide/pmac.c static void pmac_exec_command(ide_hwif_t *hwif, u8 cmd) hwif 477 drivers/ide/pmac.c writeb(cmd, (void __iomem *)hwif->io_ports.command_addr); hwif 478 drivers/ide/pmac.c (void)readl((void __iomem *)(hwif->io_ports.data_addr hwif 482 drivers/ide/pmac.c static void pmac_write_devctl(ide_hwif_t *hwif, u8 ctl) hwif 484 drivers/ide/pmac.c writeb(ctl, (void __iomem *)hwif->io_ports.ctl_addr); hwif 485 drivers/ide/pmac.c (void)readl((void __iomem *)(hwif->io_ports.data_addr hwif 492 drivers/ide/pmac.c static void pmac_ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 494 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); hwif 773 drivers/ide/pmac.c static void pmac_ide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 775 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); hwif 910 drivers/ide/pmac.c static u8 pmac_ide_cable_detect(ide_hwif_t *hwif) hwif 912 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); hwif 943 drivers/ide/pmac.c ide_hwif_t *hwif = drive->hwif; hwif 944 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); hwif 1022 drivers/ide/pmac.c ide_hwif_t *hwif; hwif 1078 drivers/ide/pmac.c hwif = pmif->hwif = host->ports[0]; hwif 1106 drivers/ide/pmac.c pmif->hwif = NULL; hwif 1358 drivers/ide/pmac.c if (!pmif->hwif->present) hwif 1359 drivers/ide/pmac.c ide_port_scan(pmif->hwif); hwif 1362 drivers/ide/pmac.c if (pmif->hwif->present) hwif 1363 drivers/ide/pmac.c ide_port_unregister_devices(pmif->hwif); hwif 1455 drivers/ide/pmac.c ide_hwif_t *hwif = drive->hwif; hwif 1456 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); hwif 1472 drivers/ide/pmac.c sg = hwif->sg_table; hwif 1517 drivers/ide/pmac.c writel(hwif->dmatable_dma, &dma->cmdptr); hwif 1532 drivers/ide/pmac.c ide_hwif_t *hwif = drive->hwif; hwif 1533 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); hwif 1557 drivers/ide/pmac.c ide_hwif_t *hwif = drive->hwif; hwif 1558 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); hwif 1574 drivers/ide/pmac.c ide_hwif_t *hwif = drive->hwif; hwif 1575 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); hwif 1598 drivers/ide/pmac.c ide_hwif_t *hwif = drive->hwif; hwif 1599 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); hwif 1638 drivers/ide/pmac.c hwif->index); hwif 1652 drivers/ide/pmac.c ide_hwif_t *hwif = drive->hwif; hwif 1653 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); hwif 1673 drivers/ide/pmac.c static int pmac_ide_init_dma(ide_hwif_t *hwif, const struct ide_port_info *d) hwif 1675 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); hwif 1676 drivers/ide/pmac.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 1690 drivers/ide/pmac.c &hwif->dmatable_dma, GFP_KERNEL); hwif 1693 drivers/ide/pmac.c hwif->name); hwif 1697 drivers/ide/pmac.c hwif->sg_max_nents = MAX_DCMDS; hwif 76 drivers/ide/q40ide.c unsigned long data_addr = drive->hwif->io_ports.data_addr; hwif 89 drivers/ide/q40ide.c unsigned long data_addr = drive->hwif->io_ports.data_addr; hwif 101 drivers/ide/qd65xx.c outb(drive->select | ATA_DEVICE_OBS, drive->hwif->io_ports.device_addr); hwif 112 drivers/ide/qd65xx.c static u8 qd6500_compute_timing (ide_hwif_t *hwif, int active_time, int recovery_time) hwif 192 drivers/ide/qd65xx.c static void qd6500_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 208 drivers/ide/qd65xx.c qd_set_timing(drive, qd6500_compute_timing(drive->hwif, hwif 212 drivers/ide/qd65xx.c static void qd6580_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 219 drivers/ide/qd65xx.c u8 base = (hwif->config_data & 0xff00) >> 8; hwif 252 drivers/ide/qd65xx.c if (!hwif->channel && drive->media != ide_disk) { hwif 256 drivers/ide/qd65xx.c drive->name, hwif->name); hwif 292 drivers/ide/qd65xx.c ide_hwif_t *hwif = drive->hwif; hwif 293 drivers/ide/qd65xx.c u8 base = (hwif->config_data & 0xff00) >> 8; hwif 294 drivers/ide/qd65xx.c u8 config = QD_CONFIG(hwif); hwif 301 drivers/ide/qd65xx.c ide_hwif_t *hwif = drive->hwif; hwif 303 drivers/ide/qd65xx.c u8 base = (hwif->config_data & 0xff00) >> 8; hwif 304 drivers/ide/qd65xx.c u8 config = QD_CONFIG(hwif); hwif 306 drivers/ide/qd65xx.c if (hwif->host_flags & IDE_HFLAG_SINGLE) { hwif 310 drivers/ide/qd65xx.c t2 = t1 = hwif->channel ? QD6580_DEF_DATA2 : QD6580_DEF_DATA; hwif 33 drivers/ide/qd65xx.h #define QD_CONFIG(hwif) ((hwif)->config_data & 0x00ff) hwif 83 drivers/ide/sc1200.c ide_hwif_t *hwif = drive->hwif; hwif 84 drivers/ide/sc1200.c struct pci_dev *pdev = to_pci_dev(hwif->dev); hwif 85 drivers/ide/sc1200.c unsigned int basereg = hwif->channel ? 0x50 : 0x40, format = 0; hwif 106 drivers/ide/sc1200.c ide_hwif_t *hwif = drive->hwif; hwif 109 drivers/ide/sc1200.c u8 mask = hwif->ultra_mask; hwif 126 drivers/ide/sc1200.c static void sc1200_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 128 drivers/ide/sc1200.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 131 drivers/ide/sc1200.c unsigned int basereg = hwif->channel ? 0x50 : 0x40; hwif 173 drivers/ide/sc1200.c ide_hwif_t *hwif = drive->hwif; hwif 174 drivers/ide/sc1200.c unsigned long dma_base = hwif->dma_base; hwif 197 drivers/ide/sc1200.c static void sc1200_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 218 drivers/ide/sc1200.c hwif->dma_ops->dma_host_set(drive, 1); hwif 68 drivers/ide/serverworks.c struct pci_dev *dev = to_pci_dev(drive->hwif->dev); hwif 110 drivers/ide/serverworks.c static void svwks_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 115 drivers/ide/serverworks.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 135 drivers/ide/serverworks.c static void svwks_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 141 drivers/ide/serverworks.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 150 drivers/ide/serverworks.c pci_read_config_byte(dev, (0x56|hwif->channel), &ultra_timing); hwif 164 drivers/ide/serverworks.c pci_write_config_byte(dev, (0x56|hwif->channel), ultra_timing); hwif 268 drivers/ide/serverworks.c static u8 ata66_svwks_svwks(ide_hwif_t *hwif) hwif 280 drivers/ide/serverworks.c static u8 ata66_svwks_dell(ide_hwif_t *hwif) hwif 282 drivers/ide/serverworks.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 288 drivers/ide/serverworks.c return ((1 << (hwif->channel + 14)) & hwif 299 drivers/ide/serverworks.c static u8 ata66_svwks_cobalt(ide_hwif_t *hwif) hwif 301 drivers/ide/serverworks.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 306 drivers/ide/serverworks.c return ((1 << (hwif->channel + 14)) & hwif 311 drivers/ide/serverworks.c static u8 svwks_cable_detect(ide_hwif_t *hwif) hwif 313 drivers/ide/serverworks.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 317 drivers/ide/serverworks.c return ata66_svwks_svwks (hwif); hwif 321 drivers/ide/serverworks.c return ata66_svwks_dell (hwif); hwif 325 drivers/ide/serverworks.c return ata66_svwks_cobalt (hwif); hwif 80 drivers/ide/setup-pci.c unsigned long ide_pci_dma_base(ide_hwif_t *hwif, const struct ide_port_info *d) hwif 82 drivers/ide/setup-pci.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 85 drivers/ide/setup-pci.c if (hwif->host_flags & IDE_HFLAG_MMIO) hwif 86 drivers/ide/setup-pci.c return hwif->dma_base; hwif 88 drivers/ide/setup-pci.c if (hwif->mate && hwif->mate->dma_base) { hwif 89 drivers/ide/setup-pci.c dma_base = hwif->mate->dma_base - (hwif->channel ? 0 : 8); hwif 102 drivers/ide/setup-pci.c if (hwif->channel) hwif 109 drivers/ide/setup-pci.c int ide_pci_check_simplex(ide_hwif_t *hwif, const struct ide_port_info *d) hwif 111 drivers/ide/setup-pci.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 118 drivers/ide/setup-pci.c if (ide_pci_clear_simplex(hwif->dma_base, d->name)) hwif 134 drivers/ide/setup-pci.c dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); hwif 135 drivers/ide/setup-pci.c if ((dma_stat & 0x80) && hwif->mate && hwif->mate->dma_base) { hwif 354 drivers/ide/setup-pci.c int ide_hwif_setup_dma(ide_hwif_t *hwif, const struct ide_port_info *d) hwif 356 drivers/ide/setup-pci.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 361 drivers/ide/setup-pci.c unsigned long base = ide_pci_dma_base(hwif, d); hwif 366 drivers/ide/setup-pci.c hwif->dma_base = base; hwif 368 drivers/ide/setup-pci.c if (hwif->dma_ops == NULL) hwif 369 drivers/ide/setup-pci.c hwif->dma_ops = &sff_dma_ops; hwif 371 drivers/ide/setup-pci.c if (ide_pci_check_simplex(hwif, d) < 0) hwif 377 drivers/ide/setup-pci.c if (hwif->host_flags & IDE_HFLAG_MMIO) hwif 378 drivers/ide/setup-pci.c printk(KERN_INFO " %s: MMIO-DMA\n", hwif->name); hwif 381 drivers/ide/setup-pci.c hwif->name, base, base + 7); hwif 383 drivers/ide/setup-pci.c hwif->extra_base = base + (hwif->channel ? 8 : 16); hwif 385 drivers/ide/setup-pci.c if (ide_allocate_dma_engine(hwif)) hwif 76 drivers/ide/siimage.c static inline int is_sata(ide_hwif_t *hwif) hwif 78 drivers/ide/siimage.c return pdev_is_sata(to_pci_dev(hwif->dev)); hwif 92 drivers/ide/siimage.c static unsigned long siimage_selreg(ide_hwif_t *hwif, int r) hwif 94 drivers/ide/siimage.c unsigned long base = (unsigned long)hwif->hwif_data; hwif 97 drivers/ide/siimage.c if (hwif->host_flags & IDE_HFLAG_MMIO) hwif 98 drivers/ide/siimage.c base += hwif->channel << 6; hwif 100 drivers/ide/siimage.c base += hwif->channel << 4; hwif 116 drivers/ide/siimage.c ide_hwif_t *hwif = drive->hwif; hwif 117 drivers/ide/siimage.c unsigned long base = (unsigned long)hwif->hwif_data; hwif 121 drivers/ide/siimage.c if (hwif->host_flags & IDE_HFLAG_MMIO) hwif 122 drivers/ide/siimage.c base += hwif->channel << 6; hwif 124 drivers/ide/siimage.c base += hwif->channel << 4; hwif 197 drivers/ide/siimage.c ide_hwif_t *hwif = drive->hwif; hwif 198 drivers/ide/siimage.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 199 drivers/ide/siimage.c unsigned long base = (unsigned long)hwif->hwif_data; hwif 202 drivers/ide/siimage.c base += (hwif->host_flags & IDE_HFLAG_MMIO) ? 0x4A : 0x8A; hwif 239 drivers/ide/siimage.c static void sil_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 244 drivers/ide/siimage.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 249 drivers/ide/siimage.c unsigned long tfaddr = siimage_selreg(hwif, 0x02); hwif 250 drivers/ide/siimage.c unsigned long base = (unsigned long)hwif->hwif_data; hwif 253 drivers/ide/siimage.c u8 mmio = (hwif->host_flags & IDE_HFLAG_MMIO) ? 1 : 0; hwif 254 drivers/ide/siimage.c u8 addr_mask = hwif->channel ? (mmio ? 0xF4 : 0x84) hwif 298 drivers/ide/siimage.c static void sil_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 304 drivers/ide/siimage.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 305 drivers/ide/siimage.c unsigned long base = (unsigned long)hwif->hwif_data; hwif 308 drivers/ide/siimage.c u8 mmio = (hwif->host_flags & IDE_HFLAG_MMIO) ? 1 : 0; hwif 309 drivers/ide/siimage.c u8 scsc = 0, addr_mask = hwif->channel ? (mmio ? 0xF4 : 0x84) hwif 324 drivers/ide/siimage.c scsc = is_sata(hwif) ? 1 : scsc; hwif 341 drivers/ide/siimage.c static int sil_test_irq(ide_hwif_t *hwif) hwif 343 drivers/ide/siimage.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 344 drivers/ide/siimage.c unsigned long addr = siimage_selreg(hwif, 1); hwif 361 drivers/ide/siimage.c ide_hwif_t *hwif = drive->hwif; hwif 363 drivers/ide/siimage.c = (void __iomem *)hwif->sata_scr[SATA_ERROR_OFFSET]; hwif 366 drivers/ide/siimage.c unsigned long base = (unsigned long)hwif->hwif_data; hwif 370 drivers/ide/siimage.c if (ext_stat & ((hwif->channel) ? 0x40 : 0x10)) { hwif 387 drivers/ide/siimage.c if (readb((void __iomem *)(hwif->dma_base + ATA_DMA_STATUS)) & 4) hwif 395 drivers/ide/siimage.c if (drive->hwif->host_flags & IDE_HFLAG_MMIO) hwif 411 drivers/ide/siimage.c ide_hwif_t *hwif = drive->hwif; hwif 413 drivers/ide/siimage.c = (void __iomem *)hwif->sata_scr[SATA_STATUS_OFFSET]; hwif 421 drivers/ide/siimage.c hwif->name, sata_stat); hwif 549 drivers/ide/siimage.c static void init_mmio_iops_siimage(ide_hwif_t *hwif) hwif 551 drivers/ide/siimage.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 554 drivers/ide/siimage.c u8 ch = hwif->channel; hwif 555 drivers/ide/siimage.c struct ide_io_ports *io_ports = &hwif->io_ports; hwif 561 drivers/ide/siimage.c hwif->host_flags |= IDE_HFLAG_MMIO; hwif 563 drivers/ide/siimage.c hwif->hwif_data = addr; hwif 595 drivers/ide/siimage.c hwif->sata_scr[SATA_STATUS_OFFSET] = base + 0x104; hwif 596 drivers/ide/siimage.c hwif->sata_scr[SATA_ERROR_OFFSET] = base + 0x108; hwif 597 drivers/ide/siimage.c hwif->sata_scr[SATA_CONTROL_OFFSET] = base + 0x100; hwif 600 drivers/ide/siimage.c hwif->irq = dev->irq; hwif 602 drivers/ide/siimage.c hwif->dma_base = (unsigned long)addr + (ch ? 0x08 : 0x00); hwif 632 drivers/ide/siimage.c ide_hwif_t *hwif = drive->hwif; hwif 635 drivers/ide/siimage.c if (!is_sata(hwif) || !is_dev_seagate_sata(drive)) hwif 636 drivers/ide/siimage.c hwif->rqsize = 128; hwif 649 drivers/ide/siimage.c static void init_iops_siimage(ide_hwif_t *hwif) hwif 651 drivers/ide/siimage.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 654 drivers/ide/siimage.c hwif->hwif_data = NULL; hwif 657 drivers/ide/siimage.c hwif->rqsize = 15; hwif 660 drivers/ide/siimage.c init_mmio_iops_siimage(hwif); hwif 670 drivers/ide/siimage.c static u8 sil_cable_detect(ide_hwif_t *hwif) hwif 672 drivers/ide/siimage.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 673 drivers/ide/siimage.c unsigned long addr = siimage_selreg(hwif, 0); hwif 189 drivers/ide/sis5513.c struct pci_dev *dev = to_pci_dev(drive->hwif->dev); hwif 199 drivers/ide/sis5513.c struct pci_dev *dev = to_pci_dev(drive->hwif->dev); hwif 222 drivers/ide/sis5513.c struct pci_dev *dev = to_pci_dev(drive->hwif->dev); hwif 245 drivers/ide/sis5513.c struct pci_dev *dev = to_pci_dev(drive->hwif->dev); hwif 277 drivers/ide/sis5513.c ide_hwif_t *hwif = drive->hwif; hwif 278 drivers/ide/sis5513.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 293 drivers/ide/sis5513.c static void sis_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 301 drivers/ide/sis5513.c struct pci_dev *dev = to_pci_dev(drive->hwif->dev); hwif 320 drivers/ide/sis5513.c struct pci_dev *dev = to_pci_dev(drive->hwif->dev); hwif 343 drivers/ide/sis5513.c static void sis_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 355 drivers/ide/sis5513.c struct pci_dev *dev = to_pci_dev(drive->hwif->dev); hwif 525 drivers/ide/sis5513.c static u8 sis_cable_detect(ide_hwif_t *hwif) hwif 527 drivers/ide/sis5513.c struct pci_dev *pdev = to_pci_dev(hwif->dev); hwif 541 drivers/ide/sis5513.c u16 reg_addr = hwif->channel ? 0x52: 0x50; hwif 546 drivers/ide/sis5513.c u8 mask = hwif->channel ? 0x20 : 0x10; hwif 67 drivers/ide/sl82c105.c static void sl82c105_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 69 drivers/ide/sl82c105.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 96 drivers/ide/sl82c105.c static void sl82c105_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 114 drivers/ide/sl82c105.c static int sl82c105_test_irq(ide_hwif_t *hwif) hwif 116 drivers/ide/sl82c105.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 117 drivers/ide/sl82c105.c u32 val, mask = hwif->channel ? CTRL_IDE_IRQB : CTRL_IDE_IRQA; hwif 150 drivers/ide/sl82c105.c ide_hwif_t *hwif = drive->hwif; hwif 151 drivers/ide/sl82c105.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 152 drivers/ide/sl82c105.c u32 val, mask = hwif->channel ? CTRL_IDE_IRQB : CTRL_IDE_IRQA; hwif 169 drivers/ide/sl82c105.c dma_cmd = inb(hwif->dma_base + ATA_DMA_CMD); hwif 171 drivers/ide/sl82c105.c outb(dma_cmd & ~1, hwif->dma_base + ATA_DMA_CMD); hwif 188 drivers/ide/sl82c105.c ide_hwif_t *hwif = drive->hwif; hwif 189 drivers/ide/sl82c105.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 201 drivers/ide/sl82c105.c struct pci_dev *dev = to_pci_dev(drive->hwif->dev); hwif 208 drivers/ide/sl82c105.c struct pci_dev *dev = to_pci_dev(drive->hwif->dev); hwif 224 drivers/ide/sl82c105.c struct pci_dev *dev = to_pci_dev(drive->hwif->dev); hwif 22 drivers/ide/slc90e66.c static void slc90e66_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 24 drivers/ide/slc90e66.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 26 drivers/ide/slc90e66.c int master_port = hwif->channel ? 0x42 : 0x40; hwif 59 drivers/ide/slc90e66.c slave_data &= hwif->channel ? 0x0f : 0xf0; hwif 61 drivers/ide/slc90e66.c (hwif->channel ? 4 : 0); hwif 76 drivers/ide/slc90e66.c static void slc90e66_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 78 drivers/ide/slc90e66.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 79 drivers/ide/slc90e66.c u8 maslave = hwif->channel ? 0x42 : 0x40; hwif 115 drivers/ide/slc90e66.c slc90e66_set_pio_mode(hwif, drive); hwif 119 drivers/ide/slc90e66.c static u8 slc90e66_cable_detect(ide_hwif_t *hwif) hwif 121 drivers/ide/slc90e66.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 122 drivers/ide/slc90e66.c u8 reg47 = 0, mask = hwif->channel ? 0x01 : 0x02; hwif 17 drivers/ide/tc86c001.c static void tc86c001_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 19 drivers/ide/tc86c001.c unsigned long scr_port = hwif->config_data + (drive->dn ? 0x02 : 0x00); hwif 45 drivers/ide/tc86c001.c static void tc86c001_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 48 drivers/ide/tc86c001.c tc86c001_set_mode(hwif, drive); hwif 67 drivers/ide/tc86c001.c ide_hwif_t *hwif = drive->hwif; hwif 68 drivers/ide/tc86c001.c ide_expiry_t *expiry = ide_get_hwifdata(hwif); hwif 69 drivers/ide/tc86c001.c u8 dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); hwif 72 drivers/ide/tc86c001.c hwif->expiry = expiry; hwif 75 drivers/ide/tc86c001.c unsigned long sc_base = hwif->config_data; hwif 77 drivers/ide/tc86c001.c u8 dma_cmd = inb(hwif->dma_base + ATA_DMA_CMD); hwif 83 drivers/ide/tc86c001.c outb(dma_cmd & ~0x01, hwif->dma_base + ATA_DMA_CMD); hwif 92 drivers/ide/tc86c001.c outb(0x00, hwif->dma_base + ATA_DMA_CMD); hwif 94 drivers/ide/tc86c001.c outb(0x01, hwif->dma_base + ATA_DMA_CMD); hwif 114 drivers/ide/tc86c001.c ide_hwif_t *hwif = drive->hwif; hwif 115 drivers/ide/tc86c001.c unsigned long sc_base = hwif->config_data; hwif 117 drivers/ide/tc86c001.c unsigned long nsectors = blk_rq_sectors(hwif->rq); hwif 128 drivers/ide/tc86c001.c ide_set_hwifdata(hwif, hwif->expiry); hwif 129 drivers/ide/tc86c001.c hwif->expiry = &tc86c001_timer_expiry; hwif 134 drivers/ide/tc86c001.c static u8 tc86c001_cable_detect(ide_hwif_t *hwif) hwif 136 drivers/ide/tc86c001.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 147 drivers/ide/tc86c001.c static void init_hwif_tc86c001(ide_hwif_t *hwif) hwif 149 drivers/ide/tc86c001.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 163 drivers/ide/tc86c001.c hwif->config_data = sc_base; hwif 165 drivers/ide/tc86c001.c if (!hwif->dma_base) hwif 175 drivers/ide/tc86c001.c hwif->rqsize = 0xffff; hwif 25 drivers/ide/triflex.c static void triflex_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 27 drivers/ide/triflex.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 30 drivers/ide/triflex.c u8 channel_offset = hwif->channel ? 0x74 : 0x70, unit = drive->dn & 1; hwif 72 drivers/ide/triflex.c static void triflex_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 75 drivers/ide/triflex.c triflex_set_mode(hwif, drive); hwif 147 drivers/ide/trm290.c ide_hwif_t *hwif = drive->hwif; hwif 156 drivers/ide/trm290.c if (reg != hwif->select_data) { hwif 157 drivers/ide/trm290.c hwif->select_data = reg; hwif 159 drivers/ide/trm290.c outb(0x51 | (hwif->channel << 3), hwif->config_data + 1); hwif 160 drivers/ide/trm290.c outw(reg & 0xff, hwif->config_data); hwif 165 drivers/ide/trm290.c reg = inw(hwif->config_data + 3); hwif 167 drivers/ide/trm290.c reg &= ~(1 << hwif->channel); hwif 168 drivers/ide/trm290.c outw(reg, hwif->config_data + 3); hwif 178 drivers/ide/trm290.c outb(drive->select | ATA_DEVICE_OBS, drive->hwif->io_ports.device_addr); hwif 194 drivers/ide/trm290.c ide_hwif_t *hwif = drive->hwif; hwif 202 drivers/ide/trm290.c outl(hwif->dmatable_dma | rw, hwif->dma_base); hwif 204 drivers/ide/trm290.c outw(count * 2 - 1, hwif->dma_base + 2); hwif 216 drivers/ide/trm290.c u16 status = inw(drive->hwif->dma_base + 2); hwif 225 drivers/ide/trm290.c u16 status = inw(drive->hwif->dma_base + 2); hwif 234 drivers/ide/trm290.c static void init_hwif_trm290(ide_hwif_t *hwif) hwif 236 drivers/ide/trm290.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 248 drivers/ide/trm290.c hwif->config_data = cfg_base; hwif 249 drivers/ide/trm290.c hwif->dma_base = (cfg_base + 4) ^ (hwif->channel ? 0x80 : 0); hwif 252 drivers/ide/trm290.c hwif->name, hwif->dma_base, hwif->dma_base + 3); hwif 254 drivers/ide/trm290.c if (ide_allocate_dma_engine(hwif)) hwif 259 drivers/ide/trm290.c outb(0x51 | (hwif->channel << 3), hwif->config_data + 1); hwif 261 drivers/ide/trm290.c hwif->select_data = 0x21; hwif 262 drivers/ide/trm290.c outb(hwif->select_data, hwif->config_data); hwif 264 drivers/ide/trm290.c reg = inb(hwif->config_data + 3); hwif 267 drivers/ide/trm290.c outb(reg, hwif->config_data + 3); hwif 272 drivers/ide/trm290.c hwif->irq = hwif->channel ? 15 : 14; hwif 281 drivers/ide/trm290.c u16 new, old, compat = hwif->channel ? 0x374 : 0x3f4; hwif 285 drivers/ide/trm290.c outb(0x54 | (hwif->channel << 3), hwif->config_data + 1); hwif 286 drivers/ide/trm290.c old = inw(hwif->config_data); hwif 292 drivers/ide/trm290.c hwif->io_ports.ctl_addr = compat + 2; hwif 293 drivers/ide/trm290.c outw(compat | 1, hwif->config_data); hwif 294 drivers/ide/trm290.c new = inw(hwif->config_data); hwif 297 drivers/ide/trm290.c hwif->name, old, new & ~1); hwif 59 drivers/ide/tx4938ide.c static void tx4938ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 61 drivers/ide/tx4938ide.c struct tx4938ide_platform_info *pdata = dev_get_platdata(hwif->dev); hwif 77 drivers/ide/tx4938ide.c unsigned long port = drive->hwif->io_ports.data_addr; hwif 89 drivers/ide/tx4938ide.c unsigned long port = drive->hwif->io_ports.data_addr; hwif 105 drivers/ide/tx4939ide.c #define TX4939IDE_BASE(hwif) ((void __iomem *)(hwif)->extra_base) hwif 107 drivers/ide/tx4939ide.c static void tx4939ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 124 drivers/ide/tx4939ide.c hwif->select_data = (hwif->select_data & ~mask) | val; hwif 128 drivers/ide/tx4939ide.c static void tx4939ide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 145 drivers/ide/tx4939ide.c hwif->select_data = (hwif->select_data & ~mask) | val; hwif 149 drivers/ide/tx4939ide.c static u16 tx4939ide_check_error_ints(ide_hwif_t *hwif) hwif 151 drivers/ide/tx4939ide.c void __iomem *base = TX4939IDE_BASE(hwif); hwif 166 drivers/ide/tx4939ide.c hwif->name, ctl, hwif 175 drivers/ide/tx4939ide.c ide_hwif_t *hwif; hwif 185 drivers/ide/tx4939ide.c hwif = drive->hwif; hwif 186 drivers/ide/tx4939ide.c base = TX4939IDE_BASE(hwif); hwif 187 drivers/ide/tx4939ide.c ctl = tx4939ide_check_error_ints(hwif); hwif 191 drivers/ide/tx4939ide.c static u8 tx4939ide_cable_detect(ide_hwif_t *hwif) hwif 193 drivers/ide/tx4939ide.c void __iomem *base = TX4939IDE_BASE(hwif); hwif 202 drivers/ide/tx4939ide.c ide_hwif_t *hwif = drive->hwif; hwif 204 drivers/ide/tx4939ide.c void __iomem *base = TX4939IDE_BASE(hwif); hwif 236 drivers/ide/tx4939ide.c ide_hwif_t *hwif = drive->hwif; hwif 237 drivers/ide/tx4939ide.c u32 *table = (u32 *)hwif->dmatable_cpu; hwif 242 drivers/ide/tx4939ide.c for_each_sg(hwif->sg_table, sg, cmd->sg_nents, i) { hwif 289 drivers/ide/tx4939ide.c ide_hwif_t *hwif = drive->hwif; hwif 290 drivers/ide/tx4939ide.c void __iomem *base = TX4939IDE_BASE(hwif); hwif 298 drivers/ide/tx4939ide.c tx4939ide_writel(hwif->dmatable_dma, base, TX4939IDE_PRD_Ptr); hwif 316 drivers/ide/tx4939ide.c ide_hwif_t *hwif = drive->hwif; hwif 318 drivers/ide/tx4939ide.c void __iomem *base = TX4939IDE_BASE(hwif); hwif 344 drivers/ide/tx4939ide.c ide_hwif_t *hwif = drive->hwif; hwif 345 drivers/ide/tx4939ide.c void __iomem *base = TX4939IDE_BASE(hwif); hwif 350 drivers/ide/tx4939ide.c ctl = tx4939ide_check_error_ints(hwif); hwif 368 drivers/ide/tx4939ide.c hwif->name, dma_stat, ctl); hwif 382 drivers/ide/tx4939ide.c static u8 tx4939ide_dma_sff_read_status(ide_hwif_t *hwif) hwif 384 drivers/ide/tx4939ide.c void __iomem *base = TX4939IDE_BASE(hwif); hwif 392 drivers/ide/tx4939ide.c static void tx4939ide_init_hwif(ide_hwif_t *hwif) hwif 394 drivers/ide/tx4939ide.c void __iomem *base = TX4939IDE_BASE(hwif); hwif 409 drivers/ide/tx4939ide.c static int tx4939ide_init_dma(ide_hwif_t *hwif, const struct ide_port_info *d) hwif 411 drivers/ide/tx4939ide.c hwif->dma_base = hwif 412 drivers/ide/tx4939ide.c hwif->extra_base + tx4939ide_swizzleb(TX4939IDE_DMA_Cmd); hwif 417 drivers/ide/tx4939ide.c return ide_allocate_dma_engine(hwif); hwif 422 drivers/ide/tx4939ide.c ide_hwif_t *hwif = drive->hwif; hwif 423 drivers/ide/tx4939ide.c void __iomem *base = TX4939IDE_BASE(hwif); hwif 424 drivers/ide/tx4939ide.c u16 sysctl = hwif->select_data >> (drive->dn ? 16 : 0); hwif 450 drivers/ide/tx4939ide.c unsigned long port = drive->hwif->io_ports.data_addr; hwif 462 drivers/ide/tx4939ide.c unsigned long port = drive->hwif->io_ports.data_addr; hwif 607 drivers/ide/tx4939ide.c ide_hwif_t *hwif = host->ports[0]; hwif 609 drivers/ide/tx4939ide.c tx4939ide_init_hwif(hwif); hwif 108 drivers/ide/umc8672.c static void umc_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 110 drivers/ide/umc8672.c ide_hwif_t *mate = hwif->mate; hwif 121 drivers/ide/via82cxxx.c static void via_set_speed(ide_hwif_t *hwif, u8 dn, struct ide_timing *timing) hwif 123 drivers/ide/via82cxxx.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 175 drivers/ide/via82cxxx.c static void via_set_drive(ide_hwif_t *hwif, ide_drive_t *drive) hwif 178 drivers/ide/via82cxxx.c struct pci_dev *dev = to_pci_dev(hwif->dev); hwif 202 drivers/ide/via82cxxx.c via_set_speed(hwif, drive->dn, &t); hwif 213 drivers/ide/via82cxxx.c static void via_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) hwif 216 drivers/ide/via82cxxx.c via_set_drive(hwif, drive); hwif 378 drivers/ide/via82cxxx.c static u8 via82cxxx_cable_detect(ide_hwif_t *hwif) hwif 380 drivers/ide/via82cxxx.c struct pci_dev *pdev = to_pci_dev(hwif->dev); hwif 387 drivers/ide/via82cxxx.c if ((vdev->via_config->flags & VIA_SATA_PATA) && hwif->channel == 0) hwif 390 drivers/ide/via82cxxx.c if ((vdev->via_80w >> hwif->channel) & 1) hwif 122 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c struct hinic_hwif *hwif = hwdev->hwif; hwif 126 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c strlcpy(info->bus_info, pci_name(hwif->pdev), sizeof(info->bus_info)); hwif 92 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 96 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c prod_idx = hinic_hwif_read_reg(hwif, addr); hwif 102 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c hinic_hwif_write_reg(hwif, addr, prod_idx); hwif 110 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c val = hinic_hwif_read_reg(chain->hwif, addr); hwif 123 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 124 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct pci_dev *pdev = hwif->pdev; hwif 206 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 207 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct pci_dev *pdev = hwif->pdev; hwif 268 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 269 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct pci_dev *pdev = hwif->pdev; hwif 326 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 327 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct pci_dev *pdev = hwif->pdev; hwif 413 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 420 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c val = hinic_hwif_read_reg(hwif, reg_addr); hwif 425 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c hinic_hwif_write_reg(hwif, reg_addr, val); hwif 429 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c val = hinic_hwif_read_reg(hwif, reg_addr); hwif 448 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 457 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c ctrl = hinic_hwif_read_reg(hwif, addr); hwif 469 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c hinic_hwif_write_reg(hwif, addr, ctrl); hwif 478 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 483 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c hinic_hwif_write_reg(hwif, addr, val); hwif 487 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c hinic_hwif_write_reg(hwif, addr, val); hwif 496 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 501 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c hinic_hwif_write_reg(hwif, addr, val); hwif 510 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 515 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c hinic_hwif_write_reg(hwif, addr, val); hwif 519 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c hinic_hwif_write_reg(hwif, addr, val); hwif 528 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 533 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c ctrl = hinic_hwif_read_reg(hwif, addr); hwif 540 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c hinic_hwif_write_reg(hwif, addr, ctrl); hwif 551 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 552 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct pci_dev *pdev = hwif->pdev; hwif 579 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 580 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct pci_dev *pdev = hwif->pdev; hwif 601 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 602 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct pci_dev *pdev = hwif->pdev; hwif 651 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 652 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct pci_dev *pdev = hwif->pdev; hwif 710 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 711 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct pci_dev *pdev = hwif->pdev; hwif 760 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 761 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct pci_dev *pdev = hwif->pdev; hwif 796 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = attr->hwif; hwif 797 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct pci_dev *pdev = hwif->pdev; hwif 800 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c chain->hwif = hwif; hwif 833 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = chain->hwif; hwif 834 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct pci_dev *pdev = hwif->pdev; hwif 849 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = attr->hwif; hwif 850 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct pci_dev *pdev = hwif->pdev; hwif 910 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif) hwif 914 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct pci_dev *pdev = hwif->pdev; hwif 920 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c attr.hwif = hwif; hwif 122 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.h struct hinic_hwif *hwif; hwif 169 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.h struct hinic_hwif *hwif; hwif 195 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.h struct hinic_hwif *hwif); hwif 134 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c struct hinic_hwif *hwif = cmdqs->hwif; hwif 135 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c struct pci_dev *pdev = hwif->pdev; hwif 489 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c struct hinic_hwif *hwif = cmdqs->hwif; hwif 490 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c struct pci_dev *pdev = hwif->pdev; hwif 515 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c struct hinic_hwif *hwif = cmdqs->hwif; hwif 516 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c struct pci_dev *pdev = hwif->pdev; hwif 681 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c struct hinic_hwif *hwif = cmdqs->hwif; hwif 682 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c struct pci_dev *pdev = hwif->pdev; hwif 726 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c cmdq_ctxt->func_idx = HINIC_HWIF_FUNC_IDX(cmdqs->hwif); hwif 790 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c struct hinic_hwif *hwif = hwdev->hwif; hwif 793 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c struct pci_dev *pdev = hwif->pdev; hwif 798 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c if (!HINIC_IS_PF(hwif) && !HINIC_IS_PPF(hwif)) { hwif 862 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c int hinic_init_cmdqs(struct hinic_cmdqs *cmdqs, struct hinic_hwif *hwif, hwif 866 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c struct pci_dev *pdev = hwif->pdev; hwif 872 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c cmdqs->hwif = hwif; hwif 887 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c err = hinic_wqs_cmdq_alloc(&cmdqs->cmdq_pages, cmdqs->saved_wqs, hwif, hwif 925 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c struct hinic_hwif *hwif = cmdqs->hwif; hwif 926 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c struct pci_dev *pdev = hwif->pdev; hwif 149 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.h struct hinic_hwif *hwif; hwif 173 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.h int hinic_init_cmdqs(struct hinic_cmdqs *cmdqs, struct hinic_hwif *hwif, hwif 76 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c if (!HINIC_IS_PF(hwdev->hwif) && !HINIC_IS_PPF(hwdev->hwif)) hwif 82 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c num_aeqs = HINIC_HWIF_NUM_AEQS(hwdev->hwif); hwif 83 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c num_ceqs = HINIC_HWIF_NUM_CEQS(hwdev->hwif); hwif 84 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c num_irqs = HINIC_HWIF_NUM_IRQS(hwdev->hwif); hwif 111 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 112 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 139 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 140 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 144 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c switch (HINIC_FUNC_TYPE(hwif)) { hwif 172 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 173 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 178 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c num_aeqs = HINIC_HWIF_NUM_AEQS(hwif); hwif 179 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c num_ceqs = HINIC_HWIF_NUM_CEQS(hwif); hwif 181 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c if (nr_irqs > HINIC_HWIF_NUM_IRQS(hwif)) hwif 182 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c nr_irqs = HINIC_HWIF_NUM_IRQS(hwif); hwif 208 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 209 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 228 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 229 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 232 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c if (!HINIC_IS_PF(hwif) && !HINIC_IS_PPF(hwif)) { hwif 252 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 253 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 258 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c if (!HINIC_IS_PF(hwif) && !HINIC_IS_PPF(hwif)) { hwif 263 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c fw_ctxt.func_idx = HINIC_HWIF_FUNC_IDX(hwif); hwif 289 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 291 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 294 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c if (!HINIC_IS_PF(hwif) && !HINIC_IS_PPF(hwif)) { hwif 299 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c hw_ioctxt.func_idx = HINIC_HWIF_FUNC_IDX(hwif); hwif 300 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c hw_ioctxt.ppf_idx = HINIC_HWIF_PPF_IDX(hwif); hwif 324 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 325 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 330 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c outbound_state = hinic_outbound_state_get(hwif); hwif 344 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 345 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 351 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c db_state = hinic_db_state_get(hwif); hwif 372 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 373 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 377 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c if (!HINIC_IS_PF(hwif) && !HINIC_IS_PPF(hwif)) { hwif 385 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c cmd_clear_io_res.func_idx = HINIC_HWIF_FUNC_IDX(hwif); hwif 412 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 413 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 416 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c if (!HINIC_IS_PF(hwif) && !HINIC_IS_PPF(hwif)) { hwif 421 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c res_state.func_idx = HINIC_HWIF_FUNC_IDX(hwif); hwif 443 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 444 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 448 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c cmd_base_qpn.func_idx = HINIC_HWIF_FUNC_IDX(hwif); hwif 473 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 478 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 487 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c num_aeqs = HINIC_HWIF_NUM_AEQS(hwif); hwif 488 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c num_ceqs = HINIC_HWIF_NUM_CEQS(hwif); hwif 492 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c err = hinic_io_init(func_to_io, hwif, nic_cap->max_qps, num_ceqs, hwif 513 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c hinic_db_state_set(hwif, HINIC_DB_ENABLE); hwif 561 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 562 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 567 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c if (!HINIC_IS_PF(hwif) && !HINIC_IS_PPF(hwif)) { hwif 590 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 591 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 596 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c if (!HINIC_IS_PF(hwif) && !HINIC_IS_PPF(hwif)) { hwif 629 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif; hwif 634 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c hwif = hwdev->hwif; hwif 635 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c pdev = hwif->pdev; hwif 669 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 670 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 673 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c err = hinic_pf_to_mgmt_init(&pfhwdev->pf_to_mgmt, hwif); hwif 682 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c hinic_set_pf_action(hwif, HINIC_PF_MGMT_ACTIVE); hwif 694 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c hinic_set_pf_action(hwdev->hwif, HINIC_PF_MGMT_INIT); hwif 713 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif; hwif 716 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c hwif = devm_kzalloc(&pdev->dev, sizeof(*hwif), GFP_KERNEL); hwif 717 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c if (!hwif) hwif 720 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c err = hinic_init_hwif(hwif, pdev); hwif 726 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c if (!HINIC_IS_PF(hwif) && !HINIC_IS_PPF(hwif)) { hwif 739 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c hwdev->hwif = hwif; hwif 750 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c hinic_outbound_state_set(hwif, HINIC_OUTBOUND_ENABLE); hwif 753 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c num_aeqs = HINIC_HWIF_NUM_AEQS(hwif); hwif 755 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c err = hinic_aeqs_init(&hwdev->aeqs, hwif, num_aeqs, hwif 803 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c hinic_free_hwif(hwif); hwif 825 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c hinic_free_hwif(hwdev->hwif); hwif 893 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c return hinic_msix_attr_cnt_clear(hwdev->hwif, msix_index); hwif 913 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c return hinic_msix_attr_set(hwdev->hwif, msix_index, hwif 932 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct hinic_hwif *hwif = hwdev->hwif; hwif 933 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c struct pci_dev *pdev = hwif->pdev; hwif 937 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c if (!HINIC_IS_PF(hwif) && !HINIC_IS_PPF(hwif)) { hwif 949 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c hw_ci.func_idx = HINIC_HWIF_FUNC_IDX(hwif); hwif 973 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c hinic_set_msix_state(hwdev->hwif, msix_index, flag); hwif 223 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h struct hinic_hwif *hwif; hwif 196 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c val = hinic_hwif_read_reg(eq->hwif, addr); hwif 209 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c hinic_hwif_write_reg(eq->hwif, addr, val); hwif 219 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c struct hinic_hwif *hwif = aeqs->hwif; hwif 220 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c struct pci_dev *pdev = hwif->pdev; hwif 282 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c struct hinic_hwif *hwif = ceqs->hwif; hwif 283 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c struct pci_dev *pdev = hwif->pdev; hwif 391 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c hinic_msix_attr_cnt_clear(aeq->hwif, aeq->msix_entry.entry); hwif 412 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c hinic_msix_attr_cnt_clear(ceq->hwif, ceq->msix_entry.entry); hwif 429 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c val = hinic_hwif_read_reg(eq->hwif, addr); hwif 438 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c HINIC_AEQ_CTRL_0_SET(HINIC_HWIF_PCI_INTF(eq->hwif), hwif 444 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c hinic_hwif_write_reg(eq->hwif, addr, val); hwif 449 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c val = hinic_hwif_read_reg(eq->hwif, addr); hwif 460 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c HINIC_CEQ_CTRL_0_SET(HINIC_HWIF_PCI_INTF(eq->hwif), hwif 466 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c hinic_hwif_write_reg(eq->hwif, addr, val); hwif 483 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c val = hinic_hwif_read_reg(eq->hwif, addr); hwif 495 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c hinic_hwif_write_reg(eq->hwif, addr, val); hwif 502 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c val = hinic_hwif_read_reg(eq->hwif, addr); hwif 512 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c hinic_hwif_write_reg(eq->hwif, addr, val); hwif 570 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c struct hinic_hwif *hwif = eq->hwif; hwif 571 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c struct pci_dev *pdev = hwif->pdev; hwif 601 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c hinic_hwif_write_reg(hwif, addr, val); hwif 606 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c hinic_hwif_write_reg(hwif, addr, val); hwif 637 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c struct hinic_hwif *hwif = eq->hwif; hwif 638 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c struct pci_dev *pdev = hwif->pdev; hwif 662 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c static int init_eq(struct hinic_eq *eq, struct hinic_hwif *hwif, hwif 666 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c struct pci_dev *pdev = hwif->pdev; hwif 669 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c eq->hwif = hwif; hwif 676 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c hinic_hwif_write_reg(eq->hwif, EQ_CONS_IDX_REG_ADDR(eq), 0); hwif 677 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c hinic_hwif_write_reg(eq->hwif, EQ_PROD_IDX_REG_ADDR(eq), 0); hwif 725 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c hinic_msix_attr_set(eq->hwif, eq->msix_entry.entry, hwif 757 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c hinic_set_msix_state(eq->hwif, eq->msix_entry.entry, hwif 766 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c hinic_hwif_write_reg(eq->hwif, hwif 771 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c hinic_hwif_write_reg(eq->hwif, hwif 776 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c eq->cons_idx = hinic_hwif_read_reg(eq->hwif, EQ_PROD_IDX_REG_ADDR(eq)); hwif 793 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c int hinic_aeqs_init(struct hinic_aeqs *aeqs, struct hinic_hwif *hwif, hwif 797 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c struct pci_dev *pdev = hwif->pdev; hwif 804 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c aeqs->hwif = hwif; hwif 808 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c err = init_eq(&aeqs->aeq[q_id], hwif, HINIC_AEQ, q_id, q_len, hwif 851 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c int hinic_ceqs_init(struct hinic_ceqs *ceqs, struct hinic_hwif *hwif, hwif 855 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c struct pci_dev *pdev = hwif->pdev; hwif 858 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c ceqs->hwif = hwif; hwif 862 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c err = init_eq(&ceqs->ceq[q_id], hwif, HINIC_CEQ, q_id, q_len, hwif 173 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.h struct hinic_hwif *hwif; hwif 204 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.h struct hinic_hwif *hwif; hwif 221 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.h struct hinic_hwif *hwif; hwif 244 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.h int hinic_aeqs_init(struct hinic_aeqs *aeqs, struct hinic_hwif *hwif, hwif 250 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.h int hinic_ceqs_init(struct hinic_ceqs *ceqs, struct hinic_hwif *hwif, hwif 33 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c int hinic_msix_attr_set(struct hinic_hwif *hwif, u16 msix_index, hwif 40 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) hwif 51 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hinic_hwif_write_reg(hwif, addr, msix_ctrl); hwif 67 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c int hinic_msix_attr_get(struct hinic_hwif *hwif, u16 msix_index, hwif 74 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) hwif 78 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c val = hinic_hwif_read_reg(hwif, addr); hwif 95 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c int hinic_msix_attr_cnt_clear(struct hinic_hwif *hwif, u16 msix_index) hwif 99 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) hwif 105 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hinic_hwif_write_reg(hwif, addr, msix_ctrl); hwif 116 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c void hinic_set_pf_action(struct hinic_hwif *hwif, enum hinic_pf_action action) hwif 118 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c u32 attr5 = hinic_hwif_read_reg(hwif, HINIC_CSR_FUNC_ATTR5_ADDR); hwif 123 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hinic_hwif_write_reg(hwif, HINIC_CSR_FUNC_ATTR5_ADDR, attr5); hwif 126 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c enum hinic_outbound_state hinic_outbound_state_get(struct hinic_hwif *hwif) hwif 128 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c u32 attr4 = hinic_hwif_read_reg(hwif, HINIC_CSR_FUNC_ATTR4_ADDR); hwif 133 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c void hinic_outbound_state_set(struct hinic_hwif *hwif, hwif 136 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c u32 attr4 = hinic_hwif_read_reg(hwif, HINIC_CSR_FUNC_ATTR4_ADDR); hwif 141 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hinic_hwif_write_reg(hwif, HINIC_CSR_FUNC_ATTR4_ADDR, attr4); hwif 144 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c enum hinic_db_state hinic_db_state_get(struct hinic_hwif *hwif) hwif 146 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c u32 attr4 = hinic_hwif_read_reg(hwif, HINIC_CSR_FUNC_ATTR4_ADDR); hwif 151 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c void hinic_db_state_set(struct hinic_hwif *hwif, hwif 154 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c u32 attr4 = hinic_hwif_read_reg(hwif, HINIC_CSR_FUNC_ATTR4_ADDR); hwif 159 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hinic_hwif_write_reg(hwif, HINIC_CSR_FUNC_ATTR4_ADDR, attr4); hwif 162 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c void hinic_set_msix_state(struct hinic_hwif *hwif, u16 msix_idx, hwif 169 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c mask_bits = readl(hwif->intr_regs_base + offset); hwif 175 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c writel(mask_bits, hwif->intr_regs_base + offset); hwif 184 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c static int hwif_ready(struct hinic_hwif *hwif) hwif 186 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c struct pci_dev *pdev = hwif->pdev; hwif 190 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c attr1 = hinic_hwif_read_reg(hwif, addr); hwif 206 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c static void set_hwif_attr(struct hinic_hwif *hwif, u32 attr0, u32 attr1) hwif 208 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->attr.func_idx = HINIC_FA0_GET(attr0, FUNC_IDX); hwif 209 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->attr.pf_idx = HINIC_FA0_GET(attr0, PF_IDX); hwif 210 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->attr.pci_intf_idx = HINIC_FA0_GET(attr0, PCI_INTF_IDX); hwif 211 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->attr.func_type = HINIC_FA0_GET(attr0, FUNC_TYPE); hwif 213 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->attr.num_aeqs = BIT(HINIC_FA1_GET(attr1, AEQS_PER_FUNC)); hwif 214 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->attr.num_ceqs = BIT(HINIC_FA1_GET(attr1, CEQS_PER_FUNC)); hwif 215 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->attr.num_irqs = BIT(HINIC_FA1_GET(attr1, IRQS_PER_FUNC)); hwif 216 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->attr.num_dma_attr = BIT(HINIC_FA1_GET(attr1, DMA_ATTR_PER_FUNC)); hwif 223 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c static void read_hwif_attr(struct hinic_hwif *hwif) hwif 228 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c attr0 = hinic_hwif_read_reg(hwif, addr); hwif 231 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c attr1 = hinic_hwif_read_reg(hwif, addr); hwif 233 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c set_hwif_attr(hwif, attr0, attr1); hwif 240 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c static void set_ppf(struct hinic_hwif *hwif) hwif 242 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c struct hinic_func_attr *attr = &hwif->attr; hwif 246 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c addr = HINIC_CSR_PPF_ELECTION_ADDR(HINIC_HWIF_PCI_INTF(hwif)); hwif 248 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c val = hinic_hwif_read_reg(hwif, addr); hwif 251 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c ppf_election = HINIC_PPF_ELECTION_SET(HINIC_HWIF_FUNC_IDX(hwif), IDX); hwif 254 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hinic_hwif_write_reg(hwif, addr, val); hwif 257 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c val = hinic_hwif_read_reg(hwif, addr); hwif 260 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c if (attr->ppf_idx == HINIC_HWIF_FUNC_IDX(hwif)) hwif 274 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c static void set_dma_attr(struct hinic_hwif *hwif, u32 entry_idx, hwif 284 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c val = hinic_hwif_read_reg(hwif, addr); hwif 298 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hinic_hwif_write_reg(hwif, addr, val); hwif 305 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c static void dma_attr_init(struct hinic_hwif *hwif) hwif 307 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c set_dma_attr(hwif, PCIE_ATTR_ENTRY, HINIC_PCIE_ST_DISABLE, hwif 319 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c int hinic_init_hwif(struct hinic_hwif *hwif, struct pci_dev *pdev) hwif 323 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->pdev = pdev; hwif 325 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->cfg_regs_bar = pci_ioremap_bar(pdev, HINIC_PCI_CFG_REGS_BAR); hwif 326 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c if (!hwif->cfg_regs_bar) { hwif 331 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->intr_regs_base = pci_ioremap_bar(pdev, HINIC_PCI_INTR_REGS_BAR); hwif 332 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c if (!hwif->intr_regs_base) { hwif 338 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c err = hwif_ready(hwif); hwif 344 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c read_hwif_attr(hwif); hwif 346 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c if (HINIC_IS_PF(hwif)) hwif 347 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c set_ppf(hwif); hwif 350 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c dma_attr_init(hwif); hwif 354 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c iounmap(hwif->intr_regs_base); hwif 357 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c iounmap(hwif->cfg_regs_bar); hwif 366 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c void hinic_free_hwif(struct hinic_hwif *hwif) hwif 368 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c iounmap(hwif->intr_regs_base); hwif 369 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c iounmap(hwif->cfg_regs_bar); hwif 134 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_HWIF_NUM_AEQS(hwif) ((hwif)->attr.num_aeqs) hwif 135 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_HWIF_NUM_CEQS(hwif) ((hwif)->attr.num_ceqs) hwif 136 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_HWIF_NUM_IRQS(hwif) ((hwif)->attr.num_irqs) hwif 137 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_HWIF_FUNC_IDX(hwif) ((hwif)->attr.func_idx) hwif 138 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_HWIF_PCI_INTF(hwif) ((hwif)->attr.pci_intf_idx) hwif 139 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_HWIF_PF_IDX(hwif) ((hwif)->attr.pf_idx) hwif 140 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_HWIF_PPF_IDX(hwif) ((hwif)->attr.ppf_idx) hwif 142 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_FUNC_TYPE(hwif) ((hwif)->attr.func_type) hwif 143 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_IS_PF(hwif) (HINIC_FUNC_TYPE(hwif) == HINIC_PF) hwif 144 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_IS_PPF(hwif) (HINIC_FUNC_TYPE(hwif) == HINIC_PPF) hwif 236 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h static inline u32 hinic_hwif_read_reg(struct hinic_hwif *hwif, u32 reg) hwif 238 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h return be32_to_cpu(readl(hwif->cfg_regs_bar + reg)); hwif 241 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h static inline void hinic_hwif_write_reg(struct hinic_hwif *hwif, u32 reg, hwif 244 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h writel(cpu_to_be32(val), hwif->cfg_regs_bar + reg); hwif 247 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h int hinic_msix_attr_set(struct hinic_hwif *hwif, u16 msix_index, hwif 252 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h int hinic_msix_attr_get(struct hinic_hwif *hwif, u16 msix_index, hwif 257 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h void hinic_set_msix_state(struct hinic_hwif *hwif, u16 msix_idx, hwif 260 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h int hinic_msix_attr_cnt_clear(struct hinic_hwif *hwif, u16 msix_index); hwif 262 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h void hinic_set_pf_action(struct hinic_hwif *hwif, enum hinic_pf_action action); hwif 264 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h enum hinic_outbound_state hinic_outbound_state_get(struct hinic_hwif *hwif); hwif 266 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h void hinic_outbound_state_set(struct hinic_hwif *hwif, hwif 269 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h enum hinic_db_state hinic_db_state_get(struct hinic_hwif *hwif); hwif 271 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h void hinic_db_state_set(struct hinic_hwif *hwif, hwif 274 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h int hinic_init_hwif(struct hinic_hwif *hwif, struct pci_dev *pdev); hwif 276 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h void hinic_free_hwif(struct hinic_hwif *hwif); hwif 105 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c struct hinic_hwif *hwif = func_to_io->hwif; hwif 107 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c struct pci_dev *pdev = hwif->pdev; hwif 149 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c struct hinic_hwif *hwif = func_to_io->hwif; hwif 151 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c struct pci_dev *pdev = hwif->pdev; hwif 208 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c struct hinic_hwif *hwif = func_to_io->hwif; hwif 210 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c struct pci_dev *pdev = hwif->pdev; hwif 273 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c struct hinic_hwif *hwif = func_to_io->hwif; hwif 274 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c struct pci_dev *pdev = hwif->pdev; hwif 305 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c err = hinic_init_sq(&qp->sq, hwif, &func_to_io->sq_wq[q_id], hwif 314 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c err = hinic_init_rq(&qp->rq, hwif, &func_to_io->rq_wq[q_id], hwif 371 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c struct hinic_hwif *hwif = func_to_io->hwif; hwif 372 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c struct pci_dev *pdev = hwif->pdev; hwif 466 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c struct hinic_hwif *hwif = func_to_io->hwif; hwif 467 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c struct pci_dev *pdev = hwif->pdev; hwif 498 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c struct hinic_hwif *hwif, u16 max_qps, int num_ceqs, hwif 501 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c struct pci_dev *pdev = hwif->pdev; hwif 506 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c func_to_io->hwif = hwif; hwif 510 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c err = hinic_ceqs_init(&func_to_io->ceqs, hwif, num_ceqs, hwif 518 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c err = hinic_wqs_alloc(&func_to_io->wqs, 2 * max_qps, hwif); hwif 544 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c err = hinic_init_cmdqs(&func_to_io->cmdqs, hwif, hwif 49 drivers/net/ethernet/huawei/hinic/hinic_hw_io.h struct hinic_hwif *hwif; hwif 83 drivers/net/ethernet/huawei/hinic/hinic_hw_io.h struct hinic_hwif *hwif, u16 max_qps, int num_ceqs, hwif 126 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c struct hinic_hwif *hwif = pf_to_mgmt->hwif; hwif 137 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c HINIC_MSG_HEADER_SET(HINIC_HWIF_PCI_INTF(hwif), PCI_INTF) | hwif 138 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c HINIC_MSG_HEADER_SET(HINIC_HWIF_PF_IDX(hwif), PF_IDX) | hwif 245 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c struct hinic_hwif *hwif = pf_to_mgmt->hwif; hwif 246 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c struct pci_dev *pdev = hwif->pdev; hwif 347 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c struct hinic_hwif *hwif = pf_to_mgmt->hwif; hwif 348 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c struct pci_dev *pdev = hwif->pdev; hwif 377 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c struct hinic_hwif *hwif = pf_to_mgmt->hwif; hwif 378 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c struct pci_dev *pdev = hwif->pdev; hwif 435 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c struct hinic_hwif *hwif = pf_to_mgmt->hwif; hwif 436 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c struct pci_dev *pdev = hwif->pdev; hwif 497 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c struct hinic_hwif *hwif = pf_to_mgmt->hwif; hwif 498 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c struct pci_dev *pdev = hwif->pdev; hwif 521 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c struct hinic_hwif *hwif = pf_to_mgmt->hwif; hwif 522 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c struct pci_dev *pdev = hwif->pdev; hwif 556 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c struct hinic_hwif *hwif) hwif 560 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c struct pci_dev *pdev = hwif->pdev; hwif 563 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c pf_to_mgmt->hwif = hwif; hwif 574 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c err = hinic_api_cmd_init(pf_to_mgmt->cmd_chain, hwif); hwif 109 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.h struct hinic_hwif *hwif; hwif 140 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.h struct hinic_hwif *hwif); hwif 276 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c int hinic_init_sq(struct hinic_sq *sq, struct hinic_hwif *hwif, hwif 281 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c sq->hwif = hwif; hwif 313 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c struct hinic_hwif *hwif = rq->hwif; hwif 314 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c struct pci_dev *pdev = hwif->pdev; hwif 357 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c struct hinic_hwif *hwif = rq->hwif; hwif 358 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c struct pci_dev *pdev = hwif->pdev; hwif 379 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c int hinic_init_rq(struct hinic_rq *rq, struct hinic_hwif *hwif, hwif 382 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c struct pci_dev *pdev = hwif->pdev; hwif 386 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c rq->hwif = hwif; hwif 433 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c struct hinic_hwif *hwif = rq->hwif; hwif 434 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c struct pci_dev *pdev = hwif->pdev; hwif 77 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.h struct hinic_hwif *hwif; hwif 93 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.h struct hinic_hwif *hwif; hwif 129 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.h int hinic_init_sq(struct hinic_sq *sq, struct hinic_hwif *hwif, hwif 135 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.h int hinic_init_rq(struct hinic_rq *rq, struct hinic_hwif *hwif, hwif 102 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c static int queue_alloc_page(struct hinic_hwif *hwif, u64 **vaddr, u64 *paddr, hwif 105 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct pci_dev *pdev = hwif->pdev; hwif 138 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c return queue_alloc_page(wqs->hwif, &wqs->page_vaddr[page_idx], hwif 151 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct hinic_hwif *hwif = wqs->hwif; hwif 152 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct pci_dev *pdev = hwif->pdev; hwif 168 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c return queue_alloc_page(cmdq_pages->hwif, &cmdq_pages->page_vaddr, hwif 182 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct hinic_hwif *hwif = cmdq_pages->hwif; hwif 183 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct pci_dev *pdev = hwif->pdev; hwif 193 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct hinic_hwif *hwif = wqs->hwif; hwif 194 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct pci_dev *pdev = hwif->pdev; hwif 224 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct hinic_hwif *hwif = wqs->hwif; hwif 225 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct pci_dev *pdev = hwif->pdev; hwif 306 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct hinic_hwif *hwif) hwif 308 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct pci_dev *pdev = hwif->pdev; hwif 317 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c wqs->hwif = hwif; hwif 359 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct hinic_hwif *hwif = wqs->hwif; hwif 360 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct pci_dev *pdev = hwif->pdev; hwif 379 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct hinic_hwif *hwif = wq->hwif; hwif 380 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct pci_dev *pdev = hwif->pdev; hwif 406 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct hinic_hwif *hwif = wq->hwif; hwif 407 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct pci_dev *pdev = hwif->pdev; hwif 419 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c static void free_wq_pages(struct hinic_wq *wq, struct hinic_hwif *hwif, hwif 422 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct pci_dev *pdev = hwif->pdev; hwif 446 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c static int alloc_wq_pages(struct hinic_wq *wq, struct hinic_hwif *hwif, hwif 449 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct pci_dev *pdev = hwif->pdev; hwif 490 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c free_wq_pages(wq, hwif, i); hwif 509 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct hinic_hwif *hwif = wqs->hwif; hwif 510 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct pci_dev *pdev = hwif->pdev; hwif 539 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c wq->hwif = hwif; hwif 558 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c err = alloc_wq_pages(wq, wqs->hwif, WQ_MAX_PAGES); hwif 583 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c free_wq_pages(wq, wqs->hwif, wq->num_q_pages); hwif 602 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct hinic_wq *wq, struct hinic_hwif *hwif, hwif 606 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c struct pci_dev *pdev = hwif->pdev; hwif 636 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c cmdq_pages->hwif = hwif; hwif 646 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c wq[i].hwif = hwif; hwif 661 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c err = alloc_wq_pages(&wq[i], cmdq_pages->hwif, hwif 678 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c free_wq_pages(&wq[j], cmdq_pages->hwif, wq[j].num_q_pages); hwif 696 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c free_wq_pages(&wq[i], cmdq_pages->hwif, wq[i].num_q_pages); hwif 23 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h struct hinic_hwif *hwif; hwif 51 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h struct hinic_hwif *hwif; hwif 74 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h struct hinic_hwif *hwif; hwif 78 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h struct hinic_wq *wq, struct hinic_hwif *hwif, hwif 86 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h struct hinic_hwif *hwif); hwif 320 drivers/net/ethernet/huawei/hinic/hinic_main.c struct hinic_hwif *hwif = hwdev->hwif; hwif 321 drivers/net/ethernet/huawei/hinic/hinic_main.c struct pci_dev *pdev = hwif->pdev; hwif 43 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 44 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 59 drivers/net/ethernet/huawei/hinic/hinic_port.c port_mac_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); hwif 114 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 115 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 119 drivers/net/ethernet/huawei/hinic/hinic_port.c port_mac_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); hwif 146 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 147 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 162 drivers/net/ethernet/huawei/hinic/hinic_port.c port_mtu_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); hwif 189 drivers/net/ethernet/huawei/hinic/hinic_port.c port_vlan_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwdev->hwif); hwif 209 drivers/net/ethernet/huawei/hinic/hinic_port.c port_vlan_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwdev->hwif); hwif 229 drivers/net/ethernet/huawei/hinic/hinic_port.c rx_mode_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwdev->hwif); hwif 248 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 250 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 254 drivers/net/ethernet/huawei/hinic/hinic_port.c if (!HINIC_IS_PF(hwif) && !HINIC_IS_PPF(hwif)) { hwif 259 drivers/net/ethernet/huawei/hinic/hinic_port.c link_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); hwif 285 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 286 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 290 drivers/net/ethernet/huawei/hinic/hinic_port.c if (!HINIC_IS_PF(hwif) && !HINIC_IS_PPF(hwif)) { hwif 321 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 322 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 326 drivers/net/ethernet/huawei/hinic/hinic_port.c func_state.func_idx = HINIC_HWIF_FUNC_IDX(hwif); hwif 352 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 353 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 357 drivers/net/ethernet/huawei/hinic/hinic_port.c port_cap->func_idx = HINIC_HWIF_FUNC_IDX(hwif); hwif 382 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 384 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 388 drivers/net/ethernet/huawei/hinic/hinic_port.c tso_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); hwif 408 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif; hwif 416 drivers/net/ethernet/huawei/hinic/hinic_port.c hwif = hwdev->hwif; hwif 417 drivers/net/ethernet/huawei/hinic/hinic_port.c pdev = hwif->pdev; hwif 418 drivers/net/ethernet/huawei/hinic/hinic_port.c rx_csum_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); hwif 438 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif; hwif 446 drivers/net/ethernet/huawei/hinic/hinic_port.c hwif = hwdev->hwif; hwif 447 drivers/net/ethernet/huawei/hinic/hinic_port.c pdev = hwif->pdev; hwif 448 drivers/net/ethernet/huawei/hinic/hinic_port.c vlan_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); hwif 467 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 468 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 473 drivers/net/ethernet/huawei/hinic/hinic_port.c rq_num.func_id = HINIC_HWIF_FUNC_IDX(hwif); hwif 494 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 496 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 500 drivers/net/ethernet/huawei/hinic/hinic_port.c lro_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); hwif 522 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 523 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 585 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif; hwif 594 drivers/net/ethernet/huawei/hinic/hinic_port.c hwif = hwdev->hwif; hwif 595 drivers/net/ethernet/huawei/hinic/hinic_port.c pdev = hwif->pdev; hwif 654 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 655 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 659 drivers/net/ethernet/huawei/hinic/hinic_port.c rss_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); hwif 686 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif; hwif 694 drivers/net/ethernet/huawei/hinic/hinic_port.c hwif = hwdev->hwif; hwif 695 drivers/net/ethernet/huawei/hinic/hinic_port.c pdev = hwif->pdev; hwif 744 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif; hwif 752 drivers/net/ethernet/huawei/hinic/hinic_port.c hwif = hwdev->hwif; hwif 753 drivers/net/ethernet/huawei/hinic/hinic_port.c pdev = hwif->pdev; hwif 755 drivers/net/ethernet/huawei/hinic/hinic_port.c ctx_tbl.func_id = HINIC_HWIF_FUNC_IDX(hwif); hwif 784 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 786 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 790 drivers/net/ethernet/huawei/hinic/hinic_port.c rss_key.func_id = HINIC_HWIF_FUNC_IDX(hwif); hwif 812 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif; hwif 820 drivers/net/ethernet/huawei/hinic/hinic_port.c hwif = hwdev->hwif; hwif 821 drivers/net/ethernet/huawei/hinic/hinic_port.c pdev = hwif->pdev; hwif 823 drivers/net/ethernet/huawei/hinic/hinic_port.c temp_key.func_id = HINIC_HWIF_FUNC_IDX(hwif); hwif 845 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 846 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 850 drivers/net/ethernet/huawei/hinic/hinic_port.c rss_engine.func_id = HINIC_HWIF_FUNC_IDX(hwif); hwif 871 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif; hwif 879 drivers/net/ethernet/huawei/hinic/hinic_port.c hwif = hwdev->hwif; hwif 880 drivers/net/ethernet/huawei/hinic/hinic_port.c pdev = hwif->pdev; hwif 882 drivers/net/ethernet/huawei/hinic/hinic_port.c hash_type.func_id = HINIC_HWIF_FUNC_IDX(hwif); hwif 902 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 903 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 907 drivers/net/ethernet/huawei/hinic/hinic_port.c rss_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); hwif 929 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 930 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 934 drivers/net/ethernet/huawei/hinic/hinic_port.c template_mgmt.func_id = HINIC_HWIF_FUNC_IDX(hwif); hwif 955 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 956 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 960 drivers/net/ethernet/huawei/hinic/hinic_port.c template_mgmt.func_id = HINIC_HWIF_FUNC_IDX(hwif); hwif 982 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 984 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 988 drivers/net/ethernet/huawei/hinic/hinic_port.c stats_info.func_id = HINIC_HWIF_FUNC_IDX(hwif); hwif 1010 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif = hwdev->hwif; hwif 1013 drivers/net/ethernet/huawei/hinic/hinic_port.c struct pci_dev *pdev = hwif->pdev; hwif 1046 drivers/net/ethernet/huawei/hinic/hinic_port.c struct hinic_hwif *hwif; hwif 1054 drivers/net/ethernet/huawei/hinic/hinic_port.c hwif = hwdev->hwif; hwif 1055 drivers/net/ethernet/huawei/hinic/hinic_port.c pdev = hwif->pdev; hwif 133 drivers/net/ethernet/huawei/hinic/hinic_rx.c struct hinic_hwif *hwif = hwdev->hwif; hwif 134 drivers/net/ethernet/huawei/hinic/hinic_rx.c struct pci_dev *pdev = hwif->pdev; hwif 170 drivers/net/ethernet/huawei/hinic/hinic_rx.c struct hinic_hwif *hwif = hwdev->hwif; hwif 171 drivers/net/ethernet/huawei/hinic/hinic_rx.c struct pci_dev *pdev = hwif->pdev; hwif 137 drivers/net/ethernet/huawei/hinic/hinic_tx.c struct hinic_hwif *hwif = hwdev->hwif; hwif 138 drivers/net/ethernet/huawei/hinic/hinic_tx.c struct pci_dev *pdev = hwif->pdev; hwif 188 drivers/net/ethernet/huawei/hinic/hinic_tx.c struct hinic_hwif *hwif = hwdev->hwif; hwif 189 drivers/net/ethernet/huawei/hinic/hinic_tx.c struct pci_dev *pdev = hwif->pdev; hwif 719 drivers/net/ethernet/huawei/hinic/hinic_tx.c struct hinic_hwif *hwif = hwdev->hwif; hwif 720 drivers/net/ethernet/huawei/hinic/hinic_tx.c struct pci_dev *pdev = hwif->pdev; hwif 427 drivers/net/wan/farsync.c int hwif; /* Line hardware (lineInterface copy) */ hwif 1113 drivers/net/wan/farsync.c if (signals & (((port->hwif == X21) || (port->hwif == X21D)) hwif 1871 drivers/net/wan/farsync.c port->hwif = V35; hwif 1876 drivers/net/wan/farsync.c port->hwif = V24; hwif 1881 drivers/net/wan/farsync.c port->hwif = X21; hwif 1886 drivers/net/wan/farsync.c port->hwif = X21D; hwif 1891 drivers/net/wan/farsync.c port->hwif = T1; hwif 1896 drivers/net/wan/farsync.c port->hwif = E1; hwif 1933 drivers/net/wan/farsync.c switch (port->hwif) { hwif 2153 drivers/net/wan/farsync.c if (signals & (((port->hwif == X21) || (port->hwif == X21D)) hwif 244 drivers/scsi/bfa/bfa.h struct bfa_hwif_s hwif; hwif 265 drivers/scsi/bfa/bfa.h ((__bfa)->iocfc.hwif.hw_msix_init(__bfa, __nvecs)) hwif 267 drivers/scsi/bfa/bfa.h ((__bfa)->iocfc.hwif.hw_msix_ctrl_install(__bfa)) hwif 269 drivers/scsi/bfa/bfa.h ((__bfa)->iocfc.hwif.hw_msix_queue_install(__bfa)) hwif 271 drivers/scsi/bfa/bfa.h ((__bfa)->iocfc.hwif.hw_msix_uninstall(__bfa)) hwif 273 drivers/scsi/bfa/bfa.h ((__bfa)->iocfc.hwif.hw_rspq_ack(__bfa, __queue, __ci)) hwif 275 drivers/scsi/bfa/bfa.h if ((__bfa)->iocfc.hwif.hw_reqq_ack) \ hwif 276 drivers/scsi/bfa/bfa.h (__bfa)->iocfc.hwif.hw_reqq_ack(__bfa, __queue); \ hwif 279 drivers/scsi/bfa/bfa.h if ((__bfa)->iocfc.hwif.hw_isr_mode_set) \ hwif 280 drivers/scsi/bfa/bfa.h (__bfa)->iocfc.hwif.hw_isr_mode_set(__bfa, __msix); \ hwif 283 drivers/scsi/bfa/bfa.h ((__bfa)->iocfc.hwif.hw_msix_getvecs(__bfa, __vecmap, \ hwif 286 drivers/scsi/bfa/bfa.h ((__bfa)->iocfc.hwif.hw_msix_get_rme_range(__bfa, __start, __end)) hwif 886 drivers/scsi/bfa/bfa_core.c bfa_isr_reqq(bfa, vec - bfa->iocfc.hwif.cpe_vec_q0); hwif 902 drivers/scsi/bfa/bfa_core.c bfa_isr_rspq(bfa, vec - bfa->iocfc.hwif.rme_vec_q0); hwif 1049 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_reginit = bfa_hwct_reginit; hwif 1050 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_reqq_ack = bfa_hwct_reqq_ack; hwif 1051 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_rspq_ack = bfa_hwct_rspq_ack; hwif 1052 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_msix_init = bfa_hwct_msix_init; hwif 1053 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_msix_ctrl_install = bfa_hwct_msix_ctrl_install; hwif 1054 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_msix_queue_install = bfa_hwct_msix_queue_install; hwif 1055 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_msix_uninstall = bfa_hwct_msix_uninstall; hwif 1056 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_isr_mode_set = bfa_hwct_isr_mode_set; hwif 1057 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_msix_getvecs = bfa_hwct_msix_getvecs; hwif 1058 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_msix_get_rme_range = bfa_hwct_msix_get_rme_range; hwif 1059 drivers/scsi/bfa/bfa_core.c iocfc->hwif.rme_vec_q0 = BFI_MSIX_RME_QMIN_CT; hwif 1060 drivers/scsi/bfa/bfa_core.c iocfc->hwif.cpe_vec_q0 = BFI_MSIX_CPE_QMIN_CT; hwif 1062 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_reginit = bfa_hwcb_reginit; hwif 1063 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_reqq_ack = NULL; hwif 1064 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_rspq_ack = bfa_hwcb_rspq_ack; hwif 1065 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_msix_init = bfa_hwcb_msix_init; hwif 1066 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_msix_ctrl_install = bfa_hwcb_msix_ctrl_install; hwif 1067 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_msix_queue_install = bfa_hwcb_msix_queue_install; hwif 1068 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_msix_uninstall = bfa_hwcb_msix_uninstall; hwif 1069 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_isr_mode_set = bfa_hwcb_isr_mode_set; hwif 1070 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_msix_getvecs = bfa_hwcb_msix_getvecs; hwif 1071 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_msix_get_rme_range = bfa_hwcb_msix_get_rme_range; hwif 1072 drivers/scsi/bfa/bfa_core.c iocfc->hwif.rme_vec_q0 = BFI_MSIX_RME_QMIN_CB + hwif 1074 drivers/scsi/bfa/bfa_core.c iocfc->hwif.cpe_vec_q0 = BFI_MSIX_CPE_QMIN_CB + hwif 1079 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_reginit = bfa_hwct2_reginit; hwif 1080 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_isr_mode_set = NULL; hwif 1081 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_rspq_ack = bfa_hwct2_rspq_ack; hwif 1084 drivers/scsi/bfa/bfa_core.c iocfc->hwif.hw_reginit(bfa); hwif 169 drivers/scsi/bfa/bfa_hw_cb.c bfa->iocfc.hwif.hw_reqq_ack = bfa_hwcb_reqq_ack_msix; hwif 170 drivers/scsi/bfa/bfa_hw_cb.c bfa->iocfc.hwif.hw_rspq_ack = bfa_hwcb_rspq_ack_msix; hwif 172 drivers/scsi/bfa/bfa_hw_cb.c bfa->iocfc.hwif.hw_reqq_ack = NULL; hwif 173 drivers/scsi/bfa/bfa_hw_cb.c bfa->iocfc.hwif.hw_rspq_ack = bfa_hwcb_rspq_ack; hwif 503 drivers/scsi/bfa/bfa_ioc_ct.c bfa_ioc_set_ctx_hwif(struct bfa_ioc_s *ioc, struct bfa_ioc_hwif_s *hwif) hwif 505 drivers/scsi/bfa/bfa_ioc_ct.c hwif->ioc_firmware_lock = bfa_ioc_ct_firmware_lock; hwif 506 drivers/scsi/bfa/bfa_ioc_ct.c hwif->ioc_firmware_unlock = bfa_ioc_ct_firmware_unlock; hwif 507 drivers/scsi/bfa/bfa_ioc_ct.c hwif->ioc_notify_fail = bfa_ioc_ct_notify_fail; hwif 508 drivers/scsi/bfa/bfa_ioc_ct.c hwif->ioc_ownership_reset = bfa_ioc_ct_ownership_reset; hwif 509 drivers/scsi/bfa/bfa_ioc_ct.c hwif->ioc_sync_start = bfa_ioc_ct_sync_start; hwif 510 drivers/scsi/bfa/bfa_ioc_ct.c hwif->ioc_sync_join = bfa_ioc_ct_sync_join; hwif 511 drivers/scsi/bfa/bfa_ioc_ct.c hwif->ioc_sync_leave = bfa_ioc_ct_sync_leave; hwif 512 drivers/scsi/bfa/bfa_ioc_ct.c hwif->ioc_sync_ack = bfa_ioc_ct_sync_ack; hwif 513 drivers/scsi/bfa/bfa_ioc_ct.c hwif->ioc_sync_complete = bfa_ioc_ct_sync_complete; hwif 514 drivers/scsi/bfa/bfa_ioc_ct.c hwif->ioc_set_fwstate = bfa_ioc_ct_set_cur_ioc_fwstate; hwif 515 drivers/scsi/bfa/bfa_ioc_ct.c hwif->ioc_get_fwstate = bfa_ioc_ct_get_cur_ioc_fwstate; hwif 516 drivers/scsi/bfa/bfa_ioc_ct.c hwif->ioc_set_alt_fwstate = bfa_ioc_ct_set_alt_ioc_fwstate; hwif 517 drivers/scsi/bfa/bfa_ioc_ct.c hwif->ioc_get_alt_fwstate = bfa_ioc_ct_get_alt_ioc_fwstate; hwif 544 include/linux/ide.h struct hwif_s *hwif; /* actually (ide_hwif_t *) */ hwif 991 include/linux/ide.h static inline void ide_proc_register_port(ide_hwif_t *hwif) { ; } hwif 992 include/linux/ide.h static inline void ide_proc_port_register_devices(ide_hwif_t *hwif) { ; } hwif 994 include/linux/ide.h static inline void ide_proc_unregister_port(ide_hwif_t *hwif) { ; } hwif 1216 include/linux/ide.h extern int ide_wait_not_busy(ide_hwif_t *hwif, unsigned long timeout); hwif 1252 include/linux/ide.h static inline int ide_hwif_setup_dma(ide_hwif_t *hwif, hwif 1465 include/linux/ide.h static inline void ide_release_dma_engine(ide_hwif_t *hwif) { ; } hwif 1474 include/linux/ide.h bool ide_port_acpi(ide_hwif_t *hwif); hwif 1476 include/linux/ide.h extern void ide_acpi_get_timing(ide_hwif_t *hwif); hwif 1477 include/linux/ide.h extern void ide_acpi_push_timing(ide_hwif_t *hwif); hwif 1480 include/linux/ide.h extern void ide_acpi_set_state(ide_hwif_t *hwif, int on); hwif 1483 include/linux/ide.h static inline bool ide_port_acpi(ide_hwif_t *hwif) { return 0; } hwif 1485 include/linux/ide.h static inline void ide_acpi_get_timing(ide_hwif_t *hwif) { ; } hwif 1486 include/linux/ide.h static inline void ide_acpi_push_timing(ide_hwif_t *hwif) { ; } hwif 1487 include/linux/ide.h static inline void ide_acpi_init_port(ide_hwif_t *hwif) { ; } hwif 1488 include/linux/ide.h static inline void ide_acpi_port_init_devices(ide_hwif_t *hwif) { ; } hwif 1489 include/linux/ide.h static inline void ide_acpi_set_state(ide_hwif_t *hwif, int on) {} hwif 1513 include/linux/ide.h static inline void *ide_get_hwifdata (ide_hwif_t * hwif) hwif 1515 include/linux/ide.h return hwif->hwif_data; hwif 1518 include/linux/ide.h static inline void ide_set_hwifdata (ide_hwif_t * hwif, void *data) hwif 1520 include/linux/ide.h hwif->hwif_data = data; hwif 1589 include/linux/ide.h static inline int hwif_to_node(ide_hwif_t *hwif) hwif 1591 include/linux/ide.h return hwif->dev ? dev_to_node(hwif->dev) : -1; hwif 1596 include/linux/ide.h ide_drive_t *peer = drive->hwif->devices[(drive->dn ^ 1) & 1];