Lines Matching refs:peer_hash

366 	index ^= index >> soc->peer_hash.idx_bits;  in dp_peer_find_hash_index()
367 index &= soc->peer_hash.mask; in dp_peer_find_hash_index()
380 if (!soc->peer_hash.bins) in dp_peer_find_hash_find()
393 TAILQ_FOREACH(peer, &soc->peer_hash.bins[index], hash_list_elem) { in dp_peer_find_hash_find()
421 if (soc->peer_hash.bins) { in dp_peer_find_hash_detach()
422 qdf_mem_free(soc->peer_hash.bins); in dp_peer_find_hash_detach()
423 soc->peer_hash.bins = NULL; in dp_peer_find_hash_detach()
448 soc->peer_hash.mask = hash_elems - 1; in dp_peer_find_hash_attach()
449 soc->peer_hash.idx_bits = log2; in dp_peer_find_hash_attach()
451 soc->peer_hash.bins = qdf_mem_malloc( in dp_peer_find_hash_attach()
453 if (!soc->peer_hash.bins) in dp_peer_find_hash_attach()
457 TAILQ_INIT(&soc->peer_hash.bins[i]); in dp_peer_find_hash_attach()
493 TAILQ_INSERT_TAIL(&soc->peer_hash.bins[index], peer, in dp_peer_find_hash_add()
515 QDF_ASSERT(!TAILQ_EMPTY(&soc->peer_hash.bins[index])); in dp_peer_find_hash_remove()
518 TAILQ_FOREACH(tmppeer, &soc->peer_hash.bins[index], in dp_peer_find_hash_remove()
526 TAILQ_REMOVE(&soc->peer_hash.bins[index], peer, in dp_peer_find_hash_remove()
561 soc->peer_hash.mask = hash_elems - 1; in dp_peer_find_hash_attach()
562 soc->peer_hash.idx_bits = log2; in dp_peer_find_hash_attach()
564 soc->peer_hash.bins = qdf_mem_malloc( in dp_peer_find_hash_attach()
566 if (!soc->peer_hash.bins) in dp_peer_find_hash_attach()
570 TAILQ_INIT(&soc->peer_hash.bins[i]); in dp_peer_find_hash_attach()
578 if (soc->peer_hash.bins) { in dp_peer_find_hash_detach()
579 qdf_mem_free(soc->peer_hash.bins); in dp_peer_find_hash_detach()
580 soc->peer_hash.bins = NULL; in dp_peer_find_hash_detach()
606 TAILQ_INSERT_TAIL(&soc->peer_hash.bins[index], peer, hash_list_elem); in dp_peer_find_hash_add()
619 QDF_ASSERT(!TAILQ_EMPTY(&soc->peer_hash.bins[index])); in dp_peer_find_hash_remove()
622 TAILQ_FOREACH(tmppeer, &soc->peer_hash.bins[index], hash_list_elem) { in dp_peer_find_hash_remove()
629 TAILQ_REMOVE(&soc->peer_hash.bins[index], peer, hash_list_elem); in dp_peer_find_hash_remove()
1014 TAILQ_FOREACH(peer, &soc->peer_hash.bins[index], hash_list_elem) { in dp_peer_exist_on_pdev()
1058 TAILQ_FOREACH(peer, &soc->peer_hash.bins[index], hash_list_elem) { in dp_peer_exist_on_pdev()
2481 for (i = 0; i <= soc->peer_hash.mask; i++) { in dp_peer_find_hash_erase()
2482 if (!TAILQ_EMPTY(&soc->peer_hash.bins[i])) { in dp_peer_find_hash_erase()
2489 TAILQ_FOREACH_SAFE(peer, &soc->peer_hash.bins[i], in dp_peer_find_hash_erase()