| /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.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_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_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() 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 D | ocelot_ptp.c | 439 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 D | ocelot.h | 47 struct ocelot_port port; 99 void ocelot_release_port(struct ocelot_port *ocelot_port);
|
| H A D | ocelot_vsc7514.c | 135 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 D | ocelot_stats.c | 827 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 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()
|
| /linux/drivers/net/dsa/ocelot/ |
| H A D | felix_vsc9959.c | 1024 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 D | felix.c | 1526 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 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()
|
| /linux/include/soc/mscc/ |
| H A D | ocelot.h | 770 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,
|