Lines Matching refs:peer_id
169 struct ath10k_peer *ath10k_peer_find_by_id(struct ath10k *ar, int peer_id) in ath10k_peer_find_by_id() argument
173 if (peer_id >= BITS_PER_TYPE(peer->peer_ids)) in ath10k_peer_find_by_id()
179 if (test_bit(peer_id, peer->peer_ids)) in ath10k_peer_find_by_id()
223 if (ev->peer_id >= ATH10K_MAX_NUM_PEER_IDS) { in ath10k_peer_map_event()
226 ev->peer_id); in ath10k_peer_map_event()
244 ev->vdev_id, ev->addr, ev->peer_id); in ath10k_peer_map_event()
246 WARN_ON(ar->peer_map[ev->peer_id] && (ar->peer_map[ev->peer_id] != peer)); in ath10k_peer_map_event()
247 ar->peer_map[ev->peer_id] = peer; in ath10k_peer_map_event()
248 set_bit(ev->peer_id, peer->peer_ids); in ath10k_peer_map_event()
259 if (ev->peer_id >= ATH10K_MAX_NUM_PEER_IDS) { in ath10k_peer_unmap_event()
262 ev->peer_id); in ath10k_peer_unmap_event()
267 peer = ath10k_peer_find_by_id(ar, ev->peer_id); in ath10k_peer_unmap_event()
270 ev->peer_id); in ath10k_peer_unmap_event()
275 peer->vdev_id, peer->addr, ev->peer_id); in ath10k_peer_unmap_event()
277 ar->peer_map[ev->peer_id] = NULL; in ath10k_peer_unmap_event()
278 clear_bit(ev->peer_id, peer->peer_ids); in ath10k_peer_unmap_event()