Lines Matching refs:staid_allocator
1112 ASSERT((dhdp->staid_allocator != NULL) && (dhdp->sta_pool != NULL)); in dhd_sta_free()
1157 id16_map_free(dhdp->staid_allocator, sta->idx); in dhd_sta_free()
1174 ASSERT((dhdp->staid_allocator != NULL) && (dhdp->sta_pool != NULL)); in dhd_sta_alloc()
1176 idx = id16_map_alloc(dhdp->staid_allocator); in dhd_sta_alloc()
1235 void * staid_allocator; in dhd_sta_pool_init() local
1238 ASSERT((dhdp->staid_allocator == NULL) && (dhdp->sta_pool == NULL)); in dhd_sta_pool_init()
1241 staid_allocator = id16_map_init(dhdp->osh, max_sta, 1); in dhd_sta_pool_init()
1242 if (staid_allocator == NULL) { in dhd_sta_pool_init()
1252 id16_map_fini(dhdp->osh, staid_allocator); in dhd_sta_pool_init()
1257 dhdp->staid_allocator = staid_allocator; in dhd_sta_pool_init()
1263 sta->idx = id16_map_alloc(staid_allocator); in dhd_sta_pool_init()
1300 id16_map_fini(dhdp->osh, dhdp->staid_allocator); in dhd_sta_pool_fini()
1301 dhdp->staid_allocator = NULL; in dhd_sta_pool_fini()
1314 void *staid_allocator; in dhd_sta_pool_clear() local
1322 staid_allocator = dhdp->staid_allocator; in dhd_sta_pool_clear()
1329 if (!staid_allocator) { in dhd_sta_pool_clear()
1339 id16_map_clear(staid_allocator, max_sta, 1); in dhd_sta_pool_clear()
1344 sta->idx = id16_map_alloc(staid_allocator); in dhd_sta_pool_clear()