Lines Matching refs:vdev_id

28 struct ath11k_peer *ath11k_peer_find(struct ath11k_base *ab, int vdev_id,  in ath11k_peer_find()  argument
36 if (peer->vdev_id != vdev_id) in ath11k_peer_find()
80 int vdev_id) in ath11k_peer_find_by_vdev_id() argument
87 if (vdev_id == peer->vdev_id) { in ath11k_peer_find_by_vdev_id()
110 peer->vdev_id, peer->addr, peer_id); in ath11k_peer_unmap_event()
120 void ath11k_peer_map_event(struct ath11k_base *ab, u8 vdev_id, u16 peer_id, in ath11k_peer_map_event() argument
126 peer = ath11k_peer_find(ab, vdev_id, mac_addr); in ath11k_peer_map_event()
132 peer->vdev_id = vdev_id; in ath11k_peer_map_event()
142 vdev_id, mac_addr, peer_id); in ath11k_peer_map_event()
148 static int ath11k_wait_for_peer_common(struct ath11k_base *ab, int vdev_id, in ath11k_wait_for_peer_common() argument
157 mapped = !!ath11k_peer_find(ab, vdev_id, addr); in ath11k_wait_for_peer_common()
240 void ath11k_peer_cleanup(struct ath11k *ar, u32 vdev_id) in ath11k_peer_cleanup() argument
250 if (peer->vdev_id != vdev_id) in ath11k_peer_cleanup()
254 peer->addr, vdev_id); in ath11k_peer_cleanup()
266 static int ath11k_wait_for_peer_deleted(struct ath11k *ar, int vdev_id, const u8 *addr) in ath11k_wait_for_peer_deleted() argument
268 return ath11k_wait_for_peer_common(ar->ab, vdev_id, addr, false); in ath11k_wait_for_peer_deleted()
271 int ath11k_wait_for_peer_delete_done(struct ath11k *ar, u32 vdev_id, in ath11k_wait_for_peer_delete_done() argument
277 ret = ath11k_wait_for_peer_deleted(ar, vdev_id, addr); in ath11k_wait_for_peer_delete_done()
293 static int __ath11k_peer_delete(struct ath11k *ar, u32 vdev_id, const u8 *addr) in __ath11k_peer_delete() argument
310 if (peer && peer->vdev_id == vdev_id) in __ath11k_peer_delete()
318 peer = ath11k_peer_find(ab, vdev_id, addr); in __ath11k_peer_delete()
326 vdev_id, addr); in __ath11k_peer_delete()
335 ret = ath11k_wmi_send_peer_delete_cmd(ar, addr, vdev_id); in __ath11k_peer_delete()
339 vdev_id, addr, ret); in __ath11k_peer_delete()
343 ret = ath11k_wait_for_peer_delete_done(ar, vdev_id, addr); in __ath11k_peer_delete()
350 int ath11k_peer_delete(struct ath11k *ar, u32 vdev_id, u8 *addr) in ath11k_peer_delete() argument
356 ret = __ath11k_peer_delete(ar, vdev_id, addr); in ath11k_peer_delete()
365 static int ath11k_wait_for_peer_created(struct ath11k *ar, int vdev_id, const u8 *addr) in ath11k_wait_for_peer_created() argument
367 return ath11k_wait_for_peer_common(ar->ab, vdev_id, addr, true); in ath11k_wait_for_peer_created()
388 if (peer->vdev_id == param->vdev_id) { in ath11k_peer_create()
406 param->vdev_id, ret); in ath11k_peer_create()
410 ret = ath11k_wait_for_peer_created(ar, param->vdev_id, in ath11k_peer_create()
418 peer = ath11k_peer_find(ar->ab, param->vdev_id, param->peer_addr); in ath11k_peer_create()
423 param->peer_addr, param->vdev_id); in ath11k_peer_create()
465 fbret = __ath11k_peer_delete(ar, param->vdev_id, param->peer_addr); in ath11k_peer_create()
468 param->peer_addr, param->vdev_id, fbret); in ath11k_peer_create()