Lines Matching refs:ref_count
39 refcount_t ref_count; member
48 refcount_t ref_count; member
860 if (!refcount_read(&mlxsw_sp->span->entries[i].ref_count)) { in mlxsw_sp_span_entry_create()
879 refcount_set(&span_entry->ref_count, 1); in mlxsw_sp_span_entry_create()
904 if (refcount_read(&curr->ref_count) && curr->to_dev == to_dev) in mlxsw_sp_span_entry_find_by_port()
925 if (refcount_read(&curr->ref_count) && curr->id == span_id) in mlxsw_sp_span_entry_find_by_id()
941 if (refcount_read(&curr->ref_count) && curr->to_dev == to_dev && in mlxsw_sp_span_entry_find_by_parms()
962 refcount_inc(&span_entry->ref_count); in mlxsw_sp_span_entry_get()
972 if (refcount_dec_and_test(&span_entry->ref_count)) in mlxsw_sp_span_entry_put()
1042 if (!refcount_read(&curr->ref_count)) in mlxsw_sp_span_respin_work()
1126 refcount_set(&analyzed_port->ref_count, 1); in mlxsw_sp_span_analyzed_port_create()
1176 refcount_inc(&analyzed_port->ref_count); in mlxsw_sp_span_analyzed_port_get()
1205 if (!refcount_dec_and_test(&analyzed_port->ref_count)) in mlxsw_sp_span_analyzed_port_put()
1511 refcount_set(&trigger_entry->ref_count, 1); in mlxsw_sp_span_trigger_entry_create()
1579 refcount_inc(&trigger_entry->ref_count); in mlxsw_sp_span_agent_bind()
1613 if (!refcount_dec_and_test(&trigger_entry->ref_count)) in mlxsw_sp_span_agent_unbind()