Lines Matching refs:twt_agrt
2406 struct ieee80211_twt_params *twt_agrt; in mt7996_mac_check_twt_req() local
2419 twt_agrt = (struct ieee80211_twt_params *)twt->params; in mt7996_mac_check_twt_req()
2422 if (!(twt_agrt->req_type & cpu_to_le16(IEEE80211_TWT_REQTYPE_IMPLICIT))) in mt7996_mac_check_twt_req()
2426 le16_to_cpu(twt_agrt->req_type)); in mt7996_mac_check_twt_req()
2427 mantissa = le16_to_cpu(twt_agrt->mantissa); in mt7996_mac_check_twt_req()
2428 duration = twt_agrt->min_twt_dur << 8; in mt7996_mac_check_twt_req()
2439 struct ieee80211_twt_params *twt_agrt) in mt7996_mac_twt_param_equal() argument
2441 u16 type = le16_to_cpu(twt_agrt->req_type); in mt7996_mac_twt_param_equal()
2453 if (f->duration == twt_agrt->min_twt_dur && in mt7996_mac_twt_param_equal()
2454 f->mantissa == twt_agrt->mantissa && in mt7996_mac_twt_param_equal()
2471 struct ieee80211_twt_params *twt_agrt = (void *)twt->params; in mt7996_mac_add_twt_setup() local
2472 u16 req_type = le16_to_cpu(twt_agrt->req_type); in mt7996_mac_add_twt_setup()
2489 if (twt_agrt->min_twt_dur < MT7996_MIN_TWT_DUR) { in mt7996_mac_add_twt_setup()
2491 twt_agrt->min_twt_dur = MT7996_MIN_TWT_DUR; in mt7996_mac_add_twt_setup()
2495 if (mt7996_mac_twt_param_equal(msta, twt_agrt)) in mt7996_mac_add_twt_setup()
2499 twt_agrt->req_type &= ~cpu_to_le16(IEEE80211_TWT_REQTYPE_FLOWID); in mt7996_mac_add_twt_setup()
2500 twt_agrt->req_type |= le16_encode_bits(flowid, in mt7996_mac_add_twt_setup()
2513 flow->duration = twt_agrt->min_twt_dur; in mt7996_mac_add_twt_setup()
2514 flow->mantissa = twt_agrt->mantissa; in mt7996_mac_add_twt_setup()
2522 u64 interval = (u64)le16_to_cpu(twt_agrt->mantissa) << exp; in mt7996_mac_add_twt_setup()
2531 twt_agrt->twt = cpu_to_le64(flow_tsf); in mt7996_mac_add_twt_setup()
2535 flow->tsf = le64_to_cpu(twt_agrt->twt); in mt7996_mac_add_twt_setup()
2548 twt_agrt->req_type &= ~cpu_to_le16(IEEE80211_TWT_REQTYPE_SETUP_CMD); in mt7996_mac_add_twt_setup()
2549 twt_agrt->req_type |= in mt7996_mac_add_twt_setup()