Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_tcam.c55 alloc_size = sizeof(tcam->used_regions[0]) * BITS_TO_LONGS(max_regions); in mlxsw_sp_acl_tcam_init()
56 tcam->used_regions = kzalloc(alloc_size, GFP_KERNEL); in mlxsw_sp_acl_tcam_init()
57 if (!tcam->used_regions) in mlxsw_sp_acl_tcam_init()
81 kfree(tcam->used_regions); in mlxsw_sp_acl_tcam_init()
93 kfree(tcam->used_regions); in mlxsw_sp_acl_tcam_fini()
125 id = find_first_zero_bit(tcam->used_regions, tcam->max_regions); in mlxsw_sp_acl_tcam_region_id_get()
127 __set_bit(id, tcam->used_regions); in mlxsw_sp_acl_tcam_region_id_get()
137 __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