Lines Matching refs:mld_hash_obj
2405 dp_mlo_peer_find_hash_index(dp_mld_peer_hash_obj_t mld_hash_obj, in dp_mlo_peer_find_hash_index() argument
2415 index ^= index >> mld_hash_obj->mld_peer_hash.idx_bits; in dp_mlo_peer_find_hash_index()
2416 index &= mld_hash_obj->mld_peer_hash.mask; in dp_mlo_peer_find_hash_index()
2422 dp_mlo_peer_find_hash_attach_be(dp_mld_peer_hash_obj_t mld_hash_obj, in dp_mlo_peer_find_hash_attach_be() argument
2427 if (!mld_hash_obj) in dp_mlo_peer_find_hash_attach_be()
2435 mld_hash_obj->mld_peer_hash.mask = hash_elems - 1; in dp_mlo_peer_find_hash_attach_be()
2436 mld_hash_obj->mld_peer_hash.idx_bits = log2; in dp_mlo_peer_find_hash_attach_be()
2438 mld_hash_obj->mld_peer_hash.bins = qdf_mem_malloc( in dp_mlo_peer_find_hash_attach_be()
2440 if (!mld_hash_obj->mld_peer_hash.bins) in dp_mlo_peer_find_hash_attach_be()
2444 TAILQ_INIT(&mld_hash_obj->mld_peer_hash.bins[i]); in dp_mlo_peer_find_hash_attach_be()
2446 qdf_spinlock_create(&mld_hash_obj->mld_peer_hash_lock); in dp_mlo_peer_find_hash_attach_be()
2452 dp_mlo_peer_find_hash_detach_be(dp_mld_peer_hash_obj_t mld_hash_obj) in dp_mlo_peer_find_hash_detach_be() argument
2454 if (!mld_hash_obj) in dp_mlo_peer_find_hash_detach_be()
2457 if (mld_hash_obj->mld_peer_hash.bins) { in dp_mlo_peer_find_hash_detach_be()
2458 qdf_mem_free(mld_hash_obj->mld_peer_hash.bins); in dp_mlo_peer_find_hash_detach_be()
2459 mld_hash_obj->mld_peer_hash.bins = NULL; in dp_mlo_peer_find_hash_detach_be()
2460 qdf_spinlock_destroy(&mld_hash_obj->mld_peer_hash_lock); in dp_mlo_peer_find_hash_detach_be()
2487 dp_mld_peer_hash_obj_t mld_hash_obj; in dp_mlo_peer_find_hash_attach_wrapper() local
2489 mld_hash_obj = dp_mlo_get_peer_hash_obj(soc); in dp_mlo_peer_find_hash_attach_wrapper()
2491 if (!mld_hash_obj) in dp_mlo_peer_find_hash_attach_wrapper()
2494 return dp_mlo_peer_find_hash_attach_be(mld_hash_obj, soc->max_peers); in dp_mlo_peer_find_hash_attach_wrapper()
2499 dp_mld_peer_hash_obj_t mld_hash_obj; in dp_mlo_peer_find_hash_detach_wrapper() local
2501 mld_hash_obj = dp_mlo_get_peer_hash_obj(soc); in dp_mlo_peer_find_hash_detach_wrapper()
2503 if (!mld_hash_obj) in dp_mlo_peer_find_hash_detach_wrapper()
2506 return dp_mlo_peer_find_hash_detach_be(mld_hash_obj); in dp_mlo_peer_find_hash_detach_wrapper()
2547 dp_mld_peer_hash_obj_t mld_hash_obj; in dp_mlo_peer_find_hash_find_be() local
2549 mld_hash_obj = dp_mlo_get_peer_hash_obj(soc); in dp_mlo_peer_find_hash_find_be()
2550 if (!mld_hash_obj) in dp_mlo_peer_find_hash_find_be()
2553 if (!mld_hash_obj->mld_peer_hash.bins) in dp_mlo_peer_find_hash_find_be()
2576 index = dp_mlo_peer_find_hash_index(mld_hash_obj, mac_addr); in dp_mlo_peer_find_hash_find_be()
2577 qdf_spin_lock_bh(&mld_hash_obj->mld_peer_hash_lock); in dp_mlo_peer_find_hash_find_be()
2578 TAILQ_FOREACH(peer, &mld_hash_obj->mld_peer_hash.bins[index], in dp_mlo_peer_find_hash_find_be()
2594 &mld_hash_obj->mld_peer_hash_lock); in dp_mlo_peer_find_hash_find_be()
2603 qdf_spin_unlock_bh(&mld_hash_obj->mld_peer_hash_lock); in dp_mlo_peer_find_hash_find_be()
2614 dp_mld_peer_hash_obj_t mld_hash_obj; in dp_mlo_peer_find_hash_remove_be() local
2616 mld_hash_obj = dp_mlo_get_peer_hash_obj(soc); in dp_mlo_peer_find_hash_remove_be()
2618 if (!mld_hash_obj) in dp_mlo_peer_find_hash_remove_be()
2621 index = dp_mlo_peer_find_hash_index(mld_hash_obj, &peer->mac_addr); in dp_mlo_peer_find_hash_remove_be()
2622 QDF_ASSERT(!TAILQ_EMPTY(&mld_hash_obj->mld_peer_hash.bins[index])); in dp_mlo_peer_find_hash_remove_be()
2624 qdf_spin_lock_bh(&mld_hash_obj->mld_peer_hash_lock); in dp_mlo_peer_find_hash_remove_be()
2625 TAILQ_FOREACH(tmppeer, &mld_hash_obj->mld_peer_hash.bins[index], in dp_mlo_peer_find_hash_remove_be()
2633 TAILQ_REMOVE(&mld_hash_obj->mld_peer_hash.bins[index], peer, in dp_mlo_peer_find_hash_remove_be()
2639 qdf_spin_unlock_bh(&mld_hash_obj->mld_peer_hash_lock); in dp_mlo_peer_find_hash_remove_be()
2647 dp_mld_peer_hash_obj_t mld_hash_obj; in dp_mlo_peer_find_hash_add_be() local
2649 mld_hash_obj = dp_mlo_get_peer_hash_obj(soc); in dp_mlo_peer_find_hash_add_be()
2651 if (!mld_hash_obj) in dp_mlo_peer_find_hash_add_be()
2654 index = dp_mlo_peer_find_hash_index(mld_hash_obj, &peer->mac_addr); in dp_mlo_peer_find_hash_add_be()
2656 qdf_spin_lock_bh(&mld_hash_obj->mld_peer_hash_lock); in dp_mlo_peer_find_hash_add_be()
2662 qdf_spin_unlock_bh(&mld_hash_obj->mld_peer_hash_lock); in dp_mlo_peer_find_hash_add_be()
2665 TAILQ_INSERT_TAIL(&mld_hash_obj->mld_peer_hash.bins[index], peer, in dp_mlo_peer_find_hash_add_be()
2667 qdf_spin_unlock_bh(&mld_hash_obj->mld_peer_hash_lock); in dp_mlo_peer_find_hash_add_be()
2677 dp_mld_peer_hash_obj_t mld_hash_obj; in dp_print_mlo_ast_stats_be() local
2679 mld_hash_obj = dp_mlo_get_peer_hash_obj(soc); in dp_print_mlo_ast_stats_be()
2681 if (!mld_hash_obj) in dp_print_mlo_ast_stats_be()
2684 qdf_spin_lock_bh(&mld_hash_obj->mld_peer_hash_lock); in dp_print_mlo_ast_stats_be()
2685 for (index = 0; index < mld_hash_obj->mld_peer_hash.mask; index++) { in dp_print_mlo_ast_stats_be()
2686 TAILQ_FOREACH(peer, &mld_hash_obj->mld_peer_hash.bins[index], in dp_print_mlo_ast_stats_be()
2691 qdf_spin_unlock_bh(&mld_hash_obj->mld_peer_hash_lock); in dp_print_mlo_ast_stats_be()