Home
last modified time | relevance | path

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

/drivers/net/ethernet/mscc/
Docelot.c166 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_set_native_vlan() local
169 if (ocelot_port->vid != vid) { in ocelot_port_set_native_vlan()
171 if (ocelot_port->vid && vid) { in ocelot_port_set_native_vlan()
174 ocelot_port->vid); in ocelot_port_set_native_vlan()
177 ocelot_port->vid = vid; in ocelot_port_set_native_vlan()
184 if (ocelot_port->vlan_aware && !ocelot_port->vid) in ocelot_port_set_native_vlan()
197 if (ocelot_port->vlan_aware) { in ocelot_port_set_native_vlan()
198 if (ocelot_port->vid) in ocelot_port_set_native_vlan()
218 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_vlan_filtering() local
237 ocelot_port->vlan_aware = vlan_aware; in ocelot_port_vlan_filtering()
[all …]
Docelot_net.c213 struct ocelot_port *ocelot_port = &priv->port; in ocelot_vlan_vid_add() local
214 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_vlan_vid_add()
256 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_open() local
257 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_open()
263 ocelot_port->phy_mode); in ocelot_port_open()
271 ocelot_port->phy_mode); in ocelot_port_open()
326 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_xmit() local
327 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_xmit()
348 info.rew_op = ocelot_port->ptp_cmd; in ocelot_port_xmit()
350 if (ocelot_port->ptp_cmd == IFH_REW_OP_TWO_STEP_PTP) { in ocelot_port_xmit()
[all …]
Docelot_vsc7514.c614 struct ocelot_port *ocelot_port; in ocelot_xtr_irq_handler() local
642 ocelot_port = ocelot->ports[info.port]; in ocelot_xtr_irq_handler()
643 priv = container_of(ocelot_port, struct ocelot_port_private, in ocelot_xtr_irq_handler()
1045 struct ocelot_port *ocelot_port; in mscc_ocelot_release_ports() local
1047 ocelot_port = ocelot->ports[port]; in mscc_ocelot_release_ports()
1048 if (!ocelot_port) in mscc_ocelot_release_ports()
1053 priv = container_of(ocelot_port, struct ocelot_port_private, in mscc_ocelot_release_ports()
1069 sizeof(struct ocelot_port *), GFP_KERNEL); in mscc_ocelot_init_ports()
1075 struct ocelot_port *ocelot_port; in mscc_ocelot_init_ports() local
1111 ocelot_port = ocelot->ports[port]; in mscc_ocelot_init_ports()
[all …]
Docelot.h60 struct ocelot_port port;
104 u32 ocelot_port_readl(struct ocelot_port *port, u32 reg);
105 void ocelot_port_writel(struct ocelot_port *port, u32 val, u32 reg);
Docelot_io.c50 u32 ocelot_port_readl(struct ocelot_port *port, u32 reg) in ocelot_port_readl()
63 void ocelot_port_writel(struct ocelot_port *port, u32 val, u32 reg) in ocelot_port_writel()
74 void ocelot_port_rmwl(struct ocelot_port *port, u32 val, u32 mask, u32 reg) in ocelot_port_rmwl()
Docelot_flower.c163 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_flower_parse_action() local
296 if (!ocelot_port->vlan_aware) { in ocelot_flower_parse_action()
/drivers/net/dsa/ocelot/
Dfelix.c216 struct ocelot_port *ocelot_port = ocelot->ports[port]; in felix_phylink_mac_link_down() local
219 ocelot_port_rmwl(ocelot_port, 0, DEV_MAC_ENA_CFG_RX_ENA, in felix_phylink_mac_link_down()
230 ocelot_port_writel(ocelot_port, in felix_phylink_mac_link_down()
245 struct ocelot_port *ocelot_port = ocelot->ports[port]; in felix_phylink_mac_link_up() local
256 ocelot_port_writel(ocelot_port, in felix_phylink_mac_link_up()
298 ocelot_port_writel(ocelot_port, DEV_MAC_ENA_CFG_RX_ENA | in felix_phylink_mac_link_up()
443 sizeof(struct ocelot_port *), GFP_KERNEL); in felix_init_structs()
498 struct ocelot_port *ocelot_port; in felix_init_structs() local
502 ocelot_port = devm_kzalloc(ocelot->dev, in felix_init_structs()
503 sizeof(struct ocelot_port), in felix_init_structs()
[all …]
Dseville_vsc9953.c997 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9953_phylink_validate() local
1001 state->interface != ocelot_port->phy_mode) { in vsc9953_phylink_validate()
1104 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9953_mdio_bus_alloc() local
1112 if (ocelot_port->phy_mode == PHY_INTERFACE_MODE_INTERNAL) in vsc9953_mdio_bus_alloc()
1152 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9953_xmit_template_populate() local
1153 u8 *template = ocelot_port->xmit_template; in vsc9953_xmit_template_populate()
Dfelix_vsc9959.c942 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_phylink_validate() local
946 state->interface != ocelot_port->phy_mode) { in vsc9959_phylink_validate()
1081 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_mdio_bus_alloc() local
1088 if (ocelot_port->phy_mode == PHY_INTERFACE_MODE_INTERNAL) in vsc9959_mdio_bus_alloc()
1329 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_xmit_template_populate() local
1330 u8 *template = ocelot_port->xmit_template; in vsc9959_xmit_template_populate()