Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mscc/
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 …]
Docelot_net.c505 struct ocelot_port *ocelot_port = &priv->port; in ocelot_vlan_vid_add() local
506 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_vlan_vid_add()
566 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_xmit() local
567 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_xmit()
667 struct ocelot_port *ocelot_port = &priv->port; in ocelot_mc_unsync() local
668 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_mc_unsync()
681 struct ocelot_port *ocelot_port = &priv->port; in ocelot_mc_sync() local
682 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_mc_sync()
715 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_set_mac_address() local
716 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_set_mac_address()
[all …]
Docelot.c231 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_single_vlan_aware_bridge() local
233 if (!ocelot_port || !ocelot_port->bridge || in ocelot_single_vlan_aware_bridge()
234 !br_vlan_enabled(ocelot_port->bridge)) in ocelot_single_vlan_aware_bridge()
238 bridge = ocelot_port->bridge; in ocelot_single_vlan_aware_bridge()
242 if (bridge == ocelot_port->bridge) in ocelot_single_vlan_aware_bridge()
349 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_manage_port_tag() local
353 if (ocelot_port->vlan_aware) { in ocelot_port_manage_port_tag()
392 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_bridge_num_find() local
394 if (ocelot_port && ocelot_port->bridge == bridge) in ocelot_bridge_num_find()
395 return ocelot_port->bridge_num; in ocelot_bridge_num_find()
[all …]
Docelot.h47 struct ocelot_port port;
88 u32 ocelot_port_readl(struct ocelot_port *port, u32 reg);
89 void ocelot_port_writel(struct ocelot_port *port, u32 val, u32 reg);
93 void ocelot_release_port(struct ocelot_port *ocelot_port);
Docelot_ptp.c486 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_hwstamp_set() local
497 ocelot_port->ptp_cmd = IFH_REW_OP_TWO_STEP_PTP; in ocelot_hwstamp_set()
503 ocelot_port->ptp_cmd = IFH_REW_OP_ORIGIN_PTP; in ocelot_hwstamp_set()
506 ocelot_port->ptp_cmd = 0; in ocelot_hwstamp_set()
592 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_add_txtstamp_skb() local
597 if (ocelot_port->ptp_skbs_in_flight == OCELOT_MAX_PTP_ID || in ocelot_port_add_txtstamp_skb()
605 OCELOT_SKB_CB(clone)->ts_id = ocelot_port->ts_id; in ocelot_port_add_txtstamp_skb()
607 ocelot_port->ts_id++; in ocelot_port_add_txtstamp_skb()
608 if (ocelot_port->ts_id == OCELOT_MAX_PTP_ID) in ocelot_port_add_txtstamp_skb()
609 ocelot_port->ts_id = 0; in ocelot_port_add_txtstamp_skb()
[all …]
Docelot_vsc7514.c347 struct ocelot_port *ocelot_port; in mscc_ocelot_release_ports() local
349 ocelot_port = ocelot->ports[port]; in mscc_ocelot_release_ports()
350 if (!ocelot_port) in mscc_ocelot_release_ports()
354 ocelot_release_port(ocelot_port); in mscc_ocelot_release_ports()
368 sizeof(struct ocelot_port *), GFP_KERNEL); in mscc_ocelot_init_ports()
381 struct ocelot_port *ocelot_port; in mscc_ocelot_init_ports() local
424 ocelot_port = ocelot->ports[port]; in mscc_ocelot_init_ports()
425 priv = container_of(ocelot_port, struct ocelot_port_private, in mscc_ocelot_init_ports()
Docelot_io.c63 u32 ocelot_port_readl(struct ocelot_port *port, u32 reg) in ocelot_port_readl()
76 void ocelot_port_writel(struct ocelot_port *port, u32 val, u32 reg) in ocelot_port_writel()
87 void ocelot_port_rmwl(struct ocelot_port *port, u32 val, u32 mask, u32 reg) in ocelot_port_rmwl()
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()
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()
/linux-6.1.9/drivers/net/dsa/ocelot/
Dfelix_vsc9959.c1012 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_mdio_bus_alloc() local
1019 if (ocelot_port->phy_mode == PHY_INTERFACE_MODE_INTERNAL) in vsc9959_mdio_bus_alloc()
1213 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_tas_guard_bands_update() local
1224 taprio = ocelot_port->taprio; in vsc9959_tas_guard_bands_update()
1248 val = ocelot_port_readl(ocelot_port, DEV_MAC_MAXLEN_CFG); in vsc9959_tas_guard_bands_update()
1335 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_sched_speed_set() local
1363 if (ocelot_port->taprio) in vsc9959_sched_speed_set()
1409 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_qos_port_tas_set() local
1420 taprio_offload_free(ocelot_port->taprio); in vsc9959_qos_port_tas_set()
1421 ocelot_port->taprio = NULL; in vsc9959_qos_port_tas_set()
[all …]
Dfelix.c1368 sizeof(struct ocelot_port *), GFP_KERNEL); in felix_init_structs()
1417 struct ocelot_port *ocelot_port; in felix_init_structs() local
1419 ocelot_port = devm_kzalloc(ocelot->dev, in felix_init_structs()
1420 sizeof(struct ocelot_port), in felix_init_structs()
1422 if (!ocelot_port) { in felix_init_structs()
1438 ocelot_port->phy_mode = port_phy_modes[port]; in felix_init_structs()
1439 ocelot_port->ocelot = ocelot; in felix_init_structs()
1440 ocelot_port->target = target; in felix_init_structs()
1441 ocelot_port->index = port; in felix_init_structs()
1442 ocelot->ports[port] = ocelot_port; in felix_init_structs()
[all …]
Dseville_vsc9953.c943 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9953_mdio_bus_alloc() local
951 if (ocelot_port->phy_mode == PHY_INTERFACE_MODE_INTERNAL) in vsc9953_mdio_bus_alloc()
/linux-6.1.9/include/soc/mscc/
Docelot.h920 struct ocelot_port;
922 struct ocelot_port { struct
930 struct ocelot_port *dsa_8021q_cpu; argument
978 struct ocelot_port **ports; argument
1109 u32 ocelot_port_readl(struct ocelot_port *port, u32 reg);
1110 void ocelot_port_writel(struct ocelot_port *port, u32 val, u32 reg);
1111 void ocelot_port_rmwl(struct ocelot_port *port, u32 val, u32 mask, u32 reg);