Lines Matching refs:port
32 unsigned long cookie, int port,
63 if (policing[(ds->num_ports * SJA1105_NUM_TC) + port].sharindx != port) {
70 rule->port_mask |= BIT(port);
104 unsigned long cookie, int port, int tc,
135 if (policing[(port * SJA1105_NUM_TC) + tc].sharindx != port) {
142 rule->port_mask |= BIT(port);
174 static int sja1105_flower_policer(struct sja1105_private *priv, int port,
183 return sja1105_setup_bcast_policer(priv, extack, cookie, port,
186 return sja1105_setup_tc_policer(priv, extack, cookie, port,
343 int sja1105_cls_flower_add(struct dsa_switch *ds, int port,
368 rc = sja1105_flower_policer(priv, port, extack, cookie,
376 int cpu = dsa_upstream_port(ds, port);
381 rc = sja1105_vl_redirect(priv, port, extack, cookie,
393 "Destination not a switch port");
400 rc = sja1105_vl_redirect(priv, port, extack, cookie,
409 rc = sja1105_vl_redirect(priv, port, extack, cookie,
418 rc = sja1105_vl_gate(priv, port, extack, cookie,
459 int sja1105_cls_flower_del(struct dsa_switch *ds, int port,
471 return sja1105_vl_delete(priv, port, rule, cls->common.extack);
476 int bcast = (ds->num_ports * SJA1105_NUM_TC) + port;
479 policing[bcast].sharindx = port;
481 int index = (port * SJA1105_NUM_TC) + rule->key.tc.pcp;
484 policing[index].sharindx = port;
489 rule->port_mask &= ~BIT(port);
499 int sja1105_cls_flower_stats(struct dsa_switch *ds, int port,
512 rc = sja1105_vl_stats(priv, port, rule, &cls->stats,
523 int port;
527 for (port = 0; port < ds->num_ports; port++)
528 priv->flow_block.l2_policer_used[port] = true;