Home
last modified time | relevance | path

Searched refs:rule_index (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/dsa/
Dbcm_sf2_cfp.c213 unsigned int rule_index, in bcm_sf2_cfp_act_pol_set() argument
239 core_writel(priv, rule_index << CHAIN_ID_SHIFT, CORE_ACT_POL_DATA1); in bcm_sf2_cfp_act_pol_set()
246 pr_err("Policer entry at %d failed\n", rule_index); in bcm_sf2_cfp_act_pol_set()
256 pr_err("Meter entry at %d failed\n", rule_index); in bcm_sf2_cfp_act_pol_set()
354 unsigned int slice_num, rule_index; in bcm_sf2_cfp_ipv4_rule_set() local
385 rule_index = find_first_zero_bit(priv->cfp.used, in bcm_sf2_cfp_ipv4_rule_set()
388 rule_index = fs->location; in bcm_sf2_cfp_ipv4_rule_set()
390 if (rule_index > bcm_sf2_cfp_rule_size(priv)) in bcm_sf2_cfp_ipv4_rule_set()
451 bcm_sf2_cfp_rule_addr_set(priv, rule_index); in bcm_sf2_cfp_ipv4_rule_set()
455 pr_err("TCAM entry at addr %d failed\n", rule_index); in bcm_sf2_cfp_ipv4_rule_set()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_bloom_filter.c172 unsigned int rule_index; in mlxsw_sp_acl_bf_entry_add() local
180 rule_index = mlxsw_sp_acl_bf_rule_count_index_get(bf, erp_bank, in mlxsw_sp_acl_bf_entry_add()
183 if (refcount_inc_not_zero(&bf->refcnt[rule_index])) { in mlxsw_sp_acl_bf_entry_add()
201 refcount_set(&bf->refcnt[rule_index], 1); in mlxsw_sp_acl_bf_entry_add()
216 unsigned int rule_index; in mlxsw_sp_acl_bf_entry_del() local
223 rule_index = mlxsw_sp_acl_bf_rule_count_index_get(bf, erp_bank, in mlxsw_sp_acl_bf_entry_del()
226 if (refcount_dec_and_test(&bf->refcnt[rule_index])) { in mlxsw_sp_acl_bf_entry_del()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dchip.c1104 static void clear_rsm_rule(struct hfi1_devdata *dd, u8 rule_index);
14303 static bool has_rsm_rule(struct hfi1_devdata *dd, u8 rule_index) in has_rsm_rule() argument
14305 return read_csr(dd, RCV_RSM_CFG + (8 * rule_index)) != 0; in has_rsm_rule()
14311 static void add_rsm_rule(struct hfi1_devdata *dd, u8 rule_index, in add_rsm_rule() argument
14314 write_csr(dd, RCV_RSM_CFG + (8 * rule_index), in add_rsm_rule()
14316 1ull << rule_index | /* enable bit */ in add_rsm_rule()
14318 write_csr(dd, RCV_RSM_SELECT + (8 * rule_index), in add_rsm_rule()
14325 write_csr(dd, RCV_RSM_MATCH + (8 * rule_index), in add_rsm_rule()
14335 static void clear_rsm_rule(struct hfi1_devdata *dd, u8 rule_index) in clear_rsm_rule() argument
14337 write_csr(dd, RCV_RSM_CFG + (8 * rule_index), 0); in clear_rsm_rule()
[all …]