Searched refs:port_no (Results 26 - 50 of 100) sorted by relevance

1234

/linux-master/drivers/ata/
H A Dpata_ali.c103 if (ata66 & (1 << ap->port_no))
144 int pio_fifo = 0x54 + ap->port_no;
173 int cas = 0x58 + 4 * ap->port_no; /* Command timing */
174 int cbt = 0x59 + 4 * ap->port_no; /* Command timing */
175 int drwt = 0x5A + 4 * ap->port_no + adev->devno; /* R/W timing */
176 int udmat = 0x56 + ap->port_no; /* UDMA timing */
344 int port_bit = 4 << link->ap->port_no;
H A Dsata_sx4.c421 unsigned int portno = ap->port_no;
480 unsigned int portno = ap->port_no;
581 unsigned int port_no = ap->port_no; local
584 dimm_mmio += (port_no * PDC_DIMM_WINDOW_STEP);
596 unsigned int port_no = ap->port_no; local
599 u8 seq = (u8) (port_no + 1);
607 port_ofs = PDC_20621_DIMM_BASE + (PDC_DIMM_WINDOW_STEP * port_no);
660 unsigned int port_no local
745 unsigned int i, tmp, port_no; local
[all...]
H A Dsata_sil.c255 void __iomem *bmdma2 = mmio_base + sil_port[ap->port_no].bmdma2;
281 void __iomem *bmdma2 = mmio_base + sil_port[ap->port_no].bmdma2;
349 void __iomem *addr = mmio_base + sil_port[ap->port_no].xfer_mode;
517 u32 bmdma2 = readl(mmio_base + sil_port[ap->port_no].bmdma2);
542 writel(0, mmio_base + sil_port[ap->port_no].sien);
546 tmp |= SIL_MASK_IDE0_INT << ap->port_no;
575 writel(SIL_SIEN_N, mmio_base + sil_port[ap->port_no].sien);
579 tmp &= ~(SIL_MASK_IDE0_INT << ap->port_no);
H A Dpata_it821x.c130 int channel = ap->port_no;
158 int channel = ap->port_no;
224 v &= ~(1 << (1 + ap->port_no));
225 v |= sel << (1 + ap->port_no);
294 int channel = ap->port_no;
760 if (ap->port_no == 0)
764 if (conf & (1 << (1 + ap->port_no)))
798 if (r40 & (1 << (2 + ap->port_no)))
H A Dpata_triflex.c53 if (!pci_test_config_bits(pdev, &triflex_enable_bits[ap->port_no]))
78 int channel_offset = ap->port_no ? 0x74: 0x70;
H A Dpata_optidma.c63 if (ap->port_no && !pci_test_config_bits(pdev, &optidma_enable_bits))
207 int unit = 2 * ap->port_no + adev->devno;
216 if (ap->port_no) {
323 int nybble = 4 * ap->port_no;
H A Dpata_sil680.c52 return 0xA0 + (ap->port_no << 4) + r;
68 return 0xA0 + (ap->port_no << 4) + r + (adev->devno << 1);
114 int addr_mask = 0x80 + 4 * ap->port_no;
166 int addr_mask = 0x80 + 4 * ap->port_no;
H A Dpata_it8213.c40 if (!pci_test_config_bits(pdev, &it8213_enable_bits[ap->port_no]))
79 unsigned int master_port = ap->port_no ? 0x42 : 0x40;
215 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0);
H A Dpata_sc1200.c87 unsigned int reg = 0x40 + 0x10 * ap->port_no;
122 unsigned int reg = 0x40 + 0x10 * ap->port_no;
180 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no];
H A Dpata_amd.c51 int dn = ap->port_no * 2 + adev->devno;
142 if (!pci_test_config_bits(pdev, &amd_enable_bits[ap->port_no]))
162 if (ata66 & bitmask[ap->port_no])
182 u8 fifo = fifobit[ap->port_no];
195 r &= ~fifobit[ap->port_no];
282 if (ap->port_no == 0)
340 if (!pci_test_config_bits(pdev, &nv_enable_bits[ap->port_no]))
H A Dsata_via.c205 int slot = 2 * link->ap->port_no + link->pmp;
253 int slot = 2 * link->ap->port_no + link->pmp;
439 void __iomem *reg_addr = iomap[ap->port_no];
440 void __iomem *bmdma_addr = iomap[4] + (ap->port_no * 8);
448 ioaddr->scr_addr = vt6421_scr_addr(iomap[5], ap->port_no);
452 ata_port_pbar_desc(ap, ap->port_no, -1, "port");
453 ata_port_pbar_desc(ap, 4, ap->port_no * 8, "bmdma");
H A Dpata_sis.c88 return 0x40 + (4 * adev->link->ap->port_no) + (2 * adev->devno);
111 return port + (8 * ap->port_no) + (4 * adev->devno);
128 pci_read_config_word(pdev, 0x50 + 2 * ap->port_no, &tmp);
149 tmp >>= ap->port_no;
174 if (!pci_test_config_bits(pdev, &sis_enable_bits[ap->port_no]))
200 mask <<= (2 * ap->port_no);
H A Dpata_icside.c222 state->port[ap->port_no].speed[adev->devno] = cycle;
240 writeb(state->port[ap->port_no].port_sel, state->ioc_base);
242 set_dma_speed(state->dma, state->port[ap->port_no].speed[qc->dev->devno]);
275 irq_port = state->irq_port + (ap->port_no ? ICS_ARCIN_V6_INTRSTAT_2 :
315 state->port[ap->port_no].disabled = 1;
324 (ap->port_no ? ICS_ARCIN_V6_INTROFFSET_2 : ICS_ARCIN_V6_INTROFFSET_1);
H A Dahci_xgene.c199 if (ctx->class[ap->port_no] == ATA_DEV_PMP) {
206 if (unlikely((ctx->last_cmd[ap->port_no] == ATA_CMD_ID_ATA) ||
207 (ctx->last_cmd[ap->port_no] == ATA_CMD_PACKET) ||
208 (ctx->last_cmd[ap->port_no] == ATA_CMD_SMART)))
214 ctx->last_cmd[ap->port_no] = qc->tf.command;
520 ctx->class[ap->port_no] = *class;
H A Dpata_hpt3x3.c41 int dn = 2 * ap->port_no + adev->devno;
71 int dn = 2 * ap->port_no + adev->devno;
H A Dpata_via.c189 if ((config->flags & VIA_SATA_PATA) && ap->port_no == 0)
202 if (ata66 & (0x10100000 >> (16 * ap->port_no)))
222 if (!pci_test_config_bits(pdev, &via_enable_bits[ap->port_no]))
255 int offset = 3 - (2*ap->port_no) - adev->devno;
289 pci_write_config_byte(pdev, 0x4F - ap->port_no,
H A Dacard-ahci.c294 ap->port_no);
298 ap->port_no);
425 0x100 + ap->port_no * 0x80, "port");
H A Dsata_vsc.c109 VSC_SATA_INT_MASK_OFFSET + ap->port_no;
120 VSC_SATA_INT_MASK_OFFSET + ap->port_no;
132 VSC_SATA_INT_MASK_OFFSET + ap->port_no;
H A Dahci.h437 unsigned int port_no)
441 return mmio + 0x100 + (port_no * 0x80);
448 return __ahci_port_base(hpriv, ap->port_no);
436 __ahci_port_base(struct ahci_host_priv *hpriv, unsigned int port_no) argument
/linux-master/drivers/i2c/busses/
H A Di2c-fsi.c665 u32 port_no; local
669 rc = of_property_read_u32(np, "reg", &port_no);
670 if (!rc && port_no == port)
682 u32 port_no, ports, stat; local
704 for (port_no = 0; port_no < ports; port_no++) {
705 np = fsi_i2c_find_port_of_node(dev->of_node, port_no);
716 port->port = port_no;
726 "i2c_bus-%u", port_no);
[all...]
/linux-master/net/bridge/
H A Dbr_stp_if.c24 static inline port_id br_make_port_id(__u8 priority, __u16 port_no) argument
27 | (port_no & ((1<<BR_PORT_BITS)-1));
37 p->port_id = br_make_port_id(p->priority, p->port_no);
316 new_port_id = br_make_port_id(newprio, p->port_no);
H A Dbr_stp_bpdu.c183 (unsigned int) p->port_no, p->dev->name);
233 p->port_no,
/linux-master/net/openvswitch/
H A Ddatapath.c178 u16 port_no)
180 return &dp->ports[port_no & (DP_VPORT_HASH_BUCKETS - 1)];
184 struct vport *ovs_lookup_vport(const struct datapath *dp, u16 port_no) argument
189 head = vport_hash_bucket(dp, port_no);
192 if (vport->port_no == port_no)
206 struct hlist_head *head = vport_hash_bucket(dp, vport->port_no);
1634 dp = vport && vport->port_no == OVSP_LOCAL ? vport->dp : NULL;
1829 parms.port_no = OVSP_LOCAL;
1904 if (vport->port_no !
177 vport_hash_bucket(const struct datapath *dp, u16 port_no) argument
2196 u32 port_no = nla_get_u32(a[OVS_VPORT_ATTR_PORT_NO]); local
2257 u32 port_no; local
[all...]
/linux-master/drivers/input/serio/
H A Di8042.c529 unsigned int port_no; local
581 port_no = I8042_MUX_PORT_NO + ((str >> 6) & 3);
589 port_no = (str & I8042_STR_AUXDATA) ?
593 port = &i8042_ports[port_no];
597 port_no, irq,
1359 int port_no = idx < 0 ? I8042_AUX_PORT_NO : I8042_MUX_PORT_NO + idx; local
1360 struct i8042_port *port = &i8042_ports[port_no];
/linux-master/drivers/scsi/qla2xxx/
H A Dqla_sup.c681 ha->flt_region_fcp_prio = (ha->port_no == 0) ?
743 if (ha->port_no == 0)
749 if (ha->port_no == 1)
755 if (ha->port_no == 2)
761 if (ha->port_no == 3)
767 if (ha->port_no == 0)
773 if (ha->port_no == 1)
779 if (ha->port_no == 2)
785 if (ha->port_no == 3)
792 if (ha->port_no
[all...]

Completed in 348 milliseconds

1234