Lines Matching refs:tx_tspec
1931 struct ieee80211_sta_tx_tspec *tx_tspec = &ifmgd->tx_tspec[ac]; in __ieee80211_sta_handle_tspec_ac_params() local
1935 if (tx_tspec->action == TX_TSPEC_ACTION_NONE && in __ieee80211_sta_handle_tspec_ac_params()
1936 tx_tspec->admitted_time && in __ieee80211_sta_handle_tspec_ac_params()
1937 time_after(now, tx_tspec->time_slice_start + HZ)) { in __ieee80211_sta_handle_tspec_ac_params()
1938 tx_tspec->consumed_tx_time = 0; in __ieee80211_sta_handle_tspec_ac_params()
1939 tx_tspec->time_slice_start = now; in __ieee80211_sta_handle_tspec_ac_params()
1941 if (tx_tspec->downgraded) in __ieee80211_sta_handle_tspec_ac_params()
1942 tx_tspec->action = in __ieee80211_sta_handle_tspec_ac_params()
1946 switch (tx_tspec->action) { in __ieee80211_sta_handle_tspec_ac_params()
1953 tx_tspec->action = TX_TSPEC_ACTION_NONE; in __ieee80211_sta_handle_tspec_ac_params()
1954 tx_tspec->downgraded = false; in __ieee80211_sta_handle_tspec_ac_params()
1958 if (time_after(now, tx_tspec->time_slice_start + HZ)) { in __ieee80211_sta_handle_tspec_ac_params()
1959 tx_tspec->action = TX_TSPEC_ACTION_NONE; in __ieee80211_sta_handle_tspec_ac_params()
1983 tx_tspec->action = TX_TSPEC_ACTION_NONE; in __ieee80211_sta_handle_tspec_ac_params()
1986 tx_tspec->time_slice_start + HZ - now + 1); in __ieee80211_sta_handle_tspec_ac_params()
2148 ifmgd->tx_tspec[ac].downgraded); in ieee80211_sta_wmm_params()
2150 if (!ifmgd->tx_tspec[ac].downgraded && in ieee80211_sta_wmm_params()
2453 memset(ifmgd->tx_tspec, 0, sizeof(ifmgd->tx_tspec)); in ieee80211_set_disassoc()
2498 struct ieee80211_sta_tx_tspec *tx_tspec; in ieee80211_sta_tx_wmm_ac_notify() local
2506 tx_tspec = &ifmgd->tx_tspec[ac]; in ieee80211_sta_tx_wmm_ac_notify()
2508 if (likely(!tx_tspec->admitted_time)) in ieee80211_sta_tx_wmm_ac_notify()
2511 if (time_after(now, tx_tspec->time_slice_start + HZ)) { in ieee80211_sta_tx_wmm_ac_notify()
2512 tx_tspec->consumed_tx_time = 0; in ieee80211_sta_tx_wmm_ac_notify()
2513 tx_tspec->time_slice_start = now; in ieee80211_sta_tx_wmm_ac_notify()
2515 if (tx_tspec->downgraded) { in ieee80211_sta_tx_wmm_ac_notify()
2516 tx_tspec->action = TX_TSPEC_ACTION_STOP_DOWNGRADE; in ieee80211_sta_tx_wmm_ac_notify()
2521 if (tx_tspec->downgraded) in ieee80211_sta_tx_wmm_ac_notify()
2524 tx_tspec->consumed_tx_time += tx_time; in ieee80211_sta_tx_wmm_ac_notify()
2526 if (tx_tspec->consumed_tx_time >= tx_tspec->admitted_time) { in ieee80211_sta_tx_wmm_ac_notify()
2527 tx_tspec->downgraded = true; in ieee80211_sta_tx_wmm_ac_notify()
2528 tx_tspec->action = TX_TSPEC_ACTION_DOWNGRADE; in ieee80211_sta_tx_wmm_ac_notify()