Searched refs:rule_index (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/net/dsa/ |
A D | bcm_sf2_cfp.c | 213 unsigned int rule_index, in bcm_sf2_cfp_act_pol_set() argument 354 unsigned int slice_num, rule_index; in bcm_sf2_cfp_ipv4_rule_set() local 388 rule_index = fs->location; in bcm_sf2_cfp_ipv4_rule_set() 471 set_bit(rule_index, priv->cfp.used); in bcm_sf2_cfp_ipv4_rule_set() 472 set_bit(rule_index, priv->cfp.unique); in bcm_sf2_cfp_ipv4_rule_set() 473 fs->location = rule_index; in bcm_sf2_cfp_ipv4_rule_set() 634 unsigned int slice_num, rule_index[2]; in bcm_sf2_cfp_ipv6_rule_set() local 686 rule_index[1] = fs->location; in bcm_sf2_cfp_ipv6_rule_set() 693 set_bit(rule_index[1], priv->cfp.used); in bcm_sf2_cfp_ipv6_rule_set() 833 set_bit(rule_index[0], priv->cfp.used); in bcm_sf2_cfp_ipv6_rule_set() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_acl_bloom_filter.c | 172 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()
|
/linux/drivers/infiniband/hw/hfi1/ |
A D | chip.c | 1063 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() 14296 write_csr(dd, RCV_RSM_CFG + (8 * rule_index), 0); in clear_rsm_rule() 14297 write_csr(dd, RCV_RSM_SELECT + (8 * rule_index), 0); in clear_rsm_rule() [all …]
|
Completed in 35 milliseconds