Home
last modified time | relevance | path

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

/linux-6.1.9/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 …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_bloom_filter.c417 unsigned int rule_index; in mlxsw_sp_acl_bf_entry_add() local
425 rule_index = mlxsw_sp_acl_bf_rule_count_index_get(bf, erp_bank, in mlxsw_sp_acl_bf_entry_add()
428 if (refcount_inc_not_zero(&bf->refcnt[rule_index])) { in mlxsw_sp_acl_bf_entry_add()
446 refcount_set(&bf->refcnt[rule_index], 1); in mlxsw_sp_acl_bf_entry_add()
461 unsigned int rule_index; in mlxsw_sp_acl_bf_entry_del() local
468 rule_index = mlxsw_sp_acl_bf_rule_count_index_get(bf, erp_bank, in mlxsw_sp_acl_bf_entry_del()
471 if (refcount_dec_and_test(&bf->refcnt[rule_index])) { in mlxsw_sp_acl_bf_entry_del()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dmacsec_fs.c822 int rule_index = (reformat_param_size == MLX5_SECTAG_HEADER_SIZE_WITH_SCI) ? 0 : 1; in macsec_fs_rx_create_check_decap_rule() local
849 rx_fs->check_rule_pkt_reformat[rule_index] = flow_act->pkt_reformat; in macsec_fs_rx_create_check_decap_rule()
882 rx_fs->check_rule[rule_index] = rule; in macsec_fs_rx_create_check_decap_rule()
/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dchip.c1063 static void clear_rsm_rule(struct hfi1_devdata *dd, u8 rule_index);
14262 static bool has_rsm_rule(struct hfi1_devdata *dd, u8 rule_index) in has_rsm_rule() argument
14264 return read_csr(dd, RCV_RSM_CFG + (8 * rule_index)) != 0; in has_rsm_rule()
14270 static void add_rsm_rule(struct hfi1_devdata *dd, u8 rule_index, in add_rsm_rule() argument
14273 write_csr(dd, RCV_RSM_CFG + (8 * rule_index), in add_rsm_rule()
14275 1ull << rule_index | /* enable bit */ in add_rsm_rule()
14277 write_csr(dd, RCV_RSM_SELECT + (8 * rule_index), in add_rsm_rule()
14284 write_csr(dd, RCV_RSM_MATCH + (8 * rule_index), in add_rsm_rule()
14294 static void clear_rsm_rule(struct hfi1_devdata *dd, u8 rule_index) in clear_rsm_rule() argument
14296 write_csr(dd, RCV_RSM_CFG + (8 * rule_index), 0); in clear_rsm_rule()
[all …]