Lines Matching refs:policing
37 struct sja1105_l2_policing_entry *policing;
61 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries;
63 if (policing[(ds->num_ports * SJA1105_NUM_TC) + port].sharindx != port) {
78 policing[bcast].sharindx = rule->bcast_pol.sharindx;
81 policing[rule->bcast_pol.sharindx].rate = div_u64(rate_bytes_per_sec *
83 policing[rule->bcast_pol.sharindx].smax = burst;
86 policing[rule->bcast_pol.sharindx].maxlen = VLAN_ETH_FRAME_LEN +
109 struct sja1105_l2_policing_entry *policing;
133 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries;
135 if (policing[(port * SJA1105_NUM_TC) + tc].sharindx != port) {
150 policing[index].sharindx = rule->tc_pol.sharindx;
153 policing[rule->tc_pol.sharindx].rate = div_u64(rate_bytes_per_sec *
155 policing[rule->tc_pol.sharindx].smax = burst;
158 policing[rule->tc_pol.sharindx].maxlen = VLAN_ETH_FRAME_LEN +
190 NL_SET_ERR_MSG_MOD(extack, "Unknown keys for policing");
467 struct sja1105_l2_policing_entry *policing;
476 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries;
481 old_sharindx = policing[bcast].sharindx;
482 policing[bcast].sharindx = port;
486 old_sharindx = policing[index].sharindx;
487 policing[index].sharindx = port;