Lines Matching refs:wrole
87 struct rtw_wifi_role_t *wrole, const u16 id) in _phl_wrole_bcmc_id_set() argument
89 macid_ctl->wrole_bmc[wrole->id] = id; in _phl_wrole_bcmc_id_set()
97 struct rtw_wifi_role_t *wrole = phl_sta->wrole; in _phl_alloc_macid() local
103 if (wrole == NULL) { in _phl_alloc_macid()
122 _phl_macid_map_set(&mc->wifi_role_usedmap[wrole->id][0], mid); in _phl_alloc_macid()
127 _phl_wrole_bcmc_id_set(mc, wrole, mid); in _phl_alloc_macid()
156 struct rtw_wifi_role_t *wrole = phl_sta->wrole; in _phl_release_macid() local
178 _phl_macid_map_clr(&macid_ctl->wifi_role_usedmap[wrole->id][0], phl_sta->macid); in _phl_release_macid()
213 rtw_phl_wrole_bcmc_id_get(void *phl, struct rtw_wifi_role_t *wrole) in rtw_phl_wrole_bcmc_id_get() argument
218 return macid_ctl->wrole_bmc[wrole->id]; in rtw_phl_wrole_bcmc_id_get()
317 u16 macid, struct rtw_wifi_role_t *wrole) in rtw_phl_macid_is_wrole_specific() argument
331 if (iface_bmp || i != wrole->id) in rtw_phl_macid_is_wrole_specific()
619 PHL_INFO("\t[STA] WROLE-IDX:%d wlan_mode:0x%02x\n", phl_sta->wrole->id, phl_sta->wmode); in _phl_dump_stainfo()
710 struct phl_info_t *phl_info, struct rtw_wifi_role_t *wrole) in phl_dump_stainfo_per_role() argument
720 wrole->id, in phl_dump_stainfo_per_role()
721 _rtype_str[wrole->type], in phl_dump_stainfo_per_role()
722 wrole->mac_addr[0], wrole->mac_addr[1], wrole->mac_addr[2], in phl_dump_stainfo_per_role()
723 wrole->mac_addr[3], wrole->mac_addr[4], wrole->mac_addr[5]); in phl_dump_stainfo_per_role()
725 _os_spinlock(drv, &wrole->assoc_sta_queue.lock, _bh, NULL); in phl_dump_stainfo_per_role()
727 if (wrole->type == PHL_RTYPE_STATION && wrole->mstate == MLME_LINKED) in phl_dump_stainfo_per_role()
729 else if (wrole->type == PHL_RTYPE_TDLS) in phl_dump_stainfo_per_role()
730 sta_cnt = wrole->assoc_sta_queue.cnt; in phl_dump_stainfo_per_role()
732 sta_cnt = wrole->assoc_sta_queue.cnt - 1; in phl_dump_stainfo_per_role()
735 phl_list_for_loop(sta, struct rtw_phl_stainfo_t, &wrole->assoc_sta_queue.queue, list) { in phl_dump_stainfo_per_role()
739 _os_spinunlock(drv, &wrole->assoc_sta_queue.lock, _bh, NULL); in phl_dump_stainfo_per_role()
783 struct rtw_wifi_role_t *wrole, struct rtw_phl_stainfo_t *sta) in _phl_self_stainfo_chk() argument
788 switch (wrole->type) { in _phl_self_stainfo_chk()
791 _os_mem_cpy(drv, sta->mac_addr, wrole->mac_addr, MAC_ALEN); in _phl_self_stainfo_chk()
799 if (_os_mem_cmp(drv, wrole->mac_addr, sta->mac_addr, MAC_ALEN) == 0) in _phl_self_stainfo_chk()
812 wrole->type); in _phl_self_stainfo_chk()
816 wrole->type); in _phl_self_stainfo_chk()
852 struct rtw_wifi_role_t *wrole = NULL; in __phl_free_stainfo_sw() local
867 wrole = sta->wrole; in __phl_free_stainfo_sw()
870 if (_phl_self_stainfo_chk(phl_info, wrole, sta) == true) { in __phl_free_stainfo_sw()
876 pstatus = phl_stainfo_queue_del(phl_info, &wrole->assoc_sta_queue, sta); in __phl_free_stainfo_sw()
895 if ((wrole->type == PHL_RTYPE_AP) || in __phl_free_stainfo_sw()
896 (wrole->type == PHL_RTYPE_VAP) || in __phl_free_stainfo_sw()
897 (wrole->type == PHL_RTYPE_MESH) || in __phl_free_stainfo_sw()
898 (wrole->type == PHL_RTYPE_P2P_GO)) in __phl_free_stainfo_sw()
899 phl_role_ap_client_notify(phl_info, wrole, MLME_NO_LINK); in __phl_free_stainfo_sw()
939 struct rtw_wifi_role_t *wrole = sta->wrole; in __phl_free_stainfo_hw() local
942 if (_phl_self_stainfo_chk(phl_info, wrole, sta) == true) in __phl_free_stainfo_hw()
976 sta->wrole->hw_band, sta->wrole->hw_wmm, sta->wrole->hw_port) != in _phl_alloc_stainfo_sw()
1013 struct rtw_wifi_role_t *wrole) in phl_alloc_stainfo_sw() argument
1025 if (wrole->type == PHL_RTYPE_STATION && !bmc_sta) { in phl_alloc_stainfo_sw()
1026 phl_sta = rtw_phl_get_stainfo_self(phl_info, wrole); in phl_alloc_stainfo_sw()
1034 phl_sta = rtw_phl_get_stainfo_by_addr(phl_info, wrole, sta_addr); in phl_alloc_stainfo_sw()
1049 phl_sta->wrole = wrole; in phl_alloc_stainfo_sw()
1057 phl_stainfo_enqueue(phl_info, &wrole->assoc_sta_queue, phl_sta); in phl_alloc_stainfo_sw()
1063 if (_phl_self_stainfo_chk(phl_info, wrole, phl_sta) == false) { in phl_alloc_stainfo_sw()
1064 if ((wrole->type == PHL_RTYPE_AP) || in phl_alloc_stainfo_sw()
1065 (wrole->type == PHL_RTYPE_VAP) || in phl_alloc_stainfo_sw()
1066 (wrole->type == PHL_RTYPE_MESH) || in phl_alloc_stainfo_sw()
1067 (wrole->type == PHL_RTYPE_P2P_GO)) { in phl_alloc_stainfo_sw()
1068 phl_role_ap_client_notify(phl_info, wrole, MLME_LINKING); in phl_alloc_stainfo_sw()
1088 struct rtw_wifi_role_t *wrole) in rtw_phl_alloc_stainfo_sw() argument
1090 return phl_alloc_stainfo_sw((struct phl_info_t *)phl, sta_addr, wrole); in rtw_phl_alloc_stainfo_sw()
1128 struct rtw_wifi_role_t *wrole) in __phl_alloc_stainfo() argument
1133 alloc_sta = phl_alloc_stainfo_sw(phl, sta_addr, wrole); in __phl_alloc_stainfo()
1167 struct rtw_wifi_role_t *wrole, in _phl_alloc_stainfo() argument
1177 pstatus = __phl_alloc_stainfo(phl, sta, sta_addr, wrole); in _phl_alloc_stainfo()
1191 struct rtw_wifi_role_t *wrole; member
1210 struct rtw_wifi_role_t *wrole, in _phl_cmd_alloc_stainfo() argument
1221 psts = _phl_alloc_stainfo(phl_info, sta, sta_addr, wrole, alloc, only_hw); in _phl_cmd_alloc_stainfo()
1236 param->wrole = wrole; in _phl_cmd_alloc_stainfo()
1241 wrole->hw_band, in _phl_cmd_alloc_stainfo()
1269 cmd_sta_param->wrole, in phl_cmd_alloc_stainfo_hdl()
1280 struct rtw_wifi_role_t *wrole, in rtw_phl_cmd_alloc_stainfo() argument
1286 return _phl_cmd_alloc_stainfo(phl, sta, sta_addr, wrole, alloc, only_hw, cmd_type, cmd_timeout); in rtw_phl_cmd_alloc_stainfo()
1291 return _phl_alloc_stainfo((struct phl_info_t *)phl, sta, sta_addr, wrole, alloc, only_hw); in rtw_phl_cmd_alloc_stainfo()
1297 struct rtw_wifi_role_t *wrole) in phl_wifi_role_free_stainfo_hw() argument
1305 used_map = &mc->wifi_role_usedmap[wrole->id][0]; in phl_wifi_role_free_stainfo_hw()
1312 __func__, wrole->id, sta->macid); in phl_wifi_role_free_stainfo_hw()
1376 struct rtw_wifi_role_t *wrole) in _phl_set_dfs_tb_ctrl() argument
1379 enum band_type band = wrole->chandef.band; in _phl_set_dfs_tb_ctrl()
1380 u8 channel = wrole->chandef.chan; in _phl_set_dfs_tb_ctrl()
1421 struct rtw_wifi_role_t *wrole = sta->wrole; in phl_update_media_status() local
1434 if (wrole->mstate == MLME_LINKING) { in phl_update_media_status()
1441 if (wrole->type == PHL_RTYPE_STATION || wrole->type == PHL_RTYPE_P2P_GC) in phl_update_media_status()
1442 wrole->mstate = MLME_NO_LINK; in phl_update_media_status()
1451 CLEAR_STATUS_FLAG(wrole->status, WR_STATUS_TSF_SYNC); in phl_update_media_status()
1457 if ((wrole->type == PHL_RTYPE_STATION) || (wrole->type == PHL_RTYPE_P2P_GC) in phl_update_media_status()
1460 || ((wrole->type == PHL_RTYPE_TDLS) && (!sta_addr)) in phl_update_media_status()
1464 wrole->mstate = MLME_LINKED; in phl_update_media_status()
1466 _phl_set_dfs_tb_ctrl(phl_info, wrole); in phl_update_media_status()
1468 wrole->mstate = MLME_NO_LINK; in phl_update_media_status()
1472 else if ((wrole->type == PHL_RTYPE_AP) || in phl_update_media_status()
1473 (wrole->type == PHL_RTYPE_VAP) || in phl_update_media_status()
1474 (wrole->type == PHL_RTYPE_MESH) || in phl_update_media_status()
1475 (wrole->type == PHL_RTYPE_P2P_GO)) { in phl_update_media_status()
1477 phl_role_ap_client_notify(phl_info, wrole, MLME_LINKED); in phl_update_media_status()
1486 if (wrole->type == PHL_RTYPE_STATION in phl_update_media_status()
1489 || ((wrole->type == PHL_RTYPE_TDLS) && (!sta_addr)) in phl_update_media_status()
1492 hstatus = rtw_hal_role_cfg(phl_info->hal, wrole); in phl_update_media_status()
1544 struct rtw_wifi_role_t *wrole = NULL; in rtw_phl_cmd_update_media_status() local
1566 wrole = sta->wrole; in rtw_phl_cmd_update_media_status()
1569 wrole->hw_band, in rtw_phl_cmd_update_media_status()
1706 struct rtw_wifi_role_t *wrole = sta->wrole; in _phl_cmd_change_stainfo() local
1743 wrole->hw_band, in _phl_cmd_change_stainfo()
1908 rtw_phl_get_stainfo_by_addr(void *phl, struct rtw_wifi_role_t *wrole, u8 *addr) in rtw_phl_get_stainfo_by_addr() argument
1915 u16 macid = macid_ctl->wrole_bmc[wrole->id]; in rtw_phl_get_stainfo_by_addr()
1925 &wrole->assoc_sta_queue, addr); in rtw_phl_get_stainfo_by_addr()
1931 rtw_phl_get_stainfo_self(void *phl, struct rtw_wifi_role_t *wrole) in rtw_phl_get_stainfo_self() argument
1937 if ((wrole->type == PHL_RTYPE_STATION) && in rtw_phl_get_stainfo_self()
1938 (wrole->mstate == MLME_LINKED)) in rtw_phl_get_stainfo_self()
1942 &wrole->assoc_sta_queue, wrole->mac_addr); in rtw_phl_get_stainfo_self()
1945 sta = phl_stainfo_queue_get_first(phl_info, &wrole->assoc_sta_queue);
2369 sta->wrole->id); in phl_clean_sta_bcn_info()
2374 struct rtw_wifi_role_t *wrole) in phl_get_sta_bcn_offset_info() argument
2376 struct rtw_phl_stainfo_t *sta = rtw_phl_get_stainfo_self(phl, wrole); in phl_get_sta_bcn_offset_info()
2385 struct rtw_wifi_role_t *wrole = NULL; in phl_bcn_watchdog() local
2390 wrole = rtw_phl_get_wrole_by_ridx(phl->phl_com, ridx); in phl_bcn_watchdog()
2391 if (wrole->active == false) in phl_bcn_watchdog()
2394 if (rtw_phl_role_is_client_category(wrole) && wrole->mstate == MLME_LINKED) { in phl_bcn_watchdog()
2395 b_ofst_i = phl_get_sta_bcn_offset_info(phl, wrole); in phl_bcn_watchdog()
2401 hstatus = rtw_hal_role_cfg_ex(phl->hal, wrole, PCFG_TBTT_SHIFT, &(b_ofst_i->offset)); in phl_bcn_watchdog()
2427 struct rtw_wifi_role_t *wrole, u64 cur_t, u16 *ofst) in phl_calc_offset_from_tbtt() argument
2429 struct rtw_bcn_offset *b_ofst_i = phl_get_sta_bcn_offset_info(phl, wrole); in phl_calc_offset_from_tbtt()
2430 struct rtw_phl_stainfo_t *sta = rtw_phl_get_stainfo_self(phl, wrole); in phl_calc_offset_from_tbtt()
2436 if (phl_role_is_ap_category(wrole)) in phl_calc_offset_from_tbtt()
2437 b_intvl = (u16)wrole->bcn_cmn.bcn_interval; in phl_calc_offset_from_tbtt()
2443 wrole->id, wrole->type); in phl_calc_offset_from_tbtt()
2453 wrole->id, *ofst, (u32)(cur_t >> 32), (u32)cur_t, mod, in phl_calc_offset_from_tbtt()
2526 struct rtw_wifi_role_t *wrole, in phl_self_stainfo_chk() argument
2529 return _phl_self_stainfo_chk(phl_info, wrole, sta); in phl_self_stainfo_chk()