Lines Matching refs:policing

1010 	struct sja1105_l2_policing_entry *policing;  in sja1105_init_l2_policing()  local
1030 policing = table->entries; in sja1105_init_l2_policing()
1038 policing[port * SJA1105_NUM_TC + tc].sharindx = port; in sja1105_init_l2_policing()
1040 policing[bcast].sharindx = port; in sja1105_init_l2_policing()
1043 policing[mcast].sharindx = port; in sja1105_init_l2_policing()
1053 policing[port].smax = 65535; /* Burst size in bytes */ in sja1105_init_l2_policing()
1054 policing[port].rate = SJA1105_RATE_MBPS(1000); in sja1105_init_l2_policing()
1055 policing[port].maxlen = mtu; in sja1105_init_l2_policing()
1056 policing[port].partition = 0; in sja1105_init_l2_policing()
2801 struct sja1105_l2_policing_entry *policing; in sja1105_change_mtu() local
2809 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries; in sja1105_change_mtu()
2811 if (policing[port].maxlen == new_mtu) in sja1105_change_mtu()
2814 policing[port].maxlen = new_mtu; in sja1105_change_mtu()
2920 struct sja1105_l2_policing_entry *policing; in sja1105_port_policer_add() local
2923 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries; in sja1105_port_policer_add()
2929 policing[port].rate = div_u64(512 * policer->rate_bytes_per_sec, in sja1105_port_policer_add()
2931 policing[port].smax = policer->burst; in sja1105_port_policer_add()
2938 struct sja1105_l2_policing_entry *policing; in sja1105_port_policer_del() local
2941 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries; in sja1105_port_policer_del()
2943 policing[port].rate = SJA1105_RATE_MBPS(1000); in sja1105_port_policer_del()
2944 policing[port].smax = 65535; in sja1105_port_policer_del()