Lines Matching refs:sharindx

50 		rule->bcast_pol.sharindx = sja1105_find_free_l2_policer(priv);  in sja1105_setup_bcast_policer()
55 if (rule->bcast_pol.sharindx == -1) { 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()
93 priv->flow_block.l2_policer_used[rule->bcast_pol.sharindx] = true; in sja1105_setup_bcast_policer()
121 rule->tc_pol.sharindx = sja1105_find_free_l2_policer(priv); in sja1105_setup_tc_policer()
127 if (rule->tc_pol.sharindx == -1) { 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()
165 priv->flow_block.l2_policer_used[rule->tc_pol.sharindx] = true; in sja1105_setup_tc_policer()
478 old_sharindx = policing[bcast].sharindx; in sja1105_cls_flower_del()
479 policing[bcast].sharindx = port; in sja1105_cls_flower_del()
483 old_sharindx = policing[index].sharindx; in sja1105_cls_flower_del()
484 policing[index].sharindx = port; in sja1105_cls_flower_del()