Home
last modified time | relevance | path

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

/linux-6.15/drivers/net/ethernet/mscc/
H A Docelot_mrp.c24 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()
125 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_mrp_add() local
129 if (!ocelot_port) in ocelot_mrp_add()
147 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_mrp_del() local
149 if (!ocelot_port) in ocelot_mrp_del()
164 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_mrp_add_ring_role() local
168 if (!ocelot_port) in ocelot_mrp_add_ring_role()
204 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_mrp_del_ring_role() local
207 if (!ocelot_port) in ocelot_mrp_del_ring_role()
[all …]
H A Docelot_mm.c54 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_update_active_preemptible_tcs() local
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()
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()
203 ocelot_port_rmwl(ocelot_port, verify_disable | in ocelot_port_set_mm()
237 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_get_mm() local
274 struct ocelot_port *ocelot_port; in ocelot_mm_init() local
[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()
386 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_manage_port_tag() local
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()
520 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_update_vlan_reclassify_rule() local
609 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_set_pvid() local
752 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_vlan_filtering() local
833 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_vlan_add() local
1912 if (!ocelot_port || !ocelot_port->is_dsa_8021q_cpu) in ocelot_update_pgid_cpu()
[all …]
H A Docelot_net.c496 struct ocelot_port *ocelot_port = &priv->port; in ocelot_vlan_vid_add() local
557 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_xmit() local
658 struct ocelot_port *ocelot_port = &priv->port; in ocelot_mc_unsync() local
672 struct ocelot_port *ocelot_port = &priv->port; in ocelot_mc_sync() local
706 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_set_mac_address() local
737 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_fdb_add() local
750 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_fdb_del() local
895 struct ocelot_port *ocelot_port = &priv->port; in ocelot_change_mtu() local
1090 struct ocelot_port *ocelot_port = &priv->port; in ocelot_vlan_vid_prepare() local
1116 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_obj_add_mdb() local
[all …]
H A Docelot_ptp.c444 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_setup_ptp_traps() local
524 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_hwstamp_get() local
527 switch (ocelot_port->ptp_cmd) { in ocelot_hwstamp_get()
547 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_hwstamp_set() local
592 ocelot_port->ptp_cmd = ptp_cmd; in ocelot_hwstamp_set()
637 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_dequeue_ptp_tx_skb() local
669 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_queue_ptp_tx_skb() local
746 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_txtstamp_request() local
800 ocelot_port->ts_stats->err++; in ocelot_port_txtstamp_request()
839 struct ocelot_port *ocelot_port; in ocelot_get_txtstamp() local
[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_stats.c827 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_get_ts_stats() local
828 struct ocelot_ts_stats *stats = ocelot_port->ts_stats; in ocelot_port_get_ts_stats()
985 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_stats_init() local
987 if (!ocelot_port) in ocelot_stats_init()
990 ocelot_port->ts_stats = devm_kzalloc(ocelot->dev, in ocelot_stats_init()
991 sizeof(*ocelot_port->ts_stats), in ocelot_stats_init()
993 if (!ocelot_port->ts_stats) in ocelot_stats_init()
996 u64_stats_init(&ocelot_port->ts_stats->syncp); in ocelot_stats_init()
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()
/linux-6.15/drivers/net/dsa/ocelot/
H A Dfelix_vsc9959.c1023 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_mdio_bus_alloc() local
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()
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
1438 ocelot_port->taprio = NULL; in vsc9959_qos_port_tas_set()
1544 struct ocelot_port *ocelot_port; in vsc9959_tas_clock_adjust() local
1553 taprio = ocelot_port->taprio; in vsc9959_tas_clock_adjust()
2551 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_cut_through_fwd() local
[all …]
H A Dfelix.c1552 struct ocelot_port *ocelot_port; in felix_init_structs() local
1554 ocelot_port = devm_kzalloc(ocelot->dev, in felix_init_structs()
1555 sizeof(struct ocelot_port), in felix_init_structs()
1557 if (!ocelot_port) { in felix_init_structs()
1574 ocelot_port->ocelot = ocelot; in felix_init_structs()
1575 ocelot_port->target = target; in felix_init_structs()
1576 ocelot_port->index = port; in felix_init_structs()
1577 ocelot->ports[port] = ocelot_port; in felix_init_structs()
1594 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_purge_txtstamp_skb() local
1607 __skb_unlink(skb, &ocelot_port->tx_skbs); in ocelot_port_purge_txtstamp_skb()
[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()
/linux-6.15/include/soc/mscc/
H A Docelot.h770 struct ocelot_port;
772 struct ocelot_port { struct
780 struct ocelot_port *dsa_8021q_cpu; argument
831 struct ocelot_port **ports; argument
962 u32 ocelot_port_readl(struct ocelot_port *port, enum ocelot_reg reg);
963 void ocelot_port_writel(struct ocelot_port *port, u32 val, enum ocelot_reg reg);
964 void ocelot_port_rmwl(struct ocelot_port *port, u32 val, u32 mask,