Lines Matching refs:hal

113 	struct rtw89_hal *hal = &rtwdev->hal;  in rtw89_assign_entity_chan()  local
114 struct rtw89_chan *chan = &hal->sub[idx].chan; in rtw89_assign_entity_chan()
115 struct rtw89_chan_rcd *rcd = &hal->sub[idx].rcd; in rtw89_assign_entity_chan()
132 struct rtw89_hal *hal = &rtwdev->hal; in __rtw89_config_entity_chandef() local
134 hal->sub[idx].chandef = *chandef; in __rtw89_config_entity_chandef()
137 set_bit(idx, hal->entity_map); in __rtw89_config_entity_chandef()
151 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_config_roc_chandef() local
155 cur = atomic_cmpxchg(&hal->roc_entity_idx, in rtw89_config_roc_chandef()
163 hal->roc_chandef = *chandef; in rtw89_config_roc_chandef()
165 cur = atomic_cmpxchg(&hal->roc_entity_idx, idx, in rtw89_config_roc_chandef()
189 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_entity_init() local
191 bitmap_zero(hal->entity_map, NUM_OF_RTW89_SUB_ENTITY); in rtw89_entity_init()
192 atomic_set(&hal->roc_entity_idx, RTW89_SUB_ENTITY_IDLE); in rtw89_entity_init()
198 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_entity_recalc() local
206 weight = bitmap_weight(hal->entity_map, NUM_OF_RTW89_SUB_ENTITY); in rtw89_entity_recalc()
210 bitmap_zero(hal->entity_map, NUM_OF_RTW89_SUB_ENTITY); in rtw89_entity_recalc()
334 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_chanctx_ops_add() local
339 idx = find_first_zero_bit(hal->entity_map, NUM_OF_RTW89_SUB_ENTITY); in rtw89_chanctx_ops_add()
346 hal->sub[idx].cfg = cfg; in rtw89_chanctx_ops_add()
353 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_chanctx_ops_remove() local
363 roll = find_next_bit(hal->entity_map, NUM_OF_RTW89_SUB_ENTITY, drop + 1); in rtw89_chanctx_ops_remove()
372 hal->sub[roll].cfg->idx = RTW89_SUB_ENTITY_0; in rtw89_chanctx_ops_remove()
373 hal->sub[RTW89_SUB_ENTITY_0] = hal->sub[roll]; in rtw89_chanctx_ops_remove()
380 atomic_cmpxchg(&hal->roc_entity_idx, roll, RTW89_SUB_ENTITY_0); in rtw89_chanctx_ops_remove()
394 clear_bit(drop, hal->entity_map); in rtw89_chanctx_ops_remove()