Lines Matching refs:port

52 void ocelot_port_update_active_preemptible_tcs(struct ocelot *ocelot, int port)
54 struct ocelot_port *ocelot_port = ocelot->ports[port];
55 struct ocelot_mm_state *mm = &ocelot->mm[port];
61 * On NXP LS1028A, when using QSGMII, the port hangs if transmitting
76 ocelot->ops->tas_guard_bands_update(ocelot, port);
79 "port %d %s/%s, MM TX %s, preemptible TCs 0x%x, active 0x%x\n",
80 port, phy_modes(ocelot_port->phy_mode),
87 QSYS_PREEMPTION_CFG, port);
90 void ocelot_port_change_fp(struct ocelot *ocelot, int port,
93 struct ocelot_mm_state *mm = &ocelot->mm[port];
102 ocelot_port_update_active_preemptible_tcs(ocelot, port);
105 static void ocelot_mm_update_port_status(struct ocelot *ocelot, int port)
107 struct ocelot_port *ocelot_port = ocelot->ports[port];
108 struct ocelot_mm_state *mm = &ocelot->mm[port];
121 port, mm_verify_state_to_string(verify_status));
129 port, mm->tx_active ? "active" : "inactive");
130 ocelot_port_update_active_preemptible_tcs(ocelot, port);
137 "Unexpected P-frame received on port %d while verification was unsuccessful or not yet verified\n",
138 port);
145 "Unexpected P-frame requested to be transmitted on port %d while verification was unsuccessful or not yet verified, or MM_TX_ENA=0\n",
146 port);
157 int port;
161 for (port = 0; port < ocelot->num_phys_ports; port++)
162 ocelot_mm_update_port_status(ocelot, port);
168 int ocelot_port_set_mm(struct ocelot *ocelot, int port,
172 struct ocelot_port *ocelot_port = ocelot->ports[port];
180 mm = &ocelot->mm[port];
213 port);
222 ocelot_mm_update_port_status(ocelot, port);
234 int ocelot_port_get_mm(struct ocelot *ocelot, int port,
237 struct ocelot_port *ocelot_port = ocelot->ports[port];
244 mm = &ocelot->mm[port];
257 val = ocelot_read_rix(ocelot, QSYS_PREEMPTION_CFG, port);
262 ocelot_mm_update_port_status(ocelot, port);
276 int port;
286 for (port = 0; port < ocelot->num_phys_ports; port++) {
289 mm = &ocelot->mm[port];
290 ocelot_port = ocelot->ports[port];