Lines Matching refs:trigger_node

2813 	struct mlxsw_sp_sample_trigger_node *trigger_node;  in mlxsw_sp_sample_trigger_params_lookup()  local
2817 trigger_node = rhashtable_lookup(&mlxsw_sp->sample_trigger_ht, &key, in mlxsw_sp_sample_trigger_params_lookup()
2819 if (!trigger_node) in mlxsw_sp_sample_trigger_params_lookup()
2822 return &trigger_node->params; in mlxsw_sp_sample_trigger_params_lookup()
2830 struct mlxsw_sp_sample_trigger_node *trigger_node; in mlxsw_sp_sample_trigger_node_init() local
2833 trigger_node = kzalloc(sizeof(*trigger_node), GFP_KERNEL); in mlxsw_sp_sample_trigger_node_init()
2834 if (!trigger_node) in mlxsw_sp_sample_trigger_node_init()
2837 trigger_node->trigger = *trigger; in mlxsw_sp_sample_trigger_node_init()
2838 trigger_node->params = *params; in mlxsw_sp_sample_trigger_node_init()
2839 refcount_set(&trigger_node->refcount, 1); in mlxsw_sp_sample_trigger_node_init()
2842 &trigger_node->ht_node, in mlxsw_sp_sample_trigger_node_init()
2850 kfree(trigger_node); in mlxsw_sp_sample_trigger_node_init()
2856 struct mlxsw_sp_sample_trigger_node *trigger_node) in mlxsw_sp_sample_trigger_node_fini() argument
2859 &trigger_node->ht_node, in mlxsw_sp_sample_trigger_node_fini()
2861 kfree_rcu(trigger_node, rcu); in mlxsw_sp_sample_trigger_node_fini()
2870 struct mlxsw_sp_sample_trigger_node *trigger_node; in mlxsw_sp_sample_trigger_params_set() local
2877 trigger_node = rhashtable_lookup_fast(&mlxsw_sp->sample_trigger_ht, in mlxsw_sp_sample_trigger_params_set()
2880 if (!trigger_node) in mlxsw_sp_sample_trigger_params_set()
2884 if (trigger_node->trigger.local_port) { in mlxsw_sp_sample_trigger_params_set()
2889 if (trigger_node->params.psample_group != params->psample_group || in mlxsw_sp_sample_trigger_params_set()
2890 trigger_node->params.truncate != params->truncate || in mlxsw_sp_sample_trigger_params_set()
2891 trigger_node->params.rate != params->rate || in mlxsw_sp_sample_trigger_params_set()
2892 trigger_node->params.trunc_size != params->trunc_size) { in mlxsw_sp_sample_trigger_params_set()
2897 refcount_inc(&trigger_node->refcount); in mlxsw_sp_sample_trigger_params_set()
2906 struct mlxsw_sp_sample_trigger_node *trigger_node; in mlxsw_sp_sample_trigger_params_unset() local
2913 trigger_node = rhashtable_lookup_fast(&mlxsw_sp->sample_trigger_ht, in mlxsw_sp_sample_trigger_params_unset()
2916 if (!trigger_node) in mlxsw_sp_sample_trigger_params_unset()
2919 if (!refcount_dec_and_test(&trigger_node->refcount)) in mlxsw_sp_sample_trigger_params_unset()
2922 mlxsw_sp_sample_trigger_node_fini(mlxsw_sp, trigger_node); in mlxsw_sp_sample_trigger_params_unset()