Lines Matching refs:ridx

211 	u8 ridx = 0;  in _search_ld_sta_wrole()  local
221 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in _search_ld_sta_wrole()
222 if (chanctx->role_map & BIT(ridx)) { in _search_ld_sta_wrole()
223 wr = &phl_com->wifi_roles[ridx]; in _search_ld_sta_wrole()
1618 u8 ridx = MAX_WIFI_ROLE_NUMBER; in phl_mr_ctrl_init() local
1637 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in phl_mr_ctrl_init()
1638 role = &(phl_com->wifi_roles[ridx]); in phl_mr_ctrl_init()
1641 role->id = ridx; in phl_mr_ctrl_init()
1675 u8 ridx = MAX_WIFI_ROLE_NUMBER; in phl_mr_ctrl_deinit() local
1683 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in phl_mr_ctrl_deinit()
1684 role = &(phl_com->wifi_roles[ridx]); in phl_mr_ctrl_deinit()
1696 u8 ridx; in phl_mr_chandef_sync() local
1715 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in phl_mr_chandef_sync()
1716 if (chanctx->role_map & BIT(ridx)) { in phl_mr_chandef_sync()
1717 wrole = rtw_phl_get_wrole_by_ridx(phl_info->phl_com, ridx); in phl_mr_chandef_sync()
1719 PHL_ERR("ridx :%d wrole == NULL\n", ridx); in phl_mr_chandef_sync()
1733 band_ret, ridx, wrole->chandef.band); in phl_mr_chandef_sync()
1740 ch_ret, ridx, wrole->chandef.chan); in phl_mr_chandef_sync()
2010 u8 ridx = 0; in phl_mr_tsf_sync() local
2044 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in phl_mr_tsf_sync()
2045 if (chanctx->role_map & BIT(ridx)) { in phl_mr_tsf_sync()
2046 wr_sync_to = &phl_com->wifi_roles[ridx]; in phl_mr_tsf_sync()
2101 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in phl_mr_tsf_sync()
2102 if (chanctx->role_map & BIT(ridx)) { in phl_mr_tsf_sync()
2103 wr_sync_to = &phl_com->wifi_roles[ridx]; in phl_mr_tsf_sync()
2141 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in phl_mr_tsf_sync()
2142 if (chanctx->role_map & BIT(ridx)){ in phl_mr_tsf_sync()
2143 wr_sync_to = &phl_com->wifi_roles[ridx]; in phl_mr_tsf_sync()
2270 u8 (*issue_null_data)(void *priv, u8 ridx, bool ps)) in phl_mr_offch_hdl() argument
2283 u8 ridx = 0; in phl_mr_offch_hdl() local
2306 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in phl_mr_offch_hdl()
2307 if (chanctx->role_map & BIT(ridx)) { in phl_mr_offch_hdl()
2308 wr = &phl_com->wifi_roles[ridx]; in phl_mr_offch_hdl()
2312 PHL_INFO("WR-ID:%d, STA found\n", ridx); in phl_mr_offch_hdl()
2313 mctx.role_map_ps |= BIT(ridx); in phl_mr_offch_hdl()
2316 PHL_INFO("WR-ID:%d, AP found\n", ridx); in phl_mr_offch_hdl()
2317 mctx.role_map_ap |= BIT(ridx); in phl_mr_offch_hdl()
2329 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in phl_mr_offch_hdl()
2330 if ((mctx.role_map_ap) && (mctx.role_map_ap & BIT(ridx))) { in phl_mr_offch_hdl()
2331 wr = &phl_com->wifi_roles[ridx]; in phl_mr_offch_hdl()
2347 if ((mctx.role_map_ps) && (mctx.role_map_ps & BIT(ridx))) { in phl_mr_offch_hdl()
2348 wr = &phl_com->wifi_roles[ridx]; in phl_mr_offch_hdl()
2350 PHL_ERR("WR-ID:%d, issue null_data function not found\n", ridx); in phl_mr_offch_hdl()
2358 if (issue_null_data(obj_priv, ridx, off_ch) != _SUCCESS) { in phl_mr_offch_hdl()
2359 PHL_ERR("WR-ID:%d, issue null_data failed\n", ridx); in phl_mr_offch_hdl()
2402 u8 (*issue_null_data)(void *priv, u8 ridx, bool ps), in rtw_phl_mr_offch_hdl() argument
2439 u8 ridx; in phl_mr_stop_all_beacon() local
2441 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in phl_mr_stop_all_beacon()
2442 if (role_map & BIT(ridx)) { in phl_mr_stop_all_beacon()
2443 wr = &(phl_com->wifi_roles[ridx]); in phl_mr_stop_all_beacon()
2470 u8 ridx = MAX_WIFI_ROLE_NUMBER; in phl_mr_info_dbg() local
2476 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in phl_mr_info_dbg()
2477 role = &(phl_com->wifi_roles[ridx]); in phl_mr_info_dbg()
2481 ridx, role->assoc_sta_queue.cnt); in phl_mr_info_dbg()
2525 u8 ridx = INVALID_WIFI_ROLE_IDX, role_map = 0; in _mr_tdmra_role_state_check() local
2528 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in _mr_tdmra_role_state_check()
2529 if (!(role_map & BIT(ridx))) in _mr_tdmra_role_state_check()
2531 wr = &(phl->phl_com->wifi_roles[ridx]); in _mr_tdmra_role_state_check()
2534 __FUNCTION__, ridx, wr->type, wr->mstate); in _mr_tdmra_role_state_check()
2540 __FUNCTION__, ridx, wr->type, in _mr_tdmra_role_state_check()
2592 u8 ridx; in _mr_tdmra_need() local
2612 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in _mr_tdmra_need()
2613 if (role_map & BIT(ridx)) { in _mr_tdmra_need()
2614 wr = &(phl_com->wifi_roles[ridx]); in _mr_tdmra_need()
2660 u8 ridx = 0; in _mr_find_existed_role() local
2663 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in _mr_find_existed_role()
2664 if (role_map & BIT(ridx)) { in _mr_find_existed_role()
2665 wr = &phl_com->wifi_roles[ridx]; in _mr_find_existed_role()
2884 u8 ridx; in phl_mr_info_upt() local
2888 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in phl_mr_info_upt()
2889 if (role_map & BIT(ridx)) { in phl_mr_info_upt()
2890 wr = &(phl_com->wifi_roles[ridx]); in phl_mr_info_upt()
3035 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in phl_mr_watchdog()
3036 if (chanctx->role_map & BIT(ridx)) { in phl_mr_watchdog()
3037 wr = &phl_com->wifi_roles[ridx]; in phl_mr_watchdog()
3060 u8 ridx = 0; in __phl_mr_process() local
3065 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in __phl_mr_process()
3066 if (role_map & BIT(ridx)) { in __phl_mr_process()
3067 wr = &phl_com->wifi_roles[ridx]; in __phl_mr_process()
3113 u8 ridx = 0; in _phl_mr_process() local
3118 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in _phl_mr_process()
3119 wr = &phl_com->wifi_roles[ridx]; in _phl_mr_process()
3245 u8 ridx; in phl_mr_check_ecsa() local
3262 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in phl_mr_check_ecsa()
3263 if (role_map & BIT(ridx)) { in phl_mr_check_ecsa()
3264 wr = &(phl_com->wifi_roles[ridx]); in phl_mr_check_ecsa()
3512 u8 ridx = 0, role_map = band_ctrl->role_map; in _mr_is_2g_scc_1ap_1sta() local
3526 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in _mr_is_2g_scc_1ap_1sta()
3527 if (!(role_map & BIT(ridx))) in _mr_is_2g_scc_1ap_1sta()
3529 wr = &(phl->phl_com->wifi_roles[ridx]); in _mr_is_2g_scc_1ap_1sta()