rule_index 1086 drivers/infiniband/hw/hfi1/chip.c static void clear_rsm_rule(struct hfi1_devdata *dd, u8 rule_index); rule_index 14162 drivers/infiniband/hw/hfi1/chip.c static void add_rsm_rule(struct hfi1_devdata *dd, u8 rule_index, rule_index 14165 drivers/infiniband/hw/hfi1/chip.c write_csr(dd, RCV_RSM_CFG + (8 * rule_index), rule_index 14167 drivers/infiniband/hw/hfi1/chip.c 1ull << rule_index | /* enable bit */ rule_index 14169 drivers/infiniband/hw/hfi1/chip.c write_csr(dd, RCV_RSM_SELECT + (8 * rule_index), rule_index 14176 drivers/infiniband/hw/hfi1/chip.c write_csr(dd, RCV_RSM_MATCH + (8 * rule_index), rule_index 14186 drivers/infiniband/hw/hfi1/chip.c static void clear_rsm_rule(struct hfi1_devdata *dd, u8 rule_index) rule_index 14188 drivers/infiniband/hw/hfi1/chip.c write_csr(dd, RCV_RSM_CFG + (8 * rule_index), 0); rule_index 14189 drivers/infiniband/hw/hfi1/chip.c write_csr(dd, RCV_RSM_SELECT + (8 * rule_index), 0); rule_index 14190 drivers/infiniband/hw/hfi1/chip.c write_csr(dd, RCV_RSM_MATCH + (8 * rule_index), 0); rule_index 211 drivers/net/dsa/bcm_sf2_cfp.c unsigned int rule_index, rule_index 237 drivers/net/dsa/bcm_sf2_cfp.c core_writel(priv, rule_index << CHAIN_ID_SHIFT, CORE_ACT_POL_DATA1); rule_index 244 drivers/net/dsa/bcm_sf2_cfp.c pr_err("Policer entry at %d failed\n", rule_index); rule_index 254 drivers/net/dsa/bcm_sf2_cfp.c pr_err("Meter entry at %d failed\n", rule_index); rule_index 340 drivers/net/dsa/bcm_sf2_cfp.c unsigned int slice_num, rule_index; rule_index 365 drivers/net/dsa/bcm_sf2_cfp.c rule_index = find_first_zero_bit(priv->cfp.used, rule_index 368 drivers/net/dsa/bcm_sf2_cfp.c rule_index = fs->location; rule_index 370 drivers/net/dsa/bcm_sf2_cfp.c if (rule_index > bcm_sf2_cfp_rule_size(priv)) rule_index 438 drivers/net/dsa/bcm_sf2_cfp.c bcm_sf2_cfp_rule_addr_set(priv, rule_index); rule_index 442 drivers/net/dsa/bcm_sf2_cfp.c pr_err("TCAM entry at addr %d failed\n", rule_index); rule_index 447 drivers/net/dsa/bcm_sf2_cfp.c ret = bcm_sf2_cfp_act_pol_set(priv, rule_index, port, port_num, rule_index 458 drivers/net/dsa/bcm_sf2_cfp.c set_bit(rule_index, priv->cfp.used); rule_index 459 drivers/net/dsa/bcm_sf2_cfp.c set_bit(rule_index, priv->cfp.unique); rule_index 460 drivers/net/dsa/bcm_sf2_cfp.c fs->location = rule_index; rule_index 603 drivers/net/dsa/bcm_sf2_cfp.c unsigned int slice_num, rule_index[2]; rule_index 646 drivers/net/dsa/bcm_sf2_cfp.c rule_index[1] = find_first_zero_bit(priv->cfp.used, rule_index 649 drivers/net/dsa/bcm_sf2_cfp.c rule_index[1] = fs->location; rule_index 650 drivers/net/dsa/bcm_sf2_cfp.c if (rule_index[1] > bcm_sf2_cfp_rule_size(priv)) rule_index 656 drivers/net/dsa/bcm_sf2_cfp.c set_bit(rule_index[1], priv->cfp.used); rule_index 658 drivers/net/dsa/bcm_sf2_cfp.c rule_index[0] = find_first_zero_bit(priv->cfp.used, rule_index 660 drivers/net/dsa/bcm_sf2_cfp.c if (rule_index[0] > bcm_sf2_cfp_rule_size(priv)) { rule_index 723 drivers/net/dsa/bcm_sf2_cfp.c bcm_sf2_cfp_rule_addr_set(priv, rule_index[0]); rule_index 727 drivers/net/dsa/bcm_sf2_cfp.c pr_err("TCAM entry at addr %d failed\n", rule_index[0]); rule_index 732 drivers/net/dsa/bcm_sf2_cfp.c ret = bcm_sf2_cfp_act_pol_set(priv, rule_index[0], port, port_num, rule_index 762 drivers/net/dsa/bcm_sf2_cfp.c reg = rule_index[0] << 24 | udf_upper_bits(num_udf) << 16 | rule_index 783 drivers/net/dsa/bcm_sf2_cfp.c bcm_sf2_cfp_rule_addr_set(priv, rule_index[1]); rule_index 787 drivers/net/dsa/bcm_sf2_cfp.c pr_err("TCAM entry at addr %d failed\n", rule_index[1]); rule_index 794 drivers/net/dsa/bcm_sf2_cfp.c ret = bcm_sf2_cfp_act_pol_set(priv, rule_index[1], port, port_num, rule_index 807 drivers/net/dsa/bcm_sf2_cfp.c set_bit(rule_index[0], priv->cfp.used); rule_index 808 drivers/net/dsa/bcm_sf2_cfp.c set_bit(rule_index[1], priv->cfp.unique); rule_index 809 drivers/net/dsa/bcm_sf2_cfp.c fs->location = rule_index[1]; rule_index 816 drivers/net/dsa/bcm_sf2_cfp.c clear_bit(rule_index[1], priv->cfp.used); rule_index 172 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c unsigned int rule_index; rule_index 180 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c rule_index = mlxsw_sp_acl_bf_rule_count_index_get(bf, erp_bank, rule_index 183 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c if (refcount_inc_not_zero(&bf->refcnt[rule_index])) { rule_index 201 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c refcount_set(&bf->refcnt[rule_index], 1); rule_index 216 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c unsigned int rule_index; rule_index 223 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c rule_index = mlxsw_sp_acl_bf_rule_count_index_get(bf, erp_bank, rule_index 226 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c if (refcount_dec_and_test(&bf->refcnt[rule_index])) {