Lines Matching refs:i

39 	uint8_t i;  in mlo_partner_peer_create_post()  local
53 for (i = 0; i < ml_info->num_partner_links; i++) { in mlo_partner_peer_create_post()
54 if (link_id != ml_info->partner_link_info[i].link_id) in mlo_partner_peer_create_post()
58 &ml_info->partner_link_info[i].link_addr); in mlo_partner_peer_create_post()
87 uint8_t i; in mlo_partner_peer_reassoc_post() local
101 for (i = 0; i < ml_info->num_partner_links; i++) { in mlo_partner_peer_reassoc_post()
102 if (link_id != ml_info->partner_link_info[i].link_id) in mlo_partner_peer_reassoc_post()
106 &ml_info->partner_link_info[i].link_addr); in mlo_partner_peer_reassoc_post()
193 uint8_t i; in mlo_peer_process_pending_auth() local
196 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in mlo_peer_process_pending_auth()
198 recv_auth = ml_peer->pending_auth[i]; in mlo_peer_process_pending_auth()
204 ml_peer->pending_auth[i] = NULL; in mlo_peer_process_pending_auth()
291 int i = 0; in wlan_mlo_peer_get_bridge_peer() local
298 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_peer_get_bridge_peer()
299 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_peer_get_bridge_peer()
330 uint8_t i; in wlan_mlo_peer_get_primary_link_vdev() local
345 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_peer_get_primary_link_vdev()
346 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_peer_get_primary_link_vdev()
413 uint16_t i; in wlan_mlo_peer_is_link_peer() local
420 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_peer_is_link_peer()
421 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_peer_is_link_peer()
443 uint16_t i; in wlan_mlo_partner_peer_assoc_post() local
459 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_partner_peer_assoc_post()
460 link_peers[i] = NULL; in wlan_mlo_partner_peer_assoc_post()
461 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_partner_peer_assoc_post()
475 link_peers[i] = link_peer; in wlan_mlo_partner_peer_assoc_post()
480 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_partner_peer_assoc_post()
481 if (!link_peers[i]) in wlan_mlo_partner_peer_assoc_post()
485 mlo_link_peer_assoc_notify(ml_dev, link_peers[i]); in wlan_mlo_partner_peer_assoc_post()
493 uint16_t i; in wlan_mlo_link_peer_assoc_set() local
501 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_link_peer_assoc_set()
502 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_link_peer_assoc_set()
522 uint16_t i; in wlan_mlo_peer_get_del_hw_bitmap() local
530 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_peer_get_del_hw_bitmap()
531 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_peer_get_del_hw_bitmap()
560 uint16_t i; in wlan_mlo_peer_deauth_init() local
575 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_peer_deauth_init()
576 link_peers[i] = NULL; in wlan_mlo_peer_deauth_init()
577 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_peer_deauth_init()
587 link_peers[i] = link_peer; in wlan_mlo_peer_deauth_init()
594 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_peer_deauth_init()
595 if (!link_peers[i]) in wlan_mlo_peer_deauth_init()
601 (src_peer && (src_peer == link_peers[i]))) { in wlan_mlo_peer_deauth_init()
602 mlo_link_peer_disconnect_notify(ml_dev, link_peers[i]); in wlan_mlo_peer_deauth_init()
604 mlo_link_peer_deauth_init(ml_dev, link_peers[i], in wlan_mlo_peer_deauth_init()
619 uint16_t i; in wlan_mlo_peer_delete() local
633 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_peer_delete()
634 link_peers[i] = NULL; in wlan_mlo_peer_delete()
635 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_peer_delete()
645 link_peers[i] = link_peer; in wlan_mlo_peer_delete()
652 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_peer_delete()
653 if (!link_peers[i]) in wlan_mlo_peer_delete()
656 mlo_link_peer_disconnect_notify(ml_dev, link_peers[i]); in wlan_mlo_peer_delete()
668 uint16_t i; in wlan_mlo_partner_peer_create_failed_notify() local
683 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_partner_peer_create_failed_notify()
684 link_peers[i] = NULL; in wlan_mlo_partner_peer_create_failed_notify()
685 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_partner_peer_create_failed_notify()
694 link_peers[i] = link_peer; in wlan_mlo_partner_peer_create_failed_notify()
698 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_partner_peer_create_failed_notify()
699 if (!link_peers[i]) in wlan_mlo_partner_peer_create_failed_notify()
703 if (i == 0) in wlan_mlo_partner_peer_create_failed_notify()
704 mlo_link_peer_send_assoc_fail(ml_dev, link_peers[i]); in wlan_mlo_partner_peer_create_failed_notify()
706 mlo_link_peer_disconnect_notify(ml_dev, link_peers[i]); in wlan_mlo_partner_peer_create_failed_notify()
718 uint16_t i; in wlan_mlo_partner_peer_disconnect_notify() local
753 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_partner_peer_disconnect_notify()
754 link_peers[i] = NULL; in wlan_mlo_partner_peer_disconnect_notify()
755 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_partner_peer_disconnect_notify()
769 link_peers[i] = link_peer; in wlan_mlo_partner_peer_disconnect_notify()
773 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_partner_peer_disconnect_notify()
774 if (!link_peers[i]) in wlan_mlo_partner_peer_disconnect_notify()
778 mlo_link_peer_disconnect_notify(ml_dev, link_peers[i]); in wlan_mlo_partner_peer_disconnect_notify()
854 uint16_t i; in mlo_peer_attach_link_peer() local
873 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in mlo_peer_attach_link_peer()
874 peer_entry = &ml_peer->peer_list[i]; in mlo_peer_attach_link_peer()
917 uint8_t i; in mlo_peer_get_link_peer_assoc_resp_buf() local
932 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in mlo_peer_get_link_peer_assoc_resp_buf()
933 peer_entry = &ml_peer->peer_list[i]; in mlo_peer_get_link_peer_assoc_resp_buf()
956 uint8_t i; in wlan_mlo_peer_free_all_link_assoc_resp_buf() local
964 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_peer_free_all_link_assoc_resp_buf()
965 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_peer_free_all_link_assoc_resp_buf()
981 uint16_t i; in mlo_peer_detach_link_peer() local
986 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in mlo_peer_detach_link_peer()
987 peer_entry = &ml_peer->peer_list[i]; in mlo_peer_detach_link_peer()
1035 uint16_t i, j; in mlo_dev_get_link_vdevs() local
1050 for (i = 0; i < ml_info->num_partner_links; i++) { in mlo_dev_get_link_vdevs()
1051 link_id = ml_info->partner_link_info[i].link_id; in mlo_dev_get_link_vdevs()
1055 link_vdevs[i] = vdev_link; in mlo_dev_get_link_vdevs()
1058 for (j = 0; j < i; j++) { in mlo_dev_get_link_vdevs()
1077 uint16_t i; in mlo_dev_release_link_vdevs() local
1080 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_dev_release_link_vdevs()
1081 vdev_link = link_vdevs[i]; in mlo_dev_release_link_vdevs()
1120 uint8_t i; in mlo_get_link_vdev_from_psoc_id() local
1140 for (i = 0; i < max_vdevs; i++) { in mlo_get_link_vdev_from_psoc_id()
1142 link_vdev = ml_dev->wlan_bridge_vdev_list[i]; in mlo_get_link_vdev_from_psoc_id()
1144 link_vdev = ml_dev->wlan_vdev_list[i]; in mlo_get_link_vdev_from_psoc_id()
1209 uint8_t comp_psoc_id, i, is_adjacent; in wlan_mlo_get_bridge_peer_psoc_id() local
1226 for (i = 0; i < WLAN_NUM_TWO_LINK_PSOC; i++) in wlan_mlo_get_bridge_peer_psoc_id()
1227 psoc_ids[i] = wlan_vdev_get_psoc_id(link_vdevs[i]); in wlan_mlo_get_bridge_peer_psoc_id()
1250 for (i = 0; i < max_vdevs; i++) { in wlan_mlo_get_bridge_peer_psoc_id()
1252 ml_vdev = ml_dev->wlan_bridge_vdev_list[i]; in wlan_mlo_get_bridge_peer_psoc_id()
1254 ml_vdev = ml_dev->wlan_vdev_list[i]; in wlan_mlo_get_bridge_peer_psoc_id()
1273 for (i = 0; i < WLAN_NUM_TWO_LINK_PSOC; i++) { in wlan_mlo_get_bridge_peer_psoc_id()
1274 status = mlo_chip_adjacent(psoc_ids[i], bridge_peer_psoc_id, in wlan_mlo_get_bridge_peer_psoc_id()
1279 psoc_ids[i], bridge_peer_psoc_id); in wlan_mlo_get_bridge_peer_psoc_id()
1293 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in wlan_mlo_get_bridge_peer_psoc_id()
1294 if (link_vdevs[i]) in wlan_mlo_get_bridge_peer_psoc_id()
1297 link_vdevs[i] = mlo_get_link_vdev_from_psoc_id(ml_dev, in wlan_mlo_get_bridge_peer_psoc_id()
1300 if (!link_vdevs[i]) in wlan_mlo_get_bridge_peer_psoc_id()
1308 if (i == WLAN_UMAC_MLO_MAX_VDEVS) { in wlan_mlo_get_bridge_peer_psoc_id()
1350 uint16_t i; in wlan_mlo_peer_asreq() local
1415 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in wlan_mlo_peer_asreq()
1416 vdev_link = link_vdevs[i]; in wlan_mlo_peer_asreq()
1437 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in wlan_mlo_peer_asreq()
1438 vdev_link = link_vdevs[i]; in wlan_mlo_peer_asreq()
1495 uint16_t i, j; in wlan_mlo_peer_create() local
1534 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in wlan_mlo_peer_create()
1535 vdev_link = link_vdevs[i]; in wlan_mlo_peer_create()
1554 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in wlan_mlo_peer_create()
1555 vdev_link = link_vdevs[i]; in wlan_mlo_peer_create()
1669 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in wlan_mlo_peer_create()
1670 if (!link_vdevs[i]) { in wlan_mlo_peer_create()
1675 if (wlan_objmgr_vdev_try_get_ref(link_vdevs[i], WLAN_MLO_MGR_ID) != in wlan_mlo_peer_create()
1679 for (j = 0; j < i; j++) { in wlan_mlo_peer_create()
1680 if (!link_vdevs[i]) in wlan_mlo_peer_create()
1683 wlan_objmgr_vdev_release_ref(link_vdevs[i], in wlan_mlo_peer_create()
1692 tmp_link_vdevs[i] = link_vdevs[i]; in wlan_mlo_peer_create()
1765 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in wlan_mlo_peer_create()
1766 vdev_link = link_vdevs[i]; in wlan_mlo_peer_create()
1869 uint16_t i; in wlan_mlo_link_asresp_attach() local
1884 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_link_asresp_attach()
1885 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_link_asresp_attach()
1962 uint8_t i, ix, idx = 0; in wlan_mlo_peer_get_links_info() local
1981 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_peer_get_links_info()
1982 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_peer_get_links_info()
2038 uint8_t i, vdev_link_id; in wlan_mlo_peer_get_primary_peer_link_id_by_ml_peer() local
2053 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_peer_get_primary_peer_link_id_by_ml_peer()
2054 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_peer_get_primary_peer_link_id_by_ml_peer()
2083 uint8_t i; in wlan_mlo_peer_get_str_capability() local
2102 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in wlan_mlo_peer_get_str_capability()
2103 if (ml_peer->mlpeer_nstrinfo[i].link_id >= MAX_MLO_LINKS) in wlan_mlo_peer_get_str_capability()
2105 if (ml_peer->mlpeer_nstrinfo[i].nstr_lp_present) { in wlan_mlo_peer_get_str_capability()
2149 uint8_t i, ix; in wlan_mlo_peer_get_partner_links_info() local
2165 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_peer_get_partner_links_info()
2166 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_peer_get_partner_links_info()
2250 uint8_t i; in mlo_peer_link_auth_defer() local
2259 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in mlo_peer_link_auth_defer()
2260 recv_auth = ml_peer->pending_auth[i]; in mlo_peer_link_auth_defer()
2268 ml_peer->pending_auth[i] = auth_params; in mlo_peer_link_auth_defer()
2280 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in mlo_peer_link_auth_defer()
2281 recv_auth = ml_peer->pending_auth[i]; in mlo_peer_link_auth_defer()
2283 ml_peer->pending_auth[i] = auth_params; in mlo_peer_link_auth_defer()
2331 uint16_t i; in wlan_mlo_validate_reassocreq() local
2342 for (i = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_validate_reassocreq()
2343 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_validate_reassocreq()
2350 if (i && !peer_entry->assoc_rsp_buf && in wlan_mlo_validate_reassocreq()
2370 uint8_t grp_id, i; in wlan_mlo_psoc_get_mlo_grp_idx() local
2382 for (i = 0; i < mlo_psoc_grp->num_psoc; i++) { in wlan_mlo_psoc_get_mlo_grp_idx()
2383 if (mlo_psoc_grp->psoc_order[i] == psoc_id) in wlan_mlo_psoc_get_mlo_grp_idx()
2399 int i, j; in wlan_mlo_wsi_link_info_send_cmd() local
2419 for (i = 0; i < WLAN_OBJMGR_MAX_DEVICES; i++) { in wlan_mlo_wsi_link_info_send_cmd()
2420 if (!wsi_info->link_stats[i].send_wmi_cmd) in wlan_mlo_wsi_link_info_send_cmd()
2423 psoc_objmgr = wlan_objmgr_get_psoc_by_id(i, WLAN_MLO_MGR_ID); in wlan_mlo_wsi_link_info_send_cmd()
2425 mlo_err("Could not get PSOC obj for index %d", i); in wlan_mlo_wsi_link_info_send_cmd()
2443 pdev, &wsi_info->link_stats[i]) != in wlan_mlo_wsi_link_info_send_cmd()
2446 j, i); in wlan_mlo_wsi_link_info_send_cmd()
2449 wsi_info->link_stats[i].send_wmi_cmd = false; in wlan_mlo_wsi_link_info_send_cmd()
2462 uint32_t i; in wlan_mlo_psoc_get_ix_in_grp() local
2470 for (i = 0; i < mlo_mgr->wsi_info->mlo_psoc_grp[grp_id].num_psoc; i++) { in wlan_mlo_psoc_get_ix_in_grp()
2471 if (mlo_mgr->wsi_info->mlo_psoc_grp[grp_id].psoc_order[i] == in wlan_mlo_psoc_get_ix_in_grp()
2473 return i; in wlan_mlo_psoc_get_ix_in_grp()
2484 uint32_t i, j; in wlan_mlo_get_wsi_next_psoc() local
2490 for (i = 0; i < mlo_psoc_grp->num_psoc; i++) { in wlan_mlo_get_wsi_next_psoc()
2491 if (mlo_psoc_grp->psoc_order[i] == prim_psoc_id) { in wlan_mlo_get_wsi_next_psoc()
2492 psoc_index = i; in wlan_mlo_get_wsi_next_psoc()
2500 for (i = 1; i <= WLAN_OBJMGR_MAX_DEVICES; i++) { in wlan_mlo_get_wsi_next_psoc()
2501 j = (psoc_index + i) % WLAN_OBJMGR_MAX_DEVICES; in wlan_mlo_get_wsi_next_psoc()
2522 uint32_t i, j, n; in wlan_mlo_peer_wsi_link_update() local
2558 for (i = 0, j = 0; i < MAX_MLO_LINK_PEERS; i++) { in wlan_mlo_peer_wsi_link_update()
2559 peer_entry = &ml_peer->peer_list[i]; in wlan_mlo_peer_wsi_link_update()
2621 for (i = 0; i < j; i++) { in wlan_mlo_peer_wsi_link_update()
2624 sec_psoc_id[i]); in wlan_mlo_peer_wsi_link_update()