Home
last modified time | relevance | path

Searched refs:used_groups (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_tcam.c62 alloc_size = sizeof(tcam->used_groups[0]) * BITS_TO_LONGS(max_groups); in mlxsw_sp_acl_tcam_init()
63 tcam->used_groups = kzalloc(alloc_size, GFP_KERNEL); in mlxsw_sp_acl_tcam_init()
64 if (!tcam->used_groups) { in mlxsw_sp_acl_tcam_init()
79 kfree(tcam->used_groups); in mlxsw_sp_acl_tcam_init()
92 kfree(tcam->used_groups); in mlxsw_sp_acl_tcam_fini()
145 id = find_first_zero_bit(tcam->used_groups, tcam->max_groups); in mlxsw_sp_acl_tcam_group_id_get()
147 __set_bit(id, tcam->used_groups); in mlxsw_sp_acl_tcam_group_id_get()
157 __clear_bit(id, tcam->used_groups); in mlxsw_sp_acl_tcam_group_id_put()
Dspectrum_acl_tcam.h17 unsigned long *used_groups; /* bit array */ member
/kernel/linux/linux-5.10/drivers/perf/
Dqcom_l2_pmu.c140 DECLARE_BITMAP(used_groups, L2_EVT_GROUP_MAX + 1);
365 if (test_bit(group, cluster->used_groups)) in l2_cache_get_event_idx()
369 set_bit(group, cluster->used_groups); in l2_cache_get_event_idx()
382 clear_bit(L2_EVT_GROUP(hwc->config_base), cluster->used_groups); in l2_cache_clear_event_idx()