recv.c (e87f3d538e5c3a561ddd97eab02706ff3973e7da) | recv.c (07236bf3c659d1823262c1dabec4fa05990df115) |
---|---|
1/* 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 110 unchanged lines hidden (view full) --- 119 120 ATH_RXBUF_RESET(bf); 121 memset(skb->data, 0, ah->caps.rx_status_len); 122 dma_sync_single_for_device(sc->dev, bf->bf_buf_addr, 123 ah->caps.rx_status_len, DMA_TO_DEVICE); 124 125 SKB_CB_ATHBUF(skb) = bf; 126 ath9k_hw_addrxbuf_edma(ah, bf->bf_buf_addr, qtype); | 1/* 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 110 unchanged lines hidden (view full) --- 119 120 ATH_RXBUF_RESET(bf); 121 memset(skb->data, 0, ah->caps.rx_status_len); 122 dma_sync_single_for_device(sc->dev, bf->bf_buf_addr, 123 ah->caps.rx_status_len, DMA_TO_DEVICE); 124 125 SKB_CB_ATHBUF(skb) = bf; 126 ath9k_hw_addrxbuf_edma(ah, bf->bf_buf_addr, qtype); |
127 skb_queue_tail(&rx_edma->rx_fifo, skb); | 127 __skb_queue_tail(&rx_edma->rx_fifo, skb); |
128 129 return true; 130} 131 132static void ath_rx_addbuffer_edma(struct ath_softc *sc, 133 enum ath9k_rx_qtype qtype) 134{ 135 struct ath_common *common = ath9k_hw_common(sc->sc_ah); --- 14 unchanged lines hidden (view full) --- 150 enum ath9k_rx_qtype qtype) 151{ 152 struct ath_buf *bf; 153 struct ath_rx_edma *rx_edma; 154 struct sk_buff *skb; 155 156 rx_edma = &sc->rx.rx_edma[qtype]; 157 | 128 129 return true; 130} 131 132static void ath_rx_addbuffer_edma(struct ath_softc *sc, 133 enum ath9k_rx_qtype qtype) 134{ 135 struct ath_common *common = ath9k_hw_common(sc->sc_ah); --- 14 unchanged lines hidden (view full) --- 150 enum ath9k_rx_qtype qtype) 151{ 152 struct ath_buf *bf; 153 struct ath_rx_edma *rx_edma; 154 struct sk_buff *skb; 155 156 rx_edma = &sc->rx.rx_edma[qtype]; 157 |
158 while ((skb = skb_dequeue(&rx_edma->rx_fifo)) != NULL) { | 158 while ((skb = __skb_dequeue(&rx_edma->rx_fifo)) != NULL) { |
159 bf = SKB_CB_ATHBUF(skb); 160 BUG_ON(!bf); 161 list_add_tail(&bf->list, &sc->rx.rxbuf); 162 } 163} 164 165static void ath_rx_edma_cleanup(struct ath_softc *sc) 166{ --- 1226 unchanged lines hidden --- | 159 bf = SKB_CB_ATHBUF(skb); 160 BUG_ON(!bf); 161 list_add_tail(&bf->list, &sc->rx.rxbuf); 162 } 163} 164 165static void ath_rx_edma_cleanup(struct ath_softc *sc) 166{ --- 1226 unchanged lines hidden --- |