Lines Matching refs:policing

37 	struct sja1105_l2_policing_entry *policing;  in sja1105_setup_bcast_policer()  local
61 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries; in sja1105_setup_bcast_policer()
63 if (policing[(ds->num_ports * SJA1105_NUM_TC) + port].sharindx != port) { in sja1105_setup_bcast_policer()
78 policing[bcast].sharindx = rule->bcast_pol.sharindx; in sja1105_setup_bcast_policer()
81 policing[rule->bcast_pol.sharindx].rate = div_u64(rate_bytes_per_sec * in sja1105_setup_bcast_policer()
83 policing[rule->bcast_pol.sharindx].smax = burst; in sja1105_setup_bcast_policer()
86 policing[rule->bcast_pol.sharindx].maxlen = VLAN_ETH_FRAME_LEN + in sja1105_setup_bcast_policer()
109 struct sja1105_l2_policing_entry *policing; in sja1105_setup_tc_policer() local
133 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries; in sja1105_setup_tc_policer()
135 if (policing[(port * SJA1105_NUM_TC) + tc].sharindx != port) { in sja1105_setup_tc_policer()
150 policing[index].sharindx = rule->tc_pol.sharindx; in sja1105_setup_tc_policer()
153 policing[rule->tc_pol.sharindx].rate = div_u64(rate_bytes_per_sec * in sja1105_setup_tc_policer()
155 policing[rule->tc_pol.sharindx].smax = burst; in sja1105_setup_tc_policer()
158 policing[rule->tc_pol.sharindx].maxlen = VLAN_ETH_FRAME_LEN + in sja1105_setup_tc_policer()
427 struct sja1105_l2_policing_entry *policing; in sja1105_cls_flower_del() local
436 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries; in sja1105_cls_flower_del()
441 old_sharindx = policing[bcast].sharindx; in sja1105_cls_flower_del()
442 policing[bcast].sharindx = port; in sja1105_cls_flower_del()
446 old_sharindx = policing[index].sharindx; in sja1105_cls_flower_del()
447 policing[index].sharindx = port; in sja1105_cls_flower_del()