• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/wireless/ath/ath5k/

Lines Matching defs:bf

311 				struct ath5k_buf *bf);
313 struct ath5k_buf *bf,
317 struct ath5k_buf *bf)
319 BUG_ON(!bf);
320 if (!bf->skb)
322 pci_unmap_single(sc->pdev, bf->skbaddr, bf->skb->len,
324 dev_kfree_skb_any(bf->skb);
325 bf->skb = NULL;
326 bf->skbaddr = 0;
327 bf->desc->ds_data = 0;
331 struct ath5k_buf *bf)
336 BUG_ON(!bf);
337 if (!bf->skb)
339 pci_unmap_single(sc->pdev, bf->skbaddr, common->rx_bufsize,
341 dev_kfree_skb_any(bf->skb);
342 bf->skb = NULL;
343 bf->skbaddr = 0;
344 bf->desc->ds_data = 0;
370 struct ath5k_buf *bf);
1225 ath5k_rxbuf_setup(struct ath5k_softc *sc, struct ath5k_buf *bf)
1228 struct sk_buff *skb = bf->skb;
1233 skb = ath5k_rx_skb_alloc(sc, &bf->skbaddr);
1236 bf->skb = skb;
1254 ds = bf->desc;
1255 ds->ds_link = bf->daddr; /* link to self */
1256 ds->ds_data = bf->skbaddr;
1264 *sc->rxlink = bf->daddr;
1293 ath5k_txbuf_setup(struct ath5k_softc *sc, struct ath5k_buf *bf,
1297 struct ath5k_desc *ds = bf->desc;
1298 struct sk_buff *skb = bf->skb;
1311 bf->skbaddr = pci_map_single(sc->pdev, skb->data, skb->len,
1372 ds->ds_data = bf->skbaddr;
1375 list_add_tail(&bf->list, &txq->q);
1377 ath5k_hw_set_txdp(ah, txq->qnum, bf->daddr);
1379 *txq->link = bf->daddr;
1388 pci_unmap_single(sc->pdev, bf->skbaddr, skb->len, PCI_DMA_TODEVICE);
1400 struct ath5k_buf *bf;
1419 bf = kcalloc(1 + ATH_TXBUF + ATH_RXBUF + ATH_BCBUF,
1421 if (bf == NULL) {
1426 sc->bufptr = bf;
1429 for (i = 0; i < ATH_RXBUF; i++, bf++, ds++, da += sizeof(*ds)) {
1430 bf->desc = ds;
1431 bf->daddr = da;
1432 list_add_tail(&bf->list, &sc->rxbuf);
1437 for (i = 0; i < ATH_TXBUF; i++, bf++, ds++,
1439 bf->desc = ds;
1440 bf->daddr = da;
1441 list_add_tail(&bf->list, &sc->txbuf);
1445 bf->desc = ds;
1446 bf->daddr = da;
1447 sc->bbuf = bf;
1460 struct ath5k_buf *bf;
1463 list_for_each_entry(bf, &sc->txbuf, list)
1464 ath5k_txbuf_free_skb(sc, bf);
1465 list_for_each_entry(bf, &sc->rxbuf, list)
1466 ath5k_rxbuf_free_skb(sc, bf);
1614 struct ath5k_buf *bf, *bf0;
1621 list_for_each_entry_safe(bf, bf0, &txq->q, list) {
1622 ath5k_debug_printtxbuf(sc, bf);
1624 ath5k_txbuf_free_skb(sc, bf);
1627 list_move_tail(&bf->list, &sc->txbuf);
1694 struct ath5k_buf *bf;
1704 list_for_each_entry(bf, &sc->rxbuf, list) {
1705 ret = ath5k_rxbuf_setup(sc, bf);
1711 bf = list_first_entry(&sc->rxbuf, struct ath5k_buf, list);
1712 ath5k_hw_set_rxdp(ah, bf->daddr);
2011 struct ath5k_buf *bf;
2021 bf = list_first_entry(&sc->rxbuf, struct ath5k_buf, list);
2022 BUG_ON(bf->skb == NULL);
2023 skb = bf->skb;
2024 ds = bf->desc;
2027 if (ath5k_hw_get_rxdp(sc->ah) == bf->daddr)
2043 * If we can't replace bf->skb with a new skb under
2049 pci_unmap_single(sc->pdev, bf->skbaddr,
2057 bf->skb = next_skb;
2058 bf->skbaddr = next_skb_addr;
2061 list_move_tail(&bf->list, &sc->rxbuf);
2062 } while (ath5k_rxbuf_setup(sc, bf) == 0);
2076 struct ath5k_buf *bf, *bf0;
2083 list_for_each_entry_safe(bf, bf0, &txq->q, list) {
2084 ds = bf->desc;
2093 if (ath5k_hw_get_txdp(sc->ah, txq->qnum) == bf->daddr &&
2094 !list_is_last(&bf->list, &txq->q))
2107 skb = bf->skb;
2109 bf->skb = NULL;
2111 pci_unmap_single(sc->pdev, bf->skbaddr, skb->len,
2160 list_move_tail(&bf->list, &sc->txbuf);
2191 ath5k_beacon_setup(struct ath5k_softc *sc, struct ath5k_buf *bf)
2193 struct sk_buff *skb = bf->skb;
2202 bf->skbaddr = pci_map_single(sc->pdev, skb->data, skb->len,
2206 (unsigned long long)bf->skbaddr);
2207 if (pci_dma_mapping_error(sc->pdev, bf->skbaddr)) {
2212 ds = bf->desc;
2217 ds->ds_link = bf->daddr; /* self-linked */
2243 ds->ds_data = bf->skbaddr;
2255 pci_unmap_single(sc->pdev, bf->skbaddr, skb->len, PCI_DMA_TODEVICE);
2270 struct ath5k_buf *bf = sc->bbuf;
2276 if (unlikely(bf->skb == NULL || sc->opmode == NL80211_IFTYPE_STATION ||
2278 ATH5K_WARN(sc, "bf=%p bf_skb=%p\n", bf, bf ? bf->skb : NULL);
2323 ath5k_hw_set_txdp(ah, sc->bhalq, bf->daddr);
2326 sc->bhalq, (unsigned long long)bf->daddr, bf->desc);
2844 struct ath5k_buf *bf;
2871 bf = list_first_entry(&sc->txbuf, struct ath5k_buf, list);
2872 list_del(&bf->list);
2878 bf->skb = skb;
2880 if (ath5k_txbuf_setup(sc, bf, txq, padsize)) {
2881 bf->skb = NULL;
2883 list_add_tail(&bf->list, &sc->txbuf);