Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_tcam.c44 alloc_size = sizeof(tcam->used_regions[0]) * BITS_TO_LONGS(max_regions); in mlxsw_sp_acl_tcam_init()
45 tcam->used_regions = kzalloc(alloc_size, GFP_KERNEL); in mlxsw_sp_acl_tcam_init()
46 if (!tcam->used_regions) in mlxsw_sp_acl_tcam_init()
70 kfree(tcam->used_regions); in mlxsw_sp_acl_tcam_init()
81 kfree(tcam->used_regions); in mlxsw_sp_acl_tcam_fini()
112 id = find_first_zero_bit(tcam->used_regions, tcam->max_regions); in mlxsw_sp_acl_tcam_region_id_get()
114 __set_bit(id, tcam->used_regions); in mlxsw_sp_acl_tcam_region_id_get()
124 __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