/linux-3.4.99/arch/h8300/platform/h8s/ |
D | irq.c | 40 unsigned char port_no; member 70 port = irq_assign_table1[irq - EXT_IRQ0].port_no; \ 73 port = irq_assign_table0[irq - EXT_IRQ0].port_no; \ 82 unsigned int port_no,bit_no; in h8300_enable_irq_pin() local 83 IRQ_GPIO_MAP(ptn, irq, port_no, bit_no); in h8300_enable_irq_pin() 84 if (H8300_GPIO_RESERVE(port_no, bit_no) == 0) in h8300_enable_irq_pin() 86 H8300_GPIO_DDR(port_no, bit_no, H8300_GPIO_INPUT); in h8300_enable_irq_pin() 98 unsigned short port_no,bit_no; in h8300_disable_irq_pin() local 101 IRQ_GPIO_MAP(ptn, irq, port_no, bit_no); in h8300_disable_irq_pin() 102 H8300_GPIO_FREE(port_no, bit_no); in h8300_disable_irq_pin()
|
/linux-3.4.99/drivers/ata/ |
D | sata_qstor.c | 190 u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); in qs_enter_reg_mode() 200 u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); in qs_reset_channel_logic() 320 u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); in qs_packet_start() 387 unsigned int port_no = (sff1 >> 8) & 0x03; in qs_intr_pkt() local 388 struct ata_port *ap = host->ports[port_no]; in qs_intr_pkt() 393 sff1, sff0, port_no, sHST, sDST); in qs_intr_pkt() 416 unsigned int handled = 0, port_no; in qs_intr_mmio() local 418 for (port_no = 0; port_no < host->n_ports; ++port_no) { in qs_intr_mmio() 419 struct ata_port *ap = host->ports[port_no]; in qs_intr_mmio() 487 void __iomem *chan = mmio_base + (ap->port_no * 0x4000); in qs_port_start() [all …]
|
D | pdc_adma.c | 51 #define ADMA_ATA_REGS(base, port_no) ((base) + ((port_no) * 0x40)) argument 54 #define ADMA_REGS(base, port_no) ((base) + 0x80 + ((port_no) * 0x20)) argument 58 ADMA_REGS((ap)->host->iomap[ADMA_MMIO_BAR], ap->port_no) 428 unsigned int handled = 0, port_no; in adma_intr_pkt() local 430 for (port_no = 0; port_no < host->n_ports; ++port_no) { in adma_intr_pkt() 431 struct ata_port *ap = host->ports[port_no]; in adma_intr_pkt() 478 unsigned int handled = 0, port_no; in adma_intr_mmio() local 480 for (port_no = 0; port_no < host->n_ports; ++port_no) { in adma_intr_mmio() 481 struct ata_port *ap = host->ports[port_no]; in adma_intr_mmio() 583 unsigned int port_no; in adma_host_init() local [all …]
|
D | pata_efar.c | 46 if (!pci_test_config_bits(pdev, &efar_enable_bits[ap->port_no])) in efar_pre_reset() 66 if (tmp & (2 >> ap->port_no)) in efar_cable_detect() 88 unsigned int master_port = ap->port_no ? 0x42 : 0x40; in efar_set_piomode() 125 int shift = 4 * ap->port_no; in efar_set_piomode() 133 slave_data &= ap->port_no ? 0x0F : 0xF0; in efar_set_piomode() 142 udma_enable &= ~(1 << (2 * ap->port_no + adev->devno)); in efar_set_piomode() 161 u8 master_port = ap->port_no ? 0x42 : 0x40; in efar_set_dmamode() 164 int devid = adev->devno + 2 * ap->port_no; in efar_set_dmamode() 218 slave_data &= ap->port_no ? 0x0F : 0xF0; in efar_set_dmamode() 220 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); in efar_set_dmamode()
|
D | pata_rdc.c | 60 mask = 0x30 << (2 * ap->port_no); in rdc_pata_cable_detect() 84 if (!pci_test_config_bits(pdev, &rdc_enable_bits[ap->port_no])) in rdc_pata_prereset() 108 unsigned int master_port= ap->port_no ? 0x42 : 0x40; in rdc_set_piomode() 145 slave_data &= (ap->port_no ? 0x0f : 0xf0); in rdc_set_piomode() 148 << (ap->port_no ? 4 : 0); in rdc_set_piomode() 167 udma_enable &= ~(1 << (2 * ap->port_no + adev->devno)); in rdc_set_piomode() 188 u8 master_port = ap->port_no ? 0x42 : 0x40; in rdc_set_dmamode() 191 int devid = adev->devno + 2 * ap->port_no; in rdc_set_dmamode() 267 slave_data &= (ap->port_no ? 0x0f : 0xf0); in rdc_set_dmamode() 269 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); in rdc_set_dmamode()
|
D | pata_artop.c | 62 !pci_test_config_bits(pdev, &artop_enable_bits[ap->port_no])) in artop62x0_pre_reset() 80 if (tmp & (1 << ap->port_no)) in artop6260_cable_detect() 102 int dn = adev->devno + 2 * ap->port_no; in artop6210_load_piomode() 129 int dn = adev->devno + 2 * ap->port_no; in artop6210_set_piomode() 156 int dn = adev->devno + 2 * ap->port_no; in artop6260_load_piomode() 188 pci_read_config_byte(pdev, 0x44 + ap->port_no, &ultra); in artop6260_set_piomode() 190 pci_write_config_byte(pdev, 0x44 + ap->port_no, ultra); in artop6260_set_piomode() 208 int dn = adev->devno + 2 * ap->port_no; in artop6210_set_dmamode() 259 pci_read_config_byte(pdev, 0x44 + ap->port_no, &ultra); in artop6260_set_dmamode() 267 pci_write_config_byte(pdev, 0x44 + ap->port_no, ultra); in artop6260_set_dmamode() [all …]
|
D | pata_atiixp.c | 43 pci_read_config_byte(pdev, ATIIXP_IDE_UDMA_MODE + ap->port_no, &udma); in atiixp_cable_detect() 70 if (!pci_test_config_bits(pdev, &atiixp_enable_bits[ap->port_no])) in atiixp_prereset() 91 int dn = 2 * ap->port_no + adev->devno; in atiixp_set_pio_timing() 92 int timing_shift = (16 * ap->port_no) + 8 * (adev->devno ^ 1); in atiixp_set_pio_timing() 139 int dn = 2 * ap->port_no + adev->devno; in atiixp_set_dmamode() 155 int timing_shift = (16 * ap->port_no) + 8 * (adev->devno ^ 1); in atiixp_set_dmamode() 201 int dn = (2 * ap->port_no) + adev->devno; in atiixp_bmdma_start() 228 int dn = (2 * ap->port_no) + qc->dev->devno; in atiixp_bmdma_stop()
|
D | pata_cmd64x.c | 80 if (r & (1 << ap->port_no)) in cmd648_cable_detect() 113 int arttim = arttim_port[ap->port_no][adev->devno]; in cmd64x_set_timing() 114 int drwtim = drwtim_port[ap->port_no][adev->devno]; in cmd64x_set_timing() 122 if (ap->port_no) { in cmd64x_set_timing() 200 int pciU = UDIDETCR0 + 8 * ap->port_no; in cmd64x_set_dmamode() 201 int pciD = BMIDESR0 + 8 * ap->port_no; in cmd64x_set_dmamode() 242 int irq_mask = ap->port_no ? ARTTIM23_INTR_CH1 : CFR_INTR_CH0; in cmd64x_sff_irq_check() 243 int irq_reg = ap->port_no ? ARTTIM23 : CFR; in cmd64x_sff_irq_check() 262 int irq_reg = ap->port_no ? ARTTIM23 : CFR; in cmd64x_sff_irq_clear() 282 int irq_mask = ap->port_no ? MRDMODE_INTR_CH1 : MRDMODE_INTR_CH0; in cmd648_sff_irq_check() [all …]
|
D | pata_pdc202xx_old.c | 33 if (cis & (1 << (10 + ap->port_no))) in pdc2026x_cable_detect() 53 if (ap->port_no) { in pdc202xx_irq_check() 82 int port = 0x60 + 8 * ap->port_no + 4 * adev->devno; in pdc202xx_configure_piomode() 129 int port = 0x60 + 8 * ap->port_no + 4 * adev->devno; in pdc202xx_set_dmamode() 182 int sel66 = ap->port_no ? 0x08: 0x02; in pdc2026x_bmdma_start() 186 void __iomem *atapi_reg = master + 0x20 + (4 * ap->port_no); in pdc2026x_bmdma_start() 233 int sel66 = ap->port_no ? 0x08: 0x02; in pdc2026x_bmdma_stop() 237 void __iomem *atapi_reg = master + 0x20 + (4 * ap->port_no); in pdc2026x_bmdma_stop()
|
D | pata_sl82c105.c | 61 if (ap->port_no && !pci_test_config_bits(pdev, &sl82c105_enable_bits[ap->port_no])) in sl82c105_pre_reset() 85 int timing = 0x44 + (8 * ap->port_no) + (4 * adev->devno); in sl82c105_configure_piomode() 122 int timing = 0x44 + (8 * ap->port_no) + (4 * adev->devno); in sl82c105_configure_dmamode() 216 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; in sl82c105_qc_defer() 234 u32 val, mask = ap->port_no ? CTRL_IDE_IRQB : CTRL_IDE_IRQA; in sl82c105_sff_irq_check()
|
D | pata_hpt37x.c | 350 if (ata66 & (2 >> ap->port_no)) in hpt37x_cable_detect() 366 unsigned int mcrbase = 0x50 + 4 * ap->port_no; in hpt374_fn1_cable_detect() 378 if (ata66 & (2 >> ap->port_no)) in hpt374_fn1_cable_detect() 401 if (!pci_test_config_bits(pdev, &hpt37x_enable_bits[ap->port_no])) in hpt37x_pre_reset() 405 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt37x_pre_reset() 419 addr1 = 0x40 + 4 * (adev->devno + 2 * ap->port_no); in hpt370_set_mode() 420 addr2 = 0x51 + 4 * ap->port_no; in hpt370_set_mode() 489 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt370_bmdma_stop() 499 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt370_bmdma_stop() 513 addr1 = 0x40 + 4 * (adev->devno + 2 * ap->port_no); in hpt372_set_mode() [all …]
|
D | pata_hpt3x2n.c | 155 if (ata66 & (2 >> ap->port_no)) in hpt3x2n_cable_detect() 176 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt3x2n_pre_reset() 190 addr1 = 0x40 + 4 * (adev->devno + 2 * ap->port_no); in hpt3x2n_set_mode() 191 addr2 = 0x51 + 4 * ap->port_no; in hpt3x2n_set_mode() 250 int mscreg = 0x50 + 2 * ap->port_no; in hpt3x2n_bmdma_stop() 255 if (bwsr_stat & (1 << ap->port_no)) in hpt3x2n_bmdma_stop() 278 void __iomem *bmdma = ap->ioaddr.bmdma_addr - ap->port_no * 8; in hpt3x2n_set_clock() 315 struct ata_port *alt = ap->host->ports[ap->port_no ^ 1]; in hpt3x2n_qc_defer()
|
D | pata_serverworks.c | 72 if (pdev->subsystem_device & (1 << (ap->port_no + 14))) in oem_cable() 200 int offset = 1 + 2 * ap->port_no - adev->devno; in serverworks_set_piomode() 201 int devbits = (2 * ap->port_no + adev->devno) * 4; in serverworks_set_piomode() 230 int offset = 1 + 2 * ap->port_no - adev->devno; in serverworks_set_dmamode() 231 int devbits = 2 * ap->port_no + adev->devno; in serverworks_set_dmamode() 237 pci_read_config_byte(pdev, 0x56 + ap->port_no, &ultra); in serverworks_set_dmamode() 251 pci_write_config_byte(pdev, 0x56 + ap->port_no, ultra); in serverworks_set_dmamode()
|
D | sata_sx4.c | 463 unsigned int portno = ap->port_no; in pdc20621_dma_prep() 523 unsigned int portno = ap->port_no; in pdc20621_nodata_prep() 625 unsigned int port_no = ap->port_no; in pdc20621_dump_hdma() local 628 dimm_mmio += (port_no * PDC_DIMM_WINDOW_STEP); in pdc20621_dump_hdma() 644 unsigned int port_no = ap->port_no; in pdc20621_packet_start() local 647 u8 seq = (u8) (port_no + 1); in pdc20621_packet_start() 657 port_ofs = PDC_20621_DIMM_BASE + (PDC_DIMM_WINDOW_STEP * port_no); in pdc20621_packet_start() 710 unsigned int port_no = ap->port_no; in pdc20621_host_intr() local 712 PDC_20621_DIMM_BASE + (PDC_DIMM_WINDOW_STEP * port_no); in pdc20621_host_intr() 733 u8 seq = (u8) (port_no + 1 + 4); in pdc20621_host_intr() [all …]
|
D | pata_cmd640.c | 70 if (ap->port_no && pair) { in cmd640_set_piomode() 97 if (ap->port_no == 0) { in cmd640_set_piomode() 136 if (ap->port_no != 0 && adev->devno != timing->last) { in cmd640_qc_issue() 167 int irq_reg = ap->port_no ? ARTIM23 : CFR; in cmd640_sff_irq_check() 168 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 | 78 pci_write_config_byte(pdev, 0x62 + ap->port_no, in cs5520_set_timings() 83 pci_write_config_byte(pdev, 0x64 + 4*ap->port_no + slave, in cs5520_set_timings() 87 pci_write_config_byte(pdev, 0x66 + 4*ap->port_no + slave, in cs5520_set_timings() 222 rc = devm_request_irq(&pdev->dev, irq[ap->port_no], in cs5520_init_one()
|
D | pata_oldpiix.c | 47 if (!pci_test_config_bits(pdev, &oldpiix_enable_bits[ap->port_no])) in oldpiix_pre_reset() 68 unsigned int idetm_port= ap->port_no ? 0x42 : 0x40; in oldpiix_set_piomode() 129 u8 idetm_port = ap->port_no ? 0x42 : 0x40; in oldpiix_set_dmamode()
|
D | pata_amd.c | 51 int dn = ap->port_no * 2 + adev->devno; in timing_setup() 142 if (!pci_test_config_bits(pdev, &amd_enable_bits[ap->port_no])) in amd_pre_reset() 162 if (ata66 & bitmask[ap->port_no]) in amd_cable_detect() 183 u8 fifo = fifobit[ap->port_no]; in amd_fifo_setup() 196 r &= ~fifobit[ap->port_no]; in amd_fifo_setup() 283 if (ap->port_no == 0) in nv_mode_filter() 340 if (!pci_test_config_bits(pdev, &nv_enable_bits[ap->port_no])) in nv_pre_reset()
|
D | pata_sc1200.c | 101 unsigned int reg = 0x40 + 0x10 * ap->port_no; in sc1200_set_piomode() 136 unsigned int reg = 0x40 + 0x10 * ap->port_no; in sc1200_set_dmamode() 194 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; in sc1200_qc_defer()
|
/linux-3.4.99/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
|
/linux-3.4.99/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-3.4.99/net/openvswitch/ |
D | datapath.c | 150 rcu_assign_pointer(dp->ports[parms->port_no], vport); in new_vport() 164 rcu_assign_pointer(p->dp->ports[p->port_no], NULL); in ovs_dp_detach_port() 184 error = ovs_flow_extract(skb, p->port_no, &key, &key_len); in ovs_dp_process_received_packet() 1220 dp = vport && vport->port_no == OVSP_LOCAL ? vport->dp : NULL; in lookup_datapath() 1267 parms.port_no = OVSP_LOCAL; in ovs_dp_cmd_new() 1329 if (vport->port_no != OVSP_LOCAL) in ovs_dp_cmd_del() 1479 NLA_PUT_U32(skb, OVS_VPORT_ATTR_PORT_NO, vport->port_no); in ovs_vport_cmd_fill_info() 1536 u32 port_no = nla_get_u32(a[OVS_VPORT_ATTR_PORT_NO]); in lookup_vport() local 1538 if (port_no >= DP_MAX_PORTS) in lookup_vport() 1545 vport = rcu_dereference_rtnl(dp->ports[port_no]); in lookup_vport() [all …]
|
/linux-3.4.99/net/bridge/ |
D | br_stp.c | 35 (unsigned) p->port_no, p->dev->name, in br_log_state() 40 struct net_bridge_port *br_get_port(struct net_bridge *br, u16 port_no) in br_get_port() argument 45 if (p->port_no == port_no) in br_get_port() 111 root_port = p->port_no; in br_root_selection() 408 if (p->port_no == br->root_port) { in br_port_state_selection() 465 if (p->port_no == br->root_port) { in br_received_config_bpdu() 481 (unsigned) p->port_no, p->dev->name); in br_received_tcn_bpdu()
|
D | br_stp_timer.c | 59 (unsigned) p->port_no, p->dev->name, in br_message_age_timer_expired() 87 (unsigned) p->port_no, p->dev->name); in br_forward_delay_timer_expired() 134 (unsigned) p->port_no, p->dev->name); in br_hold_timer_expired()
|