/linux-6.1.9/drivers/net/ethernet/mscc/ |
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 …]
|
D | ocelot_net.c | 505 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 …]
|
D | ocelot.c | 231 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 …]
|
D | ocelot.h | 47 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);
|
D | ocelot_ptp.c | 486 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 …]
|
D | ocelot_vsc7514.c | 347 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()
|
D | ocelot_io.c | 63 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()
|
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()
|
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-6.1.9/drivers/net/dsa/ocelot/ |
D | felix_vsc9959.c | 1012 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 …]
|
D | felix.c | 1368 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 …]
|
D | seville_vsc9953.c | 943 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/ |
D | ocelot.h | 920 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);
|