Lines Matching refs:hal
134 struct rtw89_hal *hal = &rtwdev->hal;
135 struct rtw89_chan *chan = &hal->chanctx[idx].chan;
136 struct rtw89_chan_rcd *rcd = &hal->chanctx[idx].rcd;
153 struct rtw89_hal *hal = &rtwdev->hal;
160 for_each_set_bit(idx, hal->entity_map, NUM_OF_RTW89_CHANCTX) {
175 struct rtw89_hal *hal = &rtwdev->hal;
177 hal->chanctx[idx].chandef = *chandef;
180 set_bit(idx, hal->entity_map);
194 struct rtw89_hal *hal = &rtwdev->hal;
198 cur = atomic_cmpxchg(&hal->roc_chanctx_idx,
206 hal->roc_chandef = *chandef;
208 cur = atomic_cmpxchg(&hal->roc_chanctx_idx, idx,
232 struct rtw89_hal *hal = &rtwdev->hal;
233 struct rtw89_entity_mgnt *mgnt = &hal->entity_mgnt;
235 hal->entity_pause = false;
236 bitmap_zero(hal->entity_map, NUM_OF_RTW89_CHANCTX);
237 bitmap_zero(hal->changes, NUM_OF_RTW89_CHANCTX_CHANGES);
238 atomic_set(&hal->roc_chanctx_idx, RTW89_CHANCTX_IDLE);
260 struct rtw89_hal *hal = &rtwdev->hal;
265 for_each_set_bit(idx, hal->entity_map, NUM_OF_RTW89_CHANCTX) {
266 cfg = hal->chanctx[idx].cfg;
306 struct rtw89_hal *hal = &rtwdev->hal;
307 struct rtw89_entity_mgnt *mgnt = &hal->entity_mgnt;
339 roc_idx = atomic_read(&hal->roc_chanctx_idx);
362 struct rtw89_hal *hal = &rtwdev->hal;
363 struct rtw89_entity_mgnt *mgnt = &hal->entity_mgnt;
423 struct rtw89_hal *hal = &rtwdev->hal;
432 bitmap_copy(recalc_map, hal->entity_map, NUM_OF_RTW89_CHANCTX);
482 if (hal->entity_pause)
901 struct rtw89_hal *hal = &rtwdev->hal;
902 struct rtw89_entity_mgnt *mgnt = &hal->entity_mgnt;
2397 struct rtw89_hal *hal = &rtwdev->hal;
2406 if (hal->entity_pause) {
2412 if (test_and_clear_bit(i, hal->changes))
2455 struct rtw89_hal *hal = &rtwdev->hal;
2474 set_bit(change, hal->changes);
2491 struct rtw89_hal *hal = &rtwdev->hal;
2496 if (hal->entity_pause)
2512 struct rtw89_hal *hal = &rtwdev->hal;
2517 if (hal->entity_pause)
2531 hal->entity_pause = true;
2554 struct rtw89_hal *hal = &rtwdev->hal;
2560 if (unlikely(!hal->entity_pause)) {
2567 hal->entity_pause = false;
2608 struct rtw89_hal *hal = &rtwdev->hal;
2615 hal->chanctx[idx1].cfg->idx = idx2;
2616 hal->chanctx[idx2].cfg->idx = idx1;
2618 swap(hal->chanctx[idx1], hal->chanctx[idx2]);
2623 cur = atomic_read(&hal->roc_chanctx_idx);
2625 atomic_set(&hal->roc_chanctx_idx, idx2);
2627 atomic_set(&hal->roc_chanctx_idx, idx1);
2633 struct rtw89_hal *hal = &rtwdev->hal;
2638 idx = find_first_zero_bit(hal->entity_map, NUM_OF_RTW89_CHANCTX);
2645 hal->chanctx[idx].cfg = cfg;
2652 struct rtw89_hal *hal = &rtwdev->hal;
2655 clear_bit(cfg->idx, hal->entity_map);
2677 struct rtw89_hal *hal = &rtwdev->hal;
2678 struct rtw89_entity_mgnt *mgnt = &hal->entity_mgnt;
2708 struct rtw89_hal *hal = &rtwdev->hal;
2727 roll = find_next_bit(hal->entity_map, NUM_OF_RTW89_CHANCTX,
2739 if (!hal->entity_pause) {
2754 if (hal->entity_pause)