Home
last modified time | relevance | path

Searched refs:used_regions (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_tcam.c54 tcam->used_regions = bitmap_zalloc(max_regions, GFP_KERNEL); in mlxsw_sp_acl_tcam_init()
55 if (!tcam->used_regions) in mlxsw_sp_acl_tcam_init()
78 bitmap_free(tcam->used_regions); in mlxsw_sp_acl_tcam_init()
90 bitmap_free(tcam->used_regions); in mlxsw_sp_acl_tcam_fini()
122 id = find_first_zero_bit(tcam->used_regions, tcam->max_regions); in mlxsw_sp_acl_tcam_region_id_get()
124 __set_bit(id, tcam->used_regions); in mlxsw_sp_acl_tcam_region_id_get()
134 __clear_bit(id, tcam->used_regions); in mlxsw_sp_acl_tcam_region_id_put()
Dspectrum_acl_tcam.h15 unsigned long *used_regions; /* bit array */ member