Lines Matching refs:ts
56 struct ath_tx_status *ts, int txok);
60 struct ath_tx_status *ts, int nframes, int nbad,
244 struct ath_tx_status ts; in ath_tx_flush_tid() local
250 memset(&ts, 0, sizeof(ts)); in ath_tx_flush_tid()
267 ath_tx_complete_buf(sc, bf, txq, &bf_head, &ts, 0); in ath_tx_flush_tid()
321 struct ath_tx_status ts; in ath_tid_drain() local
324 memset(&ts, 0, sizeof(ts)); in ath_tid_drain()
337 ath_tx_complete_buf(sc, bf, txq, &bf_head, &ts, 0); in ath_tid_drain()
407 struct ath_tx_status *ts, int txok, in ath_tx_count_frames() argument
421 seq_st = ts->ts_seqnum; in ath_tx_count_frames()
422 memcpy(ba, &ts->ba_low, WME_BA_BMP_SIZE >> 3); in ath_tx_count_frames()
440 struct ath_tx_status *ts, int txok) in ath_tx_complete_aggr() argument
459 bool flush = !!(ts->ts_status & ATH9K_TX_FLUSH); in ath_tx_complete_aggr()
470 retries = ts->ts_longretry + 1; in ath_tx_complete_aggr()
471 for (i = 0; i < ts->ts_rateindex; i++) in ath_tx_complete_aggr()
487 ath_tx_complete_buf(sc, bf, txq, &bf_head, ts, 0); in ath_tx_complete_aggr()
497 isba = ts->ts_flags & ATH9K_TX_BA; in ath_tx_complete_aggr()
507 if (isba && tid->tidno != ts->tid) in ath_tx_complete_aggr()
514 if (ts->ts_flags & ATH9K_TX_BA) { in ath_tx_complete_aggr()
515 seq_st = ts->ts_seqnum; in ath_tx_complete_aggr()
516 memcpy(ba, &ts->ba_low, WME_BA_BMP_SIZE >> 3); in ath_tx_complete_aggr()
532 ath_tx_count_frames(sc, bf, ts, txok, &nframes, &nbad); in ath_tx_complete_aggr()
589 ath_tx_rc_status(sc, bf, ts, nframes, nbad, txok); in ath_tx_complete_aggr()
594 ts); in ath_tx_complete_aggr()
597 ath_tx_complete_buf(sc, bf, txq, &bf_head, ts, in ath_tx_complete_aggr()
618 &bf_head, ts, 0); in ath_tx_complete_aggr()
646 if (ts->ts_status & (ATH9K_TXERR_FILT | ATH9K_TXERR_XRETRY)) in ath_tx_complete_aggr()
675 struct ath_tx_status *ts, struct ath_buf *bf, in ath_tx_process_buffer() argument
681 txok = !(ts->ts_status & ATH9K_TXERR_MASK); in ath_tx_process_buffer()
682 flush = !!(ts->ts_status & ATH9K_TX_FLUSH); in ath_tx_process_buffer()
689 ts->duration = ath9k_hw_get_duration(sc->sc_ah, bf->bf_desc, in ath_tx_process_buffer()
690 ts->ts_rateindex); in ath_tx_process_buffer()
696 ath_tx_rc_status(sc, bf, ts, 1, txok ? 0 : 1, txok); in ath_tx_process_buffer()
697 ath_dynack_sample_tx_ts(sc->sc_ah, bf->bf_mpdu, ts); in ath_tx_process_buffer()
699 ath_tx_complete_buf(sc, bf, txq, bf_head, ts, txok); in ath_tx_process_buffer()
701 ath_tx_complete_aggr(sc, txq, bf, bf_head, ts, txok); in ath_tx_process_buffer()
930 struct ath_tx_status ts = {}; in ath_tx_get_tid_subframe() local
937 ath_tx_complete_buf(sc, bf, txq, &bf_head, &ts, 0); in ath_tx_get_tid_subframe()
1811 struct ath_tx_status ts; in ath_drain_txq_list() local
1813 memset(&ts, 0, sizeof(ts)); in ath_drain_txq_list()
1814 ts.ts_status = ATH9K_TX_FLUSH; in ath_drain_txq_list()
1829 ath_tx_process_buffer(sc, txq, &ts, bf, &bf_head); in ath_drain_txq_list()
2540 struct ath_tx_status *ts, int txok) in ath_tx_complete_buf() argument
2550 if (ts->ts_status & ATH9K_TXERR_FILT) in ath_tx_complete_buf()
2566 ath_debug_stat_tx(sc, bf, ts, txq, tx_flags); in ath_tx_complete_buf()
2584 struct ath_tx_status *ts, int nframes, int nbad, in ath_tx_rc_status() argument
2595 tx_info->status.ack_signal = ts->ts_rssi; in ath_tx_rc_status()
2597 tx_rateindex = ts->ts_rateindex; in ath_tx_rc_status()
2608 if ((ts->ts_status & ATH9K_TXERR_FILT) == 0 && in ath_tx_rc_status()
2622 if (unlikely(ts->ts_flags & (ATH9K_TX_DATA_UNDERRUN | in ath_tx_rc_status()
2635 tx_info->status.rates[tx_rateindex].count = ts->ts_longretry + 1; in ath_tx_rc_status()
2645 struct ath_tx_status ts; in ath_tx_processq() local
2685 memset(&ts, 0, sizeof(ts)); in ath_tx_processq()
2686 status = ath9k_hw_txprocdesc(ah, ds, &ts); in ath_tx_processq()
2708 ath_tx_process_buffer(sc, txq, &ts, bf, &bf_head); in ath_tx_processq()
2727 struct ath_tx_status ts; in ath_tx_edma_tasklet() local
2740 status = ath9k_hw_txprocdesc(ah, NULL, (void *)&ts); in ath_tx_edma_tasklet()
2749 if (ts.qid == sc->beacon.beaconq) { in ath_tx_edma_tasklet()
2751 sc->beacon.tx_last = !(ts.ts_status & ATH9K_TXERR_MASK); in ath_tx_edma_tasklet()
2762 txq = &sc->tx.txq[ts.qid]; in ath_tx_edma_tasklet()
2803 ath_tx_process_buffer(sc, txq, &ts, bf, &bf_head); in ath_tx_edma_tasklet()