Home
last modified time | relevance | path

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

/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.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_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_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()
578 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_xmit_fdma() local
579 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_xmit_fdma()
595 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_xmit_inj() local
596 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_xmit_inj()
695 struct ocelot_port *ocelot_port = &priv->port; in ocelot_mc_unsync() local
696 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_mc_unsync()
709 struct ocelot_port *ocelot_port = &priv->port; in ocelot_mc_sync() local
710 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_mc_sync()
[all …]
H A Docelot_ptp.c439 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_setup_ptp_traps() local
442 ocelot_port->trap_proto &= ~(OCELOT_PROTO_PTP_L2 | in ocelot_setup_ptp_traps()
469 ocelot_port->trap_proto |= OCELOT_PROTO_PTP_L2; in ocelot_setup_ptp_traps()
471 ocelot_port->trap_proto |= OCELOT_PROTO_PTP_L4; in ocelot_setup_ptp_traps()
520 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_hwstamp_get() local
522 switch (ocelot_port->ptp_cmd) { in ocelot_hwstamp_get()
534 cfg->rx_filter = ocelot_traps_to_ptp_rx_filter(ocelot_port->trap_proto); in ocelot_hwstamp_get()
542 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_hwstamp_set() local
579 ocelot_port->ptp_cmd = ptp_cmd; in ocelot_hwstamp_set()
581 cfg->rx_filter = ocelot_traps_to_ptp_rx_filter(ocelot_port->trap_proto); 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.c135 struct ocelot_port *ocelot_port; in mscc_ocelot_release_ports() local
137 ocelot_port = ocelot->ports[port]; in mscc_ocelot_release_ports()
138 if (!ocelot_port) in mscc_ocelot_release_ports()
142 ocelot_release_port(ocelot_port); in mscc_ocelot_release_ports()
156 sizeof(struct ocelot_port *), GFP_KERNEL); in mscc_ocelot_init_ports()
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_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()
/linux/drivers/net/dsa/ocelot/
H A Dfelix_vsc9959.c1024 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_mdio_bus_alloc() local
1030 if (ocelot_port->phy_mode == PHY_INTERFACE_MODE_INTERNAL) in vsc9959_mdio_bus_alloc()
1220 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_tas_guard_bands_update() local
1233 taprio = ocelot_port->taprio; in vsc9959_tas_guard_bands_update()
1257 val = ocelot_port_readl(ocelot_port, DEV_MAC_MAXLEN_CFG); in vsc9959_tas_guard_bands_update()
1352 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_sched_speed_set() local
1380 if (ocelot_port->taprio) in vsc9959_sched_speed_set()
1426 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_qos_port_tas_set() local
1438 taprio_offload_free(ocelot_port->taprio); in vsc9959_qos_port_tas_set()
1439 ocelot_port->taprio = NULL; in vsc9959_qos_port_tas_set()
[all …]
H A Dfelix.c1526 sizeof(struct ocelot_port *), GFP_KERNEL); in felix_init_structs()
1573 struct ocelot_port *ocelot_port; in felix_init_structs() local
1575 ocelot_port = devm_kzalloc(ocelot->dev, in felix_init_structs()
1576 sizeof(struct ocelot_port), in felix_init_structs()
1578 if (!ocelot_port) { in felix_init_structs()
1594 ocelot_port->phy_mode = port_phy_modes[port]; in felix_init_structs()
1595 ocelot_port->ocelot = ocelot; in felix_init_structs()
1596 ocelot_port->target = target; in felix_init_structs()
1597 ocelot_port->index = port; in felix_init_structs()
1598 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()
/linux/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,