Home
last modified time | relevance | path

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

/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_ptp.c442 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_setup_ptp_traps() local
445 ocelot_port->trap_proto &= ~(OCELOT_PROTO_PTP_L2 | in ocelot_setup_ptp_traps()
472 ocelot_port->trap_proto |= OCELOT_PROTO_PTP_L2; in ocelot_setup_ptp_traps()
474 ocelot_port->trap_proto |= OCELOT_PROTO_PTP_L4; in ocelot_setup_ptp_traps()
500 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_hwstamp_get() local
503 switch (ocelot_port->ptp_cmd) { in ocelot_hwstamp_get()
515 cfg.rx_filter = ocelot_traps_to_ptp_rx_filter(ocelot_port->trap_proto); in ocelot_hwstamp_get()
523 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_hwstamp_set() local
534 ocelot_port->ptp_cmd = IFH_REW_OP_TWO_STEP_PTP; in ocelot_hwstamp_set()
540 ocelot_port->ptp_cmd = IFH_REW_OP_ORIGIN_PTP; in ocelot_hwstamp_set()
[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_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()
/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()
1216 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_tas_guard_bands_update() local
1227 taprio = ocelot_port->taprio; in vsc9959_tas_guard_bands_update()
1251 val = ocelot_port_readl(ocelot_port, DEV_MAC_MAXLEN_CFG); in vsc9959_tas_guard_bands_update()
1338 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_sched_speed_set() local
1366 if (ocelot_port->taprio) in vsc9959_sched_speed_set()
1412 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_qos_port_tas_set() local
1423 taprio_offload_free(ocelot_port->taprio); in vsc9959_qos_port_tas_set()
1424 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()