/openbmc/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot_mrp.c | 19 struct ocelot_port *p) in ocelot_mrp_find_partner_port() 24 struct ocelot_port *ocelot_port = ocelot->ports[i]; in ocelot_mrp_find_partner_port() local 26 if (!ocelot_port || p == ocelot_port) in ocelot_mrp_find_partner_port() 29 if (ocelot_port->mrp_ring_id == p->mrp_ring_id) in ocelot_mrp_find_partner_port() 107 struct ocelot_port *port) in ocelot_mrp_save_mac() 116 struct ocelot_port *port) in ocelot_mrp_del_mac() 125 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_mrp_add() local 129 if (!ocelot_port) in ocelot_mrp_add() 132 priv = container_of(ocelot_port, struct ocelot_port_private, port); in ocelot_mrp_add() 138 ocelot_port->mrp_ring_id = mrp->ring_id; in ocelot_mrp_add() [all …]
|
H A D | ocelot_mm.c | 54 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_update_active_preemptible_tcs() local 65 if ((ocelot_port->phy_mode != PHY_INTERFACE_MODE_QSGMII || in ocelot_port_update_active_preemptible_tcs() 66 ocelot_port->speed == SPEED_1000) && mm->tx_active) in ocelot_port_update_active_preemptible_tcs() 80 port, phy_modes(ocelot_port->phy_mode), in ocelot_port_update_active_preemptible_tcs() 81 phy_speed_to_str(ocelot_port->speed), in ocelot_port_update_active_preemptible_tcs() 107 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_mm_update_port_status() local 115 val = ocelot_port_readl(ocelot_port, DEV_MM_STATUS); in ocelot_mm_update_port_status() 152 ocelot_port_writel(ocelot_port, ack, DEV_MM_STATUS); in ocelot_mm_update_port_status() 172 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_set_mm() local 198 ocelot_port_rmwl(ocelot_port, mm_enable, in ocelot_port_set_mm() [all …]
|
H A D | ocelot.c | 268 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_single_vlan_aware_bridge() local 270 if (!ocelot_port || !ocelot_port->bridge || in ocelot_single_vlan_aware_bridge() 271 !br_vlan_enabled(ocelot_port->bridge)) in ocelot_single_vlan_aware_bridge() 275 bridge = ocelot_port->bridge; in ocelot_single_vlan_aware_bridge() 279 if (bridge == ocelot_port->bridge) in ocelot_single_vlan_aware_bridge() 386 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_manage_port_tag() local 390 if (ocelot_port->vlan_aware) { in ocelot_port_manage_port_tag() 429 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_bridge_num_find() local 431 if (ocelot_port && ocelot_port->bridge == bridge) in ocelot_bridge_num_find() 432 return ocelot_port->bridge_num; in ocelot_bridge_num_find() [all …]
|
H A D | ocelot_net.c | 496 struct ocelot_port *ocelot_port = &priv->port; in ocelot_vlan_vid_add() local 497 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_vlan_vid_add() 557 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_xmit() local 558 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_xmit() 658 struct ocelot_port *ocelot_port = &priv->port; in ocelot_mc_unsync() local 659 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_mc_unsync() 672 struct ocelot_port *ocelot_port = &priv->port; in ocelot_mc_sync() local 673 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_mc_sync() 706 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_set_mac_address() local 707 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_set_mac_address() [all …]
|
H A D | ocelot_ptp.c | 444 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_setup_ptp_traps() local 447 ocelot_port->trap_proto &= ~(OCELOT_PROTO_PTP_L2 | in ocelot_setup_ptp_traps() 474 ocelot_port->trap_proto |= OCELOT_PROTO_PTP_L2; in ocelot_setup_ptp_traps() 476 ocelot_port->trap_proto |= OCELOT_PROTO_PTP_L4; in ocelot_setup_ptp_traps() 524 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_hwstamp_get() local 527 switch (ocelot_port->ptp_cmd) { in ocelot_hwstamp_get() 539 cfg.rx_filter = ocelot_traps_to_ptp_rx_filter(ocelot_port->trap_proto); in ocelot_hwstamp_get() 547 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_hwstamp_set() local 548 int ptp_cmd, old_ptp_cmd = ocelot_port->ptp_cmd; in ocelot_hwstamp_set() 585 old_l2 = ocelot_port->trap_proto & OCELOT_PROTO_PTP_L2; in ocelot_hwstamp_set() [all …]
|
H A D | ocelot.h | 47 struct ocelot_port port; 99 void ocelot_release_port(struct ocelot_port *ocelot_port);
|
H A D | ocelot_vsc7514.c | 133 struct ocelot_port *ocelot_port; in mscc_ocelot_release_ports() local 135 ocelot_port = ocelot->ports[port]; in mscc_ocelot_release_ports() 136 if (!ocelot_port) in mscc_ocelot_release_ports() 140 ocelot_release_port(ocelot_port); in mscc_ocelot_release_ports() 154 sizeof(struct ocelot_port *), GFP_KERNEL); in mscc_ocelot_init_ports()
|
H A D | ocelot_io.c | 66 u32 ocelot_port_readl(struct ocelot_port *port, enum ocelot_reg reg) in ocelot_port_readl() 79 void ocelot_port_writel(struct ocelot_port *port, u32 val, enum ocelot_reg reg) in ocelot_port_writel() 90 void ocelot_port_rmwl(struct ocelot_port *port, u32 val, u32 mask, in ocelot_port_rmwl()
|
H A D | ocelot_fdma.c | 464 struct ocelot_port *ocelot_port; in ocelot_fdma_wakeup_netdev() local 469 ocelot_port = ocelot->ports[port]; in ocelot_fdma_wakeup_netdev() 470 if (!ocelot_port) in ocelot_fdma_wakeup_netdev() 472 priv = container_of(ocelot_port, struct ocelot_port_private, in ocelot_fdma_wakeup_netdev()
|
H A D | ocelot_flower.c | 177 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_flower_parse_ingress_vlan_modify() local 185 if (!ocelot_port->vlan_aware) { in ocelot_flower_parse_ingress_vlan_modify()
|
/openbmc/linux/drivers/net/dsa/ocelot/ |
H A D | felix_vsc9959.c | 1023 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_mdio_bus_alloc() local 1029 if (ocelot_port->phy_mode == PHY_INTERFACE_MODE_INTERNAL) in vsc9959_mdio_bus_alloc() 1219 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_tas_guard_bands_update() local 1232 taprio = ocelot_port->taprio; in vsc9959_tas_guard_bands_update() 1256 val = ocelot_port_readl(ocelot_port, DEV_MAC_MAXLEN_CFG); in vsc9959_tas_guard_bands_update() 1351 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_sched_speed_set() local 1379 if (ocelot_port->taprio) in vsc9959_sched_speed_set() 1425 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_qos_port_tas_set() local 1437 taprio_offload_free(ocelot_port->taprio); in vsc9959_qos_port_tas_set() 1438 ocelot_port->taprio = NULL; in vsc9959_qos_port_tas_set() [all …]
|
H A D | felix.c | 1382 sizeof(struct ocelot_port *), GFP_KERNEL); in felix_init_structs() 1430 struct ocelot_port *ocelot_port; in felix_init_structs() local 1432 ocelot_port = devm_kzalloc(ocelot->dev, in felix_init_structs() 1433 sizeof(struct ocelot_port), in felix_init_structs() 1435 if (!ocelot_port) { in felix_init_structs() 1451 ocelot_port->phy_mode = port_phy_modes[port]; in felix_init_structs() 1452 ocelot_port->ocelot = ocelot; in felix_init_structs() 1453 ocelot_port->target = target; in felix_init_structs() 1454 ocelot_port->index = port; in felix_init_structs() 1455 ocelot->ports[port] = ocelot_port; in felix_init_structs() [all …]
|
H A D | seville_vsc9953.c | 914 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9953_mdio_bus_alloc() local 921 if (ocelot_port->phy_mode == PHY_INTERFACE_MODE_INTERNAL) in vsc9953_mdio_bus_alloc()
|
/openbmc/linux/include/soc/mscc/ |
H A D | ocelot.h | 762 struct ocelot_port; 764 struct ocelot_port { struct 772 struct ocelot_port *dsa_8021q_cpu; argument 822 struct ocelot_port **ports; argument 953 u32 ocelot_port_readl(struct ocelot_port *port, enum ocelot_reg reg); 954 void ocelot_port_writel(struct ocelot_port *port, u32 val, enum ocelot_reg reg); 955 void ocelot_port_rmwl(struct ocelot_port *port, u32 val, u32 mask,
|