Lines Matching defs:mm
55 struct ocelot_mm_state *mm = &ocelot->mm[port];
66 ocelot_port->speed == SPEED_1000) && mm->tx_active)
67 val = mm->preemptible_tcs;
75 mm->active_preemptible_tcs = val;
82 mm->tx_active ? "active" : "inactive", mm->preemptible_tcs,
83 mm->active_preemptible_tcs);
93 struct ocelot_mm_state *mm = &ocelot->mm[port];
97 if (mm->preemptible_tcs == preemptible_tcs)
100 mm->preemptible_tcs = preemptible_tcs;
108 struct ocelot_mm_state *mm = &ocelot->mm[port];
112 if (!mm->tx_enabled)
118 if (mm->verify_status != verify_status) {
122 mm->verify_status = verify_status;
126 mm->tx_active = !!(val & DEV_MM_STAT_MM_STATUS_PRMPT_ACTIVE_STATUS);
129 port, mm->tx_active ? "active" : "inactive");
174 struct ocelot_mm_state *mm;
180 mm = &ocelot->mm[port];
218 * but we need to ACK this IRQ now, while mm->tx_enabled is still set,
221 if (mm->tx_enabled && !cfg->tx_enabled) {
223 WARN_ON(mm->tx_active);
226 mm->tx_enabled = cfg->tx_enabled;
238 struct ocelot_mm_state *mm;
244 mm = &ocelot->mm[port];
263 state->verify_status = mm->verify_status;
264 state->tx_active = mm->tx_active;
275 struct ocelot_mm_state *mm;
281 ocelot->mm = devm_kcalloc(ocelot->dev, ocelot->num_phys_ports,
282 sizeof(*ocelot->mm), GFP_KERNEL);
283 if (!ocelot->mm)
289 mm = &ocelot->mm[port];
296 mm->verify_status = ocelot_mm_verify_status(val);