/openbmc/u-boot/drivers/net/ |
H A D | vsc9953.c | 31 void vsc9953_port_info_set_mdio(int port_no, struct mii_dev *bus) in vsc9953_port_info_set_mdio() argument 33 if (!VSC9953_PORT_CHECK(port_no)) in vsc9953_port_info_set_mdio() 36 vsc9953_l2sw.port[port_no].bus = bus; in vsc9953_port_info_set_mdio() 39 void vsc9953_port_info_set_phy_address(int port_no, int address) in vsc9953_port_info_set_phy_address() argument 41 if (!VSC9953_PORT_CHECK(port_no)) in vsc9953_port_info_set_phy_address() 44 vsc9953_l2sw.port[port_no].phyaddr = address; in vsc9953_port_info_set_phy_address() 47 void vsc9953_port_info_set_phy_int(int port_no, phy_interface_t phy_int) in vsc9953_port_info_set_phy_int() argument 49 if (!VSC9953_PORT_CHECK(port_no)) in vsc9953_port_info_set_phy_int() 52 vsc9953_l2sw.port[port_no].enet_if = phy_int; in vsc9953_port_info_set_phy_int() 55 void vsc9953_port_enable(int port_no) in vsc9953_port_enable() argument [all …]
|
/openbmc/linux/drivers/ata/ |
H A D | sata_qstor.c | 173 u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); in qs_enter_reg_mode() 183 u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); in qs_reset_channel_logic() 300 u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); in qs_packet_start() 365 unsigned int port_no = (sff1 >> 8) & 0x03; in qs_intr_pkt() local 366 struct ata_port *ap = host->ports[port_no]; in qs_intr_pkt() 394 unsigned int handled = 0, port_no; in qs_intr_mmio() local 396 for (port_no = 0; port_no < host->n_ports; ++port_no) { in qs_intr_mmio() 397 struct ata_port *ap = host->ports[port_no]; in qs_intr_mmio() 461 void __iomem *chan = mmio_base + (ap->port_no * 0x4000); in qs_port_start() 491 unsigned int port_no; in qs_host_init() local [all …]
|
H A D | pdc_adma.c | 34 #define ADMA_ATA_REGS(base, port_no) ((base) + ((port_no) * 0x40)) argument 37 #define ADMA_REGS(base, port_no) ((base) + 0x80 + ((port_no) * 0x20)) argument 41 ADMA_REGS((ap)->host->iomap[ADMA_MMIO_BAR], ap->port_no) 389 unsigned int handled = 0, port_no; in adma_intr_pkt() local 391 for (port_no = 0; port_no < host->n_ports; ++port_no) { in adma_intr_pkt() 392 struct ata_port *ap = host->ports[port_no]; in adma_intr_pkt() 439 unsigned int handled = 0, port_no; in adma_intr_mmio() local 441 for (port_no = 0; port_no < host->n_ports; ++port_no) { in adma_intr_mmio() 442 struct ata_port *ap = host->ports[port_no]; in adma_intr_mmio() 537 unsigned int port_no; in adma_host_init() local [all …]
|
H A 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()
|
H A 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 …]
|
H A D | pata_rdc.c | 46 mask = 0x30 << (2 * ap->port_no); in rdc_pata_cable_detect() 70 if (!pci_test_config_bits(pdev, &rdc_enable_bits[ap->port_no])) in rdc_pata_prereset() 94 unsigned int master_port= ap->port_no ? 0x42 : 0x40; in rdc_set_piomode() 131 slave_data &= (ap->port_no ? 0x0f : 0xf0); in rdc_set_piomode() 134 << (ap->port_no ? 4 : 0); in rdc_set_piomode() 153 udma_enable &= ~(1 << (2 * ap->port_no + adev->devno)); in rdc_set_piomode() 174 u8 master_port = ap->port_no ? 0x42 : 0x40; in rdc_set_dmamode() 177 int devid = adev->devno + 2 * ap->port_no; in rdc_set_dmamode() 253 slave_data &= (ap->port_no ? 0x0f : 0xf0); in rdc_set_dmamode() 255 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); in rdc_set_dmamode()
|
H A D | pata_atiixp.c | 59 pci_read_config_byte(pdev, ATIIXP_IDE_UDMA_MODE + ap->port_no, &udma); in atiixp_cable_detect() 86 if (!pci_test_config_bits(pdev, &atiixp_enable_bits[ap->port_no])) in atiixp_prereset() 108 int dn = 2 * ap->port_no + adev->devno; in atiixp_set_pio_timing() 109 int timing_shift = (16 * ap->port_no) + 8 * (adev->devno ^ 1); in atiixp_set_pio_timing() 156 int dn = 2 * ap->port_no + adev->devno; in atiixp_set_dmamode() 172 int timing_shift = (16 * ap->port_no) + 8 * (adev->devno ^ 1); in atiixp_set_dmamode() 218 int dn = (2 * ap->port_no) + adev->devno; in atiixp_bmdma_start() 245 int dn = (2 * ap->port_no) + qc->dev->devno; in atiixp_bmdma_stop()
|
H A D | ahci_seattle.c | 97 val |= 1 << ACTIVITY_BIT_POS((ap->port_no)); in seattle_transmit_led_message() 99 val &= ~(1 << ACTIVITY_BIT_POS((ap->port_no))); in seattle_transmit_led_message() 102 val |= 1 << LOCATE_BIT_POS((ap->port_no)); in seattle_transmit_led_message() 104 val &= ~(1 << LOCATE_BIT_POS((ap->port_no))); in seattle_transmit_led_message() 107 val |= 1 << FAULT_BIT_POS((ap->port_no)); in seattle_transmit_led_message() 109 val &= ~(1 << FAULT_BIT_POS((ap->port_no))); in seattle_transmit_led_message()
|
H A 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 …]
|
H A D | pata_hpt3x2n.c | 146 if (ata66 & (2 >> ap->port_no)) in hpt3x2n_cable_detect() 171 if (!pci_test_config_bits(pdev, &hpt3x2n_enable_bits[ap->port_no])) in hpt3x2n_pre_reset() 175 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt3x2n_pre_reset() 179 pci_read_config_byte(pdev, 0x51 + 4 * ap->port_no, &mcr2); in hpt3x2n_pre_reset() 181 pci_write_config_byte(pdev, 0x51 + 4 * ap->port_no, mcr2); in hpt3x2n_pre_reset() 190 int addr = 0x40 + 4 * (adev->devno + 2 * ap->port_no); in hpt3x2n_set_mode() 245 int mscreg = 0x50 + 4 * ap->port_no; in hpt3x2n_bmdma_stop() 250 if (bwsr_stat & (1 << ap->port_no)) in hpt3x2n_bmdma_stop() 273 void __iomem *bmdma = ap->ioaddr.bmdma_addr - ap->port_no * 8; in hpt3x2n_set_clock() 310 struct ata_port *alt = ap->host->ports[ap->port_no ^ 1]; in hpt3x2n_qc_defer()
|
H A D | pata_pdc202xx_old.c | 33 if (cis & (1 << (10 + ap->port_no))) in pdc2026x_cable_detect() 51 if (ap->port_no) { in pdc202xx_irq_check() 80 int port = 0x60 + 8 * ap->port_no + 4 * adev->devno; in pdc202xx_configure_piomode() 127 int port = 0x60 + 8 * ap->port_no + 4 * adev->devno; in pdc202xx_set_dmamode() 180 int sel66 = ap->port_no ? 0x08: 0x02; in pdc2026x_bmdma_start() 184 void __iomem *atapi_reg = master + 0x20 + (4 * ap->port_no); in pdc2026x_bmdma_start() 231 int sel66 = ap->port_no ? 0x08: 0x02; in pdc2026x_bmdma_stop() 235 void __iomem *atapi_reg = master + 0x20 + (4 * ap->port_no); in pdc2026x_bmdma_stop()
|
H A D | pata_hpt37x.c | 347 if (ata66 & (2 >> ap->port_no)) in hpt37x_cable_detect() 363 unsigned int mcrbase = 0x50 + 4 * ap->port_no; in hpt374_fn1_cable_detect() 375 if (ata66 & (2 >> ap->port_no)) in hpt374_fn1_cable_detect() 399 if (!pci_test_config_bits(pdev, &hpt37x_enable_bits[ap->port_no])) in hpt37x_pre_reset() 403 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt37x_pre_reset() 410 pci_read_config_byte(pdev, 0x51 + 4 * ap->port_no, &mcr2); in hpt37x_pre_reset() 418 pci_write_config_byte(pdev, 0x51 + 4 * ap->port_no, mcr2); in hpt37x_pre_reset() 427 int addr = 0x40 + 4 * (adev->devno + 2 * ap->port_no); in hpt37x_set_mode() 491 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt370_bmdma_stop() 501 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt370_bmdma_stop() [all …]
|
H A 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() 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()
|
H A D | pata_serverworks.c | 73 if (pdev->subsystem_device & (1 << (ap->port_no + 14))) in oem_cable() 202 int offset = 1 + 2 * ap->port_no - adev->devno; in serverworks_set_piomode() 203 int devbits = (2 * ap->port_no + adev->devno) * 4; in serverworks_set_piomode() 232 int offset = 1 + 2 * ap->port_no - adev->devno; in serverworks_set_dmamode() 233 int devbits = 2 * ap->port_no + adev->devno; in serverworks_set_dmamode() 239 pci_read_config_byte(pdev, 0x56 + ap->port_no, &ultra); in serverworks_set_dmamode() 253 pci_write_config_byte(pdev, 0x56 + ap->port_no, ultra); in serverworks_set_dmamode()
|
H A D | sata_sx4.c | 421 unsigned int portno = ap->port_no; in pdc20621_dma_prep() 480 unsigned int portno = ap->port_no; in pdc20621_nodata_prep() 581 unsigned int port_no = ap->port_no; in pdc20621_dump_hdma() local 584 dimm_mmio += (port_no * PDC_DIMM_WINDOW_STEP); in pdc20621_dump_hdma() 596 unsigned int port_no = ap->port_no; in pdc20621_packet_start() local 599 u8 seq = (u8) (port_no + 1); in pdc20621_packet_start() 607 port_ofs = PDC_20621_DIMM_BASE + (PDC_DIMM_WINDOW_STEP * port_no); in pdc20621_packet_start() 660 unsigned int port_no = ap->port_no; in pdc20621_host_intr() local 662 PDC_20621_DIMM_BASE + (PDC_DIMM_WINDOW_STEP * port_no); in pdc20621_host_intr() 681 u8 seq = (u8) (port_no + 1 + 4); in pdc20621_host_intr() [all …]
|
H A 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()
|
H A D | pata_cs5520.c | 69 pci_write_config_byte(pdev, 0x62 + ap->port_no, in cs5520_set_timings() 74 pci_write_config_byte(pdev, 0x64 + 4*ap->port_no + slave, in cs5520_set_timings() 78 pci_write_config_byte(pdev, 0x66 + 4*ap->port_no + slave, in cs5520_set_timings() 210 rc = devm_request_irq(&pdev->dev, irq[ap->port_no], in cs5520_init_one()
|
H A 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()
|
H A 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() 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() 340 if (!pci_test_config_bits(pdev, &nv_enable_bits[ap->port_no])) in nv_pre_reset()
|
H A D | sata_sil.c | 255 void __iomem *bmdma2 = mmio_base + sil_port[ap->port_no].bmdma2; in sil_bmdma_stop() 281 void __iomem *bmdma2 = mmio_base + sil_port[ap->port_no].bmdma2; in sil_bmdma_start() 349 void __iomem *addr = mmio_base + sil_port[ap->port_no].xfer_mode; in sil_set_mode() 517 u32 bmdma2 = readl(mmio_base + sil_port[ap->port_no].bmdma2); in sil_interrupt() 542 writel(0, mmio_base + sil_port[ap->port_no].sien); in sil_freeze() 546 tmp |= SIL_MASK_IDE0_INT << ap->port_no; in sil_freeze() 575 writel(SIL_SIEN_N, mmio_base + sil_port[ap->port_no].sien); in sil_thaw() 579 tmp &= ~(SIL_MASK_IDE0_INT << ap->port_no); in sil_thaw()
|
/openbmc/u-boot/doc/ |
H A D | README.t1040-l2switch | 37 ethsw [port <port_no>] { enable | disable | show } - enable/disable a port; show a port's configura… 38 ethsw [port <port_no>] statistics { [help] | [clear] } - show an l2 switch port's statistics 39 ethsw [port <port_no>] learning { [help] | show | auto | disable } - enable/disable/show learning c… 40 ethsw [port <port_no>] [vlan <vid>] fdb { [help] | show | flush | { add | del } <mac> } - add/delet… 42 ethsw [port <port_no>] pvid { [help] | show | <pvid> } - set/show PVID (ingress and egress VLAN tag… 43 ethsw [port <port_no>] vlan { [help] | show | add <vid> | del <vid> } - add a VLAN to a port (VLAN … 44 ethsw [port <port_no>] untagged { [help] | show | all | none | pvid } - set egress tagging mode for… 45 ethsw [port <port_no>] egress tag { [help] | show | pvid | classified } - configure VID source for … 48 ethsw [port <port_no>] ingress filtering { [help] | show | enable | disable } - enable/disable VLAN… 49 ethsw [port <port_no>] aggr { [help] | show | <lag_group_no> } - get/set LAG group for a port
|
/openbmc/linux/net/openvswitch/ |
H A D | datapath.h | 203 struct vport *ovs_lookup_vport(const struct datapath *dp, u16 port_no); 205 static inline struct vport *ovs_vport_rcu(const struct datapath *dp, int port_no) in ovs_vport_rcu() argument 208 return ovs_lookup_vport(dp, port_no); in ovs_vport_rcu() 211 static inline struct vport *ovs_vport_ovsl_rcu(const struct datapath *dp, int port_no) in ovs_vport_ovsl_rcu() argument 214 return ovs_lookup_vport(dp, port_no); in ovs_vport_ovsl_rcu() 217 static inline struct vport *ovs_vport_ovsl(const struct datapath *dp, int port_no) in ovs_vport_ovsl() argument 220 return ovs_lookup_vport(dp, port_no); in ovs_vport_ovsl()
|
/openbmc/linux/drivers/tty/ipwireless/ |
H A D | setup_protocol.h | 54 unsigned char port_no; member 66 unsigned char port_no; member 71 unsigned char port_no; member
|
/openbmc/linux/net/bridge/ |
H A D | br_stp.c | 50 p->port_no, netdev_name(p->dev)); in br_set_state() 55 (unsigned int) p->port_no, p->dev->name); in br_set_state() 58 (unsigned int) p->port_no, p->dev->name, in br_set_state() 88 struct net_bridge_port *br_get_port(struct net_bridge *br, u16 port_no) in br_get_port() argument 94 if (p->port_no == port_no) in br_get_port() 157 (unsigned int) p->port_no, p->dev->name); in br_root_port_block() 179 root_port = p->port_no; in br_root_selection() 481 if (p->port_no == br->root_port) { in br_port_state_selection() 546 if (p->port_no == br->root_port) { in br_received_config_bpdu() 564 (unsigned int) p->port_no, p->dev->name); in br_received_tcn_bpdu()
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-fsi.c | 665 u32 port_no; in fsi_i2c_find_port_of_node() local 669 rc = of_property_read_u32(np, "reg", &port_no); in fsi_i2c_find_port_of_node() 670 if (!rc && port_no == port) in fsi_i2c_find_port_of_node() 682 u32 port_no, ports, stat; in fsi_i2c_probe() local 704 for (port_no = 0; port_no < ports; port_no++) { in fsi_i2c_probe() 705 np = fsi_i2c_find_port_of_node(dev->of_node, port_no); in fsi_i2c_probe() 716 port->port = port_no; in fsi_i2c_probe() 726 "i2c_bus-%u", port_no); in fsi_i2c_probe()
|