Lines Matching defs:tid

1052 il4965_free_tfds_in_queue(struct il_priv *il, int sta_id, int tid, int freed)
1056 if (il->stations[sta_id].tid[tid].tfds_in_queue >= freed)
1057 il->stations[sta_id].tid[tid].tfds_in_queue -= freed;
1060 il->stations[sta_id].tid[tid].tfds_in_queue, freed);
1061 il->stations[sta_id].tid[tid].tfds_in_queue = 0;
1454 il4965_get_ac_from_tid(u16 tid)
1456 if (likely(tid < ARRAY_SIZE(tid_to_ac)))
1457 return tid_to_ac[tid];
1464 il4965_get_fifo_from_tid(u16 tid)
1473 if (likely(tid < ARRAY_SIZE(tid_to_ac)))
1474 return ac_to_fifo[tid_to_ac[tid]];
1665 u8 tid = 0;
1732 tid = qc[0] & IEEE80211_QOS_CTL_TID_MASK;
1733 if (WARN_ON_ONCE(tid >= MAX_TID_COUNT)) {
1737 seq_number = il->stations[sta_id].tid[tid].seq_number;
1743 /* aggregation is on for this <sta,tid> */
1745 il->stations[sta_id].tid[tid].agg.state == IL_AGG_ON) {
1746 txq_id = il->stations[sta_id].tid[tid].agg.txq_id;
1760 il->stations[sta_id].tid[tid].tfds_in_queue++;
1762 il->stations[sta_id].tid[tid].seq_number = seq_number;
2114 * il4965_tx_queue_set_q2ratid - Map unique receiver/tid combination to a queue
2148 int tid, u16 ssn_idx)
2164 ra_tid = BUILD_RAxTID(sta_id, tid);
2167 ret = il4965_sta_tx_modify_enable_tid(il, sta_id, tid);
2214 struct ieee80211_sta *sta, u16 tid, u16 * ssn)
2224 tx_fifo = il4965_get_fifo_from_tid(tid);
2228 D_HT("%s on ra = %pM tid = %d\n", __func__, sta->addr, tid);
2235 if (unlikely(tid >= MAX_TID_COUNT))
2238 if (il->stations[sta_id].tid[tid].agg.state != IL_AGG_OFF) {
2250 tid_data = &il->stations[sta_id].tid[tid];
2253 il_set_swq_id(&il->txq[txq_id], il4965_get_ac_from_tid(tid), txq_id);
2256 ret = il4965_txq_agg_enable(il, txq_id, tx_fifo, sta_id, tid, *ssn);
2261 tid_data = &il->stations[sta_id].tid[tid];
2310 struct ieee80211_sta *sta, u16 tid)
2318 tx_fifo_id = il4965_get_fifo_from_tid(tid);
2325 IL_ERR("Invalid station for AGG tid %d\n", tid);
2331 tid_data = &il->stations[sta_id].tid[tid];
2335 switch (il->stations[sta_id].tid[tid].agg.state) {
2357 il->stations[sta_id].tid[tid].agg.state =
2365 il->stations[sta_id].tid[tid].agg.state = IL_AGG_OFF;
2381 ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid);
2387 il4965_txq_check_empty(struct il_priv *il, int sta_id, u8 tid, int txq_id)
2391 struct il_tid_data *tid_data = &il->stations[sta_id].tid[tid];
2395 switch (il->stations[sta_id].tid[tid].agg.state) {
2402 int tx_fifo = il4965_get_fifo_from_tid(tid);
2406 ieee80211_stop_tx_ba_cb_irqsafe(il->vif, addr, tid);
2414 ieee80211_start_tx_ba_cb_irqsafe(il->vif, addr, tid);
2767 int tid;
2789 tid = qc[0] & 0xf;
2819 agg = &il->stations[sta_id].tid[tid].agg;
2833 il4965_free_tfds_in_queue(il, sta_id, tid, freed);
2855 il4965_free_tfds_in_queue(il, sta_id, tid, freed);
2865 il4965_txq_check_empty(il, sta_id, tid, txq_id);
2911 int tid;
2928 tid = ba_resp->tid;
2929 agg = &il->stations[sta_id].tid[tid].agg;
2951 "%d, scd_ssn = %d\n", ba_resp->tid, ba_resp->seq_ctl,
2966 il4965_free_tfds_in_queue(il, sta_id, tid, freed);
2973 il4965_txq_check_empty(il, sta_id, tid, scd_flow);
3582 il4965_sta_tx_modify_enable_tid(struct il_priv *il, int sta_id, int tid)
3592 il->stations[sta_id].sta.tid_disable_tx &= cpu_to_le16(~(1 << tid));
3602 il4965_sta_rx_agg_start(struct il_priv *il, struct ieee80211_sta *sta, int tid,
3618 il->stations[sta_id].sta.add_immediate_ba_tid = (u8) tid;
3629 il4965_sta_rx_agg_stop(struct il_priv *il, struct ieee80211_sta *sta, int tid)
3639 IL_ERR("Invalid station for AGG tid %d\n", tid);
3646 il->stations[sta_id].sta.remove_immediate_ba_tid = (u8) tid;
5968 u16 tid = params->tid;
5971 D_HT("A-MPDU action on addr %pM tid %d\n", sta->addr, tid);
5981 ret = il4965_sta_rx_agg_start(il, sta, tid, *ssn);
5985 ret = il4965_sta_rx_agg_stop(il, sta, tid);
5991 ret = il4965_tx_agg_start(il, vif, sta, tid, ssn);
5997 ret = il4965_tx_agg_stop(il, vif, sta, tid);