Lines Matching refs:policing
37 struct sja1105_l2_policing_entry *policing;
60 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries;
62 if (policing[(SJA1105_NUM_PORTS * SJA1105_NUM_TC) + port].sharindx != port) {
77 policing[bcast].sharindx = rule->bcast_pol.sharindx;
80 policing[rule->bcast_pol.sharindx].rate = div_u64(rate_bytes_per_sec *
82 policing[rule->bcast_pol.sharindx].smax = burst;
85 policing[rule->bcast_pol.sharindx].maxlen = VLAN_ETH_FRAME_LEN +
108 struct sja1105_l2_policing_entry *policing;
132 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries;
134 if (policing[(port * SJA1105_NUM_TC) + tc].sharindx != port) {
149 policing[index].sharindx = rule->tc_pol.sharindx;
152 policing[rule->tc_pol.sharindx].rate = div_u64(rate_bytes_per_sec *
154 policing[rule->tc_pol.sharindx].smax = burst;
157 policing[rule->tc_pol.sharindx].maxlen = VLAN_ETH_FRAME_LEN +
189 NL_SET_ERR_MSG_MOD(extack, "Unknown keys for policing");
421 struct sja1105_l2_policing_entry *policing;
430 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries;
435 old_sharindx = policing[bcast].sharindx;
436 policing[bcast].sharindx = port;
440 old_sharindx = policing[index].sharindx;
441 policing[index].sharindx = port;