Lines Matching refs:ref_count
39 refcount_t ref_count; member
48 refcount_t ref_count; member
855 if (!refcount_read(&mlxsw_sp->span->entries[i].ref_count)) { in mlxsw_sp_span_entry_create()
874 refcount_set(&span_entry->ref_count, 1); in mlxsw_sp_span_entry_create()
899 if (refcount_read(&curr->ref_count) && curr->to_dev == to_dev) in mlxsw_sp_span_entry_find_by_port()
920 if (refcount_read(&curr->ref_count) && curr->id == span_id) in mlxsw_sp_span_entry_find_by_id()
936 if (refcount_read(&curr->ref_count) && curr->to_dev == to_dev && in mlxsw_sp_span_entry_find_by_parms()
956 refcount_inc(&span_entry->ref_count); in mlxsw_sp_span_entry_get()
966 if (refcount_dec_and_test(&span_entry->ref_count)) in mlxsw_sp_span_entry_put()
1036 if (!refcount_read(&curr->ref_count)) in mlxsw_sp_span_respin_work()
1116 refcount_set(&analyzed_port->ref_count, 1); in mlxsw_sp_span_analyzed_port_create()
1166 refcount_inc(&analyzed_port->ref_count); in mlxsw_sp_span_analyzed_port_get()
1195 if (!refcount_dec_and_test(&analyzed_port->ref_count)) in mlxsw_sp_span_analyzed_port_put()
1494 refcount_set(&trigger_entry->ref_count, 1); in mlxsw_sp_span_trigger_entry_create()
1560 refcount_inc(&trigger_entry->ref_count); in mlxsw_sp_span_agent_bind()
1594 if (!refcount_dec_and_test(&trigger_entry->ref_count)) in mlxsw_sp_span_agent_unbind()