Lines Matching refs:max_sta
1375 static int dhd_sta_pool_init(dhd_pub_t *dhdp, int max_sta);
1376 static void dhd_sta_pool_fini(dhd_pub_t *dhdp, int max_sta);
1378 static void dhd_sta_pool_clear(dhd_pub_t *dhdp, int max_sta);
1491 dhd_sta_pool_init(dhd_pub_t *dhdp, int max_sta) in dhd_sta_pool_init() argument
1502 staid_allocator = id16_map_init(dhdp->osh, max_sta, 1); in dhd_sta_pool_init()
1509 sta_pool_memsz = ((max_sta + 1) * sizeof(dhd_sta_t)); /* skip idx 0 */ in dhd_sta_pool_init()
1522 for (idx = max_sta; idx >= 1; idx--) { /* skip sta_pool[0] */ in dhd_sta_pool_init()
1525 ASSERT(sta->idx <= max_sta); in dhd_sta_pool_init()
1529 for (idx = 1; idx <= max_sta; idx++) { in dhd_sta_pool_init()
1544 dhd_sta_pool_fini(dhd_pub_t *dhdp, int max_sta) in dhd_sta_pool_fini() argument
1550 int sta_pool_memsz = ((max_sta + 1) * sizeof(dhd_sta_t)); in dhd_sta_pool_fini()
1551 for (idx = 1; idx <= max_sta; idx++) { in dhd_sta_pool_fini()
1564 dhd_sta_pool_clear(dhd_pub_t *dhdp, int max_sta) in dhd_sta_pool_clear() argument
1590 sta_pool_memsz = ((max_sta + 1) * sizeof(dhd_sta_t)); in dhd_sta_pool_clear()
1594 id16_map_clear(staid_allocator, max_sta, 1); in dhd_sta_pool_clear()
1597 for (idx = max_sta; idx >= 1; idx--) { /* skip sta_pool[0] */ in dhd_sta_pool_clear()
1600 ASSERT(sta->idx <= max_sta); in dhd_sta_pool_clear()
1603 for (idx = 1; idx <= max_sta; idx++) { in dhd_sta_pool_clear()
1817 static inline int dhd_sta_pool_init(dhd_pub_t *dhdp, int max_sta) { return BCME_OK; } in dhd_sta_pool_init() argument
1818 static inline void dhd_sta_pool_fini(dhd_pub_t *dhdp, int max_sta) {} in dhd_sta_pool_fini() argument
1819 static inline void dhd_sta_pool_clear(dhd_pub_t *dhdp, int max_sta) {} in dhd_sta_pool_clear() argument