Searched refs:pol_ix (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/drivers/net/ethernet/mscc/ |
D | ocelot_police.c | 23 int qos_policer_conf_set(struct ocelot *ocelot, u32 pol_ix, in qos_policer_conf_set() argument 107 pol_ix, pir, GENMASK(15, 0)); in qos_policer_conf_set() 114 pol_ix, cir, GENMASK(15, 0)); in qos_policer_conf_set() 121 pol_ix, pbs, pbs_max); in qos_policer_conf_set() 128 pol_ix, cbs, cbs_max); in qos_policer_conf_set() 138 ocelot_write_gix(ocelot, value, ANA_POL_MODE_CFG, pol_ix); in qos_policer_conf_set() 143 ANA_POL_PIR_CFG, pol_ix); in qos_policer_conf_set() 147 ANA_POL_PIR_STATE, pol_ix); in qos_policer_conf_set() 152 ANA_POL_CIR_CFG, pol_ix); in qos_policer_conf_set() 156 ANA_POL_CIR_STATE, pol_ix); in qos_policer_conf_set()
|
D | ocelot_flower.c | 241 u32 pol_ix, pol_max; in ocelot_flower_parse_action() local 279 filter->action.pol_ix = OCELOT_POLICER_DISCARD; in ocelot_flower_parse_action() 340 pol_ix = a->hw_index + ocelot->vcap_pol.base; in ocelot_flower_parse_action() 343 if (ocelot->vcap_pol.max2 && pol_ix > pol_max) { in ocelot_flower_parse_action() 344 pol_ix += ocelot->vcap_pol.base2 - pol_max - 1; in ocelot_flower_parse_action() 348 if (pol_ix >= pol_max) in ocelot_flower_parse_action() 351 filter->action.pol_ix = pol_ix; in ocelot_flower_parse_action()
|
D | ocelot_vcap.c | 340 vcap_action_set(vcap, data, VCAP_IS2_ACT_POLICE_IDX, a->pol_ix); in is2_action_set() 889 u32 pol_ix; member 892 int ocelot_vcap_policer_add(struct ocelot *ocelot, u32 pol_ix, in ocelot_vcap_policer_add() argument 907 if (tmp->pol_ix == pol_ix) { in ocelot_vcap_policer_add() 916 ret = qos_policer_conf_set(ocelot, pol_ix, &pp); in ocelot_vcap_policer_add() 922 tmp->pol_ix = pol_ix; in ocelot_vcap_policer_add() 930 int ocelot_vcap_policer_del(struct ocelot *ocelot, u32 pol_ix) in ocelot_vcap_policer_del() argument 937 if (tmp->pol_ix == pol_ix) { in ocelot_vcap_policer_del() 947 return qos_policer_conf_set(ocelot, pol_ix, &pp); in ocelot_vcap_policer_del() 970 ret = ocelot_vcap_policer_add(ocelot, filter->action.pol_ix, in ocelot_vcap_filter_add_aux_resources() [all …]
|
D | ocelot_police.h | 34 int qos_policer_conf_set(struct ocelot *ocelot, u32 pol_ix,
|
/linux-6.6.21/include/soc/mscc/ |
D | ocelot_vcap.h | 659 u32 pol_ix; member
|
D | ocelot.h | 1156 int ocelot_vcap_policer_add(struct ocelot *ocelot, u32 pol_ix, 1158 int ocelot_vcap_policer_del(struct ocelot *ocelot, u32 pol_ix);
|