Lines Matching refs:sta_pool
1112 ASSERT((dhdp->staid_allocator != NULL) && (dhdp->sta_pool != NULL)); in dhd_sta_free()
1172 dhd_sta_pool_t * sta_pool; in dhd_sta_alloc() local
1174 ASSERT((dhdp->staid_allocator != NULL) && (dhdp->sta_pool != NULL)); in dhd_sta_alloc()
1182 sta_pool = (dhd_sta_pool_t *)(dhdp->sta_pool); in dhd_sta_alloc()
1183 sta = &sta_pool[idx]; in dhd_sta_alloc()
1234 dhd_sta_pool_t * sta_pool; in dhd_sta_pool_init() local
1238 ASSERT((dhdp->staid_allocator == NULL) && (dhdp->sta_pool == NULL)); in dhd_sta_pool_init()
1249 sta_pool = (dhd_sta_pool_t *)MALLOC(dhdp->osh, sta_pool_memsz); in dhd_sta_pool_init()
1250 if (sta_pool == NULL) { in dhd_sta_pool_init()
1256 dhdp->sta_pool = sta_pool; in dhd_sta_pool_init()
1260 bzero((uchar *)sta_pool, sta_pool_memsz); in dhd_sta_pool_init()
1262 sta = &sta_pool[idx]; in dhd_sta_pool_init()
1269 sta = &sta_pool[idx]; in dhd_sta_pool_init()
1287 dhd_sta_pool_t * sta_pool = (dhd_sta_pool_t *)dhdp->sta_pool; in dhd_sta_pool_fini() local
1289 if (sta_pool) { in dhd_sta_pool_fini()
1293 ASSERT(sta_pool[idx].ifp == DHD_IF_NULL); in dhd_sta_pool_fini()
1294 ASSERT(sta_pool[idx].idx == ID16_INVALID); in dhd_sta_pool_fini()
1296 MFREE(dhdp->osh, dhdp->sta_pool, sta_pool_memsz); in dhd_sta_pool_fini()
1297 dhdp->sta_pool = NULL; in dhd_sta_pool_fini()
1313 dhd_sta_pool_t * sta_pool; in dhd_sta_pool_clear() local
1321 sta_pool = (dhd_sta_pool_t *)dhdp->sta_pool; in dhd_sta_pool_clear()
1324 if (!sta_pool) { in dhd_sta_pool_clear()
1336 bzero((uchar *)sta_pool, sta_pool_memsz); in dhd_sta_pool_clear()
1343 sta = &sta_pool[idx]; in dhd_sta_pool_clear()
1349 sta = &sta_pool[idx]; in dhd_sta_pool_clear()