Lines Matching refs:twt

2290 static int mt7915_mac_check_twt_req(struct ieee80211_twt_setup *twt)  in mt7915_mac_check_twt_req()  argument
2298 if (twt->control & IEEE80211_TWT_CONTROL_NEG_TYPE_BROADCAST) in mt7915_mac_check_twt_req()
2302 if (twt->control & IEEE80211_TWT_CONTROL_WAKE_DUR_UNIT) in mt7915_mac_check_twt_req()
2305 twt_agrt = (struct ieee80211_twt_params *)twt->params; in mt7915_mac_check_twt_req()
2325 struct ieee80211_twt_setup *twt) in mt7915_mac_add_twt_setup() argument
2329 struct ieee80211_twt_params *twt_agrt = (void *)twt->params; in mt7915_mac_add_twt_setup()
2337 if (mt7915_mac_check_twt_req(twt)) in mt7915_mac_add_twt_setup()
2342 if (dev->twt.n_agrt == MT7915_MAX_TWT_AGRT) in mt7915_mac_add_twt_setup()
2345 if (hweight8(msta->twt.flowid_mask) == ARRAY_SIZE(msta->twt.flow)) in mt7915_mac_add_twt_setup()
2348 flowid = ffs(~msta->twt.flowid_mask) - 1; in mt7915_mac_add_twt_setup()
2352 table_id = ffs(~dev->twt.table_mask) - 1; in mt7915_mac_add_twt_setup()
2356 flow = &msta->twt.flow[flowid]; in mt7915_mac_add_twt_setup()
2380 twt_agrt->twt = cpu_to_le64(flow_tsf); in mt7915_mac_add_twt_setup()
2384 flow->tsf = le64_to_cpu(twt_agrt->twt); in mt7915_mac_add_twt_setup()
2390 dev->twt.table_mask |= BIT(table_id); in mt7915_mac_add_twt_setup()
2391 msta->twt.flowid_mask |= BIT(flowid); in mt7915_mac_add_twt_setup()
2392 dev->twt.n_agrt++; in mt7915_mac_add_twt_setup()
2399 twt->control = (twt->control & IEEE80211_TWT_CONTROL_WAKE_DUR_UNIT) | in mt7915_mac_add_twt_setup()
2400 (twt->control & IEEE80211_TWT_CONTROL_RX_DISABLED); in mt7915_mac_add_twt_setup()
2411 if (flowid >= ARRAY_SIZE(msta->twt.flow)) in mt7915_mac_twt_teardown_flow()
2414 if (!(msta->twt.flowid_mask & BIT(flowid))) in mt7915_mac_twt_teardown_flow()
2417 flow = &msta->twt.flow[flowid]; in mt7915_mac_twt_teardown_flow()
2423 msta->twt.flowid_mask &= ~BIT(flowid); in mt7915_mac_twt_teardown_flow()
2424 dev->twt.table_mask &= ~BIT(flow->table_id); in mt7915_mac_twt_teardown_flow()
2425 dev->twt.n_agrt--; in mt7915_mac_twt_teardown_flow()