Lines Matching refs:bf

61 static void ath_tx_complete_buf(struct ath_softc *sc, struct ath_buf *bf,
67 static void ath_tx_rc_status(struct ath_softc *sc, struct ath_buf *bf,
71 struct ath_buf *bf);
163 static bool ath_merge_ratetbl(struct ieee80211_sta *sta, struct ath_buf *bf, in ath_merge_ratetbl() argument
181 bf->rates[0] = tx_info->control.rates[0]; in ath_merge_ratetbl()
186 bf->rates[i].idx = ratetbl->rate[i].idx; in ath_merge_ratetbl()
187 bf->rates[i].flags = ratetbl->rate[i].flags; in ath_merge_ratetbl()
189 bf->rates[i].count = ratetbl->rate[i].count_rts; in ath_merge_ratetbl()
191 bf->rates[i].count = ratetbl->rate[i].count_cts; in ath_merge_ratetbl()
193 bf->rates[i].count = ratetbl->rate[i].count; in ath_merge_ratetbl()
200 struct ath_buf *bf) in ath_set_rates() argument
204 tx_info = IEEE80211_SKB_CB(bf->bf_mpdu); in ath_set_rates()
206 if (!ath_merge_ratetbl(sta, bf, tx_info)) in ath_set_rates()
207 ieee80211_get_tx_rates(vif, sta, bf->bf_mpdu, bf->rates, in ath_set_rates()
208 ARRAY_SIZE(bf->rates)); in ath_set_rates()
283 struct ath_buf *bf; in ath_tx_flush_tid() local
295 bf = fi->bf; in ath_tx_flush_tid()
296 if (!bf) { in ath_tx_flush_tid()
303 ath_tx_update_baw(sc, tid, bf); in ath_tx_flush_tid()
307 list_add_tail(&bf->list, &bf_head); in ath_tx_flush_tid()
308 ath_tx_complete_buf(sc, bf, txq, &bf_head, NULL, &ts, 0); in ath_tx_flush_tid()
319 struct ath_buf *bf) in ath_tx_update_baw() argument
321 struct ath_frame_info *fi = get_frame_info(bf->bf_mpdu); in ath_tx_update_baw()
322 u16 seqno = bf->bf_state.seqno; in ath_tx_update_baw()
342 struct ath_buf *bf) in ath_tx_addto_baw() argument
344 struct ath_frame_info *fi = get_frame_info(bf->bf_mpdu); in ath_tx_addto_baw()
345 u16 seqno = bf->bf_state.seqno; in ath_tx_addto_baw()
368 struct ath_buf *bf; in ath_tid_drain() local
379 bf = fi->bf; in ath_tid_drain()
381 if (!bf) { in ath_tid_drain()
386 list_add_tail(&bf->list, &bf_head); in ath_tid_drain()
387 ath_tx_complete_buf(sc, bf, txq, &bf_head, NULL, &ts, 0); in ath_tid_drain()
395 struct ath_buf *bf = fi->bf; in ath_tx_set_retry() local
407 dma_sync_single_for_device(sc->dev, bf->bf_buf_addr, in ath_tx_set_retry()
413 struct ath_buf *bf = NULL; in ath_tx_get_buffer() local
422 bf = list_first_entry(&sc->tx.txbuf, struct ath_buf, list); in ath_tx_get_buffer()
423 list_del(&bf->list); in ath_tx_get_buffer()
427 return bf; in ath_tx_get_buffer()
430 static void ath_tx_return_buffer(struct ath_softc *sc, struct ath_buf *bf) in ath_tx_return_buffer() argument
433 list_add_tail(&bf->list, &sc->tx.txbuf); in ath_tx_return_buffer()
437 static struct ath_buf* ath_clone_txbuf(struct ath_softc *sc, struct ath_buf *bf) in ath_clone_txbuf() argument
447 tbf->bf_mpdu = bf->bf_mpdu; in ath_clone_txbuf()
448 tbf->bf_buf_addr = bf->bf_buf_addr; in ath_clone_txbuf()
449 memcpy(tbf->bf_desc, bf->bf_desc, sc->sc_ah->caps.tx_desc_len); in ath_clone_txbuf()
450 tbf->bf_state = bf->bf_state; in ath_clone_txbuf()
456 static void ath_tx_count_frames(struct ath_softc *sc, struct ath_buf *bf, in ath_tx_count_frames() argument
468 isaggr = bf_isaggr(bf); in ath_tx_count_frames()
476 while (bf) { in ath_tx_count_frames()
477 ba_index = ATH_BA_INDEX(seq_st, bf->bf_state.seqno); in ath_tx_count_frames()
483 bf = bf->bf_next; in ath_tx_count_frames()
489 struct ath_buf *bf, struct list_head *bf_q, in ath_tx_complete_aggr() argument
497 struct ath_buf *bf_next, *bf_last = bf->bf_lastbf; in ath_tx_complete_aggr()
511 skb = bf->bf_mpdu; in ath_tx_complete_aggr()
514 memcpy(rates, bf->rates, sizeof(rates)); in ath_tx_complete_aggr()
522 while (bf) { in ath_tx_complete_aggr()
523 bf_next = bf->bf_next; in ath_tx_complete_aggr()
525 if (!bf->bf_state.stale || bf_next != NULL) in ath_tx_complete_aggr()
526 list_move_tail(&bf->list, &bf_head); in ath_tx_complete_aggr()
528 ath_tx_complete_buf(sc, bf, txq, &bf_head, NULL, ts, 0); in ath_tx_complete_aggr()
530 bf = bf_next; in ath_tx_complete_aggr()
550 isaggr = bf_isaggr(bf); in ath_tx_complete_aggr()
572 ath_tx_count_frames(sc, bf, ts, txok, &nframes, &nbad); in ath_tx_complete_aggr()
573 while (bf) { in ath_tx_complete_aggr()
574 u16 seqno = bf->bf_state.seqno; in ath_tx_complete_aggr()
577 bf_next = bf->bf_next; in ath_tx_complete_aggr()
579 skb = bf->bf_mpdu; in ath_tx_complete_aggr()
601 ath_tx_set_retry(sc, txq, bf->bf_mpdu, in ath_tx_complete_aggr()
618 list_move_tail(&bf->list, &bf_head); in ath_tx_complete_aggr()
625 ath_tx_update_baw(sc, tid, bf); in ath_tx_complete_aggr()
629 ath_tx_rc_status(sc, bf, ts, nframes, nbad, txok); in ath_tx_complete_aggr()
631 if (bf == bf->bf_lastbf) in ath_tx_complete_aggr()
633 bf->bf_mpdu, in ath_tx_complete_aggr()
637 ath_tx_complete_buf(sc, bf, txq, &bf_head, sta, ts, in ath_tx_complete_aggr()
645 if (bf->bf_next == NULL && bf_last->bf_state.stale) { in ath_tx_complete_aggr()
655 ath_tx_update_baw(sc, tid, bf); in ath_tx_complete_aggr()
657 ath_tx_complete_buf(sc, bf, txq, in ath_tx_complete_aggr()
665 fi->bf = tbf; in ath_tx_complete_aggr()
675 bf = bf_next; in ath_tx_complete_aggr()
706 static bool bf_is_ampdu_not_probing(struct ath_buf *bf) in bf_is_ampdu_not_probing() argument
708 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(bf->bf_mpdu); in bf_is_ampdu_not_probing()
709 return bf_isampdu(bf) && !(info->flags & IEEE80211_TX_CTL_RATE_CTRL_PROBE); in bf_is_ampdu_not_probing()
714 struct ath_buf *bf, in ath_tx_count_airtime() argument
723 int rate_dur = ath9k_hw_get_duration(sc->sc_ah, bf->bf_desc, i); in ath_tx_count_airtime()
724 airtime += rate_dur * bf->rates[i].count; in ath_tx_count_airtime()
731 struct ath_tx_status *ts, struct ath_buf *bf, in ath_tx_process_buffer() argument
746 if (bf_is_ampdu_not_probing(bf)) in ath_tx_process_buffer()
749 ts->duration = ath9k_hw_get_duration(sc->sc_ah, bf->bf_desc, in ath_tx_process_buffer()
752 hdr = (struct ieee80211_hdr *) bf->bf_mpdu->data; in ath_tx_process_buffer()
756 tid = ath_get_skb_tid(sc, an, bf->bf_mpdu); in ath_tx_process_buffer()
757 ath_tx_count_airtime(sc, sta, bf, ts, tid->tidno); in ath_tx_process_buffer()
762 if (!bf_isampdu(bf)) { in ath_tx_process_buffer()
764 info = IEEE80211_SKB_CB(bf->bf_mpdu); in ath_tx_process_buffer()
765 memcpy(info->control.rates, bf->rates, in ath_tx_process_buffer()
767 ath_tx_rc_status(sc, bf, ts, 1, txok ? 0 : 1, txok); in ath_tx_process_buffer()
768 ath_dynack_sample_tx_ts(sc->sc_ah, bf->bf_mpdu, ts, in ath_tx_process_buffer()
771 ath_tx_complete_buf(sc, bf, txq, bf_head, sta, ts, txok); in ath_tx_process_buffer()
773 ath_tx_complete_aggr(sc, txq, bf, bf_head, sta, tid, ts, txok); in ath_tx_process_buffer()
779 static bool ath_lookup_legacy(struct ath_buf *bf) in ath_lookup_legacy() argument
786 skb = bf->bf_mpdu; in ath_lookup_legacy()
801 static u32 ath_lookup_rate(struct ath_softc *sc, struct ath_buf *bf, in ath_lookup_rate() argument
812 skb = bf->bf_mpdu; in ath_lookup_rate()
814 rates = bf->rates; in ath_lookup_rate()
873 struct ath_buf *bf, u16 frmlen, in ath_compute_num_delims() argument
881 struct ath_frame_info *fi = get_frame_info(bf->bf_mpdu); in ath_compute_num_delims()
917 rix = bf->rates[0].idx; in ath_compute_num_delims()
918 flags = bf->rates[0].flags; in ath_compute_num_delims()
948 struct ath_buf *bf; in ath_tx_get_tid_subframe() local
959 bf = fi->bf; in ath_tx_get_tid_subframe()
960 if (!fi->bf) in ath_tx_get_tid_subframe()
961 bf = ath_tx_setup_buffer(sc, txq, tid, skb); in ath_tx_get_tid_subframe()
963 bf->bf_state.stale = false; in ath_tx_get_tid_subframe()
965 if (!bf) { in ath_tx_get_tid_subframe()
971 bf->bf_next = NULL; in ath_tx_get_tid_subframe()
972 bf->bf_lastbf = bf; in ath_tx_get_tid_subframe()
987 bf->bf_state.bf_type = 0; in ath_tx_get_tid_subframe()
991 bf->bf_state.bf_type = BUF_AMPDU | BUF_AGGR; in ath_tx_get_tid_subframe()
992 seqno = bf->bf_state.seqno; in ath_tx_get_tid_subframe()
1015 list_add(&bf->list, &bf_head); in ath_tx_get_tid_subframe()
1016 ath_tx_update_baw(sc, tid, bf); in ath_tx_get_tid_subframe()
1017 ath_tx_complete_buf(sc, bf, txq, &bf_head, NULL, &ts, 0); in ath_tx_get_tid_subframe()
1021 if (bf_isampdu(bf)) in ath_tx_get_tid_subframe()
1022 ath_tx_addto_baw(sc, tid, bf); in ath_tx_get_tid_subframe()
1027 *buf = bf; in ath_tx_get_tid_subframe()
1037 struct ath_buf *bf = bf_first, *bf_prev = NULL; in ath_tx_form_aggr() local
1046 bf = bf_first; in ath_tx_form_aggr()
1047 aggr_limit = ath_lookup_rate(sc, bf, tid); in ath_tx_form_aggr()
1049 while (bf) in ath_tx_form_aggr()
1051 skb = bf->bf_mpdu; in ath_tx_form_aggr()
1058 ath_lookup_legacy(bf) || nframes >= h_baw) in ath_tx_form_aggr()
1061 tx_info = IEEE80211_SKB_CB(bf->bf_mpdu); in ath_tx_form_aggr()
1079 bf->bf_next = NULL; in ath_tx_form_aggr()
1082 bf->bf_state.ndelim = ndelim; in ath_tx_form_aggr()
1084 list_add_tail(&bf->list, bf_q); in ath_tx_form_aggr()
1086 bf_prev->bf_next = bf; in ath_tx_form_aggr()
1088 bf_prev = bf; in ath_tx_form_aggr()
1090 ret = ath_tx_get_tid_subframe(sc, txq, tid, &bf); in ath_tx_form_aggr()
1096 __skb_queue_tail(&tid->retry_q, bf->bf_mpdu); in ath_tx_form_aggr()
1098 bf = bf_first; in ath_tx_form_aggr()
1099 bf->bf_lastbf = bf_prev; in ath_tx_form_aggr()
1101 if (bf == bf_prev) { in ath_tx_form_aggr()
1102 al = get_frame_info(bf->bf_mpdu)->framelen; in ath_tx_form_aggr()
1103 bf->bf_state.bf_type = BUF_AMPDU; in ath_tx_form_aggr()
1179 static u8 ath_get_rate_txpower(struct ath_softc *sc, struct ath_buf *bf, in ath_get_rate_txpower() argument
1192 skb = bf->bf_mpdu; in ath_get_rate_txpower()
1251 } else if (!bf->bf_state.bfs_paprd) { in ath_get_rate_txpower()
1265 static void ath_buf_set_rate(struct ath_softc *sc, struct ath_buf *bf, in ath_buf_set_rate() argument
1275 struct ath_frame_info *fi = get_frame_info(bf->bf_mpdu); in ath_buf_set_rate()
1280 skb = bf->bf_mpdu; in ath_buf_set_rate()
1282 rates = bf->rates; in ath_buf_set_rate()
1289 for (i = 0; i < ARRAY_SIZE(bf->rates); i++) { in ath_buf_set_rate()
1302 if (bf_isampdu(bf) && !bf_isaggr(bf) && in ath_buf_set_rate()
1341 info->txpower[i] = ath_get_rate_txpower(sc, bf, rix, in ath_buf_set_rate()
1362 if (bf->bf_state.bfs_paprd) in ath_buf_set_rate()
1372 info->txpower[i] = ath_get_rate_txpower(sc, bf, rix, false, in ath_buf_set_rate()
1377 if (bf_isaggr(bf) && (len > sc->sc_ah->caps.rts_aggr_limit)) in ath_buf_set_rate()
1408 static void ath_tx_fill_desc(struct ath_softc *sc, struct ath_buf *bf, in ath_tx_fill_desc() argument
1422 while (bf) { in ath_tx_fill_desc()
1423 struct sk_buff *skb = bf->bf_mpdu; in ath_tx_fill_desc()
1426 bool aggr = !!(bf->bf_state.bf_type & BUF_AGGR); in ath_tx_fill_desc()
1429 if (bf->bf_next) in ath_tx_fill_desc()
1430 info.link = bf->bf_next->bf_daddr; in ath_tx_fill_desc()
1432 info.link = (sc->tx99_state) ? bf->bf_daddr : 0; in ath_tx_fill_desc()
1435 bf_first = bf; in ath_tx_fill_desc()
1448 if (bf->bf_state.bfs_paprd) in ath_tx_fill_desc()
1449 info.flags |= (u32) bf->bf_state.bfs_paprd << in ath_tx_fill_desc()
1459 if (aggr && (bf == bf_first) && in ath_tx_fill_desc()
1471 ath_buf_set_rate(sc, bf, &info, len, rts); in ath_tx_fill_desc()
1474 info.buf_addr[0] = bf->bf_buf_addr; in ath_tx_fill_desc()
1481 if (bf == bf_first) in ath_tx_fill_desc()
1483 else if (bf == bf_first->bf_lastbf) in ath_tx_fill_desc()
1488 info.ndelim = bf->bf_state.ndelim; in ath_tx_fill_desc()
1492 if (bf == bf_first->bf_lastbf) in ath_tx_fill_desc()
1495 ath9k_hw_set_txdesc(ah, bf->bf_desc, &info); in ath_tx_fill_desc()
1496 bf = bf->bf_next; in ath_tx_fill_desc()
1505 struct ath_buf *bf = bf_first, *bf_prev = NULL; in ath_tx_form_burst() local
1512 list_add_tail(&bf->list, bf_q); in ath_tx_form_burst()
1514 bf_prev->bf_next = bf; in ath_tx_form_burst()
1515 bf_prev = bf; in ath_tx_form_burst()
1520 ret = ath_tx_get_tid_subframe(sc, txq, tid, &bf); in ath_tx_form_burst()
1524 tx_info = IEEE80211_SKB_CB(bf->bf_mpdu); in ath_tx_form_burst()
1526 __skb_queue_tail(&tid->retry_q, bf->bf_mpdu); in ath_tx_form_burst()
1530 ath_set_rates(tid->an->vif, tid->an->sta, bf); in ath_tx_form_burst()
1537 struct ath_buf *bf = NULL; in ath_tx_sched_aggr() local
1545 ret = ath_tx_get_tid_subframe(sc, txq, tid, &bf); in ath_tx_sched_aggr()
1549 tx_info = IEEE80211_SKB_CB(bf->bf_mpdu); in ath_tx_sched_aggr()
1553 __skb_queue_tail(&tid->retry_q, bf->bf_mpdu); in ath_tx_sched_aggr()
1557 ath_set_rates(tid->an->vif, tid->an->sta, bf); in ath_tx_sched_aggr()
1559 aggr_len = ath_tx_form_aggr(sc, txq, tid, &bf_q, bf); in ath_tx_sched_aggr()
1561 ath_tx_form_burst(sc, txq, tid, &bf_q, bf); in ath_tx_sched_aggr()
1571 ath_tx_fill_desc(sc, bf, txq, aggr_len); in ath_tx_sched_aggr()
1675 ath9k_set_moredata(struct ath_softc *sc, struct ath_buf *bf, bool val) in ath9k_set_moredata() argument
1681 hdr = (struct ieee80211_hdr *) bf->bf_mpdu->data; in ath9k_set_moredata()
1684 dma_sync_single_for_device(sc->dev, bf->bf_buf_addr, in ath9k_set_moredata()
1700 struct ath_buf *bf_tail = NULL, *bf = NULL; in ath9k_release_buffered_frames() local
1715 tid, &bf); in ath9k_release_buffered_frames()
1719 ath9k_set_moredata(sc, bf, true); in ath9k_release_buffered_frames()
1720 list_add_tail(&bf->list, &bf_q); in ath9k_release_buffered_frames()
1721 ath_set_rates(tid->an->vif, tid->an->sta, bf); in ath9k_release_buffered_frames()
1722 if (bf_isampdu(bf)) in ath9k_release_buffered_frames()
1723 bf->bf_state.bf_type &= ~BUF_AGGR; in ath9k_release_buffered_frames()
1725 bf_tail->bf_next = bf; in ath9k_release_buffered_frames()
1727 bf_tail = bf; in ath9k_release_buffered_frames()
1746 bf = list_first_entry(&bf_q, struct ath_buf, list); in ath9k_release_buffered_frames()
1748 ath_tx_fill_desc(sc, bf, txq, 0); in ath9k_release_buffered_frames()
1874 struct ath_buf *bf, *lastbf; in ath_drain_txq_list() local
1883 bf = list_first_entry(list, struct ath_buf, list); in ath_drain_txq_list()
1885 if (bf->bf_state.stale) { in ath_drain_txq_list()
1886 list_del(&bf->list); in ath_drain_txq_list()
1888 ath_tx_return_buffer(sc, bf); in ath_drain_txq_list()
1892 lastbf = bf->bf_lastbf; in ath_drain_txq_list()
1894 ath_tx_process_buffer(sc, txq, &ts, bf, &bf_head); in ath_drain_txq_list()
2045 struct ath_buf *bf, *bf_last; in ath_tx_txqaddbuf() local
2058 bf = list_first_entry(head, struct ath_buf, list); in ath_tx_txqaddbuf()
2072 ath9k_hw_set_desc_link(ah, txq->axq_link, bf->bf_daddr); in ath_tx_txqaddbuf()
2075 ito64(bf->bf_daddr), bf->bf_desc); in ath_tx_txqaddbuf()
2084 ath9k_hw_puttxbuf(ah, txq->axq_qnum, bf->bf_daddr); in ath_tx_txqaddbuf()
2086 txq->axq_qnum, ito64(bf->bf_daddr), bf->bf_desc); in ath_tx_txqaddbuf()
2095 while (bf) { in ath_tx_txqaddbuf()
2097 if (bf_is_ampdu_not_probing(bf)) in ath_tx_txqaddbuf()
2100 bf_last = bf->bf_lastbf; in ath_tx_txqaddbuf()
2101 bf = bf_last->bf_next; in ath_tx_txqaddbuf()
2113 struct ath_buf *bf = fi->bf; in ath_tx_send_normal() local
2116 list_add_tail(&bf->list, &bf_head); in ath_tx_send_normal()
2117 bf->bf_state.bf_type = 0; in ath_tx_send_normal()
2119 bf->bf_state.bf_type = BUF_AMPDU; in ath_tx_send_normal()
2120 ath_tx_addto_baw(sc, tid, bf); in ath_tx_send_normal()
2123 bf->bf_next = NULL; in ath_tx_send_normal()
2124 bf->bf_lastbf = bf; in ath_tx_send_normal()
2125 ath_tx_fill_desc(sc, bf, txq, fi->framelen); in ath_tx_send_normal()
2220 struct ath_buf *bf; in ath_tx_setup_buffer() local
2224 bf = ath_tx_get_buffer(sc); in ath_tx_setup_buffer()
2225 if (!bf) { in ath_tx_setup_buffer()
2230 ATH_TXBUF_RESET(bf); in ath_tx_setup_buffer()
2243 bf->bf_state.seqno = seqno; in ath_tx_setup_buffer()
2246 bf->bf_mpdu = skb; in ath_tx_setup_buffer()
2248 bf->bf_buf_addr = dma_map_single(sc->dev, skb->data, in ath_tx_setup_buffer()
2250 if (unlikely(dma_mapping_error(sc->dev, bf->bf_buf_addr))) { in ath_tx_setup_buffer()
2251 bf->bf_mpdu = NULL; in ath_tx_setup_buffer()
2252 bf->bf_buf_addr = 0; in ath_tx_setup_buffer()
2255 ath_tx_return_buffer(sc, bf); in ath_tx_setup_buffer()
2259 fi->bf = bf; in ath_tx_setup_buffer()
2261 return bf; in ath_tx_setup_buffer()
2344 struct ath_buf *bf; in ath_tx_start() local
2375 bf = ath_tx_setup_buffer(sc, txq, tid, skb); in ath_tx_start()
2376 if (!bf) { in ath_tx_start()
2385 bf->bf_state.bfs_paprd = txctl->paprd; in ath_tx_start()
2388 bf->bf_state.bfs_paprd_timestamp = jiffies; in ath_tx_start()
2390 ath_set_rates(vif, sta, bf); in ath_tx_start()
2408 struct ath_buf *bf; in ath_tx_cabq() local
2423 bf = ath_tx_setup_buffer(sc, txctl.txq, NULL, skb); in ath_tx_cabq()
2424 if (!bf) in ath_tx_cabq()
2427 bf->bf_lastbf = bf; in ath_tx_cabq()
2428 ath_set_rates(vif, NULL, bf); in ath_tx_cabq()
2429 ath_buf_set_rate(sc, bf, &info, fi->framelen, false); in ath_tx_cabq()
2432 bf_tail->bf_next = bf; in ath_tx_cabq()
2434 list_add_tail(&bf->list, &bf_q); in ath_tx_cabq()
2435 bf_tail = bf; in ath_tx_cabq()
2450 bf = list_last_entry(&bf_q, struct ath_buf, list); in ath_tx_cabq()
2451 ath9k_set_moredata(sc, bf, false); in ath_tx_cabq()
2453 bf = list_first_entry(&bf_q, struct ath_buf, list); in ath_tx_cabq()
2455 ath_tx_fill_desc(sc, bf, txctl.txq, 0); in ath_tx_cabq()
2517 static void ath_tx_complete_buf(struct ath_softc *sc, struct ath_buf *bf, in ath_tx_complete_buf() argument
2522 struct sk_buff *skb = bf->bf_mpdu; in ath_tx_complete_buf()
2533 dma_unmap_single(sc->dev, bf->bf_buf_addr, skb->len, DMA_TO_DEVICE); in ath_tx_complete_buf()
2534 bf->bf_buf_addr = 0; in ath_tx_complete_buf()
2538 if (bf->bf_state.bfs_paprd) { in ath_tx_complete_buf()
2540 bf->bf_state.bfs_paprd_timestamp + in ath_tx_complete_buf()
2546 ath_debug_stat_tx(sc, bf, ts, txq, tx_flags); in ath_tx_complete_buf()
2553 bf->bf_mpdu = NULL; in ath_tx_complete_buf()
2573 static void ath_tx_rc_status(struct ath_softc *sc, struct ath_buf *bf, in ath_tx_rc_status() argument
2577 struct sk_buff *skb = bf->bf_mpdu; in ath_tx_rc_status()
2634 struct ath_buf *bf, *lastbf, *bf_held = NULL; in ath_tx_processq() local
2654 bf = list_first_entry(&txq->axq_q, struct ath_buf, list); in ath_tx_processq()
2665 if (bf->bf_state.stale) { in ath_tx_processq()
2666 bf_held = bf; in ath_tx_processq()
2670 bf = list_entry(bf_held->list.next, struct ath_buf, in ath_tx_processq()
2674 lastbf = bf->bf_lastbf; in ath_tx_processq()
2700 ath_tx_process_buffer(sc, txq, &ts, bf, &bf_head); in ath_tx_processq()
2725 struct ath_buf *bf, *lastbf; in ath_tx_edma_tasklet() local
2769 bf = list_first_entry(fifo_list, struct ath_buf, list); in ath_tx_edma_tasklet()
2770 if (bf->bf_state.stale) { in ath_tx_edma_tasklet()
2771 list_del(&bf->list); in ath_tx_edma_tasklet()
2772 ath_tx_return_buffer(sc, bf); in ath_tx_edma_tasklet()
2773 bf = list_first_entry(fifo_list, struct ath_buf, list); in ath_tx_edma_tasklet()
2776 lastbf = bf->bf_lastbf; in ath_tx_edma_tasklet()
2793 if (bf != lastbf) in ath_tx_edma_tasklet()
2798 ath_tx_process_buffer(sc, txq, &ts, bf, &bf_head); in ath_tx_edma_tasklet()
2925 struct ath_buf *bf; in ath9k_tx99_send() local
2946 bf = ath_tx_setup_buffer(sc, txctl->txq, NULL, skb); in ath9k_tx99_send()
2947 if (!bf) { in ath9k_tx99_send()
2952 ath_set_rates(sc->tx99_vif, NULL, bf); in ath9k_tx99_send()
2954 ath9k_hw_set_desc_link(sc->sc_ah, bf->bf_desc, bf->bf_daddr); in ath9k_tx99_send()