/linux-4.4.14/drivers/ata/ |
D | sata_qstor.c | 189 u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); in qs_enter_reg_mode() 199 u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); in qs_reset_channel_logic() 319 u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); in qs_packet_start() 386 unsigned int port_no = (sff1 >> 8) & 0x03; in qs_intr_pkt() local 387 struct ata_port *ap = host->ports[port_no]; in qs_intr_pkt() 392 sff1, sff0, port_no, sHST, sDST); in qs_intr_pkt() 415 unsigned int handled = 0, port_no; in qs_intr_mmio() local 417 for (port_no = 0; port_no < host->n_ports; ++port_no) { in qs_intr_mmio() 418 struct ata_port *ap = host->ports[port_no]; in qs_intr_mmio() 486 void __iomem *chan = mmio_base + (ap->port_no * 0x4000); in qs_port_start() [all …]
|
D | pdc_adma.c | 50 #define ADMA_ATA_REGS(base, port_no) ((base) + ((port_no) * 0x40)) argument 53 #define ADMA_REGS(base, port_no) ((base) + 0x80 + ((port_no) * 0x20)) argument 57 ADMA_REGS((ap)->host->iomap[ADMA_MMIO_BAR], ap->port_no) 427 unsigned int handled = 0, port_no; in adma_intr_pkt() local 429 for (port_no = 0; port_no < host->n_ports; ++port_no) { in adma_intr_pkt() 430 struct ata_port *ap = host->ports[port_no]; in adma_intr_pkt() 477 unsigned int handled = 0, port_no; in adma_intr_mmio() local 479 for (port_no = 0; port_no < host->n_ports; ++port_no) { in adma_intr_mmio() 480 struct ata_port *ap = host->ports[port_no]; in adma_intr_mmio() 582 unsigned int port_no; in adma_host_init() local [all …]
|
D | pata_efar.c | 45 if (!pci_test_config_bits(pdev, &efar_enable_bits[ap->port_no])) in efar_pre_reset() 65 if (tmp & (2 >> ap->port_no)) in efar_cable_detect() 87 unsigned int master_port = ap->port_no ? 0x42 : 0x40; in efar_set_piomode() 124 int shift = 4 * ap->port_no; in efar_set_piomode() 132 slave_data &= ap->port_no ? 0x0F : 0xF0; in efar_set_piomode() 141 udma_enable &= ~(1 << (2 * ap->port_no + adev->devno)); in efar_set_piomode() 160 u8 master_port = ap->port_no ? 0x42 : 0x40; in efar_set_dmamode() 163 int devid = adev->devno + 2 * ap->port_no; in efar_set_dmamode() 217 slave_data &= ap->port_no ? 0x0F : 0xF0; in efar_set_dmamode() 219 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); in efar_set_dmamode()
|
D | pata_rdc.c | 59 mask = 0x30 << (2 * ap->port_no); in rdc_pata_cable_detect() 83 if (!pci_test_config_bits(pdev, &rdc_enable_bits[ap->port_no])) in rdc_pata_prereset() 107 unsigned int master_port= ap->port_no ? 0x42 : 0x40; in rdc_set_piomode() 144 slave_data &= (ap->port_no ? 0x0f : 0xf0); in rdc_set_piomode() 147 << (ap->port_no ? 4 : 0); in rdc_set_piomode() 166 udma_enable &= ~(1 << (2 * ap->port_no + adev->devno)); in rdc_set_piomode() 187 u8 master_port = ap->port_no ? 0x42 : 0x40; in rdc_set_dmamode() 190 int devid = adev->devno + 2 * ap->port_no; in rdc_set_dmamode() 266 slave_data &= (ap->port_no ? 0x0f : 0xf0); in rdc_set_dmamode() 268 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); in rdc_set_dmamode()
|
D | pata_artop.c | 61 !pci_test_config_bits(pdev, &artop_enable_bits[ap->port_no])) in artop62x0_pre_reset() 79 if (tmp & (1 << ap->port_no)) in artop6260_cable_detect() 101 int dn = adev->devno + 2 * ap->port_no; in artop6210_load_piomode() 128 int dn = adev->devno + 2 * ap->port_no; in artop6210_set_piomode() 155 int dn = adev->devno + 2 * ap->port_no; in artop6260_load_piomode() 187 pci_read_config_byte(pdev, 0x44 + ap->port_no, &ultra); in artop6260_set_piomode() 189 pci_write_config_byte(pdev, 0x44 + ap->port_no, ultra); in artop6260_set_piomode() 207 int dn = adev->devno + 2 * ap->port_no; in artop6210_set_dmamode() 258 pci_read_config_byte(pdev, 0x44 + ap->port_no, &ultra); in artop6260_set_dmamode() 266 pci_write_config_byte(pdev, 0x44 + ap->port_no, ultra); in artop6260_set_dmamode() [all …]
|
D | pata_atiixp.c | 58 pci_read_config_byte(pdev, ATIIXP_IDE_UDMA_MODE + ap->port_no, &udma); in atiixp_cable_detect() 85 if (!pci_test_config_bits(pdev, &atiixp_enable_bits[ap->port_no])) in atiixp_prereset() 106 int dn = 2 * ap->port_no + adev->devno; in atiixp_set_pio_timing() 107 int timing_shift = (16 * ap->port_no) + 8 * (adev->devno ^ 1); in atiixp_set_pio_timing() 154 int dn = 2 * ap->port_no + adev->devno; in atiixp_set_dmamode() 170 int timing_shift = (16 * ap->port_no) + 8 * (adev->devno ^ 1); in atiixp_set_dmamode() 216 int dn = (2 * ap->port_no) + adev->devno; in atiixp_bmdma_start() 243 int dn = (2 * ap->port_no) + qc->dev->devno; in atiixp_bmdma_stop()
|
D | pata_cmd64x.c | 79 if (r & (1 << ap->port_no)) in cmd648_cable_detect() 112 int arttim = arttim_port[ap->port_no][adev->devno]; in cmd64x_set_timing() 113 int drwtim = drwtim_port[ap->port_no][adev->devno]; in cmd64x_set_timing() 121 if (ap->port_no) { in cmd64x_set_timing() 199 int pciU = UDIDETCR0 + 8 * ap->port_no; in cmd64x_set_dmamode() 200 int pciD = BMIDESR0 + 8 * ap->port_no; in cmd64x_set_dmamode() 241 int irq_mask = ap->port_no ? ARTTIM23_INTR_CH1 : CFR_INTR_CH0; in cmd64x_sff_irq_check() 242 int irq_reg = ap->port_no ? ARTTIM23 : CFR; in cmd64x_sff_irq_check() 261 int irq_reg = ap->port_no ? ARTTIM23 : CFR; in cmd64x_sff_irq_clear() 281 int irq_mask = ap->port_no ? MRDMODE_INTR_CH1 : MRDMODE_INTR_CH0; in cmd648_sff_irq_check() [all …]
|
D | pata_pdc202xx_old.c | 32 if (cis & (1 << (10 + ap->port_no))) in pdc2026x_cable_detect() 52 if (ap->port_no) { in pdc202xx_irq_check() 81 int port = 0x60 + 8 * ap->port_no + 4 * adev->devno; in pdc202xx_configure_piomode() 128 int port = 0x60 + 8 * ap->port_no + 4 * adev->devno; in pdc202xx_set_dmamode() 181 int sel66 = ap->port_no ? 0x08: 0x02; in pdc2026x_bmdma_start() 185 void __iomem *atapi_reg = master + 0x20 + (4 * ap->port_no); in pdc2026x_bmdma_start() 232 int sel66 = ap->port_no ? 0x08: 0x02; in pdc2026x_bmdma_stop() 236 void __iomem *atapi_reg = master + 0x20 + (4 * ap->port_no); in pdc2026x_bmdma_stop()
|
D | pata_sl82c105.c | 60 if (ap->port_no && !pci_test_config_bits(pdev, &sl82c105_enable_bits[ap->port_no])) in sl82c105_pre_reset() 84 int timing = 0x44 + (8 * ap->port_no) + (4 * adev->devno); in sl82c105_configure_piomode() 121 int timing = 0x44 + (8 * ap->port_no) + (4 * adev->devno); in sl82c105_configure_dmamode() 215 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; in sl82c105_qc_defer() 233 u32 val, mask = ap->port_no ? CTRL_IDE_IRQB : CTRL_IDE_IRQA; in sl82c105_sff_irq_check()
|
D | pata_hpt37x.c | 349 if (ata66 & (2 >> ap->port_no)) in hpt37x_cable_detect() 365 unsigned int mcrbase = 0x50 + 4 * ap->port_no; in hpt374_fn1_cable_detect() 377 if (ata66 & (2 >> ap->port_no)) in hpt374_fn1_cable_detect() 400 if (!pci_test_config_bits(pdev, &hpt37x_enable_bits[ap->port_no])) in hpt37x_pre_reset() 404 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt37x_pre_reset() 418 addr1 = 0x40 + 4 * (adev->devno + 2 * ap->port_no); in hpt370_set_mode() 419 addr2 = 0x51 + 4 * ap->port_no; in hpt370_set_mode() 488 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt370_bmdma_stop() 498 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt370_bmdma_stop() 512 addr1 = 0x40 + 4 * (adev->devno + 2 * ap->port_no); in hpt372_set_mode() [all …]
|
D | pata_hpt3x2n.c | 154 if (ata66 & (2 >> ap->port_no)) in hpt3x2n_cable_detect() 175 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt3x2n_pre_reset() 189 addr1 = 0x40 + 4 * (adev->devno + 2 * ap->port_no); in hpt3x2n_set_mode() 190 addr2 = 0x51 + 4 * ap->port_no; in hpt3x2n_set_mode() 249 int mscreg = 0x50 + 2 * ap->port_no; in hpt3x2n_bmdma_stop() 254 if (bwsr_stat & (1 << ap->port_no)) in hpt3x2n_bmdma_stop() 277 void __iomem *bmdma = ap->ioaddr.bmdma_addr - ap->port_no * 8; in hpt3x2n_set_clock() 314 struct ata_port *alt = ap->host->ports[ap->port_no ^ 1]; in hpt3x2n_qc_defer()
|
D | pata_serverworks.c | 71 if (pdev->subsystem_device & (1 << (ap->port_no + 14))) in oem_cable() 199 int offset = 1 + 2 * ap->port_no - adev->devno; in serverworks_set_piomode() 200 int devbits = (2 * ap->port_no + adev->devno) * 4; in serverworks_set_piomode() 229 int offset = 1 + 2 * ap->port_no - adev->devno; in serverworks_set_dmamode() 230 int devbits = 2 * ap->port_no + adev->devno; in serverworks_set_dmamode() 236 pci_read_config_byte(pdev, 0x56 + ap->port_no, &ultra); in serverworks_set_dmamode() 250 pci_write_config_byte(pdev, 0x56 + ap->port_no, ultra); in serverworks_set_dmamode()
|
D | sata_sx4.c | 460 unsigned int portno = ap->port_no; in pdc20621_dma_prep() 520 unsigned int portno = ap->port_no; in pdc20621_nodata_prep() 622 unsigned int port_no = ap->port_no; in pdc20621_dump_hdma() local 625 dimm_mmio += (port_no * PDC_DIMM_WINDOW_STEP); in pdc20621_dump_hdma() 641 unsigned int port_no = ap->port_no; in pdc20621_packet_start() local 644 u8 seq = (u8) (port_no + 1); in pdc20621_packet_start() 654 port_ofs = PDC_20621_DIMM_BASE + (PDC_DIMM_WINDOW_STEP * port_no); in pdc20621_packet_start() 707 unsigned int port_no = ap->port_no; in pdc20621_host_intr() local 709 PDC_20621_DIMM_BASE + (PDC_DIMM_WINDOW_STEP * port_no); in pdc20621_host_intr() 730 u8 seq = (u8) (port_no + 1 + 4); in pdc20621_host_intr() [all …]
|
D | pata_cmd640.c | 69 if (ap->port_no && pair) { in cmd640_set_piomode() 96 if (ap->port_no == 0) { in cmd640_set_piomode() 135 if (ap->port_no != 0 && adev->devno != timing->last) { in cmd640_qc_issue() 166 int irq_reg = ap->port_no ? ARTIM23 : CFR; in cmd640_sff_irq_check() 167 u8 irq_stat, irq_mask = ap->port_no ? 0x10 : 0x04; in cmd640_sff_irq_check()
|
D | pata_ali.c | 103 if (ata66 & (1 << ap->port_no)) in ali_c2_cable_detect() 144 int pio_fifo = 0x54 + ap->port_no; in ali_fifo_control() 173 int cas = 0x58 + 4 * ap->port_no; /* Command timing */ in ali_program_modes() 174 int cbt = 0x59 + 4 * ap->port_no; /* Command timing */ in ali_program_modes() 175 int drwt = 0x5A + 4 * ap->port_no + adev->devno; /* R/W timing */ in ali_program_modes() 176 int udmat = 0x56 + ap->port_no; /* UDMA timing */ in ali_program_modes() 344 int port_bit = 4 << link->ap->port_no; in ali_c2_c3_postreset()
|
D | pata_cs5520.c | 77 pci_write_config_byte(pdev, 0x62 + ap->port_no, in cs5520_set_timings() 82 pci_write_config_byte(pdev, 0x64 + 4*ap->port_no + slave, in cs5520_set_timings() 86 pci_write_config_byte(pdev, 0x66 + 4*ap->port_no + slave, in cs5520_set_timings() 221 rc = devm_request_irq(&pdev->dev, irq[ap->port_no], in cs5520_init_one()
|
D | pata_sc1200.c | 100 unsigned int reg = 0x40 + 0x10 * ap->port_no; in sc1200_set_piomode() 135 unsigned int reg = 0x40 + 0x10 * ap->port_no; in sc1200_set_dmamode() 193 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; in sc1200_qc_defer()
|
D | pata_oldpiix.c | 46 if (!pci_test_config_bits(pdev, &oldpiix_enable_bits[ap->port_no])) in oldpiix_pre_reset() 67 unsigned int idetm_port= ap->port_no ? 0x42 : 0x40; in oldpiix_set_piomode() 128 u8 idetm_port = ap->port_no ? 0x42 : 0x40; in oldpiix_set_dmamode()
|
D | sata_via.c | 207 int slot = 2 * link->ap->port_no + link->pmp; in vt8251_scr_read() 255 int slot = 2 * link->ap->port_no + link->pmp; in vt8251_scr_write() 441 void __iomem *reg_addr = iomap[ap->port_no]; in vt6421_init_addrs() 442 void __iomem *bmdma_addr = iomap[4] + (ap->port_no * 8); in vt6421_init_addrs() 450 ioaddr->scr_addr = vt6421_scr_addr(iomap[5], ap->port_no); in vt6421_init_addrs() 454 ata_port_pbar_desc(ap, ap->port_no, -1, "port"); in vt6421_init_addrs() 455 ata_port_pbar_desc(ap, 4, ap->port_no * 8, "bmdma"); in vt6421_init_addrs()
|
D | pata_amd.c | 50 int dn = ap->port_no * 2 + adev->devno; in timing_setup() 141 if (!pci_test_config_bits(pdev, &amd_enable_bits[ap->port_no])) in amd_pre_reset() 161 if (ata66 & bitmask[ap->port_no]) in amd_cable_detect() 182 u8 fifo = fifobit[ap->port_no]; in amd_fifo_setup() 195 r &= ~fifobit[ap->port_no]; in amd_fifo_setup() 282 if (ap->port_no == 0) in nv_mode_filter() 339 if (!pci_test_config_bits(pdev, &nv_enable_bits[ap->port_no])) in nv_pre_reset()
|
D | sata_sil.c | 271 void __iomem *bmdma2 = mmio_base + sil_port[ap->port_no].bmdma2; in sil_bmdma_stop() 297 void __iomem *bmdma2 = mmio_base + sil_port[ap->port_no].bmdma2; in sil_bmdma_start() 364 void __iomem *addr = mmio_base + sil_port[ap->port_no].xfer_mode; in sil_set_mode() 532 u32 bmdma2 = readl(mmio_base + sil_port[ap->port_no].bmdma2); in sil_interrupt() 557 writel(0, mmio_base + sil_port[ap->port_no].sien); in sil_freeze() 561 tmp |= SIL_MASK_IDE0_INT << ap->port_no; in sil_freeze() 590 writel(SIL_SIEN_N, mmio_base + sil_port[ap->port_no].sien); in sil_thaw() 594 tmp &= ~(SIL_MASK_IDE0_INT << ap->port_no); in sil_thaw()
|
D | pata_it821x.c | 130 int channel = ap->port_no; in it821x_program() 158 int channel = ap->port_no; in it821x_program_udma() 224 v &= ~(1 << (1 + ap->port_no)); in it821x_clock_strategy() 225 v |= sel << (1 + ap->port_no); in it821x_clock_strategy() 294 int channel = ap->port_no; in it821x_passthru_set_dmamode() 757 if (ap->port_no == 0) in it821x_port_start() 761 if (conf & (1 << (1 + ap->port_no))) in it821x_port_start() 794 if (r40 & (1 << (2 + ap->port_no))) in it821x_rdc_cable()
|
D | pata_optidma.c | 62 if (ap->port_no && !pci_test_config_bits(pdev, &optidma_enable_bits)) in optidma_pre_reset() 206 int unit = 2 * ap->port_no + adev->devno; in optiplus_mode_setup() 215 if (ap->port_no) { in optiplus_mode_setup() 321 int nybble = 4 * ap->port_no; in optidma_set_mode()
|
D | pata_it8213.c | 39 if (!pci_test_config_bits(pdev, &it8213_enable_bits[ap->port_no])) in it8213_pre_reset() 78 unsigned int master_port = ap->port_no ? 0x42 : 0x40; in it8213_set_piomode() 214 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); in it8213_set_dmamode()
|
D | pata_marvell.c | 72 if (pdev->device == 0x6145 && ap->port_no == 0 && in marvell_pre_reset() 82 switch(ap->port_no) in marvell_cable_detect()
|
D | pata_jmicron.c | 47 int port_mask = 1<< (4 * ap->port_no); in jmicron_pre_reset() 48 int port = ap->port_no; in jmicron_pre_reset()
|
D | pata_sil680.c | 53 base += (ap->port_no << 4); in sil680_selreg() 70 base += (ap->port_no << 4); in sil680_seldev() 117 unsigned long addr_mask = 0x80 + 4 * ap->port_no; in sil680_set_piomode() 169 unsigned long addr_mask = 0x80 + 4 * ap->port_no; in sil680_set_dmamode()
|
D | pata_icside.c | 216 state->port[ap->port_no].speed[adev->devno] = cycle; in pata_icside_set_dmamode() 234 writeb(state->port[ap->port_no].port_sel, state->ioc_base); in pata_icside_bmdma_setup() 236 set_dma_speed(state->dma, state->port[ap->port_no].speed[qc->dev->devno]); in pata_icside_bmdma_setup() 269 irq_port = state->irq_port + (ap->port_no ? ICS_ARCIN_V6_INTRSTAT_2 : in pata_icside_bmdma_status() 309 state->port[ap->port_no].disabled = 1; in pata_icside_postreset() 318 (ap->port_no ? ICS_ARCIN_V6_INTROFFSET_2 : ICS_ARCIN_V6_INTROFFSET_1); in pata_icside_postreset()
|
D | pata_ns87410.c | 48 if (!pci_test_config_bits(pdev, &ns87410_enable_bits[ap->port_no])) in ns87410_pre_reset() 66 int port = 0x40 + 4 * ap->port_no; in ns87410_set_piomode()
|
D | pata_sis.c | 87 return 0x40 + (4 * adev->link->ap->port_no) + (2 * adev->devno); in sis_old_port_base() 110 return port + (8 * ap->port_no) + (4 * adev->devno); in sis_port_base() 128 pci_read_config_word(pdev, 0x50 + 2 * ap->port_no, &tmp); in sis_133_cable_detect() 149 tmp >>= ap->port_no; in sis_66_cable_detect() 174 if (!pci_test_config_bits(pdev, &sis_enable_bits[ap->port_no])) in sis_pre_reset() 200 mask <<= (2 * ap->port_no); in sis_set_fifo()
|
D | ahci.h | 405 unsigned int port_no) in __ahci_port_base() argument 410 return mmio + 0x100 + (port_no * 0x80); in __ahci_port_base() 415 return __ahci_port_base(ap->host, ap->port_no); in ahci_port_base()
|
D | pata_triflex.c | 65 if (!pci_test_config_bits(pdev, &triflex_enable_bits[ap->port_no])) in triflex_prereset() 90 int channel_offset = ap->port_no ? 0x74: 0x70; in triflex_load_timing()
|
D | ahci_xgene.c | 215 if (ctx->class[ap->port_no] == ATA_DEV_PMP) { in xgene_ahci_qc_issue() 222 if (unlikely((ctx->last_cmd[ap->port_no] == ATA_CMD_ID_ATA) || in xgene_ahci_qc_issue() 223 (ctx->last_cmd[ap->port_no] == ATA_CMD_PACKET) || in xgene_ahci_qc_issue() 224 (ctx->last_cmd[ap->port_no] == ATA_CMD_SMART))) in xgene_ahci_qc_issue() 230 ctx->last_cmd[ap->port_no] = qc->tf.command; in xgene_ahci_qc_issue() 536 ctx->class[ap->port_no] = *class; in xgene_ahci_softreset()
|
D | pata_via.c | 188 if ((config->flags & VIA_SATA_PATA) && ap->port_no == 0) in via_cable_detect() 201 if (ata66 & (0x10100000 >> (16 * ap->port_no))) in via_cable_detect() 221 if (!pci_test_config_bits(pdev, &via_enable_bits[ap->port_no])) in via_pre_reset() 254 int offset = 3 - (2*ap->port_no) - adev->devno; in via_do_set_mode() 288 pci_write_config_byte(pdev, 0x4F - ap->port_no, in via_do_set_mode()
|
D | sata_vsc.c | 125 VSC_SATA_INT_MASK_OFFSET + ap->port_no; in vsc_freeze() 136 VSC_SATA_INT_MASK_OFFSET + ap->port_no; in vsc_thaw() 148 VSC_SATA_INT_MASK_OFFSET + ap->port_no; in vsc_intr_mask_update()
|
D | ata_piix.c | 539 mask = ap->port_no == 0 ? PIIX_80C_PRI : PIIX_80C_SEC; in ich_pata_cable_detect() 558 if (!pci_test_config_bits(pdev, &piix_enable_bits[ap->port_no])) in piix_pata_prereset() 571 unsigned int master_port= ap->port_no ? 0x42 : 0x40; in piix_set_timings() 618 slave_data &= (ap->port_no ? 0x0f : 0xf0); in piix_set_timings() 621 << (ap->port_no ? 4 : 0); in piix_set_timings() 644 udma_enable &= ~(1 << (2 * ap->port_no + adev->devno)); in piix_set_timings() 684 int devid = adev->devno + 2 * ap->port_no; in do_pata_set_dmamode() 797 iowrite32(((ap->port_no * 2 + link->pmp) << 8) | piix_sidx_map[reg], in piix_sidpr_sel()
|
D | sata_nv.c | 719 if (ap->port_no == 1) in nv_adma_slave_config() 949 if (!NV_ADMA_CHECK_INTR(gen_ctl, ap->port_no) && !notifier && in nv_adma_interrupt() 1052 writeb(NV_INT_ALL << (ap->port_no * NV_INT_PORT_SHIFT), in nv_adma_freeze() 1092 writeb(NV_INT_ALL << (ap->port_no * NV_INT_PORT_SHIFT), in nv_adma_irq_clear() 1100 if (ap->port_no == 0) { in nv_adma_irq_clear() 1153 ap->port_no * NV_ADMA_PORT_SIZE; in nv_adma_port_start() 1157 NV_ADMA_NOTIFIER_CLEAR + (4 * ap->port_no); in nv_adma_port_start() 1289 mmio += NV_ADMA_PORT + ap->port_no * NV_ADMA_PORT_SIZE; in nv_adma_setup_port() 1599 int shift = ap->port_no * NV_INT_PORT_SHIFT; in nv_nf2_freeze() 1610 int shift = ap->port_no * NV_INT_PORT_SHIFT; in nv_nf2_thaw() [all …]
|
D | pata_hpt3x3.c | 41 int dn = 2 * ap->port_no + adev->devno; in hpt3x3_set_piomode() 71 int dn = 2 * ap->port_no + adev->devno; in hpt3x3_set_dmamode()
|
D | acard-ahci.c | 345 ap->port_no); in acard_ahci_port_start() 349 ap->port_no); in acard_ahci_port_start() 479 0x100 + ap->port_no * 0x80, "port"); in acard_ahci_init_one()
|
D | libata-acpi.c | 187 acpi_preset_companion(&ap->tdev, host_companion, ap->port_no); in ata_acpi_bind_port() 224 adr = SATA_ADR(ap->port_no, NO_PORT_MULT); in ata_acpi_bind_dev() 226 adr = SATA_ADR(ap->port_no, dev->link->pmp); in ata_acpi_bind_dev() 422 __func__, ap->port_no); in ata_dev_get_GTF() 779 __func__, dev->devno, ap->port_no); in ata_acpi_push_id()
|
D | sata_highbank.c | 162 ecx_parse_sgpio(pdata, ap->port_no, state); in ecx_transmit_led_message() 421 highbank_cphy_disable_overrides(link->ap->port_no); in ahci_highbank_hardreset() 423 highbank_cphy_override_lane(link->ap->port_no); in ahci_highbank_hardreset() 554 ata_port_desc(ap, "port 0x%x", 0x100 + ap->port_no * 0x80); in ahci_highbank_probe()
|
D | pata_pdc2027x.c | 189 return ap->host->iomap[PDC_MMIO_BAR] + ap->port_no * 0x100 + offset; in port_mmio() 223 PDPRINTK("No cable or 80-conductor cable on port %d\n", ap->port_no); in pdc2027x_cable_detect() 227 printk(KERN_INFO DRV_NAME ": 40-conductor cable detected on port %d\n", ap->port_no); in pdc2027x_cable_detect()
|
D | sata_promise.c | 692 static unsigned int pdc_port_no_to_ata_no(unsigned int port_no, in pdc_port_no_to_ata_no() argument 696 return is_sataii_tx4 ? sataii_tx4_port_remap[port_no] : port_no; in pdc_port_no_to_ata_no() 1025 unsigned int port_no = ap->port_no; in pdc_packet_start() local 1026 u8 seq = (u8) (port_no + 1); in pdc_packet_start()
|
D | pata_opti.c | 62 if (!pci_test_config_bits(pdev, &opti_enable_bits[ap->port_no])) in opti_pre_reset()
|
D | pata_cypress.c | 102 int reg = CY82_INDEX_CHANNEL0 + ap->port_no; in cy82c693_set_dmamode()
|
D | libahci.c | 910 led_message |= ap->port_no | (link->pmp << 8); in ahci_sw_activity_blink() 1012 message[1] = ((state & ~EM_MSG_LED_HBA_PORT) | ap->port_no); in ahci_transmit_led_message() 1088 port_led_state |= (ap->port_no | (link->pmp << 8)); in ahci_activity_store() 1095 port_led_state |= (ap->port_no | (link->pmp << 8)); in ahci_activity_store() 1118 int port_no, void __iomem *mmio, in ahci_port_init() argument 1142 writel(1 << port_no, mmio + HOST_IRQ_STAT); in ahci_port_init() 2024 writel(1 << ap->port_no, mmio + HOST_IRQ_STAT); in ahci_thaw() 2296 "%s%d", dev_driver_string(dev), ap->port_no); in ahci_port_start() 2307 ap->port_no); in ahci_port_start() 2311 ap->port_no); in ahci_port_start()
|
D | sata_mv.c | 648 unsigned int port_no); 937 return mv_port_base(mv_host_base(ap->host), ap->port_no); in mv_ap_base() 1066 unsigned int shift, hardport, port = ap->port_no; in mv_enable_port_irqs() 1081 int hardport = mv_hardport_from_port(ap->port_no); in mv_clear_and_enable_port_irqs() 1083 mv_host_base(ap->host), ap->port_no); in mv_clear_and_enable_port_irqs() 1583 hc_mmio = mv_hc_base_from_port(mv_host_base(host), ap->port_no); in mv_soc_led_blink_enable() 1609 hc_mmio = mv_hc_base_from_port(mv_host_base(host), ap->port_no); in mv_soc_led_blink_disable() 3074 void __iomem *addr = mv5_phy_base(mmio, link->ap->port_no); in mv5_scr_read() 3088 void __iomem *addr = mv5_phy_base(mmio, link->ap->port_no); in mv5_scr_write() 3575 unsigned int port_no) in mv_reset_channel() argument [all …]
|
D | sata_uli.c | 106 return hpriv->scr_cfg_addr[ap->port_no] + (4 * sc_reg); in get_scr_cfg_addr()
|
D | pata_cs5530.c | 42 return (void __iomem *)((bmdma & ~0x0F) + 0x20 + 0x10 * ap->port_no); in cs5530_port_base()
|
D | sata_sis.c | 122 if (ap->port_no) { in get_scr_cfg_addr()
|
D | libata-transport.c | 220 ata_port_simple_attr(local_port_no, port_no, "%u\n", unsigned int); 739 SETUP_PORT_ATTRIBUTE(port_no); in ata_attach_transport()
|
D | pata_legacy.c | 674 outb(timing, ld_qdi->timing + 2 * ap->port_no); in qdi65x0_set_piomode() 699 2 * ap->port_no); in qdi_qc_issue() 792 int timing = 0x88 + (ap->port_no * 4) + (adev->devno * 2); in winbond_set_piomode()
|
D | pata_ns87415.c | 55 int unit = 2 * ap->port_no + adev->devno; in ns87415_set_mode()
|
D | sata_dwc_460ex.c | 837 dev_dbg(ap->dev, "%s: port_no=%d\n", __func__, ap->port_no); in sata_dwc_port_start() 877 if (ap->port_no == 0) { in sata_dwc_port_start() 1041 __func__, ap->port_no, get_dma_dir_descript(qc->dma_dir), in sata_dwc_qc_prep_by_tag()
|
D | pata_atp867x.c | 353 int port = ap->port_no; in atp867x_set_priv()
|
D | libahci_platform.c | 562 ata_port_desc(ap, "port 0x%x", 0x100 + ap->port_no * 0x80); in ahci_platform_init_host()
|
D | ahci.c | 765 int port = ap->port_no; in ahci_avn_hardreset() 1623 0x100 + ap->port_no * 0x80, "port"); in ahci_init_one()
|
D | sata_inic162x.c | 262 return hpriv->mmio_base + ap->port_no * PORT_SIZE; in inic_port_base()
|
D | sata_sil24.c | 471 return ap->port_no * PORT_REGS_SIZE; in sil24_port_offset()
|
D | libata-core.c | 5756 ap->port_no = i; in ata_host_alloc() 6089 if (!(ap->host->flags & ATA_HOST_PARALLEL_SCAN) && ap->port_no != 0) in async_port_probe()
|
D | libata-scsi.c | 4110 ap->port_no = 0; in ata_sas_port_alloc()
|
/linux-4.4.14/net/openvswitch/ |
D | datapath.h | 167 struct vport *ovs_lookup_vport(const struct datapath *dp, u16 port_no); 169 static inline struct vport *ovs_vport_rcu(const struct datapath *dp, int port_no) in ovs_vport_rcu() argument 172 return ovs_lookup_vport(dp, port_no); in ovs_vport_rcu() 175 static inline struct vport *ovs_vport_ovsl_rcu(const struct datapath *dp, int port_no) in ovs_vport_ovsl_rcu() argument 178 return ovs_lookup_vport(dp, port_no); in ovs_vport_ovsl_rcu() 181 static inline struct vport *ovs_vport_ovsl(const struct datapath *dp, int port_no) in ovs_vport_ovsl() argument 184 return ovs_lookup_vport(dp, port_no); in ovs_vport_ovsl()
|
D | vport-geneve.c | 37 u16 port_no; member 50 if (nla_put_u16(skb, OVS_TUNNEL_ATTR_DST_PORT, geneve_port->port_no)) in geneve_get_options() 86 geneve_port->port_no = dst_port; in geneve_tnl_create()
|
D | datapath.c | 210 u16 port_no) in vport_hash_bucket() argument 212 return &dp->ports[port_no & (DP_VPORT_HASH_BUCKETS - 1)]; in vport_hash_bucket() 216 struct vport *ovs_lookup_vport(const struct datapath *dp, u16 port_no) in ovs_lookup_vport() argument 221 head = vport_hash_bucket(dp, port_no); in ovs_lookup_vport() 223 if (vport->port_no == port_no) in ovs_lookup_vport() 237 struct hlist_head *head = vport_hash_bucket(dp, vport->port_no); in new_vport() 1502 dp = vport && vport->port_no == OVSP_LOCAL ? vport->dp : NULL; in lookup_datapath() 1576 parms.port_no = OVSP_LOCAL; in ovs_dp_cmd_new() 1639 if (vport->port_no != OVSP_LOCAL) in __dp_destroy() 1831 if (nla_put_u32(skb, OVS_VPORT_ATTR_PORT_NO, vport->port_no) || in ovs_vport_cmd_fill_info() [all …]
|
D | vport.h | 86 u16 port_no; member 113 u16 port_no; member
|
D | vport.c | 148 vport->port_no = parms->port_no; in ovs_vport_alloc()
|
D | vport-internal_dev.c | 208 if (vport->port_no == OVSP_LOCAL) in internal_dev_create()
|
D | flow.c | 722 key->phy.in_port = OVS_CB(skb)->input_vport->port_no; in ovs_flow_key_extract()
|
/linux-4.4.14/drivers/tty/ipwireless/ |
D | setup_protocol.h | 53 unsigned char port_no; member 65 unsigned char port_no; member 70 unsigned char port_no; member
|
D | hardware.c | 1417 config_packet->body.port_no = port; in __handle_setup_get_version_rsp() 1442 open_packet->body.port_no = port; in __handle_setup_get_version_rsp() 1548 unsigned int channel_idx = rx_msg->open_msg.port_no - 1; in handle_received_SETUP_packet()
|
/linux-4.4.14/drivers/ide/ |
D | ide-legacy.c | 6 u8 port_no, const struct ide_port_info *d, in ide_legacy_init_one() argument 12 if (port_no == 0) { in ide_legacy_init_one() 39 hws[port_no] = hw; in ide_legacy_init_one()
|
/linux-4.4.14/net/bridge/ |
D | br_stp.c | 36 (unsigned int) p->port_no, p->dev->name, in br_log_state() 53 (unsigned int) p->port_no, p->dev->name); in br_set_state() 57 struct net_bridge_port *br_get_port(struct net_bridge *br, u16 port_no) in br_get_port() argument 62 if (p->port_no == port_no) in br_get_port() 125 (unsigned int) p->port_no, p->dev->name); in br_root_port_block() 148 root_port = p->port_no; in br_root_selection() 452 if (p->port_no == br->root_port) { in br_port_state_selection() 515 if (p->port_no == br->root_port) { in br_received_config_bpdu() 531 (unsigned int) p->port_no, p->dev->name); in br_received_tcn_bpdu()
|
D | br_stp_timer.c | 61 (unsigned int) p->port_no, p->dev->name, in br_message_age_timer_expired() 89 (unsigned int) p->port_no, p->dev->name); in br_forward_delay_timer_expired() 138 (unsigned int) p->port_no, p->dev->name); in br_hold_timer_expired()
|
D | br_stp_if.c | 28 static inline port_id br_make_port_id(__u8 priority, __u16 port_no) in br_make_port_id() argument 31 | (port_no & ((1<<BR_PORT_BITS)-1)); in br_make_port_id() 46 p->port_id = br_make_port_id(p->priority, p->port_no); in br_init_port() 307 new_port_id = br_make_port_id(newprio, p->port_no); in br_stp_set_port_priority()
|
D | br_stp_bpdu.c | 184 (unsigned int) p->port_no, p->dev->name); in br_stp_rcv() 234 p->port_no, in br_stp_rcv()
|
D | br_sysfs_if.c | 117 return sprintf(buf, "0x%x\n", p->port_no); in show_port_no() 120 static BRPORT_ATTR(port_no, S_IRUGO, show_port_no, NULL);
|
D | br_ioctl.c | 47 if (p->port_no < num) in get_port_ifindices() 48 ifindices[p->port_no] = p->dev->ifindex; in get_port_ifindices()
|
D | br_if.c | 308 set_bit(p->port_no, inuse); in find_portno() 336 p->port_no = index; in new_nbp()
|
D | br_fdb.c | 452 fe->port_no = f->dst->port_no; in br_fdb_fillbuf() 453 fe->port_hi = f->dst->port_no >> 8; in br_fdb_fillbuf()
|
D | br_vlan.c | 802 set_bit(p->port_no, changed); in __br_vlan_set_default_pvid() 813 if (!test_bit(p->port_no, changed)) in __br_vlan_set_default_pvid()
|
D | br_private.h | 194 u16 port_no; member 902 struct net_bridge_port *br_get_port(struct net_bridge *br, u16 port_no);
|
D | br_netlink.c | 186 nla_put_u16(skb, IFLA_BRPORT_NO, p->port_no) || in br_port_fill_attrs() 439 (unsigned int)port->port_no, port->dev->name, event); in br_ifinfo_notify()
|
/linux-4.4.14/arch/mips/include/asm/mach-bcm63xx/ |
D | bcm63xx_dev_usb_usbd.h | 12 int port_no; member
|
/linux-4.4.14/drivers/input/serio/ |
D | i8042.c | 471 unsigned int port_no; in i8042_interrupt() local 523 port_no = I8042_MUX_PORT_NO + ((str >> 6) & 3); in i8042_interrupt() 531 port_no = (str & I8042_STR_AUXDATA) ? in i8042_interrupt() 535 port = &i8042_ports[port_no]; in i8042_interrupt() 539 port_no, irq, in i8042_interrupt() 1296 int port_no = idx < 0 ? I8042_AUX_PORT_NO : I8042_MUX_PORT_NO + idx; in i8042_create_aux_port() local 1297 struct i8042_port *port = &i8042_ports[port_no]; in i8042_create_aux_port()
|
/linux-4.4.14/drivers/scsi/qla2xxx/ |
D | qla_sup.c | 685 ha->flt_region_fcp_prio = (ha->port_no == 0) ? in qla2xxx_get_flt_info() 746 if (ha->port_no == 0) in qla2xxx_get_flt_info() 752 if (ha->port_no == 1) in qla2xxx_get_flt_info() 758 if (ha->port_no == 2) in qla2xxx_get_flt_info() 764 if (ha->port_no == 3) in qla2xxx_get_flt_info() 770 if (ha->port_no == 0) in qla2xxx_get_flt_info() 776 if (ha->port_no == 1) in qla2xxx_get_flt_info() 782 if (ha->port_no == 2) in qla2xxx_get_flt_info() 788 if (ha->port_no == 3) in qla2xxx_get_flt_info() 795 if (ha->port_no == 0) in qla2xxx_get_flt_info() [all …]
|
D | qla_os.c | 2226 ha->port_no = ha->portnum & 1; in qla2x00_set_isp_flags() 2229 pci_read_config_byte(ha->pdev, PCI_INTERRUPT_PIN, &ha->port_no); in qla2x00_set_isp_flags() 2231 ha->port_no--; in qla2x00_set_isp_flags() 2233 ha->port_no = !(ha->port_no & 1); in qla2x00_set_isp_flags() 2238 ha->device_type, ha->port_no, ha->fw_srisc_address); in qla2x00_set_isp_flags()
|
D | qla_init.c | 5085 if (ha->port_no == 0) { in qla24xx_nvram_config() 5136 nv->port_name[1] = 0x00 + ha->port_no + 1; in qla24xx_nvram_config() 6082 nv->port_name[1] = 0x00 + ha->port_no + 1; in qla81xx_nvram_config() 6116 nv->enode_mac[5] = 0x06 + ha->port_no + 1; in qla81xx_nvram_config() 6154 icb->enode_mac[5] = 0x06 + ha->port_no + 1; in qla81xx_nvram_config()
|
D | qla_def.h | 3020 uint8_t port_no; /* Physical port of adapter */ member
|
D | qla_isr.c | 684 if ((mbx & MBX_3) && (ha->port_no == 0)) in qla2x00_async_event()
|
/linux-4.4.14/drivers/usb/wusbcore/ |
D | wusbhc.h | 468 static inline u8 wusb_port_no_to_idx(u8 port_no) in wusb_port_no_to_idx() argument 470 return port_no - 1; in wusb_port_no_to_idx()
|
/linux-4.4.14/include/uapi/linux/ |
D | if_bridge.h | 94 __u8 port_no; member
|
/linux-4.4.14/drivers/scsi/aic94xx/ |
D | aic94xx_dev.c | 275 flags = (dev->sata_dev.port_no << 4) | PM_PORT_SET; in asd_init_sata_pm_port_ddb() 284 asd_ddbsite_write_word(asd_ha, pmtable_ddb, dev->sata_dev.port_no,ddb); in asd_init_sata_pm_port_ddb()
|
/linux-4.4.14/drivers/block/ |
D | sx8.c | 244 unsigned int port_no; member 904 msg->id = port->port_no; in carm_rq_fn() 991 pci_name(host->pdev), port->port_no, in carm_handle_array_info() 994 pci_name(host->pdev), port->port_no, port->name); in carm_handle_array_info() 1503 port->port_no = i; in carm_init_disks()
|
/linux-4.4.14/arch/mips/bcm63xx/boards/ |
D | board_bcm963xx.c | 87 .port_no = 0,
|
/linux-4.4.14/include/scsi/ |
D | libsas.h | 169 u8 port_no; /* port number, if this is a PM (Port) */ member
|
/linux-4.4.14/drivers/s390/net/ |
D | qeth_core.h | 304 __u8 port_no; member
|
/linux-4.4.14/drivers/usb/gadget/udc/ |
D | bcm63xx_udc.c | 881 u32 val, portmask = BIT(udc->pd->port_no); in bcm63xx_select_phy_mode() 921 u32 val, portmask = BIT(udc->pd->port_no); in bcm63xx_select_pullup()
|
/linux-4.4.14/include/linux/ |
D | libata.h | 819 unsigned int port_no; /* 0 based port no. inside the host */ member
|