Home
last modified time | relevance | path

Searched refs:port_no (Results 1 – 25 of 76) sorted by relevance

1234

/drivers/ata/
Dsata_qstor.c189 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 …]
Dpdc_adma.c50 #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 …]
Dpata_efar.c45 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()
Dpata_rdc.c59 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()
Dpata_artop.c61 !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 …]
Dpata_atiixp.c58 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()
Dpata_cmd64x.c79 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 …]
Dahci_seattle.c106 val |= 1 << ACTIVITY_BIT_POS((ap->port_no)); in seattle_transmit_led_message()
108 val &= ~(1 << ACTIVITY_BIT_POS((ap->port_no))); in seattle_transmit_led_message()
111 val |= 1 << LOCATE_BIT_POS((ap->port_no)); in seattle_transmit_led_message()
113 val &= ~(1 << LOCATE_BIT_POS((ap->port_no))); in seattle_transmit_led_message()
116 val |= 1 << FAULT_BIT_POS((ap->port_no)); in seattle_transmit_led_message()
118 val &= ~(1 << FAULT_BIT_POS((ap->port_no))); in seattle_transmit_led_message()
Dpata_pdc202xx_old.c32 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()
Dpata_hpt37x.c349 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 …]
Dpata_sl82c105.c60 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()
Dpata_hpt3x2n.c154 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()
Dsata_sx4.c460 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 …]
Dpata_serverworks.c71 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()
Dpata_cmd640.c69 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()
Dpata_ali.c103 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()
Dpata_cs5520.c77 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()
Dpata_amd.c50 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()
Dpata_it821x.c130 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()
Dsata_sil.c271 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()
Dpata_sc1200.c100 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()
Dpata_oldpiix.c46 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()
Dpata_optidma.c62 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()
/drivers/tty/ipwireless/
Dsetup_protocol.h53 unsigned char port_no; member
65 unsigned char port_no; member
70 unsigned char port_no; member
/drivers/ide/
Dide-legacy.c6 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()

1234