Home
last modified time | relevance | path

Searched refs:ocelot_port (Results 1 – 14 of 14) sorted by relevance

/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot_mrp.c19 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 Docelot_mm.c54 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 Docelot.c268 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 Docelot_net.c496 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 Docelot_ptp.c444 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 Docelot.h47 struct ocelot_port port;
99 void ocelot_release_port(struct ocelot_port *ocelot_port);
H A Docelot_vsc7514.c133 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 Docelot_io.c66 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 Docelot_fdma.c464 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 Docelot_flower.c177 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 Dfelix_vsc9959.c1023 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 Dfelix.c1382 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 Dseville_vsc9953.c914 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 Docelot.h762 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,