Lines Matching refs:staid_allocator
1388 ASSERT((dhdp->staid_allocator != NULL) && (dhdp->sta_pool != NULL)); in dhd_sta_free()
1431 id16_map_free(dhdp->staid_allocator, sta->idx); in dhd_sta_free()
1448 ASSERT((dhdp->staid_allocator != NULL) && (dhdp->sta_pool != NULL)); in dhd_sta_alloc()
1450 idx = id16_map_alloc(dhdp->staid_allocator); in dhd_sta_alloc()
1496 void * staid_allocator; in dhd_sta_pool_init() local
1499 ASSERT((dhdp->staid_allocator == NULL) && (dhdp->sta_pool == NULL)); in dhd_sta_pool_init()
1502 staid_allocator = id16_map_init(dhdp->osh, max_sta, 1); in dhd_sta_pool_init()
1503 if (staid_allocator == NULL) { in dhd_sta_pool_init()
1513 id16_map_fini(dhdp->osh, staid_allocator); in dhd_sta_pool_init()
1518 dhdp->staid_allocator = staid_allocator; in dhd_sta_pool_init()
1524 sta->idx = id16_map_alloc(staid_allocator); in dhd_sta_pool_init()
1558 id16_map_fini(dhdp->osh, dhdp->staid_allocator); in dhd_sta_pool_fini()
1559 dhdp->staid_allocator = NULL; in dhd_sta_pool_fini()
1569 void *staid_allocator; in dhd_sta_pool_clear() local
1577 staid_allocator = dhdp->staid_allocator; in dhd_sta_pool_clear()
1584 if (!staid_allocator) { in dhd_sta_pool_clear()
1594 id16_map_clear(staid_allocator, max_sta, 1); in dhd_sta_pool_clear()
1599 sta->idx = id16_map_alloc(staid_allocator); in dhd_sta_pool_clear()