Lines Matching refs:ridx
31 int ridx; in _phl_alloc_hw_resource() local
36 ridx = wrole->id; in _phl_alloc_hw_resource()
61 PHL_INFO("%s WID:%d - assigne wmm_id to 0\n", __func__, ridx); in _phl_alloc_hw_resource()
72 band_ctrl->role_map |= BIT(ridx); in _phl_alloc_hw_resource()
79 PHL_INFO("%s wridx:%d success\n", __func__, ridx); in _phl_alloc_hw_resource()
94 int ridx = wrole->id; in _phl_free_hw_resource() local
116 band_ctrl->role_map &= ~BIT(ridx); in _phl_free_hw_resource()
120 PHL_INFO("%s wr-id:%d success\n", __func__, ridx); in _phl_free_hw_resource()
145 u8 ridx = MAX_WIFI_ROLE_NUMBER; in _phl_search_roleidx_by_addr() local
148 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in _phl_search_roleidx_by_addr()
149 if (mr_ctl->role_map & BIT(ridx)) { in _phl_search_roleidx_by_addr()
151 phl_com->wifi_roles[ridx].mac_addr, in _phl_search_roleidx_by_addr()
158 if (ridx == MAX_WIFI_ROLE_NUMBER) in _phl_search_roleidx_by_addr()
161 return ridx; in _phl_search_roleidx_by_addr()
168 int ridx = MAX_WIFI_ROLE_NUMBER; in phl_get_wrole_by_addr() local
173 for (ridx = 0; ridx < MAX_WIFI_ROLE_NUMBER; ridx++) { in phl_get_wrole_by_addr()
174 if (mr_ctl->role_map & BIT(ridx)) { in phl_get_wrole_by_addr()
175 wrole = &(phl_com->wifi_roles[ridx]); in phl_get_wrole_by_addr()
284 u8 *mac_addr, enum role_type type, u8 ridx) in _phl_wifi_role_alloc_sw() argument
293 if (ridx == UNSPECIFIED_ROLE_ID) { in _phl_wifi_role_alloc_sw()
302 if (mr_ctl->role_map & BIT(ridx)) { in _phl_wifi_role_alloc_sw()
303 PHL_ERR("role_idx:%d has used\n", ridx); in _phl_wifi_role_alloc_sw()
306 mr_ctl->role_map |= BIT(ridx); in _phl_wifi_role_alloc_sw()
307 role_idx = ridx; in _phl_wifi_role_alloc_sw()
483 u8 ridx, struct rtw_wifi_role_t **wifi_role, bool ignore_hw_fail) in rtw_phl_wifi_role_alloc() argument
505 role = _phl_wifi_role_alloc_sw(phl_info, mac_addr, type, ridx); in rtw_phl_wifi_role_alloc()