Lines Matching refs:max_sta
1097 static int dhd_sta_pool_init(dhd_pub_t *dhdp, int max_sta);
1098 static void dhd_sta_pool_fini(dhd_pub_t *dhdp, int max_sta);
1100 static void dhd_sta_pool_clear(dhd_pub_t *dhdp, int max_sta);
1227 dhd_sta_pool_init(dhd_pub_t *dhdp, int max_sta) in dhd_sta_pool_init() argument
1241 staid_allocator = id16_map_init(dhdp->osh, max_sta, 1); in dhd_sta_pool_init()
1248 sta_pool_memsz = ((max_sta + 1) * sizeof(dhd_sta_t)); /* skip idx 0 */ in dhd_sta_pool_init()
1261 for (idx = max_sta; idx >= 1; idx--) { /* skip sta_pool[0] */ in dhd_sta_pool_init()
1264 ASSERT(sta->idx <= max_sta); in dhd_sta_pool_init()
1268 for (idx = 1; idx <= max_sta; idx++) { in dhd_sta_pool_init()
1285 dhd_sta_pool_fini(dhd_pub_t *dhdp, int max_sta) in dhd_sta_pool_fini() argument
1291 int sta_pool_memsz = ((max_sta + 1) * sizeof(dhd_sta_t)); in dhd_sta_pool_fini()
1292 for (idx = 1; idx <= max_sta; idx++) { in dhd_sta_pool_fini()
1306 dhd_sta_pool_clear(dhd_pub_t *dhdp, int max_sta) in dhd_sta_pool_clear() argument
1335 sta_pool_memsz = ((max_sta + 1) * sizeof(dhd_sta_t)); in dhd_sta_pool_clear()
1339 id16_map_clear(staid_allocator, max_sta, 1); in dhd_sta_pool_clear()
1342 for (idx = max_sta; idx >= 1; idx--) { /* skip sta_pool[0] */ in dhd_sta_pool_clear()
1345 ASSERT(sta->idx <= max_sta); in dhd_sta_pool_clear()
1348 for (idx = 1; idx <= max_sta; idx++) { in dhd_sta_pool_clear()