Searched refs:rule_index (Results 1 – 6 of 6) sorted by relevance
/drivers/net/dsa/ |
D | bcm_sf2_cfp.c | 213 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 …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_acl_bloom_filter.c | 417 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()
|
/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
D | egress_ofld.c | 18 void esw_acl_egress_ofld_bounce_rule_destroy(struct mlx5_vport *vport, int rule_index) in esw_acl_egress_ofld_bounce_rule_destroy() argument 21 xa_load(&vport->egress.offloads.bounce_rules, rule_index); in esw_acl_egress_ofld_bounce_rule_destroy() 27 xa_erase(&vport->egress.offloads.bounce_rules, rule_index); in esw_acl_egress_ofld_bounce_rule_destroy()
|
D | ofld.h | 13 void esw_acl_egress_ofld_bounce_rule_destroy(struct mlx5_vport *vport, int rule_index);
|
/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | macsec_fs.c | 1141 int rule_index = (reformat_param_size == MLX5_SECTAG_HEADER_SIZE_WITH_SCI) ? 0 : 1; in macsec_fs_rx_create_check_decap_rule() local 1169 rx_fs->check_rule_pkt_reformat[rule_index] = flow_act->pkt_reformat; in macsec_fs_rx_create_check_decap_rule() 1212 rx_fs->check_rule[rule_index] = rule; in macsec_fs_rx_create_check_decap_rule()
|
/drivers/infiniband/hw/hfi1/ |
D | chip.c | 1063 static void clear_rsm_rule(struct hfi1_devdata *dd, u8 rule_index); 14271 static bool has_rsm_rule(struct hfi1_devdata *dd, u8 rule_index) in has_rsm_rule() argument 14273 return read_csr(dd, RCV_RSM_CFG + (8 * rule_index)) != 0; in has_rsm_rule() 14279 static void add_rsm_rule(struct hfi1_devdata *dd, u8 rule_index, in add_rsm_rule() argument 14282 write_csr(dd, RCV_RSM_CFG + (8 * rule_index), in add_rsm_rule() 14284 1ull << rule_index | /* enable bit */ in add_rsm_rule() 14286 write_csr(dd, RCV_RSM_SELECT + (8 * rule_index), in add_rsm_rule() 14293 write_csr(dd, RCV_RSM_MATCH + (8 * rule_index), in add_rsm_rule() 14303 static void clear_rsm_rule(struct hfi1_devdata *dd, u8 rule_index) in clear_rsm_rule() argument 14305 write_csr(dd, RCV_RSM_CFG + (8 * rule_index), 0); in clear_rsm_rule() [all …]
|