Searched refs:used_groups (Results 1 – 3 of 3) sorted by relevance
51 alloc_size = sizeof(tcam->used_groups[0]) * BITS_TO_LONGS(max_groups); in mlxsw_sp_acl_tcam_init()52 tcam->used_groups = kzalloc(alloc_size, GFP_KERNEL); in mlxsw_sp_acl_tcam_init()53 if (!tcam->used_groups) { in mlxsw_sp_acl_tcam_init()68 kfree(tcam->used_groups); in mlxsw_sp_acl_tcam_init()80 kfree(tcam->used_groups); in mlxsw_sp_acl_tcam_fini()132 id = find_first_zero_bit(tcam->used_groups, tcam->max_groups); in mlxsw_sp_acl_tcam_group_id_get()134 __set_bit(id, tcam->used_groups); in mlxsw_sp_acl_tcam_group_id_get()144 __clear_bit(id, tcam->used_groups); in mlxsw_sp_acl_tcam_group_id_put()
17 unsigned long *used_groups; /* bit array */ member
190 DECLARE_BITMAP(used_groups, L2_EVT_GROUP_MAX + 1);415 if (test_bit(group, cluster->used_groups)) in l2_cache_get_event_idx()419 set_bit(group, cluster->used_groups); in l2_cache_get_event_idx()432 clear_bit(L2_EVT_GROUP(hwc->config_base), cluster->used_groups); in l2_cache_clear_event_idx()