Lines Matching refs:bf
55 static void ath_tx_complete_buf(struct ath_softc *sc, struct ath_buf *bf,
61 static void ath_tx_rc_status(struct ath_softc *sc, struct ath_buf *bf,
65 struct ath_buf *bf);
158 struct ath_buf *bf) in ath_set_rates() argument
160 ieee80211_get_tx_rates(vif, sta, bf->bf_mpdu, bf->rates, in ath_set_rates()
161 ARRAY_SIZE(bf->rates)); in ath_set_rates()
236 struct ath_buf *bf; in ath_tx_flush_tid() local
248 bf = fi->bf; in ath_tx_flush_tid()
249 if (!bf) { in ath_tx_flush_tid()
256 ath_tx_update_baw(sc, tid, bf); in ath_tx_flush_tid()
260 list_add_tail(&bf->list, &bf_head); in ath_tx_flush_tid()
261 ath_tx_complete_buf(sc, bf, txq, &bf_head, NULL, &ts, 0); in ath_tx_flush_tid()
272 struct ath_buf *bf) in ath_tx_update_baw() argument
274 struct ath_frame_info *fi = get_frame_info(bf->bf_mpdu); in ath_tx_update_baw()
275 u16 seqno = bf->bf_state.seqno; in ath_tx_update_baw()
295 struct ath_buf *bf) in ath_tx_addto_baw() argument
297 struct ath_frame_info *fi = get_frame_info(bf->bf_mpdu); in ath_tx_addto_baw()
298 u16 seqno = bf->bf_state.seqno; in ath_tx_addto_baw()
321 struct ath_buf *bf; in ath_tid_drain() local
332 bf = fi->bf; in ath_tid_drain()
334 if (!bf) { in ath_tid_drain()
339 list_add_tail(&bf->list, &bf_head); in ath_tid_drain()
340 ath_tx_complete_buf(sc, bf, txq, &bf_head, NULL, &ts, 0); in ath_tid_drain()
348 struct ath_buf *bf = fi->bf; in ath_tx_set_retry() local
360 dma_sync_single_for_device(sc->dev, bf->bf_buf_addr, in ath_tx_set_retry()
366 struct ath_buf *bf = NULL; in ath_tx_get_buffer() local
375 bf = list_first_entry(&sc->tx.txbuf, struct ath_buf, list); in ath_tx_get_buffer()
376 list_del(&bf->list); in ath_tx_get_buffer()
380 return bf; in ath_tx_get_buffer()
383 static void ath_tx_return_buffer(struct ath_softc *sc, struct ath_buf *bf) in ath_tx_return_buffer() argument
386 list_add_tail(&bf->list, &sc->tx.txbuf); in ath_tx_return_buffer()
390 static struct ath_buf* ath_clone_txbuf(struct ath_softc *sc, struct ath_buf *bf) in ath_clone_txbuf() argument
400 tbf->bf_mpdu = bf->bf_mpdu; in ath_clone_txbuf()
401 tbf->bf_buf_addr = bf->bf_buf_addr; in ath_clone_txbuf()
402 memcpy(tbf->bf_desc, bf->bf_desc, sc->sc_ah->caps.tx_desc_len); in ath_clone_txbuf()
403 tbf->bf_state = bf->bf_state; in ath_clone_txbuf()
409 static void ath_tx_count_frames(struct ath_softc *sc, struct ath_buf *bf, in ath_tx_count_frames() argument
421 isaggr = bf_isaggr(bf); in ath_tx_count_frames()
427 while (bf) { in ath_tx_count_frames()
428 ba_index = ATH_BA_INDEX(seq_st, bf->bf_state.seqno); in ath_tx_count_frames()
434 bf = bf->bf_next; in ath_tx_count_frames()
440 struct ath_buf *bf, struct list_head *bf_q, in ath_tx_complete_aggr() argument
448 struct ath_buf *bf_next, *bf_last = bf->bf_lastbf; in ath_tx_complete_aggr()
462 skb = bf->bf_mpdu; in ath_tx_complete_aggr()
465 memcpy(rates, bf->rates, sizeof(rates)); in ath_tx_complete_aggr()
473 while (bf) { in ath_tx_complete_aggr()
474 bf_next = bf->bf_next; in ath_tx_complete_aggr()
476 if (!bf->bf_state.stale || bf_next != NULL) in ath_tx_complete_aggr()
477 list_move_tail(&bf->list, &bf_head); in ath_tx_complete_aggr()
479 ath_tx_complete_buf(sc, bf, txq, &bf_head, NULL, ts, 0); in ath_tx_complete_aggr()
481 bf = bf_next; in ath_tx_complete_aggr()
501 isaggr = bf_isaggr(bf); in ath_tx_complete_aggr()
523 ath_tx_count_frames(sc, bf, ts, txok, &nframes, &nbad); in ath_tx_complete_aggr()
524 while (bf) { in ath_tx_complete_aggr()
525 u16 seqno = bf->bf_state.seqno; in ath_tx_complete_aggr()
528 bf_next = bf->bf_next; in ath_tx_complete_aggr()
530 skb = bf->bf_mpdu; in ath_tx_complete_aggr()
552 ath_tx_set_retry(sc, txq, bf->bf_mpdu, in ath_tx_complete_aggr()
569 list_move_tail(&bf->list, &bf_head); in ath_tx_complete_aggr()
576 ath_tx_update_baw(sc, tid, bf); in ath_tx_complete_aggr()
580 ath_tx_rc_status(sc, bf, ts, nframes, nbad, txok); in ath_tx_complete_aggr()
582 if (bf == bf->bf_lastbf) in ath_tx_complete_aggr()
584 bf->bf_mpdu, in ath_tx_complete_aggr()
588 ath_tx_complete_buf(sc, bf, txq, &bf_head, sta, ts, in ath_tx_complete_aggr()
596 if (bf->bf_next == NULL && bf_last->bf_state.stale) { in ath_tx_complete_aggr()
606 ath_tx_update_baw(sc, tid, bf); in ath_tx_complete_aggr()
608 ath_tx_complete_buf(sc, bf, txq, in ath_tx_complete_aggr()
616 fi->bf = tbf; in ath_tx_complete_aggr()
626 bf = bf_next; in ath_tx_complete_aggr()
657 static bool bf_is_ampdu_not_probing(struct ath_buf *bf) in bf_is_ampdu_not_probing() argument
659 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(bf->bf_mpdu); in bf_is_ampdu_not_probing()
660 return bf_isampdu(bf) && !(info->flags & IEEE80211_TX_CTL_RATE_CTRL_PROBE); in bf_is_ampdu_not_probing()
665 struct ath_buf *bf, in ath_tx_count_airtime() argument
674 int rate_dur = ath9k_hw_get_duration(sc->sc_ah, bf->bf_desc, i); in ath_tx_count_airtime()
675 airtime += rate_dur * bf->rates[i].count; in ath_tx_count_airtime()
682 struct ath_tx_status *ts, struct ath_buf *bf, in ath_tx_process_buffer() argument
697 if (bf_is_ampdu_not_probing(bf)) in ath_tx_process_buffer()
700 ts->duration = ath9k_hw_get_duration(sc->sc_ah, bf->bf_desc, in ath_tx_process_buffer()
703 hdr = (struct ieee80211_hdr *) bf->bf_mpdu->data; in ath_tx_process_buffer()
707 tid = ath_get_skb_tid(sc, an, bf->bf_mpdu); in ath_tx_process_buffer()
708 ath_tx_count_airtime(sc, sta, bf, ts, tid->tidno); in ath_tx_process_buffer()
713 if (!bf_isampdu(bf)) { in ath_tx_process_buffer()
715 info = IEEE80211_SKB_CB(bf->bf_mpdu); in ath_tx_process_buffer()
716 memcpy(info->control.rates, bf->rates, in ath_tx_process_buffer()
718 ath_tx_rc_status(sc, bf, ts, 1, txok ? 0 : 1, txok); in ath_tx_process_buffer()
719 ath_dynack_sample_tx_ts(sc->sc_ah, bf->bf_mpdu, ts, in ath_tx_process_buffer()
722 ath_tx_complete_buf(sc, bf, txq, bf_head, sta, ts, txok); in ath_tx_process_buffer()
724 ath_tx_complete_aggr(sc, txq, bf, bf_head, sta, tid, ts, txok); in ath_tx_process_buffer()
730 static bool ath_lookup_legacy(struct ath_buf *bf) in ath_lookup_legacy() argument
737 skb = bf->bf_mpdu; in ath_lookup_legacy()
752 static u32 ath_lookup_rate(struct ath_softc *sc, struct ath_buf *bf, in ath_lookup_rate() argument
763 skb = bf->bf_mpdu; in ath_lookup_rate()
765 rates = bf->rates; in ath_lookup_rate()
824 struct ath_buf *bf, u16 frmlen, in ath_compute_num_delims() argument
832 struct ath_frame_info *fi = get_frame_info(bf->bf_mpdu); in ath_compute_num_delims()
868 rix = bf->rates[0].idx; in ath_compute_num_delims()
869 flags = bf->rates[0].flags; in ath_compute_num_delims()
899 struct ath_buf *bf; in ath_tx_get_tid_subframe() local
910 bf = fi->bf; in ath_tx_get_tid_subframe()
911 if (!fi->bf) in ath_tx_get_tid_subframe()
912 bf = ath_tx_setup_buffer(sc, txq, tid, skb); in ath_tx_get_tid_subframe()
914 bf->bf_state.stale = false; in ath_tx_get_tid_subframe()
916 if (!bf) { in ath_tx_get_tid_subframe()
922 bf->bf_next = NULL; in ath_tx_get_tid_subframe()
923 bf->bf_lastbf = bf; in ath_tx_get_tid_subframe()
938 bf->bf_state.bf_type = 0; in ath_tx_get_tid_subframe()
942 bf->bf_state.bf_type = BUF_AMPDU | BUF_AGGR; in ath_tx_get_tid_subframe()
943 seqno = bf->bf_state.seqno; in ath_tx_get_tid_subframe()
966 list_add(&bf->list, &bf_head); in ath_tx_get_tid_subframe()
967 ath_tx_update_baw(sc, tid, bf); in ath_tx_get_tid_subframe()
968 ath_tx_complete_buf(sc, bf, txq, &bf_head, NULL, &ts, 0); in ath_tx_get_tid_subframe()
972 if (bf_isampdu(bf)) in ath_tx_get_tid_subframe()
973 ath_tx_addto_baw(sc, tid, bf); in ath_tx_get_tid_subframe()
978 *buf = bf; in ath_tx_get_tid_subframe()
988 struct ath_buf *bf = bf_first, *bf_prev = NULL; in ath_tx_form_aggr() local
997 bf = bf_first; in ath_tx_form_aggr()
998 aggr_limit = ath_lookup_rate(sc, bf, tid); in ath_tx_form_aggr()
1000 while (bf) in ath_tx_form_aggr()
1002 skb = bf->bf_mpdu; in ath_tx_form_aggr()
1009 ath_lookup_legacy(bf) || nframes >= h_baw) in ath_tx_form_aggr()
1012 tx_info = IEEE80211_SKB_CB(bf->bf_mpdu); in ath_tx_form_aggr()
1030 bf->bf_next = NULL; in ath_tx_form_aggr()
1033 bf->bf_state.ndelim = ndelim; in ath_tx_form_aggr()
1035 list_add_tail(&bf->list, bf_q); in ath_tx_form_aggr()
1037 bf_prev->bf_next = bf; in ath_tx_form_aggr()
1039 bf_prev = bf; in ath_tx_form_aggr()
1041 ret = ath_tx_get_tid_subframe(sc, txq, tid, &bf); in ath_tx_form_aggr()
1047 __skb_queue_tail(&tid->retry_q, bf->bf_mpdu); in ath_tx_form_aggr()
1049 bf = bf_first; in ath_tx_form_aggr()
1050 bf->bf_lastbf = bf_prev; in ath_tx_form_aggr()
1052 if (bf == bf_prev) { in ath_tx_form_aggr()
1053 al = get_frame_info(bf->bf_mpdu)->framelen; in ath_tx_form_aggr()
1054 bf->bf_state.bf_type = BUF_AMPDU; in ath_tx_form_aggr()
1130 static u8 ath_get_rate_txpower(struct ath_softc *sc, struct ath_buf *bf, in ath_get_rate_txpower() argument
1142 skb = bf->bf_mpdu; in ath_get_rate_txpower()
1190 } else if (!bf->bf_state.bfs_paprd) { in ath_get_rate_txpower()
1204 static void ath_buf_set_rate(struct ath_softc *sc, struct ath_buf *bf, in ath_buf_set_rate() argument
1214 struct ath_frame_info *fi = get_frame_info(bf->bf_mpdu); in ath_buf_set_rate()
1219 skb = bf->bf_mpdu; in ath_buf_set_rate()
1221 rates = bf->rates; in ath_buf_set_rate()
1228 for (i = 0; i < ARRAY_SIZE(bf->rates); i++) { in ath_buf_set_rate()
1241 if (bf_isampdu(bf) && !bf_isaggr(bf) && in ath_buf_set_rate()
1275 info->txpower[i] = ath_get_rate_txpower(sc, bf, rix, in ath_buf_set_rate()
1296 if (bf->bf_state.bfs_paprd) in ath_buf_set_rate()
1306 info->txpower[i] = ath_get_rate_txpower(sc, bf, rix, false, in ath_buf_set_rate()
1311 if (bf_isaggr(bf) && (len > sc->sc_ah->caps.rts_aggr_limit)) in ath_buf_set_rate()
1342 static void ath_tx_fill_desc(struct ath_softc *sc, struct ath_buf *bf, in ath_tx_fill_desc() argument
1356 while (bf) { in ath_tx_fill_desc()
1357 struct sk_buff *skb = bf->bf_mpdu; in ath_tx_fill_desc()
1360 bool aggr = !!(bf->bf_state.bf_type & BUF_AGGR); in ath_tx_fill_desc()
1363 if (bf->bf_next) in ath_tx_fill_desc()
1364 info.link = bf->bf_next->bf_daddr; in ath_tx_fill_desc()
1366 info.link = (sc->tx99_state) ? bf->bf_daddr : 0; in ath_tx_fill_desc()
1369 bf_first = bf; in ath_tx_fill_desc()
1382 if (bf->bf_state.bfs_paprd) in ath_tx_fill_desc()
1383 info.flags |= (u32) bf->bf_state.bfs_paprd << in ath_tx_fill_desc()
1393 if (aggr && (bf == bf_first) && in ath_tx_fill_desc()
1405 ath_buf_set_rate(sc, bf, &info, len, rts); in ath_tx_fill_desc()
1408 info.buf_addr[0] = bf->bf_buf_addr; in ath_tx_fill_desc()
1415 if (bf == bf_first) in ath_tx_fill_desc()
1417 else if (bf == bf_first->bf_lastbf) in ath_tx_fill_desc()
1422 info.ndelim = bf->bf_state.ndelim; in ath_tx_fill_desc()
1426 if (bf == bf_first->bf_lastbf) in ath_tx_fill_desc()
1429 ath9k_hw_set_txdesc(ah, bf->bf_desc, &info); in ath_tx_fill_desc()
1430 bf = bf->bf_next; in ath_tx_fill_desc()
1439 struct ath_buf *bf = bf_first, *bf_prev = NULL; in ath_tx_form_burst() local
1446 list_add_tail(&bf->list, bf_q); in ath_tx_form_burst()
1448 bf_prev->bf_next = bf; in ath_tx_form_burst()
1449 bf_prev = bf; in ath_tx_form_burst()
1454 ret = ath_tx_get_tid_subframe(sc, txq, tid, &bf); in ath_tx_form_burst()
1458 tx_info = IEEE80211_SKB_CB(bf->bf_mpdu); in ath_tx_form_burst()
1460 __skb_queue_tail(&tid->retry_q, bf->bf_mpdu); in ath_tx_form_burst()
1464 ath_set_rates(tid->an->vif, tid->an->sta, bf); in ath_tx_form_burst()
1471 struct ath_buf *bf = NULL; in ath_tx_sched_aggr() local
1479 ret = ath_tx_get_tid_subframe(sc, txq, tid, &bf); in ath_tx_sched_aggr()
1483 tx_info = IEEE80211_SKB_CB(bf->bf_mpdu); in ath_tx_sched_aggr()
1487 __skb_queue_tail(&tid->retry_q, bf->bf_mpdu); in ath_tx_sched_aggr()
1491 ath_set_rates(tid->an->vif, tid->an->sta, bf); in ath_tx_sched_aggr()
1493 aggr_len = ath_tx_form_aggr(sc, txq, tid, &bf_q, bf); in ath_tx_sched_aggr()
1495 ath_tx_form_burst(sc, txq, tid, &bf_q, bf); in ath_tx_sched_aggr()
1505 ath_tx_fill_desc(sc, bf, txq, aggr_len); in ath_tx_sched_aggr()
1609 ath9k_set_moredata(struct ath_softc *sc, struct ath_buf *bf, bool val) in ath9k_set_moredata() argument
1615 hdr = (struct ieee80211_hdr *) bf->bf_mpdu->data; in ath9k_set_moredata()
1618 dma_sync_single_for_device(sc->dev, bf->bf_buf_addr, in ath9k_set_moredata()
1634 struct ath_buf *bf_tail = NULL, *bf = NULL; in ath9k_release_buffered_frames() local
1650 tid, &bf); in ath9k_release_buffered_frames()
1654 ath9k_set_moredata(sc, bf, true); in ath9k_release_buffered_frames()
1655 list_add_tail(&bf->list, &bf_q); in ath9k_release_buffered_frames()
1656 ath_set_rates(tid->an->vif, tid->an->sta, bf); in ath9k_release_buffered_frames()
1657 if (bf_isampdu(bf)) in ath9k_release_buffered_frames()
1658 bf->bf_state.bf_type &= ~BUF_AGGR; in ath9k_release_buffered_frames()
1660 bf_tail->bf_next = bf; in ath9k_release_buffered_frames()
1662 bf_tail = bf; in ath9k_release_buffered_frames()
1682 bf = list_first_entry(&bf_q, struct ath_buf, list); in ath9k_release_buffered_frames()
1684 ath_tx_fill_desc(sc, bf, txq, 0); in ath9k_release_buffered_frames()
1810 struct ath_buf *bf, *lastbf; in ath_drain_txq_list() local
1819 bf = list_first_entry(list, struct ath_buf, list); in ath_drain_txq_list()
1821 if (bf->bf_state.stale) { in ath_drain_txq_list()
1822 list_del(&bf->list); in ath_drain_txq_list()
1824 ath_tx_return_buffer(sc, bf); in ath_drain_txq_list()
1828 lastbf = bf->bf_lastbf; in ath_drain_txq_list()
1830 ath_tx_process_buffer(sc, txq, &ts, bf, &bf_head); in ath_drain_txq_list()
1981 struct ath_buf *bf, *bf_last; in ath_tx_txqaddbuf() local
1994 bf = list_first_entry(head, struct ath_buf, list); in ath_tx_txqaddbuf()
2008 ath9k_hw_set_desc_link(ah, txq->axq_link, bf->bf_daddr); in ath_tx_txqaddbuf()
2011 ito64(bf->bf_daddr), bf->bf_desc); in ath_tx_txqaddbuf()
2020 ath9k_hw_puttxbuf(ah, txq->axq_qnum, bf->bf_daddr); in ath_tx_txqaddbuf()
2022 txq->axq_qnum, ito64(bf->bf_daddr), bf->bf_desc); in ath_tx_txqaddbuf()
2031 while (bf) { in ath_tx_txqaddbuf()
2033 if (bf_is_ampdu_not_probing(bf)) in ath_tx_txqaddbuf()
2036 bf_last = bf->bf_lastbf; in ath_tx_txqaddbuf()
2037 bf = bf_last->bf_next; in ath_tx_txqaddbuf()
2049 struct ath_buf *bf = fi->bf; in ath_tx_send_normal() local
2052 list_add_tail(&bf->list, &bf_head); in ath_tx_send_normal()
2053 bf->bf_state.bf_type = 0; in ath_tx_send_normal()
2055 bf->bf_state.bf_type = BUF_AMPDU; in ath_tx_send_normal()
2056 ath_tx_addto_baw(sc, tid, bf); in ath_tx_send_normal()
2059 bf->bf_next = NULL; in ath_tx_send_normal()
2060 bf->bf_lastbf = bf; in ath_tx_send_normal()
2061 ath_tx_fill_desc(sc, bf, txq, fi->framelen); in ath_tx_send_normal()
2155 struct ath_buf *bf; in ath_tx_setup_buffer() local
2159 bf = ath_tx_get_buffer(sc); in ath_tx_setup_buffer()
2160 if (!bf) { in ath_tx_setup_buffer()
2165 ATH_TXBUF_RESET(bf); in ath_tx_setup_buffer()
2178 bf->bf_state.seqno = seqno; in ath_tx_setup_buffer()
2181 bf->bf_mpdu = skb; in ath_tx_setup_buffer()
2183 bf->bf_buf_addr = dma_map_single(sc->dev, skb->data, in ath_tx_setup_buffer()
2185 if (unlikely(dma_mapping_error(sc->dev, bf->bf_buf_addr))) { in ath_tx_setup_buffer()
2186 bf->bf_mpdu = NULL; in ath_tx_setup_buffer()
2187 bf->bf_buf_addr = 0; in ath_tx_setup_buffer()
2190 ath_tx_return_buffer(sc, bf); in ath_tx_setup_buffer()
2194 fi->bf = bf; in ath_tx_setup_buffer()
2196 return bf; in ath_tx_setup_buffer()
2279 struct ath_buf *bf; in ath_tx_start() local
2310 bf = ath_tx_setup_buffer(sc, txq, tid, skb); in ath_tx_start()
2311 if (!bf) { in ath_tx_start()
2320 bf->bf_state.bfs_paprd = txctl->paprd; in ath_tx_start()
2323 bf->bf_state.bfs_paprd_timestamp = jiffies; in ath_tx_start()
2325 ath_set_rates(vif, sta, bf); in ath_tx_start()
2343 struct ath_buf *bf; in ath_tx_cabq() local
2358 bf = ath_tx_setup_buffer(sc, txctl.txq, NULL, skb); in ath_tx_cabq()
2359 if (!bf) in ath_tx_cabq()
2362 bf->bf_lastbf = bf; in ath_tx_cabq()
2363 ath_set_rates(vif, NULL, bf); in ath_tx_cabq()
2364 ath_buf_set_rate(sc, bf, &info, fi->framelen, false); in ath_tx_cabq()
2367 bf_tail->bf_next = bf; in ath_tx_cabq()
2369 list_add_tail(&bf->list, &bf_q); in ath_tx_cabq()
2370 bf_tail = bf; in ath_tx_cabq()
2385 bf = list_last_entry(&bf_q, struct ath_buf, list); in ath_tx_cabq()
2386 ath9k_set_moredata(sc, bf, false); in ath_tx_cabq()
2388 bf = list_first_entry(&bf_q, struct ath_buf, list); in ath_tx_cabq()
2390 ath_tx_fill_desc(sc, bf, txctl.txq, 0); in ath_tx_cabq()
2452 static void ath_tx_complete_buf(struct ath_softc *sc, struct ath_buf *bf, in ath_tx_complete_buf() argument
2457 struct sk_buff *skb = bf->bf_mpdu; in ath_tx_complete_buf()
2468 dma_unmap_single(sc->dev, bf->bf_buf_addr, skb->len, DMA_TO_DEVICE); in ath_tx_complete_buf()
2469 bf->bf_buf_addr = 0; in ath_tx_complete_buf()
2473 if (bf->bf_state.bfs_paprd) { in ath_tx_complete_buf()
2475 bf->bf_state.bfs_paprd_timestamp + in ath_tx_complete_buf()
2481 ath_debug_stat_tx(sc, bf, ts, txq, tx_flags); in ath_tx_complete_buf()
2488 bf->bf_mpdu = NULL; in ath_tx_complete_buf()
2498 static void ath_tx_rc_status(struct ath_softc *sc, struct ath_buf *bf, in ath_tx_rc_status() argument
2502 struct sk_buff *skb = bf->bf_mpdu; in ath_tx_rc_status()
2560 struct ath_buf *bf, *lastbf, *bf_held = NULL; in ath_tx_processq() local
2580 bf = list_first_entry(&txq->axq_q, struct ath_buf, list); in ath_tx_processq()
2591 if (bf->bf_state.stale) { in ath_tx_processq()
2592 bf_held = bf; in ath_tx_processq()
2596 bf = list_entry(bf_held->list.next, struct ath_buf, in ath_tx_processq()
2600 lastbf = bf->bf_lastbf; in ath_tx_processq()
2626 ath_tx_process_buffer(sc, txq, &ts, bf, &bf_head); in ath_tx_processq()
2651 struct ath_buf *bf, *lastbf; in ath_tx_edma_tasklet() local
2695 bf = list_first_entry(fifo_list, struct ath_buf, list); in ath_tx_edma_tasklet()
2696 if (bf->bf_state.stale) { in ath_tx_edma_tasklet()
2697 list_del(&bf->list); in ath_tx_edma_tasklet()
2698 ath_tx_return_buffer(sc, bf); in ath_tx_edma_tasklet()
2699 bf = list_first_entry(fifo_list, struct ath_buf, list); in ath_tx_edma_tasklet()
2702 lastbf = bf->bf_lastbf; in ath_tx_edma_tasklet()
2719 if (bf != lastbf) in ath_tx_edma_tasklet()
2724 ath_tx_process_buffer(sc, txq, &ts, bf, &bf_head); in ath_tx_edma_tasklet()
2851 struct ath_buf *bf; in ath9k_tx99_send() local
2872 bf = ath_tx_setup_buffer(sc, txctl->txq, NULL, skb); in ath9k_tx99_send()
2873 if (!bf) { in ath9k_tx99_send()
2878 ath_set_rates(sc->tx99_vif, NULL, bf); in ath9k_tx99_send()
2880 ath9k_hw_set_desc_link(sc->sc_ah, bf->bf_desc, bf->bf_daddr); in ath9k_tx99_send()